From f1423a6996e3b7da39eae2e9cf4b00875901b355 Mon Sep 17 00:00:00 2001 From: CI Date: Tue, 26 Jul 2022 17:10:23 +0000 Subject: [PATCH 1/5] chore(release): 1.0.0 [skip ci] # 1.0.0 (2022-07-26) --- CHANGELOG.md | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b462339..698abf6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +# 1.0.0 (2022-07-26) + ## [1.1.3](https://github.com/meemproject/clubs-web/compare/v1.1.2...v1.1.3) (2022-06-09) ## [1.1.2](https://github.com/meemproject/clubs-web/compare/v1.1.1...v1.1.2) (2022-06-09) diff --git a/package.json b/package.json index 79a119a..3e1b990 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@meemproject/epm", - "version": "0.0.1", + "version": "1.0.0", "private": true, "author": "Meem Project", "contributors": [ @@ -94,4 +94,4 @@ "typechain": "^6.0.2", "typescript": "4.6.3" } -} \ No newline at end of file +} From caa6785febe3ce3715716de1cc97fe7d44e2f891 Mon Sep 17 00:00:00 2001 From: CI Date: Fri, 29 Jul 2022 17:50:42 +0000 Subject: [PATCH 2/5] chore(release): 1.0.1 [skip ci] ## [1.0.1](https://github.com/meemproject/epm/compare/v1.0.0...v1.0.1) (2022-07-29) ### Bug Fixes * add bundle facet not fetching contract ([880bde6](https://github.com/meemproject/epm/commit/880bde6)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 698abf6..4c8a2c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.1](https://github.com/meemproject/epm/compare/v1.0.0...v1.0.1) (2022-07-29) + + +### Bug Fixes + +* add bundle facet not fetching contract ([880bde6](https://github.com/meemproject/epm/commit/880bde6)) + # 1.0.0 (2022-07-26) ## [1.1.3](https://github.com/meemproject/clubs-web/compare/v1.1.2...v1.1.3) (2022-06-09) diff --git a/package.json b/package.json index 8729bbc..ccfd087 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@meemproject/epm", - "version": "1.0.0", + "version": "1.0.1", "private": true, "author": "Meem Project", "contributors": [ From caac55f9a974e6485700ec6e5d343ff334dbb164 Mon Sep 17 00:00:00 2001 From: Ken Goldfarb Date: Tue, 2 Aug 2022 18:50:49 -0400 Subject: [PATCH 3/5] deploy w/ address array; detect upgrader role --- src/components/Atoms/FacetList.tsx | 3 + src/components/Contracts/DeployContract.tsx | 45 +++++++++++++- .../ManageDiamond/ManageDiamondContainer.tsx | 58 +++++++++++++++++-- src/graphql/contracts.tsx | 2 +- src/lib/diamond.ts | 24 ++++++++ 5 files changed, 124 insertions(+), 8 deletions(-) diff --git a/src/components/Atoms/FacetList.tsx b/src/components/Atoms/FacetList.tsx index fe9b357..e480daa 100644 --- a/src/components/Atoms/FacetList.tsx +++ b/src/components/Atoms/FacetList.tsx @@ -230,6 +230,9 @@ export const FacetList: React.FC = ({ <> = ({ const handleDeploy = async () => { const args: any[] = [] for (let i = 0; i < inputs.length; i += 1) { - // @ts-ignore - args.push(form.values[`args${i}`]) + const input = inputs[i] + switch (input.type) { + case 'address[]': { + // @ts-ignore + const vals = form.values[`args${i}`].split('\n') + console.log({ formVal: form.values[`args${i}`], vals }) + args.push(vals.map(item => item.trim())) + break + } + + case 'address': + default: { + // @ts-ignore + args.push(form.values[`args${i}`]) + break + } + } } try { @@ -143,7 +166,23 @@ export const DeployContract: React.FC = ({ })} > {inputs.map((input, i) => { + console.log({ input, i }) + switch (input.type) { + case 'address[]': + return ( +