@xyo-network/xl1-rpc 1.18.5 → 1.18.7
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/dist/neutral/engine/rpcMethodHandlersFromBlockViewer.d.ts.map +1 -1
- package/dist/neutral/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
- package/dist/neutral/index.mjs +35 -2
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcBlockViewer/JsonRpcBlockViewerMethods.d.ts +109 -0
- package/dist/neutral/provider/viewer/JsonRpcBlockViewer/JsonRpcBlockViewerMethods.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +110 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +216 -0
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/BlockViewerRpcSchemas.d.ts +108 -0
- package/dist/neutral/types/schema/BlockViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +108 -0
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromBlockViewer.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
- package/dist/node/index-node.mjs +35 -2
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/viewer/JsonRpcBlockViewer/JsonRpcBlockViewerMethods.d.ts +109 -0
- package/dist/node/provider/viewer/JsonRpcBlockViewer/JsonRpcBlockViewerMethods.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +110 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/types/schema/AllRpcSchemas.d.ts +216 -0
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/BlockViewerRpcSchemas.d.ts +108 -0
- package/dist/node/types/schema/BlockViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +108 -0
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/engine/rpcMethodHandlersFromBlockViewer.ts +1 -0
- package/src/engine/rpcMethodHandlersFromViewer.ts +1 -0
- package/src/provider/viewer/JsonRpcBlockViewer/JsonRpcBlockViewerMethods.ts +13 -0
- package/src/provider/viewer/JsonRpcXyoViewer.ts +12 -3
- package/src/types/schema/BlockViewerRpcSchemas.ts +11 -1
- package/src/types/schema/XyoViewerRpcSchemas.ts +11 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/AllRpcSchemas.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"AllRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/AllRpcSchemas.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBF,CAAA;AAExB,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAA"}
|
|
@@ -241,12 +241,28 @@ export declare const BlockViewerRpcSchemas: {
|
|
|
241
241
|
to: z.ZodObject<{
|
|
242
242
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
243
243
|
rate: z.ZodNumber;
|
|
244
|
+
rateUnit: z.ZodEnum<{
|
|
245
|
+
millis: "millis";
|
|
246
|
+
seconds: "seconds";
|
|
247
|
+
minutes: "minutes";
|
|
248
|
+
hours: "hours";
|
|
249
|
+
days: "days";
|
|
250
|
+
weeks: "weeks";
|
|
251
|
+
}>;
|
|
244
252
|
span: z.ZodInt;
|
|
245
253
|
timeDifference: z.ZodNumber;
|
|
246
254
|
}, z.core.$strip>;
|
|
247
255
|
from: z.ZodObject<{
|
|
248
256
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
249
257
|
rate: z.ZodNumber;
|
|
258
|
+
rateUnit: z.ZodEnum<{
|
|
259
|
+
millis: "millis";
|
|
260
|
+
seconds: "seconds";
|
|
261
|
+
minutes: "minutes";
|
|
262
|
+
hours: "hours";
|
|
263
|
+
days: "days";
|
|
264
|
+
weeks: "weeks";
|
|
265
|
+
}>;
|
|
250
266
|
span: z.ZodInt;
|
|
251
267
|
timeDifference: z.ZodNumber;
|
|
252
268
|
}, z.core.$strip>;
|
|
@@ -265,6 +281,14 @@ export declare const BlockViewerRpcSchemas: {
|
|
|
265
281
|
from: z.ZodTuple<[z.ZodObject<{
|
|
266
282
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
267
283
|
rate: z.ZodNumber;
|
|
284
|
+
rateUnit: z.ZodEnum<{
|
|
285
|
+
millis: "millis";
|
|
286
|
+
seconds: "seconds";
|
|
287
|
+
minutes: "minutes";
|
|
288
|
+
hours: "hours";
|
|
289
|
+
days: "days";
|
|
290
|
+
weeks: "weeks";
|
|
291
|
+
}>;
|
|
268
292
|
span: z.ZodInt;
|
|
269
293
|
timeDifference: z.ZodNumber;
|
|
270
294
|
}, z.core.$strip>], null>;
|
|
@@ -273,12 +297,96 @@ export declare const BlockViewerRpcSchemas: {
|
|
|
273
297
|
to: z.ZodObject<{
|
|
274
298
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
275
299
|
rate: z.ZodNumber;
|
|
300
|
+
rateUnit: z.ZodEnum<{
|
|
301
|
+
millis: "millis";
|
|
302
|
+
seconds: "seconds";
|
|
303
|
+
minutes: "minutes";
|
|
304
|
+
hours: "hours";
|
|
305
|
+
days: "days";
|
|
306
|
+
weeks: "weeks";
|
|
307
|
+
}>;
|
|
276
308
|
span: z.ZodInt;
|
|
277
309
|
timeDifference: z.ZodNumber;
|
|
278
310
|
}, z.core.$strip>;
|
|
279
311
|
from: z.ZodObject<{
|
|
280
312
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
281
313
|
rate: z.ZodNumber;
|
|
314
|
+
rateUnit: z.ZodEnum<{
|
|
315
|
+
millis: "millis";
|
|
316
|
+
seconds: "seconds";
|
|
317
|
+
minutes: "minutes";
|
|
318
|
+
hours: "hours";
|
|
319
|
+
days: "days";
|
|
320
|
+
weeks: "weeks";
|
|
321
|
+
}>;
|
|
322
|
+
span: z.ZodInt;
|
|
323
|
+
timeDifference: z.ZodNumber;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
blockViewer_timeDurationRate: {
|
|
328
|
+
params: {
|
|
329
|
+
to: z.ZodTuple<[z.ZodUnion<readonly [z.ZodObject<{
|
|
330
|
+
minutes: z.ZodNumber;
|
|
331
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
332
|
+
hours: z.ZodNumber;
|
|
333
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
334
|
+
days: z.ZodNumber;
|
|
335
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
336
|
+
weeks: z.ZodNumber;
|
|
337
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
338
|
+
months: z.ZodNumber;
|
|
339
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
340
|
+
years: z.ZodNumber;
|
|
341
|
+
}, z.core.$strip>]>, z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>>, z.ZodOptional<z.ZodEnum<{
|
|
342
|
+
millis: "millis";
|
|
343
|
+
seconds: "seconds";
|
|
344
|
+
minutes: "minutes";
|
|
345
|
+
hours: "hours";
|
|
346
|
+
days: "days";
|
|
347
|
+
weeks: "weeks";
|
|
348
|
+
}>>, z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodNumber>], null>;
|
|
349
|
+
from: z.ZodTuple<[z.ZodObject<{
|
|
350
|
+
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
351
|
+
rate: z.ZodNumber;
|
|
352
|
+
rateUnit: z.ZodEnum<{
|
|
353
|
+
millis: "millis";
|
|
354
|
+
seconds: "seconds";
|
|
355
|
+
minutes: "minutes";
|
|
356
|
+
hours: "hours";
|
|
357
|
+
days: "days";
|
|
358
|
+
weeks: "weeks";
|
|
359
|
+
}>;
|
|
360
|
+
span: z.ZodInt;
|
|
361
|
+
timeDifference: z.ZodNumber;
|
|
362
|
+
}, z.core.$strip>], null>;
|
|
363
|
+
};
|
|
364
|
+
result: {
|
|
365
|
+
to: z.ZodObject<{
|
|
366
|
+
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
367
|
+
rate: z.ZodNumber;
|
|
368
|
+
rateUnit: z.ZodEnum<{
|
|
369
|
+
millis: "millis";
|
|
370
|
+
seconds: "seconds";
|
|
371
|
+
minutes: "minutes";
|
|
372
|
+
hours: "hours";
|
|
373
|
+
days: "days";
|
|
374
|
+
weeks: "weeks";
|
|
375
|
+
}>;
|
|
376
|
+
span: z.ZodInt;
|
|
377
|
+
timeDifference: z.ZodNumber;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
from: z.ZodObject<{
|
|
380
|
+
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
381
|
+
rate: z.ZodNumber;
|
|
382
|
+
rateUnit: z.ZodEnum<{
|
|
383
|
+
millis: "millis";
|
|
384
|
+
seconds: "seconds";
|
|
385
|
+
minutes: "minutes";
|
|
386
|
+
hours: "hours";
|
|
387
|
+
days: "days";
|
|
388
|
+
weeks: "weeks";
|
|
389
|
+
}>;
|
|
282
390
|
span: z.ZodInt;
|
|
283
391
|
timeDifference: z.ZodNumber;
|
|
284
392
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/BlockViewerRpcSchemas.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"BlockViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/BlockViewerRpcSchemas.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEgB,CAAA;AAElD,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA"}
|
|
@@ -1461,12 +1461,28 @@ export declare const XyoViewerRpcSchemas: {
|
|
|
1461
1461
|
to: z.ZodObject<{
|
|
1462
1462
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
1463
1463
|
rate: z.ZodNumber;
|
|
1464
|
+
rateUnit: z.ZodEnum<{
|
|
1465
|
+
millis: "millis";
|
|
1466
|
+
seconds: "seconds";
|
|
1467
|
+
minutes: "minutes";
|
|
1468
|
+
hours: "hours";
|
|
1469
|
+
days: "days";
|
|
1470
|
+
weeks: "weeks";
|
|
1471
|
+
}>;
|
|
1464
1472
|
span: z.ZodInt;
|
|
1465
1473
|
timeDifference: z.ZodNumber;
|
|
1466
1474
|
}, z.core.$strip>;
|
|
1467
1475
|
from: z.ZodObject<{
|
|
1468
1476
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
1469
1477
|
rate: z.ZodNumber;
|
|
1478
|
+
rateUnit: z.ZodEnum<{
|
|
1479
|
+
millis: "millis";
|
|
1480
|
+
seconds: "seconds";
|
|
1481
|
+
minutes: "minutes";
|
|
1482
|
+
hours: "hours";
|
|
1483
|
+
days: "days";
|
|
1484
|
+
weeks: "weeks";
|
|
1485
|
+
}>;
|
|
1470
1486
|
span: z.ZodInt;
|
|
1471
1487
|
timeDifference: z.ZodNumber;
|
|
1472
1488
|
}, z.core.$strip>;
|
|
@@ -1485,6 +1501,14 @@ export declare const XyoViewerRpcSchemas: {
|
|
|
1485
1501
|
from: z.ZodTuple<[z.ZodObject<{
|
|
1486
1502
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
1487
1503
|
rate: z.ZodNumber;
|
|
1504
|
+
rateUnit: z.ZodEnum<{
|
|
1505
|
+
millis: "millis";
|
|
1506
|
+
seconds: "seconds";
|
|
1507
|
+
minutes: "minutes";
|
|
1508
|
+
hours: "hours";
|
|
1509
|
+
days: "days";
|
|
1510
|
+
weeks: "weeks";
|
|
1511
|
+
}>;
|
|
1488
1512
|
span: z.ZodInt;
|
|
1489
1513
|
timeDifference: z.ZodNumber;
|
|
1490
1514
|
}, z.core.$strip>], null>;
|
|
@@ -1493,12 +1517,96 @@ export declare const XyoViewerRpcSchemas: {
|
|
|
1493
1517
|
to: z.ZodObject<{
|
|
1494
1518
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
1495
1519
|
rate: z.ZodNumber;
|
|
1520
|
+
rateUnit: z.ZodEnum<{
|
|
1521
|
+
millis: "millis";
|
|
1522
|
+
seconds: "seconds";
|
|
1523
|
+
minutes: "minutes";
|
|
1524
|
+
hours: "hours";
|
|
1525
|
+
days: "days";
|
|
1526
|
+
weeks: "weeks";
|
|
1527
|
+
}>;
|
|
1496
1528
|
span: z.ZodInt;
|
|
1497
1529
|
timeDifference: z.ZodNumber;
|
|
1498
1530
|
}, z.core.$strip>;
|
|
1499
1531
|
from: z.ZodObject<{
|
|
1500
1532
|
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
1501
1533
|
rate: z.ZodNumber;
|
|
1534
|
+
rateUnit: z.ZodEnum<{
|
|
1535
|
+
millis: "millis";
|
|
1536
|
+
seconds: "seconds";
|
|
1537
|
+
minutes: "minutes";
|
|
1538
|
+
hours: "hours";
|
|
1539
|
+
days: "days";
|
|
1540
|
+
weeks: "weeks";
|
|
1541
|
+
}>;
|
|
1542
|
+
span: z.ZodInt;
|
|
1543
|
+
timeDifference: z.ZodNumber;
|
|
1544
|
+
}, z.core.$strip>;
|
|
1545
|
+
};
|
|
1546
|
+
};
|
|
1547
|
+
xyoViewer_timeDurationRate: {
|
|
1548
|
+
params: {
|
|
1549
|
+
to: z.ZodTuple<[z.ZodUnion<readonly [z.ZodObject<{
|
|
1550
|
+
minutes: z.ZodNumber;
|
|
1551
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1552
|
+
hours: z.ZodNumber;
|
|
1553
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1554
|
+
days: z.ZodNumber;
|
|
1555
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1556
|
+
weeks: z.ZodNumber;
|
|
1557
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1558
|
+
months: z.ZodNumber;
|
|
1559
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1560
|
+
years: z.ZodNumber;
|
|
1561
|
+
}, z.core.$strip>]>, z.ZodOptional<z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>>, z.ZodOptional<z.ZodEnum<{
|
|
1562
|
+
millis: "millis";
|
|
1563
|
+
seconds: "seconds";
|
|
1564
|
+
minutes: "minutes";
|
|
1565
|
+
hours: "hours";
|
|
1566
|
+
days: "days";
|
|
1567
|
+
weeks: "weeks";
|
|
1568
|
+
}>>, z.ZodOptional<z.ZodNumber>, z.ZodOptional<z.ZodNumber>], null>;
|
|
1569
|
+
from: z.ZodTuple<[z.ZodObject<{
|
|
1570
|
+
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
1571
|
+
rate: z.ZodNumber;
|
|
1572
|
+
rateUnit: z.ZodEnum<{
|
|
1573
|
+
millis: "millis";
|
|
1574
|
+
seconds: "seconds";
|
|
1575
|
+
minutes: "minutes";
|
|
1576
|
+
hours: "hours";
|
|
1577
|
+
days: "days";
|
|
1578
|
+
weeks: "weeks";
|
|
1579
|
+
}>;
|
|
1580
|
+
span: z.ZodInt;
|
|
1581
|
+
timeDifference: z.ZodNumber;
|
|
1582
|
+
}, z.core.$strip>], null>;
|
|
1583
|
+
};
|
|
1584
|
+
result: {
|
|
1585
|
+
to: z.ZodObject<{
|
|
1586
|
+
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
1587
|
+
rate: z.ZodNumber;
|
|
1588
|
+
rateUnit: z.ZodEnum<{
|
|
1589
|
+
millis: "millis";
|
|
1590
|
+
seconds: "seconds";
|
|
1591
|
+
minutes: "minutes";
|
|
1592
|
+
hours: "hours";
|
|
1593
|
+
days: "days";
|
|
1594
|
+
weeks: "weeks";
|
|
1595
|
+
}>;
|
|
1596
|
+
span: z.ZodInt;
|
|
1597
|
+
timeDifference: z.ZodNumber;
|
|
1598
|
+
}, z.core.$strip>;
|
|
1599
|
+
from: z.ZodObject<{
|
|
1600
|
+
range: z.ZodTuple<[z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import("@xyo-network/xl1-protocol").XL1BlockNumber, number>>], null>;
|
|
1601
|
+
rate: z.ZodNumber;
|
|
1602
|
+
rateUnit: z.ZodEnum<{
|
|
1603
|
+
millis: "millis";
|
|
1604
|
+
seconds: "seconds";
|
|
1605
|
+
minutes: "minutes";
|
|
1606
|
+
hours: "hours";
|
|
1607
|
+
days: "days";
|
|
1608
|
+
weeks: "weeks";
|
|
1609
|
+
}>;
|
|
1502
1610
|
span: z.ZodInt;
|
|
1503
1611
|
timeDifference: z.ZodNumber;
|
|
1504
1612
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/XyoViewerRpcSchemas.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"XyoViewerRpcSchemas.d.ts","sourceRoot":"","sources":["../../../../src/types/schema/XyoViewerRpcS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BlockViewer.d.ts","sourceRoot":"","sources":["../../../src/engine/rpcMethodHandlersFromBlockViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAEvE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAA;AAErE,eAAO,MAAM,gCAAgC,GAAI,QAAQ,kBAAkB,KAAG,4BAU7E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rpcMethodHandlersFromViewer.d.ts","sourceRoot":"","sources":["../../../src/engine/rpcMethodHandlersFromViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAErE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAEnE,eAAO,MAAM,2BAA2B,GAAI,QAAQ,gBAAgB,KAAG,
|
|
1
|
+
{"version":3,"file":"rpcMethodHandlersFromViewer.d.ts","sourceRoot":"","sources":["../../../src/engine/rpcMethodHandlersFromViewer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAErE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAEnE,eAAO,MAAM,2BAA2B,GAAI,QAAQ,gBAAgB,KAAG,0BAsCtE,CAAA"}
|
package/dist/node/index-node.mjs
CHANGED
|
@@ -30,7 +30,8 @@ var rpcMethodHandlersFromBlockViewer = (viewer) => {
|
|
|
30
30
|
blockViewer_currentBlock: (params) => viewer.currentBlock(...params ?? []),
|
|
31
31
|
blockViewer_payloadsByHash: (params) => viewer.payloadsByHash(...params ?? []),
|
|
32
32
|
blockViewer_rate: (params) => viewer.rate(...params ?? []),
|
|
33
|
-
blockViewer_stepSizeRate: (params) => viewer.stepSizeRate(...params ?? [])
|
|
33
|
+
blockViewer_stepSizeRate: (params) => viewer.stepSizeRate(...params ?? []),
|
|
34
|
+
blockViewer_timeDurationRate: (params) => viewer.timeDurationRate(...params ?? [])
|
|
34
35
|
};
|
|
35
36
|
};
|
|
36
37
|
|
|
@@ -112,7 +113,8 @@ var rpcMethodHandlersFromViewer = (viewer) => {
|
|
|
112
113
|
xyoViewer_transactionByHash: (params) => viewer.transactionByHash(...params ?? []),
|
|
113
114
|
xyoViewer_payloadsByHash: (params) => viewer.payloadsByHash(...params ?? []),
|
|
114
115
|
xyoViewer_rate: (params) => viewer.rate(...params ?? []),
|
|
115
|
-
xyoViewer_stepSizeRate: (params) => viewer.stepSizeRate(...params ?? [])
|
|
116
|
+
xyoViewer_stepSizeRate: (params) => viewer.stepSizeRate(...params ?? []),
|
|
117
|
+
xyoViewer_timeDurationRate: (params) => viewer.timeDurationRate(...params ?? [])
|
|
116
118
|
};
|
|
117
119
|
};
|
|
118
120
|
|
|
@@ -276,6 +278,7 @@ import {
|
|
|
276
278
|
BlockRateZod,
|
|
277
279
|
CountZod,
|
|
278
280
|
SignedHydratedBlockWithHashMetaZod,
|
|
281
|
+
SingleTimeConfigZod,
|
|
279
282
|
StepIndexZod,
|
|
280
283
|
TimeDurationsZod,
|
|
281
284
|
XL1BlockNumberZod
|
|
@@ -341,6 +344,16 @@ var BlockViewerRpcSchemas = {
|
|
|
341
344
|
to: BlockRateZod,
|
|
342
345
|
from: BlockRateZod
|
|
343
346
|
}
|
|
347
|
+
},
|
|
348
|
+
blockViewer_timeDurationRate: {
|
|
349
|
+
params: {
|
|
350
|
+
to: z2.tuple([SingleTimeConfigZod, XL1BlockNumberZod.optional(), TimeDurationsZod.keyof().optional(), z2.number().optional(), z2.number().optional()]),
|
|
351
|
+
from: z2.tuple([BlockRateZod])
|
|
352
|
+
},
|
|
353
|
+
result: {
|
|
354
|
+
to: BlockRateZod,
|
|
355
|
+
from: BlockRateZod
|
|
356
|
+
}
|
|
344
357
|
}
|
|
345
358
|
};
|
|
346
359
|
|
|
@@ -1003,6 +1016,7 @@ import {
|
|
|
1003
1016
|
JsonToStakeZod as JsonToStakeZod2,
|
|
1004
1017
|
SignedHydratedBlockWithHashMetaZod as SignedHydratedBlockWithHashMetaZod3,
|
|
1005
1018
|
SignedHydratedTransactionZod as SignedHydratedTransactionZod3,
|
|
1019
|
+
SingleTimeConfigZod as SingleTimeConfigZod2,
|
|
1006
1020
|
StakeToJsonZod as StakeToJsonZod2,
|
|
1007
1021
|
StepIdentityZod as StepIdentityZod2,
|
|
1008
1022
|
StepIndexZod as StepIndexZod2,
|
|
@@ -1352,6 +1366,16 @@ var XyoViewerRpcSchemas = {
|
|
|
1352
1366
|
to: BlockRateZod2,
|
|
1353
1367
|
from: BlockRateZod2
|
|
1354
1368
|
}
|
|
1369
|
+
},
|
|
1370
|
+
xyoViewer_timeDurationRate: {
|
|
1371
|
+
params: {
|
|
1372
|
+
to: z17.tuple([SingleTimeConfigZod2, XL1BlockNumberZod2.optional(), TimeDurationsZod2.keyof().optional(), z17.number().optional(), z17.number().optional()]),
|
|
1373
|
+
from: z17.tuple([BlockRateZod2])
|
|
1374
|
+
},
|
|
1375
|
+
result: {
|
|
1376
|
+
to: BlockRateZod2,
|
|
1377
|
+
from: BlockRateZod2
|
|
1378
|
+
}
|
|
1355
1379
|
}
|
|
1356
1380
|
};
|
|
1357
1381
|
|
|
@@ -1669,6 +1693,12 @@ var JsonRpcBlockViewerMethods = class extends AbstractJsonRpcViewer {
|
|
|
1669
1693
|
[start, stepSizeIndex, count, timeUnit]
|
|
1670
1694
|
);
|
|
1671
1695
|
}
|
|
1696
|
+
async timeDurationRate(timeConfig, startBlockNumber, timeUnit, toleranceMs, maxAttempts) {
|
|
1697
|
+
return await this.transport.sendRequest(
|
|
1698
|
+
"blockViewer_timeDurationRate",
|
|
1699
|
+
[timeConfig, startBlockNumber, timeUnit, toleranceMs, maxAttempts]
|
|
1700
|
+
);
|
|
1701
|
+
}
|
|
1672
1702
|
schemas() {
|
|
1673
1703
|
return BlockViewerRpcSchemas;
|
|
1674
1704
|
}
|
|
@@ -2089,6 +2119,9 @@ var JsonRpcXyoViewer = class extends AbstractJsonRpcViewer {
|
|
|
2089
2119
|
async stepSizeRate(start, stepIndex, count, timeUnit) {
|
|
2090
2120
|
return await this.block.stepSizeRate(start, stepIndex, count, timeUnit);
|
|
2091
2121
|
}
|
|
2122
|
+
async timeDurationRate(timeConfig, startBlockNumber, timeUnit, toleranceMs, maxAttempts) {
|
|
2123
|
+
return await this.block.timeDurationRate(timeConfig, startBlockNumber, timeUnit, toleranceMs, maxAttempts);
|
|
2124
|
+
}
|
|
2092
2125
|
async transactionByBlockHashAndIndex(blockHash, transactionIndex) {
|
|
2093
2126
|
return await this.transport.sendRequest("xyoViewer_transactionByBlockHashAndIndex", [blockHash, transactionIndex]);
|
|
2094
2127
|
}
|