@dashevo/dapi-grpc 0.23.0-dev.9 → 0.23.0

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
@@ -1,8 +1,8 @@
1
1
  # DAPI GRPC
2
2
 
3
- [![Build Status](https://github.com/dashevo/platform/actions/workflows/release.yml/badge.svg)](https://github.com/dashevo/platform/actions/workflows/release.yml)
3
+ [![Build Status](https://github.com/dashpay/platform/actions/workflows/release.yml/badge.svg)](https://github.com/dashpay/platform/actions/workflows/release.yml)
4
4
  [![NPM version](https://img.shields.io/npm/v/@dashevo/dapi-grpc.svg)](https://npmjs.org/package/@dashevo/dapi-grpc)
5
- [![Release Date](https://img.shields.io/github/release-date/dashevo/platform)](https://github.com/dashevo/platform/releases/latest)
5
+ [![Release Date](https://img.shields.io/github/release-date/dashpay/platform)](https://github.com/dashpay/platform/releases/latest)
6
6
  [![license](https://img.shields.io/github/license/dashevo/dapi-grpc.svg)](LICENSE)
7
7
 
8
8
  Decentralized API GRPC definition files and generated clients
@@ -135,7 +135,7 @@ Available methods :
135
135
 
136
136
  ## Contributing
137
137
 
138
- Feel free to dive in! [Open an issue](https://github.com/dashevo/platform/issues/new/choose) or submit PRs.
138
+ Feel free to dive in! [Open an issue](https://github.com/dashpay/platform/issues/new/choose) or submit PRs.
139
139
 
140
140
  ## License
141
141
 
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global = Function('return this')();
23
17
 
24
18
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeaders', null, global);
25
19
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest', null, global);
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.4.2
10
+ // protoc v3.18.1
11
+ // source: core.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -43,7 +47,7 @@ proto.org.dash.platform.dapi.v0.CoreClient =
43
47
  /**
44
48
  * @private @const {string} The hostname
45
49
  */
46
- this.hostname_ = hostname;
50
+ this.hostname_ = hostname.replace(/\/+$/, '');
47
51
 
48
52
  };
49
53
 
@@ -69,7 +73,7 @@ proto.org.dash.platform.dapi.v0.CorePromiseClient =
69
73
  /**
70
74
  * @private @const {string} The hostname
71
75
  */
72
- this.hostname_ = hostname;
76
+ this.hostname_ = hostname.replace(/\/+$/, '');
73
77
 
74
78
  };
75
79
 
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global = Function('return this')();
23
17
 
24
18
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeaders', null, global);
25
19
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BlockHeadersWithChainLocksRequest', null, global);
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global = Function('return this')();
23
17
 
24
18
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest', null, global);
25
19
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse', null, global);
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.4.2
10
+ // protoc v3.18.1
11
+ // source: platform.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -43,7 +47,7 @@ proto.org.dash.platform.dapi.v0.PlatformClient =
43
47
  /**
44
48
  * @private @const {string} The hostname
45
49
  */
46
- this.hostname_ = hostname;
50
+ this.hostname_ = hostname.replace(/\/+$/, '');
47
51
 
48
52
  };
49
53
 
@@ -69,7 +73,7 @@ proto.org.dash.platform.dapi.v0.PlatformPromiseClient =
69
73
  /**
70
74
  * @private @const {string} The hostname
71
75
  */
72
- this.hostname_ = hostname;
76
+ this.hostname_ = hostname.replace(/\/+$/, '');
73
77
 
74
78
  };
75
79
 
@@ -13,13 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = (function() {
17
- if (this) { return this; }
18
- if (typeof window !== 'undefined') { return window; }
19
- if (typeof global !== 'undefined') { return global; }
20
- if (typeof self !== 'undefined') { return self; }
21
- return Function('return this')();
22
- }.call(null));
16
+ var global = Function('return this')();
23
17
 
24
18
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionRequest', null, global);
25
19
  goog.exportSymbol('proto.org.dash.platform.dapi.v0.BroadcastStateTransitionResponse', null, global);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dashevo/dapi-grpc",
3
- "version": "0.23.0-dev.9",
3
+ "version": "0.23.0",
4
4
  "description": "DAPI GRPC definition file and generated clients",
5
5
  "browser": "browser.js",
6
6
  "main": "node.js",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "homepage": "https://github.com/dashevo/dapi-grpc#readme",
35
35
  "dependencies": {
36
- "@dashevo/grpc-common": "~0.23.0-dev.9",
36
+ "@dashevo/grpc-common": "0.23.0",
37
37
  "@dashevo/protobufjs": "6.10.5",
38
38
  "@grpc/grpc-js": "^1.3.7",
39
39
  "google-protobuf": "^3.12.2",
package/scripts/build.sh CHANGED
@@ -18,8 +18,7 @@ PLATFORM_OBJ_C_OUT_PATH="$PLATFORM_CLIENTS_PATH/objective-c"
18
18
  CORE_PYTHON_OUT_PATH="$CORE_CLIENTS_PATH/python"
19
19
  PLATFORM_PYTHON_OUT_PATH="$PLATFORM_CLIENTS_PATH/python"
20
20
 
21
- GRPC_WEB_COMMON_IMAGE="strophy/grpc-web-common:1.3.2"
22
- PROTOC_IMAGE="strophy/protoc:3.3.2"
21
+ PROTOC_IMAGE="rvolosatovs/protoc:4.0.0"
23
22
 
24
23
  #################################################
25
24
  # Generate JavaScript client for `Core` service #
@@ -30,10 +29,11 @@ rm -rf "$CORE_WEB_OUT_PATH/*"
30
29
  docker run -v "$CORE_PROTO_PATH:$CORE_PROTO_PATH" \
31
30
  -v "$CORE_WEB_OUT_PATH:$CORE_WEB_OUT_PATH" \
32
31
  --rm \
33
- "$GRPC_WEB_COMMON_IMAGE" \
34
- protoc -I="$CORE_PROTO_PATH" "core.proto" \
35
- --js_out="import_style=commonjs:$CORE_WEB_OUT_PATH" \
36
- --grpc-web_out="import_style=commonjs,mode=grpcwebtext:$CORE_WEB_OUT_PATH"
32
+ "$PROTOC_IMAGE" \
33
+ --js_out="import_style=commonjs:$CORE_WEB_OUT_PATH" \
34
+ --grpc-web_out="import_style=commonjs,mode=grpcwebtext:$CORE_WEB_OUT_PATH" \
35
+ -I="$CORE_PROTO_PATH" \
36
+ "core.proto"
37
37
 
38
38
  # Clean node message classes
39
39
 
@@ -61,10 +61,11 @@ rm -rf "$PLATFORM_WEB_OUT_PATH/*"
61
61
  docker run -v "$PLATFORM_PROTO_PATH:$PLATFORM_PROTO_PATH" \
62
62
  -v "$PLATFORM_WEB_OUT_PATH:$PLATFORM_WEB_OUT_PATH" \
63
63
  --rm \
64
- "$GRPC_WEB_COMMON_IMAGE" \
65
- protoc -I="$PLATFORM_PROTO_PATH" "platform.proto" \
66
- --js_out="import_style=commonjs:$PLATFORM_WEB_OUT_PATH" \
67
- --grpc-web_out="import_style=commonjs,mode=grpcwebtext:$PLATFORM_WEB_OUT_PATH"
64
+ "$PROTOC_IMAGE" \
65
+ --js_out="import_style=commonjs:$PLATFORM_WEB_OUT_PATH" \
66
+ --grpc-web_out="import_style=commonjs,mode=grpcwebtext:$PLATFORM_WEB_OUT_PATH" \
67
+ -I="$PLATFORM_PROTO_PATH" \
68
+ "platform.proto"
68
69
 
69
70
  # Clean node message classes
70
71