From 42af00125eeaf0145223adc60c12c7f6088bb5d4 Mon Sep 17 00:00:00 2001 From: scottrepreneur Date: Wed, 21 Feb 2024 08:14:02 -0600 Subject: [PATCH 1/3] allow tx builder abi to be overridden --- .../moloch-v3-fields/src/fields/MultisendActions.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libs/moloch-v3-fields/src/fields/MultisendActions.tsx b/libs/moloch-v3-fields/src/fields/MultisendActions.tsx index d9ce3a38..8055be58 100644 --- a/libs/moloch-v3-fields/src/fields/MultisendActions.tsx +++ b/libs/moloch-v3-fields/src/fields/MultisendActions.tsx @@ -296,6 +296,17 @@ const Action = ({ 'Contract not verified. You can manually paste the ABI but proceed with extreme caution!', }); } + // allow ABI to be overridden by the user + if ( + contractAbi && + contractAbi !== '' && + contractAbi !== JSON.stringify(fetchedAbi) + ) { + setValue(abiFieldId, contractAbi); + extractContractMethods(JSON.parse(contractAbi)); + setLoading(false); + return; + } if (!fetchedAbi && fallbackAbi) { cacheABI({ address, @@ -313,6 +324,7 @@ const Action = ({ }, [ abiFieldId, + contractAbi, contractMethodFieldId, daoChain, extractContractMethods, From cc222fb16773654a5fe6060d79fe907e455a291e Mon Sep 17 00:00:00 2001 From: Rowdy Date: Tue, 19 Mar 2024 10:27:51 -0600 Subject: [PATCH 2/3] fix(package.json): updated package.jsons to include a link to the repo. this is to qualify for tea and allow users to find repo from package managers --- libs/abis/package.json | 6 +++++- libs/connect-context/package.json | 6 +++++- libs/connect/package.json | 4 ++++ libs/contract-utils/package.json | 6 +++++- libs/data-fetch-utils/package.json | 6 +++++- libs/form-builder-base/package.json | 6 +++++- libs/form-builder/package.json | 6 +++++- libs/keychain-utils/package.json | 6 +++++- libs/moloch-v3-data/package.json | 6 +++++- libs/moloch-v3-fields/package.json | 6 +++++- libs/moloch-v3-hooks/package.json | 4 ++++ libs/moloch-v3-legos/package.json | 6 +++++- libs/moloch-v3-macro-ui/package.json | 4 ++++ libs/profile-data/package.json | 6 +++++- libs/tx-builder/package.json | 6 +++++- libs/ui/package.json | 6 +++++- libs/utils/package.json | 6 +++++- libs/wizard-form-builder/package.json | 6 +++++- package.json | 4 ++++ 19 files changed, 91 insertions(+), 15 deletions(-) diff --git a/libs/abis/package.json b/libs/abis/package.json index ef32e26e..b7e8affc 100644 --- a/libs/abis/package.json +++ b/libs/abis/package.json @@ -1,5 +1,9 @@ { "name": "@daohaus/abis", "version": "0.4.2", - "type": "commonjs" + "type": "commonjs", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/connect-context/package.json b/libs/connect-context/package.json index a641c688..1195ad43 100644 --- a/libs/connect-context/package.json +++ b/libs/connect-context/package.json @@ -1,4 +1,8 @@ { "name": "@daohaus/connect-context", - "version": "0.4.2" + "version": "0.4.2", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/connect/package.json b/libs/connect/package.json index 8b5adefc..3a5774cd 100644 --- a/libs/connect/package.json +++ b/libs/connect/package.json @@ -3,5 +3,9 @@ "version": "0.4.2", "peerDependencies": { "react-router-dom": "^6.4.3" + }, + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" } } diff --git a/libs/contract-utils/package.json b/libs/contract-utils/package.json index 4148f839..22173c78 100644 --- a/libs/contract-utils/package.json +++ b/libs/contract-utils/package.json @@ -1,5 +1,9 @@ { "name": "@daohaus/contract-utils", "version": "0.4.2", - "type": "commonjs" + "type": "commonjs", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/data-fetch-utils/package.json b/libs/data-fetch-utils/package.json index d6801a4c..36833515 100644 --- a/libs/data-fetch-utils/package.json +++ b/libs/data-fetch-utils/package.json @@ -1,5 +1,9 @@ { "name": "@daohaus/data-fetch-utils", "version": "0.4.2", - "type": "commonjs" + "type": "commonjs", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/form-builder-base/package.json b/libs/form-builder-base/package.json index d3a5e33c..5907f708 100644 --- a/libs/form-builder-base/package.json +++ b/libs/form-builder-base/package.json @@ -1,4 +1,8 @@ { "name": "@daohaus/form-builder-base", - "version": "0.4.2" + "version": "0.4.2", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/form-builder/package.json b/libs/form-builder/package.json index 1d54ff50..9beff12a 100644 --- a/libs/form-builder/package.json +++ b/libs/form-builder/package.json @@ -1,4 +1,8 @@ { "name": "@daohaus/form-builder", - "version": "0.4.2" + "version": "0.4.2", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/keychain-utils/package.json b/libs/keychain-utils/package.json index 5f6232d4..4d349992 100644 --- a/libs/keychain-utils/package.json +++ b/libs/keychain-utils/package.json @@ -1,4 +1,8 @@ { "name": "@daohaus/keychain-utils", - "version": "0.4.2" + "version": "0.4.2", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/moloch-v3-data/package.json b/libs/moloch-v3-data/package.json index ebcb6a2c..d21b2779 100644 --- a/libs/moloch-v3-data/package.json +++ b/libs/moloch-v3-data/package.json @@ -1,5 +1,9 @@ { "name": "@daohaus/moloch-v3-data", "version": "0.4.2", - "type": "commonjs" + "type": "commonjs", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/moloch-v3-fields/package.json b/libs/moloch-v3-fields/package.json index ae68e29c..847baa8f 100644 --- a/libs/moloch-v3-fields/package.json +++ b/libs/moloch-v3-fields/package.json @@ -1,4 +1,8 @@ { "name": "@daohaus/moloch-v3-fields", - "version": "0.4.2" + "version": "0.4.2", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/moloch-v3-hooks/package.json b/libs/moloch-v3-hooks/package.json index f561a6cb..1a7adfc0 100644 --- a/libs/moloch-v3-hooks/package.json +++ b/libs/moloch-v3-hooks/package.json @@ -3,5 +3,9 @@ "version": "0.4.2", "peerDependencies": { "react-query": "^3.39.3" + }, + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" } } diff --git a/libs/moloch-v3-legos/package.json b/libs/moloch-v3-legos/package.json index 36bbbb48..1db8e35b 100644 --- a/libs/moloch-v3-legos/package.json +++ b/libs/moloch-v3-legos/package.json @@ -1,5 +1,9 @@ { "name": "@daohaus/moloch-v3-legos", "version": "0.4.2", - "type": "commonjs" + "type": "commonjs", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/moloch-v3-macro-ui/package.json b/libs/moloch-v3-macro-ui/package.json index 54feb974..848cee1e 100644 --- a/libs/moloch-v3-macro-ui/package.json +++ b/libs/moloch-v3-macro-ui/package.json @@ -3,5 +3,9 @@ "version": "0.4.2", "peerDependencies": { "react-router-dom": "^6.4.3" + }, + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" } } diff --git a/libs/profile-data/package.json b/libs/profile-data/package.json index 936caad7..ba694710 100644 --- a/libs/profile-data/package.json +++ b/libs/profile-data/package.json @@ -1,5 +1,9 @@ { "name": "@daohaus/profile-data", "version": "0.4.2", - "type": "commonjs" + "type": "commonjs", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/tx-builder/package.json b/libs/tx-builder/package.json index 932e12d3..56e8c870 100644 --- a/libs/tx-builder/package.json +++ b/libs/tx-builder/package.json @@ -1,4 +1,8 @@ { "name": "@daohaus/tx-builder", - "version": "0.4.2" + "version": "0.4.2", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/ui/package.json b/libs/ui/package.json index caa84f3a..4669888e 100644 --- a/libs/ui/package.json +++ b/libs/ui/package.json @@ -1,4 +1,8 @@ { "name": "@daohaus/ui", - "version": "0.4.2" + "version": "0.4.2", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/utils/package.json b/libs/utils/package.json index dabc3932..8d0bd0f1 100644 --- a/libs/utils/package.json +++ b/libs/utils/package.json @@ -1,4 +1,8 @@ { "name": "@daohaus/utils", - "version": "0.4.2" + "version": "0.4.2", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/libs/wizard-form-builder/package.json b/libs/wizard-form-builder/package.json index f5737d9d..ae91e8bc 100644 --- a/libs/wizard-form-builder/package.json +++ b/libs/wizard-form-builder/package.json @@ -1,4 +1,8 @@ { "name": "@daohaus/wizard-form-builder", - "version": "0.1.2" + "version": "0.1.2", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + } } diff --git a/package.json b/package.json index fbd7b54f..02a57459 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,10 @@ "name": "daohaus", "version": "0.0.0", "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/HausDAO/monorepo" + }, "scripts": { "postinstall": "husky install", "bumpversion": "node tools/scripts/incrementVersion.js", From a0aea43f546cd89ce4b85fb803111b60875bd16a Mon Sep 17 00:00:00 2001 From: Rowdy Date: Thu, 21 Mar 2024 08:03:36 -0600 Subject: [PATCH 3/3] fix(package.json): bumped package versions --- libs/abis/package.json | 2 +- libs/connect-context/package.json | 2 +- libs/connect/package.json | 2 +- libs/contract-utils/package.json | 2 +- libs/data-fetch-utils/package.json | 2 +- libs/form-builder-base/package.json | 2 +- libs/form-builder/package.json | 2 +- libs/keychain-utils/package.json | 2 +- libs/moloch-v3-data/package.json | 2 +- libs/moloch-v3-fields/package.json | 2 +- libs/moloch-v3-hooks/package.json | 2 +- libs/moloch-v3-legos/package.json | 2 +- libs/moloch-v3-macro-ui/package.json | 2 +- libs/profile-data/package.json | 2 +- libs/tx-builder/package.json | 2 +- libs/ui/package.json | 2 +- libs/utils/package.json | 2 +- libs/wizard-form-builder/package.json | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/libs/abis/package.json b/libs/abis/package.json index b7e8affc..4ea81384 100644 --- a/libs/abis/package.json +++ b/libs/abis/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/abis", - "version": "0.4.2", + "version": "0.4.3", "type": "commonjs", "repository": { "type": "git", diff --git a/libs/connect-context/package.json b/libs/connect-context/package.json index 1195ad43..5846b544 100644 --- a/libs/connect-context/package.json +++ b/libs/connect-context/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/connect-context", - "version": "0.4.2", + "version": "0.4.3", "repository": { "type": "git", "url": "https://github.com/HausDAO/monorepo" diff --git a/libs/connect/package.json b/libs/connect/package.json index 3a5774cd..8994226e 100644 --- a/libs/connect/package.json +++ b/libs/connect/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/connect", - "version": "0.4.2", + "version": "0.4.3", "peerDependencies": { "react-router-dom": "^6.4.3" }, diff --git a/libs/contract-utils/package.json b/libs/contract-utils/package.json index 22173c78..78857900 100644 --- a/libs/contract-utils/package.json +++ b/libs/contract-utils/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/contract-utils", - "version": "0.4.2", + "version": "0.4.3", "type": "commonjs", "repository": { "type": "git", diff --git a/libs/data-fetch-utils/package.json b/libs/data-fetch-utils/package.json index 36833515..9b3e7427 100644 --- a/libs/data-fetch-utils/package.json +++ b/libs/data-fetch-utils/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/data-fetch-utils", - "version": "0.4.2", + "version": "0.4.3", "type": "commonjs", "repository": { "type": "git", diff --git a/libs/form-builder-base/package.json b/libs/form-builder-base/package.json index 5907f708..6d56f190 100644 --- a/libs/form-builder-base/package.json +++ b/libs/form-builder-base/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/form-builder-base", - "version": "0.4.2", + "version": "0.4.3", "repository": { "type": "git", "url": "https://github.com/HausDAO/monorepo" diff --git a/libs/form-builder/package.json b/libs/form-builder/package.json index 9beff12a..9bb1b1db 100644 --- a/libs/form-builder/package.json +++ b/libs/form-builder/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/form-builder", - "version": "0.4.2", + "version": "0.4.3", "repository": { "type": "git", "url": "https://github.com/HausDAO/monorepo" diff --git a/libs/keychain-utils/package.json b/libs/keychain-utils/package.json index 4d349992..d8c913b1 100644 --- a/libs/keychain-utils/package.json +++ b/libs/keychain-utils/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/keychain-utils", - "version": "0.4.2", + "version": "0.4.3", "repository": { "type": "git", "url": "https://github.com/HausDAO/monorepo" diff --git a/libs/moloch-v3-data/package.json b/libs/moloch-v3-data/package.json index d21b2779..0203f381 100644 --- a/libs/moloch-v3-data/package.json +++ b/libs/moloch-v3-data/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/moloch-v3-data", - "version": "0.4.2", + "version": "0.4.3", "type": "commonjs", "repository": { "type": "git", diff --git a/libs/moloch-v3-fields/package.json b/libs/moloch-v3-fields/package.json index 847baa8f..23e4f0ad 100644 --- a/libs/moloch-v3-fields/package.json +++ b/libs/moloch-v3-fields/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/moloch-v3-fields", - "version": "0.4.2", + "version": "0.4.3", "repository": { "type": "git", "url": "https://github.com/HausDAO/monorepo" diff --git a/libs/moloch-v3-hooks/package.json b/libs/moloch-v3-hooks/package.json index 1a7adfc0..a61c3539 100644 --- a/libs/moloch-v3-hooks/package.json +++ b/libs/moloch-v3-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/moloch-v3-hooks", - "version": "0.4.2", + "version": "0.4.3", "peerDependencies": { "react-query": "^3.39.3" }, diff --git a/libs/moloch-v3-legos/package.json b/libs/moloch-v3-legos/package.json index 1db8e35b..8715725f 100644 --- a/libs/moloch-v3-legos/package.json +++ b/libs/moloch-v3-legos/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/moloch-v3-legos", - "version": "0.4.2", + "version": "0.4.3", "type": "commonjs", "repository": { "type": "git", diff --git a/libs/moloch-v3-macro-ui/package.json b/libs/moloch-v3-macro-ui/package.json index 848cee1e..989c4b3c 100644 --- a/libs/moloch-v3-macro-ui/package.json +++ b/libs/moloch-v3-macro-ui/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/moloch-v3-macro-ui", - "version": "0.4.2", + "version": "0.4.3", "peerDependencies": { "react-router-dom": "^6.4.3" }, diff --git a/libs/profile-data/package.json b/libs/profile-data/package.json index ba694710..94712313 100644 --- a/libs/profile-data/package.json +++ b/libs/profile-data/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/profile-data", - "version": "0.4.2", + "version": "0.4.3", "type": "commonjs", "repository": { "type": "git", diff --git a/libs/tx-builder/package.json b/libs/tx-builder/package.json index 56e8c870..9c6c81dc 100644 --- a/libs/tx-builder/package.json +++ b/libs/tx-builder/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/tx-builder", - "version": "0.4.2", + "version": "0.4.3", "repository": { "type": "git", "url": "https://github.com/HausDAO/monorepo" diff --git a/libs/ui/package.json b/libs/ui/package.json index 4669888e..1b0ed608 100644 --- a/libs/ui/package.json +++ b/libs/ui/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/ui", - "version": "0.4.2", + "version": "0.4.3", "repository": { "type": "git", "url": "https://github.com/HausDAO/monorepo" diff --git a/libs/utils/package.json b/libs/utils/package.json index 8d0bd0f1..c302b462 100644 --- a/libs/utils/package.json +++ b/libs/utils/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/utils", - "version": "0.4.2", + "version": "0.4.3", "repository": { "type": "git", "url": "https://github.com/HausDAO/monorepo" diff --git a/libs/wizard-form-builder/package.json b/libs/wizard-form-builder/package.json index ae91e8bc..182b6c58 100644 --- a/libs/wizard-form-builder/package.json +++ b/libs/wizard-form-builder/package.json @@ -1,6 +1,6 @@ { "name": "@daohaus/wizard-form-builder", - "version": "0.1.2", + "version": "0.1.3", "repository": { "type": "git", "url": "https://github.com/HausDAO/monorepo"