From df2a4bd528e8e3f039158df6e16322b53ae11914 Mon Sep 17 00:00:00 2001 From: Amie Corso Date: Fri, 13 Dec 2024 11:07:40 -0800 Subject: [PATCH 1/2] add addresses for final deployments --- README.md | 23 +++++++++++++++++++--- scratch.txt | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 scratch.txt diff --git a/README.md b/README.md index adb7437..93f0c1b 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,28 @@ ## Deployments -### Base Sepolia +The following contracts are deployed on the following chains: -`SpendPermissionManager`: `0xD5Ca2d1818a835B10f78b45Bc1cD5Db305c10fA8` +`SpendPermissionManager`: 0xf85210B21cC50302F477BA56686d2019dC9b67Ad -`PublicERC6492Validator`: `0xbaf2ebbE72Fa36C9C68447bDC2FF20E047c10b99` +`PublicERC6492Validator`: 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D + +Testnets: + +- Base Sepolia +- Optimism Sepolia +- Ethereum Sepolia + +Mainnets: + +- Base +- Ethereum +- Optimism +- Arbitrum +- Polygon +- Zora +- Binance Smart Chain +- Avalanche ## Design Overview diff --git a/scratch.txt b/scratch.txt new file mode 100644 index 0000000..b34278e --- /dev/null +++ b/scratch.txt @@ -0,0 +1,55 @@ +# Verify on Base Sepolia +forge verify-contract --chain-id 84532 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $BASESCAN_API_KEY --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager + +forge verify-contract --chain-id 84532 --num-of-optimizations 999999 --watch --etherscan-api-key $BASESCAN_API_KEY --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator + + + +# Verify on Ethereum Sepolia +forge verify-contract --chain-id 11155111 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $ETHERSCAN_API_KEY --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager + +forge verify-contract --chain-id 11155111 --num-of-optimizations 999999 --watch --etherscan-api-key $ETHERSCAN_API_KEY --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator + +# Deploy on Optimism Sepolia +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $OPTIMISM_SEPOLIA_RPC --verify --verifier-url $OPTIMISM_SEPOLIA_ETHERSCAN_API --etherscan-api-key $ETHERSCAN_API_KEY --broadcast -vvvv + +forge verify-contract --chain-id 11155420 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $OPTIMISM_ETHERSCAN_API_KEY --rpc-url $OPTIMISM_SEPOLIA_ETHERSCAN_API --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager +forge verify-contract --chain-id 11155420 --num-of-optimizations 999999 --watch --etherscan-api-key $OPTIMISM_ETHERSCAN_API_KEY --rpc-url $OPTIMISM_SEPOLIA_ETHERSCAN_API --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator + +#Deploy on Base +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $BASE_RPC --verify --verifier-url $BASESCAN_API --etherscan-api-key $BASESCAN_API_KEY --broadcast -vvvv + +#Deploy on Optimism +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $OPTIMISM_RPC --verify --verifier-url $OPTIMISM_ETHERSCAN_API --etherscan-api-key $OPTIMISM_ETHERSCAN_API_KEY --broadcast -vvvv + +#Deploy on Arbitrum +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $ARBITRUM_RPC --verify --verifier-url $ARBISCAN_API --etherscan-api-key $ARBISCAN_API_KEY --broadcast -vvvv + +# Validate on Arbitrum +# try with resume with blockscout +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $ARBITRUM_RPC --verify --verifier blockscout --resume -vvvv +# try with blockscout +FOUNDRY_PROFILE=deploy forge verify-contract --chain-id 42161 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --verifier blockscout --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager + +FOUNDRY_PROFILE=deploy forge verify-contract --chain-id 42161 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $ARBISCAN_API_KEY --rpc-url $ARBISCAN_API --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager +forge verify-contract --chain-id 42161 --num-of-optimizations 999999 --watch --etherscan-api-key $ARBISCAN_API_KEY --rpc-url $ARBISCAN_API --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator + + +# Deploy on Zora +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $ZORA_RPC --verify --verifier-url $ZORA_BLOCKSCOUT_API --broadcast -vvvv + +# Deploy on Polygon +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $POLYGON_RPC --verify --verifier-url $POLYGONSCAN_API --etherscan-api-key $POLYGONSCAN_API_KEY --broadcast -vvvv + +# Deploy on BSC +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $BSC_RPC --verify --verifier-url $BSCSCAN_API --etherscan-api-key $BSCSCAN_API_KEY --broadcast -vvvv + +# Deploy on Avalanche +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $AVAX_RPC --verify --broadcast -vvvv + +# Deploy on Ethereum Mainnet +FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $ETHEREUM_RPC --verify --verifier-url $ETHERSCAN_API --etherscan-api-key $ETHERSCAN_API_KEY -vvvv + +# Verify on Ethereum Mainnet +forge verify-contract --chain-id 1 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $ETHERSCAN_API_KEY --rpc-url $ETHERSCAN_API --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager +forge verify-contract --chain-id 1 --num-of-optimizations 999999 --watch --etherscan-api-key $ETHERSCAN_API_KEY --rpc-url $ETHERSCAN_API --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator From bd60a2059af4f963e106f39dd8103d5b8e82f8f0 Mon Sep 17 00:00:00 2001 From: Amie Corso Date: Fri, 13 Dec 2024 11:10:12 -0800 Subject: [PATCH 2/2] remove scratch scripts --- scratch.txt | 55 ----------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 scratch.txt diff --git a/scratch.txt b/scratch.txt deleted file mode 100644 index b34278e..0000000 --- a/scratch.txt +++ /dev/null @@ -1,55 +0,0 @@ -# Verify on Base Sepolia -forge verify-contract --chain-id 84532 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $BASESCAN_API_KEY --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager - -forge verify-contract --chain-id 84532 --num-of-optimizations 999999 --watch --etherscan-api-key $BASESCAN_API_KEY --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator - - - -# Verify on Ethereum Sepolia -forge verify-contract --chain-id 11155111 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $ETHERSCAN_API_KEY --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager - -forge verify-contract --chain-id 11155111 --num-of-optimizations 999999 --watch --etherscan-api-key $ETHERSCAN_API_KEY --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator - -# Deploy on Optimism Sepolia -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $OPTIMISM_SEPOLIA_RPC --verify --verifier-url $OPTIMISM_SEPOLIA_ETHERSCAN_API --etherscan-api-key $ETHERSCAN_API_KEY --broadcast -vvvv - -forge verify-contract --chain-id 11155420 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $OPTIMISM_ETHERSCAN_API_KEY --rpc-url $OPTIMISM_SEPOLIA_ETHERSCAN_API --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager -forge verify-contract --chain-id 11155420 --num-of-optimizations 999999 --watch --etherscan-api-key $OPTIMISM_ETHERSCAN_API_KEY --rpc-url $OPTIMISM_SEPOLIA_ETHERSCAN_API --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator - -#Deploy on Base -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $BASE_RPC --verify --verifier-url $BASESCAN_API --etherscan-api-key $BASESCAN_API_KEY --broadcast -vvvv - -#Deploy on Optimism -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $OPTIMISM_RPC --verify --verifier-url $OPTIMISM_ETHERSCAN_API --etherscan-api-key $OPTIMISM_ETHERSCAN_API_KEY --broadcast -vvvv - -#Deploy on Arbitrum -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $ARBITRUM_RPC --verify --verifier-url $ARBISCAN_API --etherscan-api-key $ARBISCAN_API_KEY --broadcast -vvvv - -# Validate on Arbitrum -# try with resume with blockscout -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $ARBITRUM_RPC --verify --verifier blockscout --resume -vvvv -# try with blockscout -FOUNDRY_PROFILE=deploy forge verify-contract --chain-id 42161 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --verifier blockscout --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager - -FOUNDRY_PROFILE=deploy forge verify-contract --chain-id 42161 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $ARBISCAN_API_KEY --rpc-url $ARBISCAN_API --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager -forge verify-contract --chain-id 42161 --num-of-optimizations 999999 --watch --etherscan-api-key $ARBISCAN_API_KEY --rpc-url $ARBISCAN_API --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator - - -# Deploy on Zora -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $ZORA_RPC --verify --verifier-url $ZORA_BLOCKSCOUT_API --broadcast -vvvv - -# Deploy on Polygon -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $POLYGON_RPC --verify --verifier-url $POLYGONSCAN_API --etherscan-api-key $POLYGONSCAN_API_KEY --broadcast -vvvv - -# Deploy on BSC -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $BSC_RPC --verify --verifier-url $BSCSCAN_API --etherscan-api-key $BSCSCAN_API_KEY --broadcast -vvvv - -# Deploy on Avalanche -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $AVAX_RPC --verify --broadcast -vvvv - -# Deploy on Ethereum Mainnet -FOUNDRY_PROFILE=deploy forge script Deploy --account spmdeployer --sender $SPM_DEPLOYER --rpc-url $ETHEREUM_RPC --verify --verifier-url $ETHERSCAN_API --etherscan-api-key $ETHERSCAN_API_KEY -vvvv - -# Verify on Ethereum Mainnet -forge verify-contract --chain-id 1 --num-of-optimizations 999999 --watch --constructor-args $(cast abi-encode "constructor(address,address)" "0xcfCE48B757601F3f351CB6f434CB0517aEEE293D" "0x011A61C07DbF256A68256B1cB51A5e246730aB92") --etherscan-api-key $ETHERSCAN_API_KEY --rpc-url $ETHERSCAN_API --compiler-version v0.8.28 0xf85210B21cC50302F477BA56686d2019dC9b67Ad src/SpendPermissionManager.sol:SpendPermissionManager -forge verify-contract --chain-id 1 --num-of-optimizations 999999 --watch --etherscan-api-key $ETHERSCAN_API_KEY --rpc-url $ETHERSCAN_API --compiler-version v0.8.28 0xcfCE48B757601F3f351CB6f434CB0517aEEE293D src/PublicERC6492Validator.sol:PublicERC6492Validator