From 8ac51b9486510e94a2931e51fd6b20a444526ca1 Mon Sep 17 00:00:00 2001 From: Wan <495709+wa0x6e@users.noreply.github.com> Date: Thu, 17 Oct 2024 20:35:21 +0400 Subject: [PATCH 1/7] feat: increase app max length (#1077) * feat: increase app max length * Update package.json --------- Co-authored-by: Chaitanya --- package.json | 2 +- src/schemas/proposal.json | 2 +- src/schemas/vote.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 928d00571..1ba3c62ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/snapshot.js", - "version": "0.12.26", + "version": "0.12.27", "repository": "snapshot-labs/snapshot.js", "license": "MIT", "main": "dist/snapshot.cjs.js", diff --git a/src/schemas/proposal.json b/src/schemas/proposal.json index 8a0fb9421..7a916fb58 100644 --- a/src/schemas/proposal.json +++ b/src/schemas/proposal.json @@ -83,7 +83,7 @@ "app": { "type": "string", "title": "app", - "maxLength": 24 + "maxLength": 128 } }, "required": ["name", "body", "choices", "snapshot", "start", "end"], diff --git a/src/schemas/vote.json b/src/schemas/vote.json index 9758180c0..80d95d531 100644 --- a/src/schemas/vote.json +++ b/src/schemas/vote.json @@ -32,7 +32,7 @@ "app": { "type": "string", "title": "app", - "maxLength": 24 + "maxLength": 128 } }, "required": [ From 2c22ba20465a815158760d628f31db17b4495ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Tkaczy=C5=84ski?= Date: Fri, 18 Oct 2024 14:06:58 +0200 Subject: [PATCH 2/7] feat: increase vote reason length to 5000 (#1079) * feat: increase vote reason length to 5000 * v0.12.28 --------- Co-authored-by: Chaitanya --- package.json | 2 +- src/schemas/vote.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1ba3c62ef..7b66467d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/snapshot.js", - "version": "0.12.27", + "version": "0.12.28", "repository": "snapshot-labs/snapshot.js", "license": "MIT", "main": "dist/snapshot.cjs.js", diff --git a/src/schemas/vote.json b/src/schemas/vote.json index 80d95d531..996c413aa 100644 --- a/src/schemas/vote.json +++ b/src/schemas/vote.json @@ -27,7 +27,7 @@ "reason": { "type": "string", "title": "reason", - "maxLength": 1000 + "maxLength": 5000 }, "app": { "type": "string", From 2d42131dab6a0a1239cac84e333e4904ced0d742 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Wed, 13 Nov 2024 22:40:12 +0530 Subject: [PATCH 3/7] fix: add ipfs.snapshot.box to gateways (#1083) * add ipfs.snapshot.box * v0.12.29 --- package.json | 2 +- src/gateways.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7b66467d0..4f5247593 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/snapshot.js", - "version": "0.12.28", + "version": "0.12.29", "repository": "snapshot-labs/snapshot.js", "license": "MIT", "main": "dist/snapshot.cjs.js", diff --git a/src/gateways.json b/src/gateways.json index 4272492a2..1bebc666f 100644 --- a/src/gateways.json +++ b/src/gateways.json @@ -1,4 +1,5 @@ [ + "ipfs.snapshot.box", "snapshot.4everland.link", "ipfs.io", "ipfs.fleek.co", From 6586e5bea6bf48f3030a96cee32f7b0053601c0c Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Fri, 22 Nov 2024 00:13:38 +0530 Subject: [PATCH 4/7] Add base sepolia subgraph (#1084) * Add base sepolia subgraph * Update package.json --- package.json | 2 +- src/delegationSubgraphs.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 4f5247593..9f47921ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/snapshot.js", - "version": "0.12.29", + "version": "0.12.30", "repository": "snapshot-labs/snapshot.js", "license": "MIT", "main": "dist/snapshot.cjs.js", diff --git a/src/delegationSubgraphs.json b/src/delegationSubgraphs.json index 98aff8a2e..15025b24c 100644 --- a/src/delegationSubgraphs.json +++ b/src/delegationSubgraphs.json @@ -9,5 +9,6 @@ "42161": "https://subgrapher.snapshot.org/delegation/42161", "59144": "https://subgrapher.snapshot.org/delegation/59144", "81457": "https://subgrapher.snapshot.org/delegation/81457", + "84532": "https://subgrapher.snapshot.org/delegation/84532", "11155111": "https://subgrapher.snapshot.org/delegation/11155111" } From 23c27a776452ca94f5bb9b171432b98a6de10286 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Fri, 22 Nov 2024 00:15:53 +0530 Subject: [PATCH 5/7] feat: Add new privacy type (#1082) * feat: Add new privacy type * add privacy to update-proposal * Update src/schemas/space.json * Update test/examples/space.json * add back blind --- 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, 18 insertions(+), 4 deletions(-) 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": [ { From 5750018d35f251241efac988cd97405b034208d5 Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Fri, 22 Nov 2024 07:23:22 +0530 Subject: [PATCH 6/7] Revert "feat: Add new privacy type" (#1085) * Revert "feat: Add new privacy type (#1082)" This reverts commit 23c27a776452ca94f5bb9b171432b98a6de10286. * Update package.json --- package.json | 2 +- 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 +-- 8 files changed, 5 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 9f47921ae..932a55fb4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/snapshot.js", - "version": "0.12.30", + "version": "0.12.31", "repository": "snapshot-labs/snapshot.js", "license": "MIT", "main": "dist/snapshot.cjs.js", 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": [ { From 2c82f4529fc2e555baacad0cde1d834a1c51caca Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 22 Nov 2024 07:26:28 +0530 Subject: [PATCH 7/7] Update minor version (#1086) Co-authored-by: ChaituVR --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 932a55fb4..9ab308fa8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@snapshot-labs/snapshot.js", - "version": "0.12.31", + "version": "0.12.32", "repository": "snapshot-labs/snapshot.js", "license": "MIT", "main": "dist/snapshot.cjs.js",