diff --git a/packages/ethereum-contracts/ops-scripts/deploy-framework.js b/packages/ethereum-contracts/ops-scripts/deploy-framework.js index 305a6f424d..6da6a6aedf 100644 --- a/packages/ethereum-contracts/ops-scripts/deploy-framework.js +++ b/packages/ethereum-contracts/ops-scripts/deploy-framework.js @@ -222,6 +222,7 @@ module.exports = eval(`(${S.toString()})({skipArgv: true})`)(async function ( "SuperfluidPool", "SuperfluidPoolPlaceholder", "SuperfluidPoolDeployerLibrary", + "BeaconProxy", "ConstantOutflowNFT", "ConstantInflowNFT", "PoolAdminNFT", @@ -261,6 +262,7 @@ module.exports = eval(`(${S.toString()})({skipArgv: true})`)(async function ( SuperfluidPool, SuperfluidPoolPlaceholder, SuperfluidPoolDeployerLibrary, + BeaconProxy, ConstantOutflowNFT, ConstantInflowNFT, PoolAdminNFT, @@ -586,6 +588,14 @@ module.exports = eval(`(${S.toString()})({skipArgv: true})`)(async function ( protocolReleaseVersion === "test" ? true : false ); + // deploy a dummy BeaconProxy for verification + const beaconProxy = await web3tx( + BeaconProxy.new, + "BeaconProxy.new" + )(superfluidPoolBeaconAddr, "0x"); + console.log("Dummy BeaconProxy address", beaconProxy.address); + output += `DUMMY_BEACON_PROXY=${beaconProxy.address}\n`; + if (process.env.IS_HARDHAT) { // this fails in test case deployment.test.js:ops-scripts/deploy-super-token.js // where deploy-framework is invoked twice, the second time failing because diff --git a/packages/ethereum-contracts/tasks/etherscan-verify-framework.sh b/packages/ethereum-contracts/tasks/etherscan-verify-framework.sh index 34cf88b29f..7444a09a09 100755 --- a/packages/ethereum-contracts/tasks/etherscan-verify-framework.sh +++ b/packages/ethereum-contracts/tasks/etherscan-verify-framework.sh @@ -158,6 +158,10 @@ if [ -n "$SUPERFLUID_POOL_DEPLOYER_LIBRARY" ]; then try_verify SuperfluidPoolDeployerLibrary@"${SUPERFLUID_POOL_DEPLOYER_LIBRARY}" fi +if [ -n "$DUMMY_BEACON_PROXY" ]; then + try_verify BeaconProxy@"${DUMMY_BEACON_PROXY}" +fi + # this will fail with 'Library address is not prefixed with "0x"' if a library address is not set link_library "GeneralDistributionAgreementV1" "SlotsBitmapLibrary" "${SLOTS_BITMAP_LIBRARY}" link_library "GeneralDistributionAgreementV1" "SuperfluidPoolDeployerLibrary" "${SUPERFLUID_POOL_DEPLOYER_LIBRARY}"