@abtnode/schema 1.7.7 → 1.7.8

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 CHANGED
@@ -4,17 +4,21 @@ Defines data structure for ABT Node backend API, and maintains schema for GQL en
4
4
 
5
5
  ## Development
6
6
 
7
- ### Install gnu-sed
7
+ You can choose one of the following two ways to build schema.
8
+
9
+ ### Option 1. Build schema with Go
10
+
11
+ #### Install gnu-sed
8
12
 
9
13
  - Mac: brew install gnu-sed
10
14
  - Other platform: https://www.gnu.org/software/sed/
11
15
 
12
- ### Install protobuf
16
+ #### Install protobuf
13
17
 
14
18
  - Mac: brew install protobuf
15
19
  - Other platform: https://developers.google.com/protocol-buffers/docs/downloads
16
20
 
17
- ### Add to `~/.profile`
21
+ #### Add to `~/.profile`
18
22
 
19
23
  ```shell
20
24
  export GO111MODULE=on
@@ -29,16 +33,25 @@ PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
29
33
 
30
34
  source ~/.profile
31
35
 
32
- ### Install other dependencies
36
+ #### Install other dependencies
33
37
 
34
38
  Run `make init`
35
39
 
36
40
  > If there is a network problem, try to change golang registry by https://goproxy.cn/
37
41
 
38
- ### Build Schema
42
+ #### Build Schema
39
43
 
40
44
  Run `make build`
41
45
 
46
+ ### Option 2. Build schema with Docker
47
+
48
+ If you don't want to install Go-related dependencies, you can build them via the docker:
49
+
50
+ ```bash
51
+ docker pull arcblock/blocklet-server-proto
52
+ docker run --rm -v {absolute path of core/schema}:/home/root/schema arcblock/blocklet-server-proto
53
+ ```
54
+
42
55
  ## How To Update Schema
43
56
 
44
57
  ### 1. update core/schema proto
package/lib/index.js CHANGED
@@ -460,7 +460,6 @@ input RequsetCreateInvitationInput {
460
460
  teamDid: String
461
461
  role: String
462
462
  remark: String
463
- interfaceName: String
464
463
  }
465
464
 
466
465
  input RequsetDeleteInvitationInput {
@@ -803,9 +802,9 @@ type Environment {
803
802
  shared: Boolean
804
803
  }
805
804
 
806
- type GasFee {
805
+ type Fuel {
807
806
  endpoint: String
808
- symbol: String
807
+ address: String
809
808
  value: String
810
809
  reason: String
811
810
  }
@@ -982,7 +981,7 @@ type Requirement {
982
981
  server: String
983
982
  os: Any
984
983
  cpu: Any
985
- gasFee: GasFee
984
+ fuels: [Fuel!]
986
985
  }
987
986
 
988
987
  type ResponseAccessKeys {
@@ -460,7 +460,6 @@ input RequsetCreateInvitationInput {
460
460
  teamDid: String
461
461
  role: String
462
462
  remark: String
463
- interfaceName: String
464
463
  }
465
464
 
466
465
  input RequsetDeleteInvitationInput {
@@ -803,9 +802,9 @@ type Environment {
803
802
  shared: Boolean
804
803
  }
805
804
 
806
- type GasFee {
805
+ type Fuel {
807
806
  endpoint: String
808
- symbol: String
807
+ address: String
809
808
  value: String
810
809
  reason: String
811
810
  }
@@ -982,7 +981,7 @@ type Requirement {
982
981
  server: String
983
982
  os: Any
984
983
  cpu: Any
985
- gasFee: GasFee
984
+ fuels: [Fuel!]
986
985
  }
987
986
 
988
987
  type ResponseAccessKeys {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.7.7",
6
+ "version": "1.7.8",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -13,5 +13,5 @@
13
13
  "keywords": [],
14
14
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
15
15
  "license": "MIT",
16
- "gitHead": "619db37ea7a91c64a9bf30836a55c70d55325e73"
16
+ "gitHead": "ae75dd20b4750a31dc53c88b75ed1d95c8f15397"
17
17
  }