@leofcoin/endpoint-clients 0.3.13 → 0.3.14

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/exports/direct.js CHANGED
@@ -158,6 +158,9 @@ class Client {
158
158
  lastBlock() {
159
159
  return chain.lastBlock;
160
160
  }
161
+ lastBlockHeight() {
162
+ return chain.lastBlockHeight;
163
+ }
161
164
  blockHashMap() {
162
165
  return chain.blockHashMap;
163
166
  }
package/exports/http.js CHANGED
@@ -136,6 +136,9 @@ class Client {
136
136
  lastBlock() {
137
137
  return this._fetch('lastBlock');
138
138
  }
139
+ lastBlockHeight() {
140
+ return this._fetchNumber('lastBlockHeight');
141
+ }
139
142
  blockHashMap() {
140
143
  return this._fetch('blockHashMap');
141
144
  }
@@ -52,6 +52,7 @@ export default class Client {
52
52
  }>;
53
53
  getNonce(address: string): any;
54
54
  lastBlock(): any;
55
+ lastBlockHeight(): any;
55
56
  blockHashMap(): any;
56
57
  bootstrap(): any;
57
58
  }
@@ -52,6 +52,7 @@ export default class Client {
52
52
  }>;
53
53
  getNonce(address: string): Promise<number>;
54
54
  lastBlock(): Promise<any>;
55
+ lastBlockHeight(): Promise<number>;
55
56
  blockHashMap(): Promise<any>;
56
57
  bootstrap(): Promise<any>;
57
58
  }
@@ -53,6 +53,7 @@ export default class Client {
53
53
  }>;
54
54
  getNonce(address: string): Promise<any>;
55
55
  lastBlock(): Promise<any>;
56
+ lastBlockHeight(): Promise<any>;
56
57
  blockHashMap(): Promise<any>;
57
58
  bootstrap(): Promise<any>;
58
59
  }
package/exports/ws.js CHANGED
@@ -135,6 +135,9 @@ class Client {
135
135
  lastBlock() {
136
136
  return this.request('lastBlock');
137
137
  }
138
+ lastBlockHeight() {
139
+ return this.request('lastBlockHeight');
140
+ }
138
141
  blockHashMap() {
139
142
  return this.request('blockHashMap');
140
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/endpoint-clients",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {