From f8d9a39c284e787643f08cbd36ff5e649044d97f Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Fri, 22 Nov 2024 07:21:30 +0530 Subject: [PATCH] Revert "feat: Add new privacy type (#1082)" This reverts commit 23c27a776452ca94f5bb9b171432b98a6de10286. --- src/schemas/proposal.json | 4 ---- src/schemas/space.json | 2 +- src/schemas/update-proposal.json | 4 ---- src/sign/hashedTypes.json | 4 +--- src/sign/types.ts | 4 +--- test/examples/proposal.json | 1 - test/examples/space.json | 3 +-- 7 files changed, 4 insertions(+), 18 deletions(-) diff --git a/src/schemas/proposal.json b/src/schemas/proposal.json index 18bda0069..7a916fb58 100644 --- a/src/schemas/proposal.json +++ b/src/schemas/proposal.json @@ -84,10 +84,6 @@ "type": "string", "title": "app", "maxLength": 128 - }, - "privacy": { - "type": "string", - "enum": ["", "shutter"] } }, "required": ["name", "body", "choices", "snapshot", "start", "end"], diff --git a/src/schemas/space.json b/src/schemas/space.json index 9c4e41d7b..ade9e1eba 100644 --- a/src/schemas/space.json +++ b/src/schemas/space.json @@ -335,7 +335,7 @@ }, "privacy": { "type": "string", - "enum": ["", "shutter", "any"] + "enum": ["", "shutter"] } }, "additionalProperties": false diff --git a/src/schemas/update-proposal.json b/src/schemas/update-proposal.json index e565d7587..41becd41e 100644 --- a/src/schemas/update-proposal.json +++ b/src/schemas/update-proposal.json @@ -66,10 +66,6 @@ "metadata": { "type": "object", "title": "metadata" - }, - "privacy": { - "type": "string", - "enum": ["", "shutter"] } }, "required": ["proposal", "name", "body", "discussion", "choices", "type", "metadata"], diff --git a/src/sign/hashedTypes.json b/src/sign/hashedTypes.json index 7e36a2d38..039741d3b 100644 --- a/src/sign/hashedTypes.json +++ b/src/sign/hashedTypes.json @@ -62,7 +62,5 @@ "2ffbebcbd22ef48fd2f4a1182ff1feda7795b57689bd6f0dd73c89e925e7fefb": "profile", "4288d50b713081aae77d60d596d75864bff7acf7791a00183401e58658ee9da5": "statement", "d56782e3b50ac86c25ae292923da8c367e3c9e8e7ea9d8baa435051fe2f430fa": "proposal", - "df10a7eeabe19301d6018be8b6c5d13231320d7ece64d021043fa172b64f3796": "update-proposal", - "beda1f464a6112f9ed6335c4614e32a97f0e18ef4ac10b4b1c8239c475f2d8e8": "proposal", - "ff74674f39ca59b60056ecddaada0cb513c4729e634e99cb778f53ee404ac806": "update-proposal" + "df10a7eeabe19301d6018be8b6c5d13231320d7ece64d021043fa172b64f3796": "update-proposal" } diff --git a/src/sign/types.ts b/src/sign/types.ts index 9ebf6b707..6979d8e6c 100644 --- a/src/sign/types.ts +++ b/src/sign/types.ts @@ -150,7 +150,6 @@ export const proposalTypes = { { name: 'end', type: 'uint64' }, { name: 'snapshot', type: 'uint64' }, { name: 'plugins', type: 'string' }, - { name: 'privacy', type: 'string' }, { name: 'app', type: 'string' } ] }; @@ -167,8 +166,7 @@ export const updateProposalTypes = { { name: 'discussion', type: 'string' }, { name: 'choices', type: 'string[]' }, { name: 'labels', type: 'string[]' }, - { name: 'plugins', type: 'string' }, - { name: 'privacy', type: 'string' } + { name: 'plugins', type: 'string' } ] }; diff --git a/test/examples/proposal.json b/test/examples/proposal.json index c6cbcd154..a28ad8794 100644 --- a/test/examples/proposal.json +++ b/test/examples/proposal.json @@ -15,7 +15,6 @@ "end": 1620316800, "snapshot": 12345167, "discussion": "https://...", - "privacy": "shutter", "metadata": { "network": "1" } diff --git a/test/examples/space.json b/test/examples/space.json index 6087b8c34..ceae1f49b 100644 --- a/test/examples/space.json +++ b/test/examples/space.json @@ -33,8 +33,7 @@ "voting": { "delay": 2592000, "period": 15552000, - "quorum": 100, - "privacy": "any" + "quorum": 100 }, "treasuries": [ {