@vocdoni/proto 1.14.3 → 1.14.7
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 +1 -2
- package/Makefile +0 -1
- 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-45e93762.d.ts → index-d457aeb5.d.ts} +2 -2
- package/dist/{index-8a98085c.d.ts → index-fe26a63a.d.ts} +4250 -2546
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1817 -1160
- package/dist/index.mjs +1817 -1160
- 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 +1181 -710
- package/dist/vochain/index.mjs +1179 -710
- package/package.json +2 -2
- package/src/vochain/vochain.proto +27 -9
package/package.json
CHANGED
|
@@ -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
|
|
|
@@ -216,6 +222,9 @@ message SetProcessTx {
|
|
|
216
222
|
optional string censusURI = 7;
|
|
217
223
|
optional Proof proof = 8;
|
|
218
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;
|
|
219
228
|
}
|
|
220
229
|
|
|
221
230
|
message AdminTx {
|
|
@@ -266,6 +275,18 @@ message SetAccountTx {
|
|
|
266
275
|
optional bytes account = 4;
|
|
267
276
|
optional FaucetPackage faucetPackage = 5;
|
|
268
277
|
repeated bytes delegates = 6;
|
|
278
|
+
optional bytes SIK = 7;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
message SIKTx {
|
|
282
|
+
TxType txtype = 1;
|
|
283
|
+
optional bytes SIK = 3;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
message RegisterSIKTx {
|
|
287
|
+
bytes electionId = 1;
|
|
288
|
+
Proof censusProof = 2;
|
|
289
|
+
bytes SIK = 3;
|
|
269
290
|
}
|
|
270
291
|
|
|
271
292
|
message CollectFaucetTx {
|
|
@@ -317,8 +338,7 @@ message Process {
|
|
|
317
338
|
optional uint32 questionCount = 18;
|
|
318
339
|
ProcessVoteOptions voteOptions = 19;
|
|
319
340
|
CensusOrigin censusOrigin = 20;
|
|
320
|
-
|
|
321
|
-
repeated bytes resultsSignatures = 22;
|
|
341
|
+
ProcessResult results = 21;
|
|
322
342
|
optional uint32 ethIndexSlot = 23;
|
|
323
343
|
// SourceBlockHeight is the block height of the origin blockchain (if any)
|
|
324
344
|
optional uint64 sourceBlockHeight = 24;
|
|
@@ -345,6 +365,9 @@ message Process {
|
|
|
345
365
|
// tokenDecimals represents the number of decimals of the token (i.e ERC20) used for voting.
|
|
346
366
|
// It is normally used for processes with on-chain census
|
|
347
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;
|
|
348
371
|
}
|
|
349
372
|
|
|
350
373
|
enum ProcessStatus {
|
|
@@ -452,13 +475,8 @@ message TendermintHeader {
|
|
|
452
475
|
}
|
|
453
476
|
|
|
454
477
|
|
|
455
|
-
// Scrutinizer
|
|
456
478
|
message ProcessResult {
|
|
457
479
|
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
480
|
}
|
|
463
481
|
|
|
464
482
|
message QuestionResult {
|