@vocdoni/proto 1.14.4 → 1.15.1
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/.idea/dvote-protobuf.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/client-store/index.d.ts +2 -2
- package/dist/client-store/index.js +182 -132
- package/dist/client-store/index.mjs +182 -132
- package/dist/{entity-35513b52.d.ts → entity-e8dfcd83.d.ts} +1 -1
- package/dist/{index-7dfc19fc.d.ts → index-05df597a.d.ts} +1 -1
- package/dist/index-47061e36.d.ts +11738 -0
- package/dist/{index-8a98085c.d.ts → index-4d38492a.d.ts} +1294 -716
- package/dist/{index-45e93762.d.ts → index-d457aeb5.d.ts} +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1783 -1156
- package/dist/index.mjs +1783 -1156
- package/dist/metadata/index.d.ts +2 -2
- package/dist/metadata/index.js +463 -325
- package/dist/metadata/index.mjs +463 -325
- package/dist/vochain/index.d.ts +1 -1
- package/dist/vochain/index.js +1147 -706
- package/dist/vochain/index.mjs +1145 -706
- package/package.json +39 -39
- package/src/vochain/vochain.proto +21 -9
- package/vocdoni-proto-v1.15.1.tgz +0 -0
package/package.json
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"long": "^5.2.1",
|
|
12
|
-
"protobufjs": "^7.1.2"
|
|
13
|
-
},
|
|
14
|
-
"main": "dist/index.js",
|
|
15
|
-
"types": "dist/index.d.ts",
|
|
16
|
-
"module": "dist/index.mjs",
|
|
17
|
-
"exports": {
|
|
18
|
-
".": {
|
|
19
|
-
"import": "./dist/index.mjs",
|
|
20
|
-
"require": "./dist/index.js",
|
|
21
|
-
"types": "./dist/index.d.ts"
|
|
2
|
+
"name": "@vocdoni/proto",
|
|
3
|
+
"version": "1.15.1",
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"ts-node": "^9.1.1",
|
|
6
|
+
"ts-proto": "^1.156.1",
|
|
7
|
+
"tsup": "^6.5.0",
|
|
8
|
+
"typescript": "^4.2.4"
|
|
22
9
|
},
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"types": "./dist/client-store/index.d.ts"
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"long": "^5.2.1",
|
|
12
|
+
"protobufjs": "^7.1.2"
|
|
27
13
|
},
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
"main": "dist/index.js",
|
|
15
|
+
"types": "dist/index.d.ts",
|
|
16
|
+
"module": "dist/index.mjs",
|
|
17
|
+
"exports": {
|
|
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"
|
|
32
39
|
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
"./package.json": "./package.json"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"build": "make ts && tsup --dts",
|
|
42
|
-
"clean": "rm -Rf dist build/ts"
|
|
43
|
-
}
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "make ts && tsup --dts",
|
|
42
|
+
"clean": "rm -Rf dist build/ts"
|
|
43
|
+
}
|
|
44
44
|
}
|
|
@@ -109,9 +109,9 @@ message ProofArbo {
|
|
|
109
109
|
}
|
|
110
110
|
Type type = 1;
|
|
111
111
|
bytes siblings = 2;
|
|
112
|
-
bytes
|
|
112
|
+
bytes availableWeight = 3;
|
|
113
113
|
KeyType keyType = 4;
|
|
114
|
-
bytes
|
|
114
|
+
bytes voteWeight = 5;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
// Groth16 zkSNARK proof + public inputs
|
|
@@ -172,6 +172,9 @@ enum TxType {
|
|
|
172
172
|
ADD_KEYKEEPER = 21;
|
|
173
173
|
DELETE_KEYKEEPER = 22;
|
|
174
174
|
CREATE_ACCOUNT = 23;
|
|
175
|
+
SET_ACCOUNT_SIK = 24;
|
|
176
|
+
DEL_ACCOUNT_SIK = 25;
|
|
177
|
+
REGISTER_SIK = 26;
|
|
175
178
|
}
|
|
176
179
|
|
|
177
180
|
message Tx {
|
|
@@ -187,6 +190,9 @@ message Tx {
|
|
|
187
190
|
SetAccountTx setAccount = 9;
|
|
188
191
|
CollectFaucetTx collectFaucet = 10;
|
|
189
192
|
SetKeykeeperTx setKeykeeper = 11;
|
|
193
|
+
SIKTx setSIK = 12;
|
|
194
|
+
SIKTx delSIK = 13;
|
|
195
|
+
RegisterSIKTx registerSIK = 14;
|
|
190
196
|
}
|
|
191
197
|
}
|
|
192
198
|
|
|
@@ -266,6 +272,18 @@ message SetAccountTx {
|
|
|
266
272
|
optional bytes account = 4;
|
|
267
273
|
optional FaucetPackage faucetPackage = 5;
|
|
268
274
|
repeated bytes delegates = 6;
|
|
275
|
+
optional bytes SIK = 7;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
message SIKTx {
|
|
279
|
+
TxType txtype = 1;
|
|
280
|
+
optional bytes SIK = 3;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
message RegisterSIKTx {
|
|
284
|
+
bytes electionId = 1;
|
|
285
|
+
Proof censusProof = 2;
|
|
286
|
+
bytes SIK = 3;
|
|
269
287
|
}
|
|
270
288
|
|
|
271
289
|
message CollectFaucetTx {
|
|
@@ -317,8 +335,7 @@ message Process {
|
|
|
317
335
|
optional uint32 questionCount = 18;
|
|
318
336
|
ProcessVoteOptions voteOptions = 19;
|
|
319
337
|
CensusOrigin censusOrigin = 20;
|
|
320
|
-
|
|
321
|
-
repeated bytes resultsSignatures = 22;
|
|
338
|
+
ProcessResult results = 21;
|
|
322
339
|
optional uint32 ethIndexSlot = 23;
|
|
323
340
|
// SourceBlockHeight is the block height of the origin blockchain (if any)
|
|
324
341
|
optional uint64 sourceBlockHeight = 24;
|
|
@@ -452,13 +469,8 @@ message TendermintHeader {
|
|
|
452
469
|
}
|
|
453
470
|
|
|
454
471
|
|
|
455
|
-
// Scrutinizer
|
|
456
472
|
message ProcessResult {
|
|
457
473
|
repeated QuestionResult votes = 1;
|
|
458
|
-
optional bytes processId = 2;
|
|
459
|
-
optional bytes entityId = 3;
|
|
460
|
-
optional bytes oracleAddress = 4;
|
|
461
|
-
optional bytes signature = 5;
|
|
462
474
|
}
|
|
463
475
|
|
|
464
476
|
message QuestionResult {
|
|
Binary file
|