@leofcoin/endpoints 0.3.4 → 0.3.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/api.md CHANGED
@@ -183,18 +183,26 @@ await client.validators()
183
183
 
184
184
  <br>
185
185
 
186
- #### [nativeBurns()](https://remote.leofcoin.org/nativeBurns)
186
+ #### [contracts()](https://remote.leofcoin.org/contracts)
187
187
 
188
188
  ```js
189
- await client.nativeBurns()
189
+ await client.contracts()
190
190
  ```
191
191
 
192
192
  <br>
193
193
 
194
- #### [contracts()](https://remote.leofcoin.org/contracts)
194
+ #### [nativeToken()](https://remote.leofcoin.org/nativeToken)
195
195
 
196
196
  ```js
197
- await client.contracts()
197
+ await client.nativeToken()
198
+ ```
199
+
200
+ <br>
201
+
202
+ #### [nativeCalls()](https://remote.leofcoin.org/nativeCalls)
203
+
204
+ ```js
205
+ await client.nativeCalls()
198
206
  ```
199
207
 
200
208
  <br>
@@ -207,10 +215,10 @@ await client.nativeMints()
207
215
 
208
216
  <br>
209
217
 
210
- #### [nativeToken()](https://remote.leofcoin.org/nativeToken)
218
+ #### [nativeBurns()](https://remote.leofcoin.org/nativeBurns)
211
219
 
212
220
  ```js
213
- await client.nativeToken()
221
+ await client.nativeBurns()
214
222
  ```
215
223
 
216
224
  <br>
@@ -223,10 +231,26 @@ await client.nativeTransfers()
223
231
 
224
232
  <br>
225
233
 
226
- #### [totalSize()](https://remote.leofcoin.org/totalSize)
234
+ #### [totalBurnAmount()](https://remote.leofcoin.org/totalBurnAmount)
227
235
 
228
236
  ```js
229
- await client.totalSize()
237
+ await client.totalBurnAmount()
238
+ ```
239
+
240
+ <br>
241
+
242
+ #### [totalMintAmount()](https://remote.leofcoin.org/totalMintAmount)
243
+
244
+ ```js
245
+ await client.totalMintAmount()
246
+ ```
247
+
248
+ <br>
249
+
250
+ #### [totalTransferAmount()](https://remote.leofcoin.org/totalTransferAmount)
251
+
252
+ ```js
253
+ await client.totalTransferAmount()
230
254
  ```
231
255
 
232
256
  <br>
@@ -239,6 +263,14 @@ await client.totalTransactions()
239
263
 
240
264
  <br>
241
265
 
266
+ #### [totalSize()](https://remote.leofcoin.org/totalSize)
267
+
268
+ ```js
269
+ await client.totalSize()
270
+ ```
271
+
272
+ <br>
273
+
242
274
  #### [poolTransactions()](https://remote.leofcoin.org/poolTransactions)
243
275
 
244
276
  ```js
@@ -271,14 +303,6 @@ await client.totalBlocks()
271
303
 
272
304
  <br>
273
305
 
274
- #### [nativeCalls()](https://remote.leofcoin.org/nativeCalls)
275
-
276
- ```js
277
- await client.nativeCalls()
278
- ```
279
-
280
- <br>
281
-
282
306
  #### [participating()](https://remote.leofcoin.org/participating)
283
307
 
284
308
  ```js
package/exports/http.js CHANGED
@@ -96,15 +96,18 @@ export default (chain, port, networkVersion, remote = false) => {
96
96
  ctx.body = await chain.lookup(ctx.query.name);
97
97
  });
98
98
  router.get('/staticCall', async (ctx) => (ctx.body = await chain.staticCall(ctx.query.contract, ctx.query.method, ctx.query.params)));
99
- router.get('/nativeBurns', async (ctx) => (ctx.body = await chain.nativeBurns));
100
99
  router.get('/contracts', async (ctx) => (ctx.body = await chain.contracts));
101
- router.get('/nativeMints', async (ctx) => (ctx.body = await chain.nativeMints));
102
100
  router.get('/nativeToken', async (ctx) => (ctx.body = await chain.nativeToken));
101
+ router.get('/nativeCalls', async (ctx) => (ctx.body = await chain.nativeCalls));
102
+ router.get('/nativeMints', async (ctx) => (ctx.body = await chain.nativeMints));
103
+ router.get('/nativeBurns', async (ctx) => (ctx.body = await chain.nativeBurns));
103
104
  router.get('/nativeTransfers', async (ctx) => (ctx.body = await chain.nativeTransfers));
104
- router.get('/totalSize', async (ctx) => (ctx.body = await chain.totalSize));
105
+ router.get('/totalBurnAmount', async (ctx) => (ctx.body = await chain.totalBurnAmount));
106
+ router.get('/totalMintAmount', async (ctx) => (ctx.body = await chain.totalMintAmount));
107
+ router.get('/totalTransferAmount', async (ctx) => (ctx.body = await chain.totalTransferAmount));
105
108
  router.get('/totalTransactions', async (ctx) => (ctx.body = await chain.totalTransactions));
109
+ router.get('/totalSize', async (ctx) => (ctx.body = await chain.totalSize));
106
110
  router.get('/totalBlocks', async (ctx) => (ctx.body = await chain.totalBlocks));
107
- router.get('/nativeCalls', async (ctx) => (ctx.body = await chain.nativeCalls));
108
111
  router.get('/lastBlock', async (ctx) => (ctx.body = await chain.lastBlock));
109
112
  router.get('/poolTransactions', async (ctx) => (ctx.body = await globalThis.transactionPoolStore.get()));
110
113
  router.get('/transactionsInPool', async (ctx) => (ctx.body = await globalThis.transactionPoolStore.length()));
package/exports/ws.js CHANGED
@@ -63,16 +63,19 @@ export default (chain, port, networkVersion, remote = false) => {
63
63
  validators: ({ send }) => send(chain.validators),
64
64
  lookup: async ({ name }, { send }) => send(await chain.lookup(name)),
65
65
  staticCall: async ({ contract, method, params }, { send }) => send(await chain.staticCall(contract, method, params)),
66
- nativeBurns: async ({ send }) => send(await chain.nativeBurns),
67
66
  contracts: async ({ send }) => send(await chain.contracts),
68
- nativeMints: async ({ send }) => send(await chain.nativeMints),
69
67
  nativeToken: async ({ send }) => send(await chain.nativeToken),
68
+ nativeCalls: async ({ send }) => send(await chain.nativeCalls),
69
+ nativeMints: async ({ send }) => send(await chain.nativeMints),
70
+ nativeBurns: async ({ send }) => send(await chain.nativeBurns),
70
71
  nativeTransfers: async ({ send }) => send(await chain.nativeTransfers),
71
- totalSize: async ({ send }) => send(await chain.totalSize),
72
+ totalBurnAmount: async ({ send }) => send(await chain.totalBurnAmount),
73
+ totalMintAmount: async ({ send }) => send(await chain.totalMintAmount),
74
+ totalTransferAmount: async ({ send }) => send(await chain.totalTransferAmount),
72
75
  totalTransactions: async ({ send }) => send(await chain.totalTransactions),
73
76
  totalBlocks: async ({ send }) => send(chain.totalBlocks),
77
+ totalSize: async ({ send }) => send((await transactionPoolStore.size()) + (await blockStore.size()) + (await accountsStore.size())),
74
78
  lastBlock: async (ctx) => (ctx.body = await chain.lastBlock),
75
- nativeCalls: async ({ send }) => send(await chain.nativeCalls),
76
79
  participating: async ({ send }) => send(await chain.participating),
77
80
  poolTransactions: async ({ send }) => send(await globalThis.transactionPoolStore.get()),
78
81
  transactionsInPool: async ({ send }) => send(await globalThis.transactionPoolStore.length()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/endpoints",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {