@snapshot-labs/snapshot.js 0.12.28 → 0.12.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/snapshot.cjs.js +21 -2
- package/dist/snapshot.esm.js +21 -2
- package/dist/snapshot.min.js +2 -2
- package/dist/src/index.d.ts +9 -0
- package/dist/src/schemas/index.d.ts +8 -0
- package/dist/src/utils/delegation.d.ts +1 -0
- package/dist/src/utils.d.ts +1 -0
- package/package.json +1 -1
- package/src/delegationSubgraphs.json +1 -0
- package/src/gateways.json +1 -0
- package/src/schemas/proposal.json +4 -0
- package/src/schemas/space.json +1 -1
- package/src/schemas/update-proposal.json +4 -0
- package/src/sign/hashedTypes.json +3 -1
- package/src/sign/types.ts +3 -1
package/dist/snapshot.cjs.js
CHANGED
|
@@ -85,6 +85,7 @@ const proposalTypes = {
|
|
|
85
85
|
{ name: 'end', type: 'uint64' },
|
|
86
86
|
{ name: 'snapshot', type: 'uint64' },
|
|
87
87
|
{ name: 'plugins', type: 'string' },
|
|
88
|
+
{ name: 'privacy', type: 'string' },
|
|
88
89
|
{ name: 'app', type: 'string' }
|
|
89
90
|
]
|
|
90
91
|
};
|
|
@@ -100,7 +101,8 @@ const updateProposalTypes = {
|
|
|
100
101
|
{ name: 'discussion', type: 'string' },
|
|
101
102
|
{ name: 'choices', type: 'string[]' },
|
|
102
103
|
{ name: 'labels', type: 'string[]' },
|
|
103
|
-
{ name: 'plugins', type: 'string' }
|
|
104
|
+
{ name: 'plugins', type: 'string' },
|
|
105
|
+
{ name: 'privacy', type: 'string' }
|
|
104
106
|
]
|
|
105
107
|
};
|
|
106
108
|
const flagProposalTypes = {
|
|
@@ -807,7 +809,8 @@ var definitions = {
|
|
|
807
809
|
type: "string",
|
|
808
810
|
"enum": [
|
|
809
811
|
"",
|
|
810
|
-
"shutter"
|
|
812
|
+
"shutter",
|
|
813
|
+
"any"
|
|
811
814
|
]
|
|
812
815
|
}
|
|
813
816
|
},
|
|
@@ -1052,6 +1055,13 @@ var definitions$1 = {
|
|
|
1052
1055
|
type: "string",
|
|
1053
1056
|
title: "app",
|
|
1054
1057
|
maxLength: 128
|
|
1058
|
+
},
|
|
1059
|
+
privacy: {
|
|
1060
|
+
type: "string",
|
|
1061
|
+
"enum": [
|
|
1062
|
+
"",
|
|
1063
|
+
"shutter"
|
|
1064
|
+
]
|
|
1055
1065
|
}
|
|
1056
1066
|
},
|
|
1057
1067
|
required: [
|
|
@@ -1138,6 +1148,13 @@ var definitions$2 = {
|
|
|
1138
1148
|
metadata: {
|
|
1139
1149
|
type: "object",
|
|
1140
1150
|
title: "metadata"
|
|
1151
|
+
},
|
|
1152
|
+
privacy: {
|
|
1153
|
+
type: "string",
|
|
1154
|
+
"enum": [
|
|
1155
|
+
"",
|
|
1156
|
+
"shutter"
|
|
1157
|
+
]
|
|
1141
1158
|
}
|
|
1142
1159
|
},
|
|
1143
1160
|
required: [
|
|
@@ -1673,6 +1690,7 @@ function verify$2(address_1, sig_1, data_1) {
|
|
|
1673
1690
|
}
|
|
1674
1691
|
|
|
1675
1692
|
var gateways = [
|
|
1693
|
+
"ipfs.snapshot.box",
|
|
1676
1694
|
"snapshot.4everland.link",
|
|
1677
1695
|
"ipfs.io",
|
|
1678
1696
|
"ipfs.fleek.co",
|
|
@@ -3785,6 +3803,7 @@ var delegationSubgraphs = {
|
|
|
3785
3803
|
"42161": "https://subgrapher.snapshot.org/delegation/42161",
|
|
3786
3804
|
"59144": "https://subgrapher.snapshot.org/delegation/59144",
|
|
3787
3805
|
"81457": "https://subgrapher.snapshot.org/delegation/81457",
|
|
3806
|
+
"84532": "https://subgrapher.snapshot.org/delegation/84532",
|
|
3788
3807
|
"11155111": "https://subgrapher.snapshot.org/delegation/11155111"
|
|
3789
3808
|
};
|
|
3790
3809
|
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -75,6 +75,7 @@ const proposalTypes = {
|
|
|
75
75
|
{ name: 'end', type: 'uint64' },
|
|
76
76
|
{ name: 'snapshot', type: 'uint64' },
|
|
77
77
|
{ name: 'plugins', type: 'string' },
|
|
78
|
+
{ name: 'privacy', type: 'string' },
|
|
78
79
|
{ name: 'app', type: 'string' }
|
|
79
80
|
]
|
|
80
81
|
};
|
|
@@ -90,7 +91,8 @@ const updateProposalTypes = {
|
|
|
90
91
|
{ name: 'discussion', type: 'string' },
|
|
91
92
|
{ name: 'choices', type: 'string[]' },
|
|
92
93
|
{ name: 'labels', type: 'string[]' },
|
|
93
|
-
{ name: 'plugins', type: 'string' }
|
|
94
|
+
{ name: 'plugins', type: 'string' },
|
|
95
|
+
{ name: 'privacy', type: 'string' }
|
|
94
96
|
]
|
|
95
97
|
};
|
|
96
98
|
const flagProposalTypes = {
|
|
@@ -797,7 +799,8 @@ var definitions = {
|
|
|
797
799
|
type: "string",
|
|
798
800
|
"enum": [
|
|
799
801
|
"",
|
|
800
|
-
"shutter"
|
|
802
|
+
"shutter",
|
|
803
|
+
"any"
|
|
801
804
|
]
|
|
802
805
|
}
|
|
803
806
|
},
|
|
@@ -1042,6 +1045,13 @@ var definitions$1 = {
|
|
|
1042
1045
|
type: "string",
|
|
1043
1046
|
title: "app",
|
|
1044
1047
|
maxLength: 128
|
|
1048
|
+
},
|
|
1049
|
+
privacy: {
|
|
1050
|
+
type: "string",
|
|
1051
|
+
"enum": [
|
|
1052
|
+
"",
|
|
1053
|
+
"shutter"
|
|
1054
|
+
]
|
|
1045
1055
|
}
|
|
1046
1056
|
},
|
|
1047
1057
|
required: [
|
|
@@ -1128,6 +1138,13 @@ var definitions$2 = {
|
|
|
1128
1138
|
metadata: {
|
|
1129
1139
|
type: "object",
|
|
1130
1140
|
title: "metadata"
|
|
1141
|
+
},
|
|
1142
|
+
privacy: {
|
|
1143
|
+
type: "string",
|
|
1144
|
+
"enum": [
|
|
1145
|
+
"",
|
|
1146
|
+
"shutter"
|
|
1147
|
+
]
|
|
1131
1148
|
}
|
|
1132
1149
|
},
|
|
1133
1150
|
required: [
|
|
@@ -1663,6 +1680,7 @@ function verify$2(address_1, sig_1, data_1) {
|
|
|
1663
1680
|
}
|
|
1664
1681
|
|
|
1665
1682
|
var gateways = [
|
|
1683
|
+
"ipfs.snapshot.box",
|
|
1666
1684
|
"snapshot.4everland.link",
|
|
1667
1685
|
"ipfs.io",
|
|
1668
1686
|
"ipfs.fleek.co",
|
|
@@ -3775,6 +3793,7 @@ var delegationSubgraphs = {
|
|
|
3775
3793
|
"42161": "https://subgrapher.snapshot.org/delegation/42161",
|
|
3776
3794
|
"59144": "https://subgrapher.snapshot.org/delegation/59144",
|
|
3777
3795
|
"81457": "https://subgrapher.snapshot.org/delegation/81457",
|
|
3796
|
+
"84532": "https://subgrapher.snapshot.org/delegation/84532",
|
|
3778
3797
|
"11155111": "https://subgrapher.snapshot.org/delegation/11155111"
|
|
3779
3798
|
};
|
|
3780
3799
|
|