@vocdoni/proto 1.15.1 → 1.15.3
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/README.md +3 -10
- package/{dist/index-47061e36.d.ts → build/js/index-fe26a63a.d.ts} +42 -0
- package/{dist → build/js}/index.d.ts +1 -1
- package/{dist → build/js}/index.js +34 -4
- package/{dist → build/js}/index.mjs +34 -4
- package/{dist → build/js}/vochain/index.d.ts +1 -1
- package/{dist → build/js}/vochain/index.js +34 -4
- package/{dist → build/js}/vochain/index.mjs +34 -4
- package/package.json +41 -39
- package/.github/workflows/on-release.yml +0 -19
- package/.github/workflows/post-merge.yml +0 -30
- package/.idea/dvote-protobuf.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/AUTHORS +0 -7
- package/Makefile +0 -134
- package/bin/protoc +0 -0
- package/code-of-conduct.md +0 -77
- package/dist/index-4d38492a.d.ts +0 -10654
- package/go.mod +0 -8
- package/go.sum +0 -69
- package/include/google/protobuf/any.proto +0 -158
- package/include/google/protobuf/api.proto +0 -208
- package/include/google/protobuf/compiler/plugin.proto +0 -183
- package/include/google/protobuf/descriptor.proto +0 -909
- package/include/google/protobuf/duration.proto +0 -116
- package/include/google/protobuf/empty.proto +0 -52
- package/include/google/protobuf/field_mask.proto +0 -245
- package/include/google/protobuf/source_context.proto +0 -48
- package/include/google/protobuf/struct.proto +0 -95
- package/include/google/protobuf/timestamp.proto +0 -147
- package/include/google/protobuf/type.proto +0 -187
- package/include/google/protobuf/wrappers.proto +0 -123
- package/src/client-store/account.proto +0 -54
- package/src/client-store/backup.proto +0 -65
- package/src/client-store/gateway.proto +0 -35
- package/src/client-store/wallet.proto +0 -19
- package/src/ipfsSync/ipfssync.proto +0 -26
- package/src/metadata/entity.proto +0 -75
- package/src/metadata/feed.proto +0 -51
- package/src/metadata/process.proto +0 -38
- package/src/vocdoni-node/statedb.proto +0 -35
- package/src/vochain/vochain.proto +0 -487
- package/tsconfig.json +0 -15
- package/tsup.config.ts +0 -15
- package/vocdoni-proto-v1.15.1.tgz +0 -0
- /package/{dist → build/js}/client-store/index.d.ts +0 -0
- /package/{dist → build/js}/client-store/index.js +0 -0
- /package/{dist → build/js}/client-store/index.mjs +0 -0
- /package/{dist → build/js}/entity-e8dfcd83.d.ts +0 -0
- /package/{dist → build/js}/index-05df597a.d.ts +0 -0
- /package/{dist → build/js}/index-d457aeb5.d.ts +0 -0
- /package/{dist → build/js}/metadata/index.d.ts +0 -0
- /package/{dist → build/js}/metadata/index.js +0 -0
- /package/{dist → build/js}/metadata/index.mjs +0 -0
|
@@ -3687,7 +3687,8 @@ function createBaseSetProcessTx() {
|
|
|
3687
3687
|
censusRoot: void 0,
|
|
3688
3688
|
censusURI: void 0,
|
|
3689
3689
|
proof: void 0,
|
|
3690
|
-
results: void 0
|
|
3690
|
+
results: void 0,
|
|
3691
|
+
tempSIKs: void 0
|
|
3691
3692
|
};
|
|
3692
3693
|
}
|
|
3693
3694
|
var SetProcessTx = {
|
|
@@ -3719,6 +3720,9 @@ var SetProcessTx = {
|
|
|
3719
3720
|
if (message.results !== void 0) {
|
|
3720
3721
|
ProcessResult.encode(message.results, writer.uint32(74).fork()).ldelim();
|
|
3721
3722
|
}
|
|
3723
|
+
if (message.tempSIKs !== void 0) {
|
|
3724
|
+
writer.uint32(80).bool(message.tempSIKs);
|
|
3725
|
+
}
|
|
3722
3726
|
return writer;
|
|
3723
3727
|
},
|
|
3724
3728
|
decode(input, length) {
|
|
@@ -3782,6 +3786,12 @@ var SetProcessTx = {
|
|
|
3782
3786
|
}
|
|
3783
3787
|
message.results = ProcessResult.decode(reader, reader.uint32());
|
|
3784
3788
|
continue;
|
|
3789
|
+
case 10:
|
|
3790
|
+
if (tag !== 80) {
|
|
3791
|
+
break;
|
|
3792
|
+
}
|
|
3793
|
+
message.tempSIKs = reader.bool();
|
|
3794
|
+
continue;
|
|
3785
3795
|
}
|
|
3786
3796
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3787
3797
|
break;
|
|
@@ -3800,7 +3810,8 @@ var SetProcessTx = {
|
|
|
3800
3810
|
censusRoot: isSet(object.censusRoot) ? bytesFromBase64(object.censusRoot) : void 0,
|
|
3801
3811
|
censusURI: isSet(object.censusURI) ? String(object.censusURI) : void 0,
|
|
3802
3812
|
proof: isSet(object.proof) ? Proof.fromJSON(object.proof) : void 0,
|
|
3803
|
-
results: isSet(object.results) ? ProcessResult.fromJSON(object.results) : void 0
|
|
3813
|
+
results: isSet(object.results) ? ProcessResult.fromJSON(object.results) : void 0,
|
|
3814
|
+
tempSIKs: isSet(object.tempSIKs) ? Boolean(object.tempSIKs) : void 0
|
|
3804
3815
|
};
|
|
3805
3816
|
},
|
|
3806
3817
|
toJSON(message) {
|
|
@@ -3832,6 +3843,9 @@ var SetProcessTx = {
|
|
|
3832
3843
|
if (message.results !== void 0) {
|
|
3833
3844
|
obj.results = ProcessResult.toJSON(message.results);
|
|
3834
3845
|
}
|
|
3846
|
+
if (message.tempSIKs !== void 0) {
|
|
3847
|
+
obj.tempSIKs = message.tempSIKs;
|
|
3848
|
+
}
|
|
3835
3849
|
return obj;
|
|
3836
3850
|
},
|
|
3837
3851
|
create(base) {
|
|
@@ -3848,6 +3862,7 @@ var SetProcessTx = {
|
|
|
3848
3862
|
message.censusURI = object.censusURI ?? void 0;
|
|
3849
3863
|
message.proof = object.proof !== void 0 && object.proof !== null ? Proof.fromPartial(object.proof) : void 0;
|
|
3850
3864
|
message.results = object.results !== void 0 && object.results !== null ? ProcessResult.fromPartial(object.results) : void 0;
|
|
3865
|
+
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
3851
3866
|
return message;
|
|
3852
3867
|
}
|
|
3853
3868
|
};
|
|
@@ -5042,7 +5057,8 @@ function createBaseProcess() {
|
|
|
5042
5057
|
rollingCensusSize: void 0,
|
|
5043
5058
|
nullifiersRoot: void 0,
|
|
5044
5059
|
sourceNetworkContractAddr: void 0,
|
|
5045
|
-
tokenDecimals: void 0
|
|
5060
|
+
tokenDecimals: void 0,
|
|
5061
|
+
tempSIKs: void 0
|
|
5046
5062
|
};
|
|
5047
5063
|
}
|
|
5048
5064
|
var Process = {
|
|
@@ -5137,6 +5153,9 @@ var Process = {
|
|
|
5137
5153
|
if (message.tokenDecimals !== void 0) {
|
|
5138
5154
|
writer.uint32(264).uint32(message.tokenDecimals);
|
|
5139
5155
|
}
|
|
5156
|
+
if (message.tempSIKs !== void 0) {
|
|
5157
|
+
writer.uint32(272).bool(message.tempSIKs);
|
|
5158
|
+
}
|
|
5140
5159
|
return writer;
|
|
5141
5160
|
},
|
|
5142
5161
|
decode(input, length) {
|
|
@@ -5326,6 +5345,12 @@ var Process = {
|
|
|
5326
5345
|
}
|
|
5327
5346
|
message.tokenDecimals = reader.uint32();
|
|
5328
5347
|
continue;
|
|
5348
|
+
case 34:
|
|
5349
|
+
if (tag !== 272) {
|
|
5350
|
+
break;
|
|
5351
|
+
}
|
|
5352
|
+
message.tempSIKs = reader.bool();
|
|
5353
|
+
continue;
|
|
5329
5354
|
}
|
|
5330
5355
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5331
5356
|
break;
|
|
@@ -5365,7 +5390,8 @@ var Process = {
|
|
|
5365
5390
|
rollingCensusSize: isSet(object.rollingCensusSize) ? Number(object.rollingCensusSize) : void 0,
|
|
5366
5391
|
nullifiersRoot: isSet(object.nullifiersRoot) ? bytesFromBase64(object.nullifiersRoot) : void 0,
|
|
5367
5392
|
sourceNetworkContractAddr: isSet(object.sourceNetworkContractAddr) ? bytesFromBase64(object.sourceNetworkContractAddr) : void 0,
|
|
5368
|
-
tokenDecimals: isSet(object.tokenDecimals) ? Number(object.tokenDecimals) : void 0
|
|
5393
|
+
tokenDecimals: isSet(object.tokenDecimals) ? Number(object.tokenDecimals) : void 0,
|
|
5394
|
+
tempSIKs: isSet(object.tempSIKs) ? Boolean(object.tempSIKs) : void 0
|
|
5369
5395
|
};
|
|
5370
5396
|
},
|
|
5371
5397
|
toJSON(message) {
|
|
@@ -5460,6 +5486,9 @@ var Process = {
|
|
|
5460
5486
|
if (message.tokenDecimals !== void 0) {
|
|
5461
5487
|
obj.tokenDecimals = Math.round(message.tokenDecimals);
|
|
5462
5488
|
}
|
|
5489
|
+
if (message.tempSIKs !== void 0) {
|
|
5490
|
+
obj.tempSIKs = message.tempSIKs;
|
|
5491
|
+
}
|
|
5463
5492
|
return obj;
|
|
5464
5493
|
},
|
|
5465
5494
|
create(base) {
|
|
@@ -5497,6 +5526,7 @@ var Process = {
|
|
|
5497
5526
|
message.nullifiersRoot = object.nullifiersRoot ?? void 0;
|
|
5498
5527
|
message.sourceNetworkContractAddr = object.sourceNetworkContractAddr ?? void 0;
|
|
5499
5528
|
message.tokenDecimals = object.tokenDecimals ?? void 0;
|
|
5529
|
+
message.tempSIKs = object.tempSIKs ?? void 0;
|
|
5500
5530
|
return message;
|
|
5501
5531
|
}
|
|
5502
5532
|
};
|
package/package.json
CHANGED
|
@@ -1,44 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
"name": "@vocdoni/proto",
|
|
3
|
+
"version": "1.15.3",
|
|
4
|
+
"license": "GPL-3.0-or-later",
|
|
5
|
+
"devDependencies": {
|
|
6
|
+
"ts-node": "^9.1.1",
|
|
7
|
+
"ts-proto": "^1.156.2",
|
|
8
|
+
"tsup": "^6.5.0",
|
|
9
|
+
"typescript": "^4.2.4"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"long": "^5.2.1",
|
|
13
|
+
"protobufjs": "^7.1.2"
|
|
14
|
+
},
|
|
15
|
+
"main": "build/js/index.js",
|
|
16
|
+
"types": "build/js/index.d.ts",
|
|
17
|
+
"module": "build/js/index.mjs",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./build/js/index.mjs",
|
|
21
|
+
"require": "./build/js/index.js",
|
|
22
|
+
"types": "./build/js/index.d.ts"
|
|
9
23
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
24
|
+
"./client-store": {
|
|
25
|
+
"import": "./build/js/client-store/index.mjs",
|
|
26
|
+
"require": "./build/js/client-store/index.js",
|
|
27
|
+
"types": "./build/js/client-store/index.d.ts"
|
|
13
28
|
},
|
|
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"
|
|
29
|
+
"./metadata": {
|
|
30
|
+
"import": "./build/js/metadata/index.mjs",
|
|
31
|
+
"require": "./build/js/metadata/index.js",
|
|
32
|
+
"types": "./build/js/metadata/index.d.ts"
|
|
39
33
|
},
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
34
|
+
"./vochain": {
|
|
35
|
+
"import": "./build/js/vochain/index.mjs",
|
|
36
|
+
"require": "./build/js/vochain/index.js",
|
|
37
|
+
"types": "./build/js/vochain/index.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "make ts && tsup --dts --out-dir ./build/js",
|
|
43
|
+
"clean": "rm -Rf build/ts build/js"
|
|
44
|
+
},
|
|
45
|
+
"files": ["build/js"]
|
|
44
46
|
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: Publish Package to npmjs
|
|
2
|
-
on:
|
|
3
|
-
release:
|
|
4
|
-
types: [created]
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
steps:
|
|
9
|
-
- uses: actions/checkout@v3
|
|
10
|
-
- uses: actions/setup-node@v3
|
|
11
|
-
with:
|
|
12
|
-
node-version: '18.x'
|
|
13
|
-
registry-url: 'https://registry.npmjs.org'
|
|
14
|
-
scope: '@vocdoni'
|
|
15
|
-
- run: yarn
|
|
16
|
-
- run: yarn build
|
|
17
|
-
- run: yarn publish
|
|
18
|
-
env:
|
|
19
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Post merge build step
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches:
|
|
7
|
-
- master
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
protobuf-build:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- name: Checkout code
|
|
14
|
-
uses: actions/checkout@v3
|
|
15
|
-
- uses: actions/setup-node@v3
|
|
16
|
-
with:
|
|
17
|
-
node-version: "14"
|
|
18
|
-
- uses: actions/setup-go@v3
|
|
19
|
-
- name: Build
|
|
20
|
-
run: |
|
|
21
|
-
make init
|
|
22
|
-
make golang
|
|
23
|
-
make ts
|
|
24
|
-
- name: Commit changes
|
|
25
|
-
uses: stefanzweifel/git-auto-commit-action@v2.3.0
|
|
26
|
-
with:
|
|
27
|
-
commit_message: Auto build commit
|
|
28
|
-
branch: master
|
|
29
|
-
env:
|
|
30
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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
package/AUTHORS
DELETED
package/Makefile
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
SHELL := /bin/bash
|
|
2
|
-
PATH := $(PATH):$(HOME)/.pub-cache/bin:$(PWD)/bin:$(HOME)/go/bin
|
|
3
|
-
.DEFAULT_GOAL := help
|
|
4
|
-
|
|
5
|
-
PROJECT_NAME=$(shell basename "$(PWD)")
|
|
6
|
-
CLIENT_STORE_SOURCES=$(wildcard src/client-store/*.proto)
|
|
7
|
-
METADATA_SOURCES=$(wildcard src/metadata/*.proto)
|
|
8
|
-
VOCHAIN_SOURCES=$(wildcard src/vochain/*.proto)
|
|
9
|
-
IPFSSYNC_SOURCES=$(wildcard src/ipfsSync/*.proto)
|
|
10
|
-
VOCDONI_NODE_SOURCES=$(wildcard src/vocdoni-node/*.proto)
|
|
11
|
-
|
|
12
|
-
PROTOC?=$(shell which protoc)
|
|
13
|
-
$(if $(PROTOC),,$(eval PROTOC=bin/protoc))
|
|
14
|
-
PROTOC_TS_PLUGIN := ./node_modules/.bin/protoc-gen-ts_proto
|
|
15
|
-
|
|
16
|
-
define install_protoc
|
|
17
|
-
@if [ "$(PROTOC)" == "bin/protoc" -a ! -x bin/protoc ]; then \
|
|
18
|
-
case "$$(uname)" in \
|
|
19
|
-
linux|Linux) \
|
|
20
|
-
curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip > protoc.zip \
|
|
21
|
-
;;\
|
|
22
|
-
darwin|Darwin) \
|
|
23
|
-
curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.15.8/protoc-3.15.8-osx-x86_64.zip > protoc.zip \
|
|
24
|
-
;;\
|
|
25
|
-
*) \
|
|
26
|
-
echo "Unsupported platform: $$(uname)" ;\
|
|
27
|
-
exit 1 ;\
|
|
28
|
-
esac ;\
|
|
29
|
-
unzip -d . protoc.zip ;\
|
|
30
|
-
rm protoc.zip readme.txt;\
|
|
31
|
-
fi
|
|
32
|
-
endef
|
|
33
|
-
|
|
34
|
-
define install_protoc_go
|
|
35
|
-
@if [ "$(PROTOC)" == "bin/protoc" -a ! -x bin/protoc-gen-go ]; then \
|
|
36
|
-
if [ ! -d "$$GOPATH" ] ; then \
|
|
37
|
-
export GOPATH="$$HOME/go" ;\
|
|
38
|
-
fi ; \
|
|
39
|
-
go install google.golang.org/protobuf/cmd/protoc-gen-go ;\
|
|
40
|
-
fi
|
|
41
|
-
endef
|
|
42
|
-
|
|
43
|
-
#-----------------------------------------------------------------------
|
|
44
|
-
# HELP
|
|
45
|
-
#-----------------------------------------------------------------------
|
|
46
|
-
|
|
47
|
-
## help: Display this message
|
|
48
|
-
|
|
49
|
-
.PHONY: help
|
|
50
|
-
help:
|
|
51
|
-
@echo
|
|
52
|
-
@echo " Available actions in "$(PROJECT_NAME)":"
|
|
53
|
-
@echo
|
|
54
|
-
@sed -n 's/^##//p' Makefile | column -t -s ':' | sed -e 's/^/ /'
|
|
55
|
-
@echo
|
|
56
|
-
|
|
57
|
-
## :
|
|
58
|
-
|
|
59
|
-
## init: Install external dependencies
|
|
60
|
-
init: protoc $(PROTOC_TS_PLUGIN) protoc-go-plugin
|
|
61
|
-
|
|
62
|
-
## clean: Remove the build artifacts
|
|
63
|
-
clean:
|
|
64
|
-
rm -Rf build include dist
|
|
65
|
-
|
|
66
|
-
## :
|
|
67
|
-
|
|
68
|
-
#-----------------------------------------------------------------------
|
|
69
|
-
# RECIPES
|
|
70
|
-
#-----------------------------------------------------------------------
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
## all: Generate the source code for all supported languages
|
|
74
|
-
all: protoc build/ts build/go/models
|
|
75
|
-
|
|
76
|
-
## golang: Generate the Golang protobuf artifacts
|
|
77
|
-
golang: protoc protoc-go-plugin build/go/models
|
|
78
|
-
|
|
79
|
-
build/go/models: $(VOCHAIN_SOURCES) $(VOCDONI_NODE_SOURCES) $(IPFSSYNC_SOURCES)
|
|
80
|
-
rm -rf $@
|
|
81
|
-
mkdir -p $@
|
|
82
|
-
for f in $^ ; do \
|
|
83
|
-
$(PROTOC) --go_opt=paths=source_relative --experimental_allow_proto3_optional -I=$(PWD)/src --go_out=$@ $(PWD)/$$f ; \
|
|
84
|
-
done
|
|
85
|
-
find $@ -iname "*.go" -type f -exec mv {} $@ \;
|
|
86
|
-
find $@ -type d -empty -delete
|
|
87
|
-
@touch $@
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
## dart: Generate the Dart protobuf artifacts
|
|
91
|
-
dart: protoc protoc-dart-plugin build/dart
|
|
92
|
-
|
|
93
|
-
build/dart: $(CLIENT_STORE_SOURCES) $(METADATA_SOURCES) $(VOCHAIN_SOURCES)
|
|
94
|
-
mkdir -p $@
|
|
95
|
-
for f in $^ ; do \
|
|
96
|
-
$(PROTOC) --experimental_allow_proto3_optional -I=$(PWD)/src --dart_out=$(PWD)/$@ $(PWD)/$$f ; \
|
|
97
|
-
done
|
|
98
|
-
@touch $@
|
|
99
|
-
|
|
100
|
-
## js: Generate the TypeScript protobuf artifacts
|
|
101
|
-
js: protoc $(PROTOC_TS_PLUGIN) build/ts
|
|
102
|
-
ts: js
|
|
103
|
-
|
|
104
|
-
build/ts: $(VOCHAIN_SOURCES) $(CLIENT_STORE_SOURCES) $(METADATA_SOURCES)
|
|
105
|
-
mkdir -p build
|
|
106
|
-
cp -r typescript build/ts
|
|
107
|
-
mkdir -p $@
|
|
108
|
-
for f in $^ ; do \
|
|
109
|
-
$(PROTOC) -I=$(PWD)/src --plugin=$(PROTOC_TS_PLUGIN) --experimental_allow_proto3_optional --ts_proto_opt=esModuleInterop=true --ts_proto_opt=exportCommonSymbols=false --ts_proto_opt=oneof=unions --ts_proto_out=$@ $(PWD)/$$f ; \
|
|
110
|
-
done
|
|
111
|
-
@touch $@
|
|
112
|
-
npm i --no-package-lock
|
|
113
|
-
|
|
114
|
-
#-----------------------------------------------------------------------
|
|
115
|
-
# COMPILERS
|
|
116
|
-
#-----------------------------------------------------------------------
|
|
117
|
-
|
|
118
|
-
.PHONY: protoc
|
|
119
|
-
protoc:
|
|
120
|
-
$(call install_protoc)
|
|
121
|
-
|
|
122
|
-
# DART
|
|
123
|
-
.PHONY: protoc-dart-plugin
|
|
124
|
-
protoc-dart-plugin:
|
|
125
|
-
dart pub global activate protoc_plugin
|
|
126
|
-
|
|
127
|
-
# TS
|
|
128
|
-
$(PROTOC_TS_PLUGIN):
|
|
129
|
-
@npm install ts-proto --no-package-lock
|
|
130
|
-
|
|
131
|
-
# GO
|
|
132
|
-
.PHONY: protoc-go-plugin
|
|
133
|
-
protoc-go-plugin:
|
|
134
|
-
$(call install_protoc_go)
|
package/bin/protoc
DELETED
|
Binary file
|
package/code-of-conduct.md
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
|
9
|
-
level of experience, education, socio-economic status, nationality, personal
|
|
10
|
-
appearance, race, religion, or sexual identity and orientation.
|
|
11
|
-
|
|
12
|
-
## Our Standards
|
|
13
|
-
|
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
|
15
|
-
include:
|
|
16
|
-
|
|
17
|
-
* Using welcoming and inclusive language
|
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
|
19
|
-
* Gracefully accepting constructive criticism
|
|
20
|
-
* Focusing on what is best for the community
|
|
21
|
-
* Showing empathy towards other community members
|
|
22
|
-
|
|
23
|
-
Examples of unacceptable behavior by participants include:
|
|
24
|
-
|
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
-
advances
|
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
-
* Public or private harassment
|
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
|
30
|
-
address, without explicit permission
|
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
-
professional setting
|
|
33
|
-
|
|
34
|
-
## Our Responsibilities
|
|
35
|
-
|
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
-
response to any instances of unacceptable behavior.
|
|
39
|
-
|
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
-
threatening, offensive, or harmful.
|
|
45
|
-
|
|
46
|
-
## Scope
|
|
47
|
-
|
|
48
|
-
This Code of Conduct applies within all project spaces, and it also applies when
|
|
49
|
-
an individual is representing the project or its community in public spaces.
|
|
50
|
-
Examples of representing a project or community include using an official
|
|
51
|
-
project e-mail address, posting via an official social media account, or acting
|
|
52
|
-
as an appointed representative at an online or offline event. Representation of
|
|
53
|
-
a project may be further defined and clarified by project maintainers.
|
|
54
|
-
|
|
55
|
-
## Enforcement
|
|
56
|
-
|
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
|
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
|
63
|
-
|
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
-
members of the project's leadership.
|
|
67
|
-
|
|
68
|
-
## Attribution
|
|
69
|
-
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
72
|
-
|
|
73
|
-
[homepage]: https://www.contributor-covenant.org
|
|
74
|
-
|
|
75
|
-
For answers to common questions about this code of conduct, see
|
|
76
|
-
https://www.contributor-covenant.org/faq
|
|
77
|
-
|