@leofcoin/endpoint-clients 0.3.10 → 0.3.12

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
@@ -63,42 +63,51 @@ class Client {
63
63
  staticCall(contract, method, params) {
64
64
  return chain.staticCall(contract, method, params);
65
65
  }
66
- nativeBurns() {
67
- return chain.nativeBurns;
68
- }
69
66
  contracts() {
70
67
  return chain.contracts;
71
68
  }
69
+ nativeToken() {
70
+ return chain.nativeToken;
71
+ }
72
+ nativeCalls() {
73
+ return chain.nativeCalls;
74
+ }
72
75
  nativeMints() {
73
76
  return chain.nativeMints;
74
77
  }
75
- nativeToken() {
76
- return chain.nativeToken;
78
+ nativeBurns() {
79
+ return chain.nativeBurns;
77
80
  }
78
81
  nativeTransfers() {
79
82
  return chain.nativeTransfers;
80
83
  }
81
- totalSize() {
82
- return chain.totalSize;
84
+ totalBurnAmount() {
85
+ return chain.totalBurnAmount;
86
+ }
87
+ totalMintAmount() {
88
+ return chain.totalMintAmount;
89
+ }
90
+ totalTransferAmount() {
91
+ return chain.totalTransferAmount;
83
92
  }
84
93
  totalTransactions() {
85
94
  return chain.totalTransactions;
86
95
  }
96
+ totalBlocks() {
97
+ return chain.totalBlocks;
98
+ }
87
99
  poolTransactions() {
88
100
  return transactionPoolStore.get();
89
101
  }
102
+ async totalSize() {
103
+ return (await transactionPoolStore.size()) + (await blockStore.size()) + (await accountsStore.size());
104
+ }
90
105
  transactionsInPool() {
91
106
  return transactionPoolStore.length();
92
107
  }
93
108
  transactionPoolSize() {
94
109
  return transactionPoolStore.size();
95
110
  }
96
- totalBlocks() {
97
- return chain.totalBlocks;
98
- }
99
- nativeCalls() {
100
- return chain.nativeCalls;
101
- }
102
111
  participating() {
103
112
  return chain.participating;
104
113
  }
package/exports/http.js CHANGED
@@ -64,27 +64,42 @@ class Client {
64
64
  staticCall(contract, method, params) {
65
65
  return this._fetch('staticCall', { contract, method, params });
66
66
  }
67
- nativeBurns() {
68
- return this._fetchNumber('nativeBurns');
69
- }
70
67
  contracts() {
71
68
  return this._fetch('contracts');
72
69
  }
70
+ nativeToken() {
71
+ return this._fetchString('nativeToken');
72
+ }
73
+ nativeCalls() {
74
+ return this._fetchNumber('nativeCalls');
75
+ }
73
76
  nativeMints() {
74
77
  return this._fetchNumber('nativeMints');
75
78
  }
76
- nativeToken() {
77
- return this._fetchString('nativeToken');
79
+ nativeBurns() {
80
+ return this._fetchNumber('nativeBurns');
78
81
  }
79
82
  nativeTransfers() {
80
83
  return this._fetchNumber('nativeTransfers');
81
84
  }
82
- totalSize() {
83
- return this._fetchNumber('totalSize');
85
+ totalBurnAmount() {
86
+ return this._fetchNumber('totalBurnAmount');
87
+ }
88
+ totalMintAmount() {
89
+ return this._fetchNumber('totalMintAmount');
90
+ }
91
+ totalTransferAmount() {
92
+ return this._fetchNumber('totalTransferAmount');
84
93
  }
85
94
  totalTransactions() {
86
95
  return this._fetchNumber('totalTransactions');
87
96
  }
97
+ totalBlocks() {
98
+ return this._fetchNumber('totalBlocks');
99
+ }
100
+ totalSize() {
101
+ return this._fetchNumber('totalSize');
102
+ }
88
103
  poolTransactions() {
89
104
  return this._fetch('poolTransactions');
90
105
  }
@@ -94,12 +109,6 @@ class Client {
94
109
  transactionPoolSize() {
95
110
  return this._fetchNumber('transactionPoolSize');
96
111
  }
97
- totalBlocks() {
98
- return this._fetchNumber('totalBlocks');
99
- }
100
- nativeCalls() {
101
- return this._fetchNumber('nativeCalls');
102
- }
103
112
  participating() {
104
113
  return this._fetchBoolean('participating');
105
114
  }
@@ -21,18 +21,21 @@ export default class Client {
21
21
  validators(): any;
22
22
  lookup(name: string): any;
23
23
  staticCall(contract: string, method: string, params: {}): any;
24
- nativeBurns(): number;
25
24
  contracts(): number;
26
- nativeMints(): number;
27
25
  nativeToken(): string;
26
+ nativeCalls(): number;
27
+ nativeMints(): number;
28
+ nativeBurns(): number;
28
29
  nativeTransfers(): number;
29
- totalSize(): number;
30
+ totalBurnAmount(): number;
31
+ totalMintAmount(): number;
32
+ totalTransferAmount(): number;
30
33
  totalTransactions(): number;
34
+ totalBlocks(): number;
31
35
  poolTransactions(): any;
36
+ totalSize(): Promise<number>;
32
37
  transactionsInPool(): any;
33
38
  transactionPoolSize(): any;
34
- totalBlocks(): number;
35
- nativeCalls(): number;
36
39
  participating(): boolean;
37
40
  participate(address: string): {};
38
41
  createContractAddress(owner: string, code: string, params: {}): {};
@@ -23,18 +23,21 @@ export default class Client {
23
23
  validators(): Promise<any>;
24
24
  lookup(name: any): Promise<any>;
25
25
  staticCall(contract: any, method: any, params: any): Promise<any>;
26
- nativeBurns(): Promise<number>;
27
26
  contracts(): Promise<any>;
28
- nativeMints(): Promise<number>;
29
27
  nativeToken(): Promise<string>;
28
+ nativeCalls(): Promise<number>;
29
+ nativeMints(): Promise<number>;
30
+ nativeBurns(): Promise<number>;
30
31
  nativeTransfers(): Promise<number>;
31
- totalSize(): Promise<number>;
32
+ totalBurnAmount(): Promise<number>;
33
+ totalMintAmount(): Promise<number>;
34
+ totalTransferAmount(): Promise<number>;
32
35
  totalTransactions(): Promise<number>;
36
+ totalBlocks(): Promise<number>;
37
+ totalSize(): Promise<number>;
33
38
  poolTransactions(): Promise<any>;
34
39
  transactionsInPool(): Promise<number>;
35
40
  transactionPoolSize(): Promise<number>;
36
- totalBlocks(): Promise<number>;
37
- nativeCalls(): Promise<number>;
38
41
  participating(): Promise<boolean>;
39
42
  participate(address: any): Promise<any>;
40
43
  createContractAddress(owner: any, code: any, params: any): Promise<any>;
@@ -24,18 +24,21 @@ export default class Client {
24
24
  validators(): Promise<any>;
25
25
  lookup(name: string): Promise<any>;
26
26
  staticCall(contract: string, method: string, params: {}): Promise<any>;
27
- nativeBurns(): Promise<number>;
28
27
  contracts(): Promise<number>;
29
- nativeMints(): Promise<number>;
30
28
  nativeToken(): Promise<string>;
29
+ nativeCalls(): Promise<number>;
30
+ nativeMints(): Promise<number>;
31
+ nativeBurns(): Promise<number>;
31
32
  nativeTransfers(): Promise<number>;
32
- totalSize(): Promise<number>;
33
+ totalBurnAmount(): Promise<number>;
34
+ totalMintAmount(): Promise<number>;
35
+ totalTransferAmount(): Promise<number>;
33
36
  totalTransactions(): Promise<number>;
37
+ totalSize(): Promise<number>;
38
+ totalBlocks(): Promise<number>;
34
39
  poolTransactions(): Promise<any>;
35
40
  transactionsInPool(): Promise<any>;
36
41
  transactionPoolSize(): Promise<any>;
37
- totalBlocks(): Promise<number>;
38
- nativeCalls(): Promise<number>;
39
42
  participating(): Promise<boolean>;
40
43
  participate(address: string): {};
41
44
  createContractAddress(owner: string, code: string, params: {}): {};
package/exports/ws.js CHANGED
@@ -63,27 +63,42 @@ class Client {
63
63
  staticCall(contract, method, params) {
64
64
  return this.request('staticCall', { contract, method, params });
65
65
  }
66
- nativeBurns() {
67
- return this.request('nativeBurns');
68
- }
69
66
  contracts() {
70
67
  return this.request('contracts');
71
68
  }
69
+ nativeToken() {
70
+ return this.request('nativeToken');
71
+ }
72
+ nativeCalls() {
73
+ return this.request('nativeCalls');
74
+ }
72
75
  nativeMints() {
73
76
  return this.request('nativeMints');
74
77
  }
75
- nativeToken() {
76
- return this.request('nativeToken');
78
+ nativeBurns() {
79
+ return this.request('nativeBurns');
77
80
  }
78
81
  nativeTransfers() {
79
82
  return this.request('nativeTransfers');
80
83
  }
81
- totalSize() {
82
- return this.request('totalSize');
84
+ totalBurnAmount() {
85
+ return this.request('totalBurnAmount');
86
+ }
87
+ totalMintAmount() {
88
+ return this.request('totalMintAmount');
89
+ }
90
+ totalTransferAmount() {
91
+ return this.request('totalTransferAmount');
83
92
  }
84
93
  totalTransactions() {
85
94
  return this.request('totalTransactions');
86
95
  }
96
+ totalSize() {
97
+ return this.request('totalSize');
98
+ }
99
+ totalBlocks() {
100
+ return this.request('totalBlocks');
101
+ }
87
102
  poolTransactions() {
88
103
  return this.request('poolTransactions');
89
104
  }
@@ -93,12 +108,6 @@ class Client {
93
108
  transactionPoolSize() {
94
109
  return this.request('transactionPoolSize');
95
110
  }
96
- totalBlocks() {
97
- return this.request('totalBlocks');
98
- }
99
- nativeCalls() {
100
- return this.request('nativeCalls');
101
- }
102
111
  participating() {
103
112
  return this.request('participating');
104
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/endpoint-clients",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {