From 118aff54c230bc182f58bd47b88b1c59816ed567 Mon Sep 17 00:00:00 2001 From: Kevin Siegler <17910833+topocount@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:06:15 -0500 Subject: [PATCH] feat(evm): wire up componentInterface script for `build` --- .gitignore | 2 ++ packages/evm/deploys/componentInterfaces.json | 17 ----------------- packages/evm/package.json | 3 ++- 3 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 packages/evm/deploys/componentInterfaces.json diff --git a/.gitignore b/.gitignore index 3085566b..a4b25fc6 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ docs # don't commit local testnet deploys packages/evm/deploys/31337.json +# don't commit componentInterfaces, since these are used at build time +packages/evm/deploys/componentInterfaces.json diff --git a/packages/evm/deploys/componentInterfaces.json b/packages/evm/deploys/componentInterfaces.json deleted file mode 100644 index da37a48d..00000000 --- a/packages/evm/deploys/componentInterfaces.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "AAllowListIncentive": "0xa466e6f", - "ABudget": "0xea5ad34e", - "ACGDAIncentive": "0xa39e44d9", - "ACloneable": "0x6ab67a0d", - "AERC20Incentive": "0x8c901437", - "AERC20VariableIncentive": "0x6060409d", - "AEventAction": "0x7687b0ed", - "AIncentive": "0x5970a689", - "AManagedBudget": "0xa0109882", - "APointsIncentive": "0xc5b24b8e", - "ASignerValidator": "0xb8ce7b22", - "ASimpleAllowList": "0x8ba1fc24", - "ASimpleBudget": "0x2929d19c", - "ASimpleDenyList": "0x3d30a22c", - "AVestingBudget": "0x64683da1" -} diff --git a/packages/evm/package.json b/packages/evm/package.json index 49652e01..ab090756 100644 --- a/packages/evm/package.json +++ b/packages/evm/package.json @@ -24,7 +24,8 @@ "types": "./dist/generated.d.ts", "typings": "./dist/generated.d.ts", "scripts": { - "build": "npm run clean && forge build --sizes && wagmi generate && vite build && tsc --build --emitDeclarationOnly --declaration --declarationMap --force", + "build": "npm run clean && npm run build:componentInterfaces && forge build --sizes && wagmi generate && vite build && tsc --build --emitDeclarationOnly --declaration --declarationMap --force", + "build:componentInterfaces": "forge script script/solidity/ComponentInterface.s.sol", "clean": "forge clean && hardhat clean && rm -rf cache", "test": "forge test -vvv && hardhat test", "test:ci": "forge test --summary --detailed -vvv && hardhat test",