@leofcoin/endpoint-clients 0.2.5 → 0.2.6

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/http.js CHANGED
@@ -85,6 +85,15 @@ class Client {
85
85
  totalTransactions() {
86
86
  return this._fetchNumber('totalTransactions');
87
87
  }
88
+ poolTransactions() {
89
+ return this._fetch('poolTransactions');
90
+ }
91
+ transactionsInPool() {
92
+ return this._fetchNumber('transactionsInPool');
93
+ }
94
+ transactionPoolSize() {
95
+ return this._fetchNumber('transactionPoolSize');
96
+ }
88
97
  totalBlocks() {
89
98
  return this._fetchNumber('totalBlocks');
90
99
  }
@@ -30,6 +30,9 @@ export default class Client {
30
30
  nativeTransfers(): Promise<number>;
31
31
  totalSize(): Promise<number>;
32
32
  totalTransactions(): Promise<number>;
33
+ poolTransactions(): Promise<any>;
34
+ transactionsInPool(): Promise<number>;
35
+ transactionPoolSize(): Promise<number>;
33
36
  totalBlocks(): Promise<number>;
34
37
  nativeCalls(): Promise<number>;
35
38
  participating(): Promise<boolean>;
@@ -31,6 +31,9 @@ export default class Client {
31
31
  nativeTransfers(): number;
32
32
  totalSize(): number;
33
33
  totalTransactions(): number;
34
+ poolTransactions(): any;
35
+ transactionsInPool(): any;
36
+ transactionPoolSize(): any;
34
37
  totalBlocks(): number;
35
38
  nativeCalls(): number;
36
39
  participating(): boolean;
package/exports/ws.js CHANGED
@@ -83,6 +83,15 @@ class Client {
83
83
  totalTransactions() {
84
84
  return this.request('totalTransactions');
85
85
  }
86
+ poolTransactions() {
87
+ return this.request('poolTransactions');
88
+ }
89
+ transactionsInPool() {
90
+ return this.request('transactionsInPool');
91
+ }
92
+ transactionPoolSize() {
93
+ return this.request('transactionPoolSize');
94
+ }
86
95
  totalBlocks() {
87
96
  return this.request('totalBlocks');
88
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/endpoint-clients",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
package/src/http.ts CHANGED
@@ -104,6 +104,15 @@ export default class Client {
104
104
  totalTransactions() {
105
105
  return this._fetchNumber('totalTransactions')
106
106
  }
107
+ poolTransactions() {
108
+ return this._fetch('poolTransactions')
109
+ }
110
+ transactionsInPool() {
111
+ return this._fetchNumber('transactionsInPool')
112
+ }
113
+ transactionPoolSize() {
114
+ return this._fetchNumber('transactionPoolSize')
115
+ }
107
116
  totalBlocks() {
108
117
  return this._fetchNumber('totalBlocks')
109
118
  }
package/src/ws.ts CHANGED
@@ -96,6 +96,15 @@ export default class Client {
96
96
  totalTransactions(): number {
97
97
  return this.request('totalTransactions')
98
98
  }
99
+ poolTransactions() {
100
+ return this.request('poolTransactions')
101
+ }
102
+ transactionsInPool() {
103
+ return this.request('transactionsInPool')
104
+ }
105
+ transactionPoolSize() {
106
+ return this.request('transactionPoolSize')
107
+ }
99
108
  totalBlocks(): number {
100
109
  return this.request('totalBlocks')
101
110
  }