@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/package.json CHANGED
@@ -1,44 +1,44 @@
1
1
  {
2
- "name": "@vocdoni/proto",
3
- "version": "1.15.0",
4
- "devDependencies": {
5
- "ts-node": "^9.1.1",
6
- "ts-proto": "^1.151.1",
7
- "tsup": "^6.5.0",
8
- "typescript": "^4.2.4"
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
- "dependencies": {
11
- "long": "^5.2.1",
12
- "protobufjs": "^7.1.2"
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
- "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"
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
- "scripts": {
41
- "build": "make ts && tsup --dts",
42
- "clean": "rm -Rf dist build/ts"
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
- SikTx setSik = 12;
193
- SikTx delSik = 13;
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 sik = 7;
278
+ optional bytes SIK = 7;
275
279
  }
276
280
 
277
- message SikTx {
281
+ message SIKTx {
278
282
  TxType txtype = 1;
279
- optional bytes sik = 3;
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 sik = 3;
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 {
@@ -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
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,3 +0,0 @@
1
- export { a as Account, b as Backup, g as Gateway, w as Wallet } from '../index-d457aeb5.js';
2
- import 'protobufjs/minimal';
3
- import '../entity-e8dfcd83.js';