diff --git a/src/schemas/proposal.json b/src/schemas/proposal.json index 7a916fb58..18bda0069 100644 --- a/src/schemas/proposal.json +++ b/src/schemas/proposal.json @@ -84,6 +84,10 @@ "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 ade9e1eba..9c4e41d7b 100644 --- a/src/schemas/space.json +++ b/src/schemas/space.json @@ -335,7 +335,7 @@ }, "privacy": { "type": "string", - "enum": ["", "shutter"] + "enum": ["", "shutter", "any"] } }, "additionalProperties": false diff --git a/src/schemas/update-proposal.json b/src/schemas/update-proposal.json index 41becd41e..e565d7587 100644 --- a/src/schemas/update-proposal.json +++ b/src/schemas/update-proposal.json @@ -66,6 +66,10 @@ "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 039741d3b..7e36a2d38 100644 --- a/src/sign/hashedTypes.json +++ b/src/sign/hashedTypes.json @@ -62,5 +62,7 @@ "2ffbebcbd22ef48fd2f4a1182ff1feda7795b57689bd6f0dd73c89e925e7fefb": "profile", "4288d50b713081aae77d60d596d75864bff7acf7791a00183401e58658ee9da5": "statement", "d56782e3b50ac86c25ae292923da8c367e3c9e8e7ea9d8baa435051fe2f430fa": "proposal", - "df10a7eeabe19301d6018be8b6c5d13231320d7ece64d021043fa172b64f3796": "update-proposal" + "df10a7eeabe19301d6018be8b6c5d13231320d7ece64d021043fa172b64f3796": "update-proposal", + "beda1f464a6112f9ed6335c4614e32a97f0e18ef4ac10b4b1c8239c475f2d8e8": "proposal", + "ff74674f39ca59b60056ecddaada0cb513c4729e634e99cb778f53ee404ac806": "update-proposal" } diff --git a/src/sign/types.ts b/src/sign/types.ts index 6979d8e6c..9ebf6b707 100644 --- a/src/sign/types.ts +++ b/src/sign/types.ts @@ -150,6 +150,7 @@ export const proposalTypes = { { name: 'end', type: 'uint64' }, { name: 'snapshot', type: 'uint64' }, { name: 'plugins', type: 'string' }, + { name: 'privacy', type: 'string' }, { name: 'app', type: 'string' } ] }; @@ -166,7 +167,8 @@ export const updateProposalTypes = { { name: 'discussion', type: 'string' }, { name: 'choices', type: 'string[]' }, { name: 'labels', type: 'string[]' }, - { name: 'plugins', type: 'string' } + { name: 'plugins', type: 'string' }, + { name: 'privacy', type: 'string' } ] }; diff --git a/test/examples/proposal.json b/test/examples/proposal.json index a28ad8794..c6cbcd154 100644 --- a/test/examples/proposal.json +++ b/test/examples/proposal.json @@ -15,6 +15,7 @@ "end": 1620316800, "snapshot": 12345167, "discussion": "https://...", + "privacy": "shutter", "metadata": { "network": "1" } diff --git a/test/examples/space.json b/test/examples/space.json index ceae1f49b..6087b8c34 100644 --- a/test/examples/space.json +++ b/test/examples/space.json @@ -33,7 +33,8 @@ "voting": { "delay": 2592000, "period": 15552000, - "quorum": 100 + "quorum": 100, + "privacy": "any" }, "treasuries": [ {