@vocdoni/proto 1.15.0 → 1.15.2
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/.github/workflows/post-merge.yml +6 -6
- package/DEVELOPING.md +86 -0
- package/Makefile +11 -5
- package/README.md +3 -10
- package/{dist → build/js}/index.js +100 -49
- package/package.json +39 -39
- package/src/vochain/vochain.proto +14 -7
- package/.idea/dvote-protobuf.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/dist/client-store/index.d.ts +0 -3
- package/dist/client-store/index.js +0 -2924
- package/dist/client-store/index.mjs +0 -2911
- package/dist/entity-e8dfcd83.d.ts +0 -1804
- package/dist/index-05df597a.d.ts +0 -1972
- package/dist/index-4d38492a.d.ts +0 -10654
- package/dist/index-d457aeb5.d.ts +0 -1924
- package/dist/index.d.ts +0 -5
- package/dist/index.mjs +0 -10813
- package/dist/metadata/index.d.ts +0 -3
- package/dist/metadata/index.js +0 -4261
- package/dist/metadata/index.mjs +0 -4218
- package/dist/vochain/index.d.ts +0 -2
- package/dist/vochain/index.js +0 -6649
- package/dist/vochain/index.mjs +0 -6570
- package/vocdoni-proto-v1.15.0.tgz +0 -0
package/package.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"name": "@vocdoni/proto",
|
|
3
|
+
"version": "1.15.2",
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"ts-node": "^9.1.1",
|
|
6
|
+
"ts-proto": "^1.156.2",
|
|
7
|
+
"tsup": "^6.5.0",
|
|
8
|
+
"typescript": "^4.2.4"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"long": "^5.2.1",
|
|
12
|
+
"protobufjs": "^7.1.2"
|
|
13
|
+
},
|
|
14
|
+
"main": "build/js/index.js",
|
|
15
|
+
"types": "build/js/index.d.ts",
|
|
16
|
+
"module": "build/js/index.mjs",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./build/js/index.mjs",
|
|
20
|
+
"require": "./build/js/index.js",
|
|
21
|
+
"types": "./build/js/index.d.ts"
|
|
9
22
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
23
|
+
"./client-store": {
|
|
24
|
+
"import": "./build/js/client-store/index.mjs",
|
|
25
|
+
"require": "./build/js/client-store/index.js",
|
|
26
|
+
"types": "./build/js/client-store/index.d.ts"
|
|
13
27
|
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
".": {
|
|
19
|
-
"import": "./dist/index.mjs",
|
|
20
|
-
"require": "./dist/index.js",
|
|
21
|
-
"types": "./dist/index.d.ts"
|
|
22
|
-
},
|
|
23
|
-
"./client-store": {
|
|
24
|
-
"import": "./dist/client-store/index.mjs",
|
|
25
|
-
"require": "./dist/client-store/index.js",
|
|
26
|
-
"types": "./dist/client-store/index.d.ts"
|
|
27
|
-
},
|
|
28
|
-
"./metadata": {
|
|
29
|
-
"import": "./dist/metadata/index.mjs",
|
|
30
|
-
"require": "./dist/metadata/index.js",
|
|
31
|
-
"types": "./dist/metadata/index.d.ts"
|
|
32
|
-
},
|
|
33
|
-
"./vochain": {
|
|
34
|
-
"import": "./dist/vochain/index.mjs",
|
|
35
|
-
"require": "./dist/vochain/index.js",
|
|
36
|
-
"types": "./dist/vochain/index.d.ts"
|
|
37
|
-
},
|
|
38
|
-
"./package.json": "./package.json"
|
|
28
|
+
"./metadata": {
|
|
29
|
+
"import": "./build/js/metadata/index.mjs",
|
|
30
|
+
"require": "./build/js/metadata/index.js",
|
|
31
|
+
"types": "./build/js/metadata/index.d.ts"
|
|
39
32
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
"./vochain": {
|
|
34
|
+
"import": "./build/js/vochain/index.mjs",
|
|
35
|
+
"require": "./build/js/vochain/index.js",
|
|
36
|
+
"types": "./build/js/vochain/index.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "make ts && tsup --dts --out-dir ./build/js",
|
|
42
|
+
"clean": "rm -Rf build/ts build/js"
|
|
43
|
+
}
|
|
44
44
|
}
|
|
@@ -174,6 +174,7 @@ enum TxType {
|
|
|
174
174
|
CREATE_ACCOUNT = 23;
|
|
175
175
|
SET_ACCOUNT_SIK = 24;
|
|
176
176
|
DEL_ACCOUNT_SIK = 25;
|
|
177
|
+
REGISTER_SIK = 26;
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
message Tx {
|
|
@@ -189,9 +190,9 @@ message Tx {
|
|
|
189
190
|
SetAccountTx setAccount = 9;
|
|
190
191
|
CollectFaucetTx collectFaucet = 10;
|
|
191
192
|
SetKeykeeperTx setKeykeeper = 11;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
SIKTx setSIK = 12;
|
|
194
|
+
SIKTx delSIK = 13;
|
|
195
|
+
RegisterSIKTx registerSIK = 14;
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
198
|
|
|
@@ -221,6 +222,9 @@ message SetProcessTx {
|
|
|
221
222
|
optional string censusURI = 7;
|
|
222
223
|
optional Proof proof = 8;
|
|
223
224
|
optional ProcessResult results = 9;
|
|
225
|
+
// tempSIKs flag decides if when the process has finished, the SIKs related
|
|
226
|
+
// to it will be removed or not
|
|
227
|
+
optional bool tempSIKs = 10;
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
message AdminTx {
|
|
@@ -271,18 +275,18 @@ message SetAccountTx {
|
|
|
271
275
|
optional bytes account = 4;
|
|
272
276
|
optional FaucetPackage faucetPackage = 5;
|
|
273
277
|
repeated bytes delegates = 6;
|
|
274
|
-
optional bytes
|
|
278
|
+
optional bytes SIK = 7;
|
|
275
279
|
}
|
|
276
280
|
|
|
277
|
-
message
|
|
281
|
+
message SIKTx {
|
|
278
282
|
TxType txtype = 1;
|
|
279
|
-
optional bytes
|
|
283
|
+
optional bytes SIK = 3;
|
|
280
284
|
}
|
|
281
285
|
|
|
282
286
|
message RegisterSIKTx {
|
|
283
287
|
bytes electionId = 1;
|
|
284
288
|
Proof censusProof = 2;
|
|
285
|
-
bytes
|
|
289
|
+
bytes SIK = 3;
|
|
286
290
|
}
|
|
287
291
|
|
|
288
292
|
message CollectFaucetTx {
|
|
@@ -361,6 +365,9 @@ message Process {
|
|
|
361
365
|
// tokenDecimals represents the number of decimals of the token (i.e ERC20) used for voting.
|
|
362
366
|
// It is normally used for processes with on-chain census
|
|
363
367
|
optional uint32 tokenDecimals = 33;
|
|
368
|
+
// tempSIKs flag decides if when the process has finished, the SIKs related
|
|
369
|
+
// to it will be removed or not
|
|
370
|
+
optional bool tempSIKs = 34;
|
|
364
371
|
}
|
|
365
372
|
|
|
366
373
|
enum ProcessStatus {
|
package/.idea/dvote-protobuf.iml
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
</content>
|
|
9
|
-
<orderEntry type="inheritedJdk" />
|
|
10
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
-
</component>
|
|
12
|
-
</module>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/dvote-protobuf.iml" filepath="$PROJECT_DIR$/.idea/dvote-protobuf.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED