@xyo-network/xl1-rpc 1.16.9 → 1.16.10
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/rpcMethodHandlersFromViewer.d.ts.map +1 -1
- package/dist/neutral/engine-node/rpcEngineFromConnection.d.ts.map +1 -1
- package/dist/neutral/index.mjs +595 -514
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewer.d.ts +8 -0
- package/dist/neutral/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewer.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewerMethods.d.ts +13 -0
- package/dist/neutral/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewerMethods.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcTimeSyncViewer/index.d.ts +3 -0
- package/dist/neutral/provider/viewer/JsonRpcTimeSyncViewer/index.d.ts.map +1 -0
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +2 -3
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/index.d.ts +1 -0
- package/dist/neutral/provider/viewer/index.d.ts.map +1 -1
- package/dist/neutral/types/{XyoDataLakeViewerRpc.d.ts → DataLakeViewerRpc.d.ts} +1 -1
- package/dist/neutral/types/DataLakeViewerRpc.d.ts.map +1 -0
- package/dist/neutral/types/TimeSyncViewerRpc.d.ts +10 -0
- package/dist/neutral/types/TimeSyncViewerRpc.d.ts.map +1 -0
- package/dist/neutral/types/index.d.ts +2 -0
- package/dist/neutral/types/index.d.ts.map +1 -1
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts +194 -568
- package/dist/neutral/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/RewardsByPositionViewerRpcSchemas.d.ts +20 -40
- package/dist/neutral/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/RewardsByStakerViewerRpcSchemas.d.ts +30 -70
- package/dist/neutral/types/schema/RewardsByStakerViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/RewardsByStepViewerRpcSchemas.d.ts +30 -70
- package/dist/neutral/types/schema/RewardsByStepViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/RewardsTotalViewerRpcSchemas.d.ts +20 -40
- package/dist/neutral/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/StepViewerRpcSchemas.d.ts +28 -60
- package/dist/neutral/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/TimeSyncViewerRpcSchema.d.ts +58 -0
- package/dist/neutral/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -0
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts +4 -12
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts +12 -36
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +178 -520
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts +4 -12
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/BoundWitness.d.ts +18 -54
- package/dist/neutral/types/schema/common/BoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts +10 -30
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts +14 -42
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/RewardsRangeOptions.d.ts +2 -4
- package/dist/neutral/types/schema/common/RewardsRangeOptions.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/Stake.d.ts +14 -42
- package/dist/neutral/types/schema/common/Stake.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/TimeDomain.d.ts +3 -0
- package/dist/neutral/types/schema/common/TimeDomain.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts +4 -12
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/TransferPair.d.ts +1 -5
- package/dist/neutral/types/schema/common/TransferPair.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/index.d.ts +1 -3
- package/dist/neutral/types/schema/common/index.d.ts.map +1 -1
- package/dist/neutral/types/schema/index.d.ts +1 -0
- package/dist/neutral/types/schema/index.d.ts.map +1 -1
- package/dist/node/engine/rpcMethodHandlersFromViewer.d.ts.map +1 -1
- package/dist/node/engine-node/rpcEngineFromConnection.d.ts.map +1 -1
- package/dist/node/index-node.mjs +603 -516
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewer.d.ts +8 -0
- package/dist/node/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewer.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewerMethods.d.ts +13 -0
- package/dist/node/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewerMethods.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcTimeSyncViewer/index.d.ts +3 -0
- package/dist/node/provider/viewer/JsonRpcTimeSyncViewer/index.d.ts.map +1 -0
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +2 -3
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/provider/viewer/index.d.ts +1 -0
- package/dist/node/provider/viewer/index.d.ts.map +1 -1
- package/dist/node/types/{XyoDataLakeViewerRpc.d.ts → DataLakeViewerRpc.d.ts} +1 -1
- package/dist/node/types/DataLakeViewerRpc.d.ts.map +1 -0
- package/dist/node/types/TimeSyncViewerRpc.d.ts +10 -0
- package/dist/node/types/TimeSyncViewerRpc.d.ts.map +1 -0
- package/dist/node/types/index.d.ts +2 -0
- package/dist/node/types/index.d.ts.map +1 -1
- package/dist/node/types/schema/AllRpcSchemas.d.ts +194 -568
- package/dist/node/types/schema/AllRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/RewardsByPositionViewerRpcSchemas.d.ts +20 -40
- package/dist/node/types/schema/RewardsByPositionViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/RewardsByStakerViewerRpcSchemas.d.ts +30 -70
- package/dist/node/types/schema/RewardsByStakerViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/RewardsByStepViewerRpcSchemas.d.ts +30 -70
- package/dist/node/types/schema/RewardsByStepViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/RewardsTotalViewerRpcSchemas.d.ts +20 -40
- package/dist/node/types/schema/RewardsTotalViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/StepViewerRpcSchemas.d.ts +28 -60
- package/dist/node/types/schema/StepViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/TimeSyncViewerRpcSchema.d.ts +58 -0
- package/dist/node/types/schema/TimeSyncViewerRpcSchema.d.ts.map +1 -0
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts +4 -12
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts +12 -36
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +178 -520
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts +4 -12
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/BoundWitness.d.ts +18 -54
- package/dist/node/types/schema/common/BoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/HydratedBlock.d.ts +10 -30
- package/dist/node/types/schema/common/HydratedBlock.d.ts.map +1 -1
- package/dist/node/types/schema/common/HydratedTransaction.d.ts +14 -42
- package/dist/node/types/schema/common/HydratedTransaction.d.ts.map +1 -1
- package/dist/node/types/schema/common/RewardsRangeOptions.d.ts +2 -4
- package/dist/node/types/schema/common/RewardsRangeOptions.d.ts.map +1 -1
- package/dist/node/types/schema/common/Stake.d.ts +14 -42
- package/dist/node/types/schema/common/Stake.d.ts.map +1 -1
- package/dist/node/types/schema/common/TimeDomain.d.ts +3 -0
- package/dist/node/types/schema/common/TimeDomain.d.ts.map +1 -0
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts +4 -12
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/node/types/schema/common/TransferPair.d.ts +1 -5
- package/dist/node/types/schema/common/TransferPair.d.ts.map +1 -1
- package/dist/node/types/schema/common/index.d.ts +1 -3
- package/dist/node/types/schema/common/index.d.ts.map +1 -1
- package/dist/node/types/schema/index.d.ts +1 -0
- package/dist/node/types/schema/index.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/engine/rpcMethodHandlersFromViewer.ts +0 -1
- package/src/engine-node/rpcEngineFromConnection.ts +9 -3
- package/src/provider/runner/NodeXyoRunner.ts +2 -2
- package/src/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewer.ts +11 -0
- package/src/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewerMethods.ts +32 -0
- package/src/provider/viewer/JsonRpcTimeSyncViewer/index.ts +2 -0
- package/src/provider/viewer/JsonRpcXyoViewer.ts +11 -20
- package/src/provider/viewer/index.ts +1 -0
- package/src/types/TimeSyncViewerRpc.ts +16 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema/DataLakeViewerRpcSchema.ts +1 -1
- package/src/types/schema/RewardsByStakerViewerRpcSchemas.ts +4 -2
- package/src/types/schema/RewardsByStepViewerRpcSchemas.ts +4 -2
- package/src/types/schema/StepViewerRpcSchemas.ts +2 -3
- package/src/types/schema/TimeSyncViewerRpcSchema.ts +49 -0
- package/src/types/schema/XyoSignerRpcSchemas.ts +1 -1
- package/src/types/schema/XyoViewerRpcSchemas.ts +2 -13
- package/src/types/schema/common/BoundWitness.ts +3 -3
- package/src/types/schema/common/RewardsRangeOptions.ts +2 -4
- package/src/types/schema/common/Stake.ts +1 -2
- package/src/types/schema/common/TimeDomain.ts +7 -0
- package/src/types/schema/common/TransferPair.ts +1 -2
- package/src/types/schema/common/index.ts +1 -3
- package/src/types/schema/index.ts +1 -0
- package/dist/neutral/types/XyoDataLakeViewerRpc.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/Address.d.ts +0 -5
- package/dist/neutral/types/schema/common/Address.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/StepIdentity.d.ts +0 -9
- package/dist/neutral/types/schema/common/StepIdentity.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/Transfer.d.ts +0 -28
- package/dist/neutral/types/schema/common/Transfer.d.ts.map +0 -1
- package/dist/node/types/XyoDataLakeViewerRpc.d.ts.map +0 -1
- package/dist/node/types/schema/common/Address.d.ts +0 -5
- package/dist/node/types/schema/common/Address.d.ts.map +0 -1
- package/dist/node/types/schema/common/StepIdentity.d.ts +0 -9
- package/dist/node/types/schema/common/StepIdentity.d.ts.map +0 -1
- package/dist/node/types/schema/common/Transfer.d.ts +0 -28
- package/dist/node/types/schema/common/Transfer.d.ts.map +0 -1
- package/src/types/schema/common/Address.ts +0 -5
- package/src/types/schema/common/StepIdentity.ts +0 -9
- package/src/types/schema/common/Transfer.ts +0 -18
- /package/src/types/{XyoDataLakeViewerRpc.ts → DataLakeViewerRpc.ts} +0 -0
package/dist/node/index-node.mjs
CHANGED
|
@@ -58,7 +58,6 @@ var rpcMethodHandlersFromViewer = /* @__PURE__ */ __name((viewer) => {
|
|
|
58
58
|
xyoViewer_stakeByStaker: /* @__PURE__ */ __name((params) => viewer.stakeByStaker(...params ?? []), "xyoViewer_stakeByStaker"),
|
|
59
59
|
xyoViewer_stakesByStaked: /* @__PURE__ */ __name((params) => viewer.stakesByStaked(...params ?? []), "xyoViewer_stakesByStaked"),
|
|
60
60
|
xyoViewer_stakesByStaker: /* @__PURE__ */ __name((params) => viewer.stakesByStaker(...params ?? []), "xyoViewer_stakesByStaker"),
|
|
61
|
-
xyoViewer_stakedByStaker: /* @__PURE__ */ __name((params) => viewer.stakedByStaker(...params ?? []), "xyoViewer_stakedByStaker"),
|
|
62
61
|
xyoViewer_transactionByBlockHashAndIndex: /* @__PURE__ */ __name((params) => viewer.transactionByBlockHashAndIndex(...params ?? []), "xyoViewer_transactionByBlockHashAndIndex"),
|
|
63
62
|
xyoViewer_transactionByBlockNumberAndIndex: /* @__PURE__ */ __name((params) => viewer.transactionByBlockNumberAndIndex(...params ?? []), "xyoViewer_transactionByBlockNumberAndIndex"),
|
|
64
63
|
xyoViewer_transactionByHash: /* @__PURE__ */ __name((params) => viewer.transactionByHash(...params ?? []), "xyoViewer_transactionByHash"),
|
|
@@ -117,6 +116,9 @@ var rpcMethodHandlersFromSigner = /* @__PURE__ */ __name((signer) => {
|
|
|
117
116
|
// src/engine-node/rpcEngineFromConnection.ts
|
|
118
117
|
import { createAsyncMiddleware, JsonRpcEngine } from "@metamask/json-rpc-engine";
|
|
119
118
|
|
|
119
|
+
// src/types/DataLakeViewerRpc.ts
|
|
120
|
+
var DataLakeViewerRpcNamespace = "dataLakeViewer";
|
|
121
|
+
|
|
120
122
|
// src/types/ErrorCodes.ts
|
|
121
123
|
var JsonRpcErrorCodes = {
|
|
122
124
|
InternalError: {
|
|
@@ -190,15 +192,10 @@ var NetworkStakeViewerRpcSchemas = {
|
|
|
190
192
|
};
|
|
191
193
|
|
|
192
194
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
193
|
-
import * as
|
|
194
|
-
|
|
195
|
-
// src/types/schema/common/Address.ts
|
|
196
|
-
import { AddressRegEx, toAddress } from "@xylabs/hex";
|
|
197
|
-
import * as z2 from "zod";
|
|
198
|
-
var AddressZod = z2.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
|
|
195
|
+
import * as z17 from "zod";
|
|
199
196
|
|
|
200
197
|
// src/types/schema/common/ArrayBuffer.ts
|
|
201
|
-
import * as
|
|
198
|
+
import * as z2 from "zod";
|
|
202
199
|
function base64Encode(u8) {
|
|
203
200
|
if (typeof Buffer !== "undefined" && typeof Buffer.from === "function") {
|
|
204
201
|
return Buffer.from(u8).toString("base64");
|
|
@@ -221,11 +218,11 @@ function base64Decode(b64) {
|
|
|
221
218
|
return u8;
|
|
222
219
|
}
|
|
223
220
|
__name(base64Decode, "base64Decode");
|
|
224
|
-
var ArrayBufferToJsonZod =
|
|
221
|
+
var ArrayBufferToJsonZod = z2.instanceof(ArrayBuffer).transform((x) => {
|
|
225
222
|
const u8 = new Uint8Array(x);
|
|
226
223
|
return base64Encode(u8);
|
|
227
224
|
});
|
|
228
|
-
var JsonToArrayBufferZod =
|
|
225
|
+
var JsonToArrayBufferZod = z2.string().transform((x) => {
|
|
229
226
|
const u8 = base64Decode(x);
|
|
230
227
|
return u8.buffer;
|
|
231
228
|
});
|
|
@@ -234,112 +231,112 @@ var JsonToArrayBufferZod = z3.string().transform((x) => {
|
|
|
234
231
|
import { HashZod as HashZod2 } from "@xylabs/hex";
|
|
235
232
|
import { StorageMetaZod as StorageMetaZod2 } from "@xyo-network/payload-model";
|
|
236
233
|
import { XL1BlockNumberZod } from "@xyo-network/xl1-protocol";
|
|
237
|
-
import * as
|
|
234
|
+
import * as z5 from "zod";
|
|
238
235
|
|
|
239
236
|
// src/types/schema/common/BoundWitness.ts
|
|
240
|
-
import { HashZod, HexZod } from "@xylabs/hex";
|
|
237
|
+
import { AddressZod, HashZod, HexZod } from "@xylabs/hex";
|
|
241
238
|
import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
242
239
|
import { PayloadZod, SchemaZod, StorageMetaZod } from "@xyo-network/payload-model";
|
|
243
|
-
import * as
|
|
244
|
-
var BoundWitnessRequiredFieldsZod =
|
|
245
|
-
addresses:
|
|
246
|
-
payload_hashes:
|
|
247
|
-
payload_schemas:
|
|
248
|
-
previous_hashes:
|
|
240
|
+
import * as z3 from "zod";
|
|
241
|
+
var BoundWitnessRequiredFieldsZod = z3.object({
|
|
242
|
+
addresses: z3.array(AddressZod),
|
|
243
|
+
payload_hashes: z3.array(HashZod),
|
|
244
|
+
payload_schemas: z3.array(SchemaZod),
|
|
245
|
+
previous_hashes: z3.array(HashZod.nullable())
|
|
249
246
|
});
|
|
250
|
-
var BoundWitnessMetaZod =
|
|
247
|
+
var BoundWitnessMetaZod = z3.object({
|
|
251
248
|
$destination: AddressZod.optional(),
|
|
252
249
|
$sourceQuery: HashZod.optional(),
|
|
253
|
-
$signatures:
|
|
250
|
+
$signatures: z3.array(z3.union([
|
|
254
251
|
HexZod,
|
|
255
|
-
|
|
252
|
+
z3.null()
|
|
256
253
|
]))
|
|
257
254
|
});
|
|
258
255
|
var BoundWitnessZod = PayloadZod.extend({
|
|
259
|
-
schema:
|
|
256
|
+
schema: z3.literal(BoundWitnessSchema)
|
|
260
257
|
}).extend(BoundWitnessRequiredFieldsZod.shape).extend(BoundWitnessMetaZod.shape).refine((data) => data.$signatures.length === data.addresses.length, {
|
|
261
258
|
message: "$signatures length must equal addresses length"
|
|
262
259
|
});
|
|
263
|
-
var AnyBoundWitnessZod = BoundWitnessZod.catchall(
|
|
260
|
+
var AnyBoundWitnessZod = BoundWitnessZod.catchall(z3.any());
|
|
264
261
|
var UnsignedBoundWitnessZod = BoundWitnessZod.refine((data) => data.$signatures.includes(null), {
|
|
265
262
|
message: "all $signatures must be null"
|
|
266
263
|
});
|
|
267
|
-
var AnyUnsignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(
|
|
264
|
+
var AnyUnsignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z3.any());
|
|
268
265
|
var UnsignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessZod.safeExtend(BoundWitnessRequiredFieldsZod.shape).safeExtend(BoundWitnessMetaZod.shape).safeExtend(StorageMetaZod.shape);
|
|
269
266
|
var SignedBoundWitnessZod = BoundWitnessZod.refine((data) => !data.$signatures.includes(null), {
|
|
270
267
|
message: "all $signatures must not be null"
|
|
271
268
|
});
|
|
272
269
|
var SignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod;
|
|
273
|
-
var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(
|
|
274
|
-
var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(
|
|
270
|
+
var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z3.any());
|
|
271
|
+
var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(z3.any());
|
|
275
272
|
|
|
276
273
|
// src/types/schema/common/Chain.ts
|
|
277
|
-
import { AddressRegEx
|
|
278
|
-
import * as
|
|
279
|
-
var ChainZod =
|
|
274
|
+
import { AddressRegEx, toAddress } from "@xylabs/hex";
|
|
275
|
+
import * as z4 from "zod";
|
|
276
|
+
var ChainZod = z4.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
|
|
280
277
|
|
|
281
278
|
// src/types/schema/common/BlockBoundWitness.ts
|
|
282
|
-
var BlockBoundWitnessFieldsZod =
|
|
279
|
+
var BlockBoundWitnessFieldsZod = z5.object({
|
|
283
280
|
block: XL1BlockNumberZod,
|
|
284
281
|
chain: ChainZod,
|
|
285
282
|
previous: HashZod2.nullable(),
|
|
286
|
-
protocol:
|
|
287
|
-
step_hashes:
|
|
283
|
+
protocol: z5.number(),
|
|
284
|
+
step_hashes: z5.array(HashZod2).optional()
|
|
288
285
|
});
|
|
289
|
-
var BlockBoundWitnessMetaZod =
|
|
290
|
-
$epoch:
|
|
286
|
+
var BlockBoundWitnessMetaZod = z5.object({
|
|
287
|
+
$epoch: z5.number()
|
|
291
288
|
});
|
|
292
289
|
var BlockBoundWitnessZod = UnsignedBoundWitnessZod.merge(StorageMetaZod2.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
293
290
|
var SignedBlockBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod2.partial()).merge(BlockBoundWitnessFieldsZod).merge(BlockBoundWitnessMetaZod);
|
|
294
291
|
|
|
295
292
|
// src/types/schema/common/HydratedBlock.ts
|
|
296
293
|
import { PayloadZodLoose, WithStorageMetaZod } from "@xyo-network/payload-model";
|
|
297
|
-
import * as
|
|
298
|
-
var HydratedBlockZod =
|
|
294
|
+
import * as z6 from "zod";
|
|
295
|
+
var HydratedBlockZod = z6.tuple([
|
|
299
296
|
BlockBoundWitnessZod,
|
|
300
|
-
|
|
297
|
+
z6.array(PayloadZodLoose)
|
|
301
298
|
]);
|
|
302
|
-
var HydratedBlockWithStorageMetaZod =
|
|
299
|
+
var HydratedBlockWithStorageMetaZod = z6.tuple([
|
|
303
300
|
WithStorageMetaZod(BlockBoundWitnessZod),
|
|
304
|
-
|
|
301
|
+
z6.array(WithStorageMetaZod(PayloadZodLoose))
|
|
305
302
|
]);
|
|
306
|
-
var SignedHydratedBlockZod =
|
|
303
|
+
var SignedHydratedBlockZod = z6.tuple([
|
|
307
304
|
SignedBlockBoundWitnessZod,
|
|
308
|
-
|
|
305
|
+
z6.array(PayloadZodLoose)
|
|
309
306
|
]);
|
|
310
|
-
var SignedHydratedBlockToJsonZod =
|
|
307
|
+
var SignedHydratedBlockToJsonZod = z6.tuple([
|
|
311
308
|
SignedBlockBoundWitnessZod,
|
|
312
|
-
|
|
309
|
+
z6.array(PayloadZodLoose)
|
|
313
310
|
]);
|
|
314
|
-
var SignedHydratedBlockWithStorageMetaZod =
|
|
311
|
+
var SignedHydratedBlockWithStorageMetaZod = z6.tuple([
|
|
315
312
|
WithStorageMetaZod(SignedBlockBoundWitnessZod),
|
|
316
|
-
|
|
313
|
+
z6.array(WithStorageMetaZod(PayloadZodLoose))
|
|
317
314
|
]);
|
|
318
315
|
|
|
319
316
|
// src/types/schema/common/HydratedTransaction.ts
|
|
320
317
|
import { asAnyPayload, PayloadZodLoose as PayloadZodLoose2 } from "@xyo-network/payload-model";
|
|
321
318
|
import { asSignedHydratedTransaction } from "@xyo-network/xl1-protocol";
|
|
322
|
-
import * as
|
|
319
|
+
import * as z9 from "zod";
|
|
323
320
|
|
|
324
321
|
// src/types/schema/common/TransactionBoundWitness.ts
|
|
325
322
|
import { StorageMetaZod as StorageMetaZod3 } from "@xyo-network/payload-model";
|
|
326
323
|
import { BlockNumberZod as BlockNumberZod2 } from "@xyo-network/xl1-protocol";
|
|
327
|
-
import * as
|
|
324
|
+
import * as z8 from "zod";
|
|
328
325
|
|
|
329
326
|
// src/types/schema/common/TransactionFees.ts
|
|
330
327
|
import { BigIntToJsonZod as BigIntToJsonZod2, HexZod as HexZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/hex";
|
|
331
328
|
import { asAttoXL1 } from "@xyo-network/xl1-protocol";
|
|
332
|
-
import * as
|
|
333
|
-
var AttoZod =
|
|
329
|
+
import * as z7 from "zod";
|
|
330
|
+
var AttoZod = z7.bigint();
|
|
334
331
|
var JsonToAttoZod = JsonToBigIntZod2.transform((v) => asAttoXL1(v));
|
|
335
332
|
var AttoToJsonZod = BigIntToJsonZod2;
|
|
336
|
-
var TransactionFeesHexZod =
|
|
333
|
+
var TransactionFeesHexZod = z7.object({
|
|
337
334
|
base: HexZod2,
|
|
338
335
|
gasLimit: HexZod2,
|
|
339
336
|
gasPrice: HexZod2,
|
|
340
337
|
priority: HexZod2
|
|
341
338
|
});
|
|
342
|
-
var TransactionFeesBigIntZod =
|
|
339
|
+
var TransactionFeesBigIntZod = z7.object({
|
|
343
340
|
base: AttoZod,
|
|
344
341
|
gasLimit: AttoZod,
|
|
345
342
|
gasPrice: AttoZod,
|
|
@@ -359,23 +356,23 @@ var TransactionFeesBigIntToJsonZod = TransactionFeesBigIntZod.transform((val) =>
|
|
|
359
356
|
}));
|
|
360
357
|
|
|
361
358
|
// src/types/schema/common/TransactionBoundWitness.ts
|
|
362
|
-
var BlockStartZod =
|
|
359
|
+
var BlockStartZod = z8.object({
|
|
363
360
|
nbf: BlockNumberZod2
|
|
364
361
|
});
|
|
365
|
-
var BlockEndZod =
|
|
362
|
+
var BlockEndZod = z8.object({
|
|
366
363
|
exp: BlockNumberZod2
|
|
367
364
|
});
|
|
368
|
-
var BlockDurationZod =
|
|
365
|
+
var BlockDurationZod = z8.object({
|
|
369
366
|
nbf: BlockNumberZod2,
|
|
370
367
|
exp: BlockNumberZod2
|
|
371
368
|
});
|
|
372
|
-
var BlockScriptsZod =
|
|
373
|
-
script:
|
|
369
|
+
var BlockScriptsZod = z8.object({
|
|
370
|
+
script: z8.array(z8.string()).optional()
|
|
374
371
|
});
|
|
375
|
-
var WithTransactionFeesZod =
|
|
372
|
+
var WithTransactionFeesZod = z8.object({
|
|
376
373
|
fees: TransactionFeesHexZod
|
|
377
374
|
});
|
|
378
|
-
var TransactionBoundWitnessFields =
|
|
375
|
+
var TransactionBoundWitnessFields = z8.object({
|
|
379
376
|
chain: ChainZod,
|
|
380
377
|
from: ChainZod
|
|
381
378
|
});
|
|
@@ -383,17 +380,17 @@ var TransactionBoundWitnessZod = UnsignedBoundWitnessZod.merge(StorageMetaZod3.p
|
|
|
383
380
|
var SignedTransactionBoundWitnessZod = SignedBoundWitnessZod.merge(StorageMetaZod3.partial()).merge(BlockDurationZod).merge(WithTransactionFeesZod).merge(TransactionBoundWitnessFields).merge(BlockScriptsZod.partial());
|
|
384
381
|
|
|
385
382
|
// src/types/schema/common/HydratedTransaction.ts
|
|
386
|
-
var HydratedTransactionZod =
|
|
383
|
+
var HydratedTransactionZod = z9.tuple([
|
|
387
384
|
TransactionBoundWitnessZod,
|
|
388
|
-
|
|
385
|
+
z9.array(PayloadZodLoose2)
|
|
389
386
|
]);
|
|
390
|
-
var UnsignedHydratedTransactionZod =
|
|
387
|
+
var UnsignedHydratedTransactionZod = z9.tuple([
|
|
391
388
|
TransactionBoundWitnessZod,
|
|
392
|
-
|
|
389
|
+
z9.array(PayloadZodLoose2)
|
|
393
390
|
]);
|
|
394
|
-
var SignedHydratedTransactionZod =
|
|
391
|
+
var SignedHydratedTransactionZod = z9.tuple([
|
|
395
392
|
SignedTransactionBoundWitnessZod,
|
|
396
|
-
|
|
393
|
+
z9.array(PayloadZodLoose2)
|
|
397
394
|
]);
|
|
398
395
|
var SignedHydratedTransactionToJsonZod = SignedHydratedTransactionZod.transform(([tx, payloads]) => asSignedHydratedTransaction([
|
|
399
396
|
tx,
|
|
@@ -405,107 +402,99 @@ var JsonToSignedHydratedTransactionZod = SignedHydratedTransactionZod.transform(
|
|
|
405
402
|
]);
|
|
406
403
|
|
|
407
404
|
// src/types/schema/common/Json.ts
|
|
408
|
-
import * as
|
|
409
|
-
var JsonValueZod =
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
405
|
+
import * as z10 from "zod";
|
|
406
|
+
var JsonValueZod = z10.lazy(() => z10.union([
|
|
407
|
+
z10.string(),
|
|
408
|
+
z10.number(),
|
|
409
|
+
z10.boolean(),
|
|
410
|
+
z10.null(),
|
|
411
|
+
z10.array(JsonValueZod),
|
|
412
|
+
z10.record(z10.string(), JsonValueZod)
|
|
416
413
|
]));
|
|
417
|
-
var JsonObjectZod =
|
|
414
|
+
var JsonObjectZod = z10.record(z10.string(), JsonValueZod);
|
|
418
415
|
|
|
419
416
|
// src/types/schema/common/Permission.ts
|
|
420
|
-
import { z as
|
|
421
|
-
var CaveatTypesZod =
|
|
417
|
+
import { z as z11 } from "zod";
|
|
418
|
+
var CaveatTypesZod = z11.enum([
|
|
422
419
|
"chain",
|
|
423
420
|
"expiration",
|
|
424
421
|
"filteredResponse",
|
|
425
422
|
"rateLimit",
|
|
426
423
|
"restrictReturnedAccounts"
|
|
427
424
|
]);
|
|
428
|
-
var CaveatsZod =
|
|
425
|
+
var CaveatsZod = z11.object({
|
|
429
426
|
type: CaveatTypesZod,
|
|
430
|
-
value:
|
|
427
|
+
value: z11.json()
|
|
431
428
|
});
|
|
432
|
-
var PermissionZod =
|
|
433
|
-
parentCapability:
|
|
429
|
+
var PermissionZod = z11.object({
|
|
430
|
+
parentCapability: z11.string(),
|
|
434
431
|
caveats: CaveatsZod.array().optional(),
|
|
435
|
-
invoker:
|
|
432
|
+
invoker: z11.string()
|
|
436
433
|
});
|
|
437
434
|
var InvokerPermissionZod = PermissionZod.extend({
|
|
438
|
-
date:
|
|
435
|
+
date: z11.number().optional()
|
|
439
436
|
});
|
|
440
|
-
var PermissionRequestZod =
|
|
441
|
-
var RequestedPermissionZod =
|
|
442
|
-
parentCapability:
|
|
443
|
-
date:
|
|
437
|
+
var PermissionRequestZod = z11.record(z11.string(), z11.record(z11.string(), z11.any()));
|
|
438
|
+
var RequestedPermissionZod = z11.object({
|
|
439
|
+
parentCapability: z11.string(),
|
|
440
|
+
date: z11.number().optional()
|
|
444
441
|
});
|
|
445
442
|
|
|
446
443
|
// src/types/schema/common/RewardsRangeOptions.ts
|
|
447
|
-
import {
|
|
448
|
-
import {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
var StepIdentityZod = z13.object({
|
|
453
|
-
block: z13.number(),
|
|
454
|
-
step: z13.number()
|
|
455
|
-
});
|
|
456
|
-
|
|
457
|
-
// src/types/schema/common/RewardsRangeOptions.ts
|
|
458
|
-
var RewardsRangeOptionsZod = z14.object({
|
|
459
|
-
positions: z14.array(z14.number()).optional(),
|
|
444
|
+
import { AddressZod as AddressZod2 } from "@xylabs/hex";
|
|
445
|
+
import { BlockRangeZod, StepIdentityZod } from "@xyo-network/xl1-protocol";
|
|
446
|
+
import { z as z12 } from "zod";
|
|
447
|
+
var RewardsRangeOptionsZod = z12.object({
|
|
448
|
+
positions: z12.array(z12.number()).optional(),
|
|
460
449
|
range: BlockRangeZod.optional(),
|
|
461
|
-
steps:
|
|
462
|
-
stakers:
|
|
450
|
+
steps: z12.array(StepIdentityZod).optional(),
|
|
451
|
+
stakers: z12.array(AddressZod2).optional()
|
|
463
452
|
});
|
|
464
453
|
|
|
465
454
|
// src/types/schema/common/Sequence.ts
|
|
466
455
|
import { HexRegExMinMax, toHex } from "@xylabs/hex";
|
|
467
456
|
import { SequenceConstants } from "@xyo-network/payload-model";
|
|
468
|
-
import * as
|
|
457
|
+
import * as z13 from "zod";
|
|
469
458
|
var LocalSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.localSequenceBytes, SequenceConstants.localSequenceBytes));
|
|
470
|
-
var LocalSequenceToStringZod =
|
|
471
|
-
var LocalSequenceFromStringZod =
|
|
459
|
+
var LocalSequenceToStringZod = z13.string().regex(LocalSequenceRegex);
|
|
460
|
+
var LocalSequenceFromStringZod = z13.string().regex(LocalSequenceRegex).transform((v) => toHex(v));
|
|
472
461
|
var QualifiedSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.qualifiedSequenceBytes, SequenceConstants.qualifiedSequenceBytes));
|
|
473
|
-
var QualifiedSequenceToStringZod =
|
|
474
|
-
var QualifiedSequenceFromStringZod =
|
|
475
|
-
var SequenceToStringZod =
|
|
462
|
+
var QualifiedSequenceToStringZod = z13.string().regex(QualifiedSequenceRegex);
|
|
463
|
+
var QualifiedSequenceFromStringZod = z13.string().regex(QualifiedSequenceRegex).transform((v) => toHex(v));
|
|
464
|
+
var SequenceToStringZod = z13.union([
|
|
476
465
|
LocalSequenceToStringZod,
|
|
477
466
|
QualifiedSequenceToStringZod
|
|
478
467
|
]);
|
|
479
|
-
var SequenceFromStringZod =
|
|
468
|
+
var SequenceFromStringZod = z13.union([
|
|
480
469
|
LocalSequenceFromStringZod,
|
|
481
470
|
QualifiedSequenceFromStringZod
|
|
482
471
|
]);
|
|
483
472
|
|
|
484
473
|
// src/types/schema/common/Stake.ts
|
|
485
|
-
import { HexZod as HexZod3 } from "@xylabs/hex";
|
|
486
|
-
import * as
|
|
487
|
-
var StakeZod =
|
|
474
|
+
import { AddressZod as AddressZod3, HexZod as HexZod3 } from "@xylabs/hex";
|
|
475
|
+
import * as z14 from "zod";
|
|
476
|
+
var StakeZod = z14.object({
|
|
488
477
|
amount: AttoZod,
|
|
489
478
|
// the block number when the stake was added
|
|
490
|
-
addBlock:
|
|
479
|
+
addBlock: z14.number(),
|
|
491
480
|
// the unique id for the stake item
|
|
492
|
-
id:
|
|
481
|
+
id: z14.number(),
|
|
493
482
|
// the block number when the stake was removed (set to 0 if not removed)
|
|
494
|
-
removeBlock:
|
|
483
|
+
removeBlock: z14.number(),
|
|
495
484
|
// the address that is being staked
|
|
496
|
-
staked:
|
|
485
|
+
staked: AddressZod3,
|
|
497
486
|
// the address that owns the stake
|
|
498
|
-
staker:
|
|
487
|
+
staker: AddressZod3,
|
|
499
488
|
// the block number when the stake was withdrawn (set to 0 if not withdrawn)
|
|
500
|
-
withdrawBlock:
|
|
489
|
+
withdrawBlock: z14.number()
|
|
501
490
|
});
|
|
502
491
|
var StakeToJsonZod = StakeZod.transform((val) => ({
|
|
503
492
|
addBlock: val.addBlock,
|
|
504
493
|
amount: AttoToJsonZod.parse(val.amount),
|
|
505
494
|
id: val.id,
|
|
506
495
|
removeBlock: val.removeBlock,
|
|
507
|
-
staked:
|
|
508
|
-
staker:
|
|
496
|
+
staked: AddressZod3.parse(val.staked),
|
|
497
|
+
staker: AddressZod3.parse(val.staker),
|
|
509
498
|
withdrawBlock: val.withdrawBlock
|
|
510
499
|
}));
|
|
511
500
|
var JsonToStakeZod = StakeZod.extend({
|
|
@@ -520,82 +509,74 @@ var JsonToStakeZod = StakeZod.extend({
|
|
|
520
509
|
withdrawBlock: val.withdrawBlock
|
|
521
510
|
}));
|
|
522
511
|
|
|
523
|
-
// src/types/schema/common/
|
|
524
|
-
import
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
context: z17.record(z17.string(), z17.json()).optional(),
|
|
531
|
-
epoch: z17.number(),
|
|
532
|
-
from: AddressZod,
|
|
533
|
-
transfers: z17.record(AddressZod, HexZod4)
|
|
534
|
-
});
|
|
535
|
-
var PayloadZodOfSchema = /* @__PURE__ */ __name((schema) => PayloadZod2.extend({
|
|
536
|
-
schema: z17.literal(schema)
|
|
537
|
-
}), "PayloadZodOfSchema");
|
|
538
|
-
var TransferZod = PayloadZodOfSchema(TransferSchema).extend(TransferFieldsZod.shape);
|
|
512
|
+
// src/types/schema/common/TimeDomain.ts
|
|
513
|
+
import * as z15 from "zod";
|
|
514
|
+
var TimeDomainZod = z15.union([
|
|
515
|
+
z15.literal("xl1"),
|
|
516
|
+
z15.literal("epoch"),
|
|
517
|
+
z15.literal("ethereum")
|
|
518
|
+
]);
|
|
539
519
|
|
|
540
520
|
// src/types/schema/common/TransferPair.ts
|
|
541
|
-
import
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
521
|
+
import { AddressZod as AddressZod4 } from "@xylabs/hex";
|
|
522
|
+
import z16 from "zod";
|
|
523
|
+
var TransferPairZod = z16.tuple([
|
|
524
|
+
AddressZod4,
|
|
525
|
+
AddressZod4
|
|
545
526
|
]);
|
|
546
527
|
|
|
547
528
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
548
529
|
var XyoPermissionsRpcSchemas = {
|
|
549
530
|
xyoPermissions_getPermissions: {
|
|
550
531
|
params: {
|
|
551
|
-
to:
|
|
552
|
-
from:
|
|
532
|
+
to: z17.array(z17.any()).length(0),
|
|
533
|
+
from: z17.array(z17.any()).length(0)
|
|
553
534
|
},
|
|
554
535
|
result: {
|
|
555
|
-
to:
|
|
556
|
-
from:
|
|
536
|
+
to: z17.array(InvokerPermissionZod),
|
|
537
|
+
from: z17.array(InvokerPermissionZod)
|
|
557
538
|
}
|
|
558
539
|
},
|
|
559
540
|
xyoPermissions_requestPermissions: {
|
|
560
541
|
params: {
|
|
561
|
-
to:
|
|
562
|
-
|
|
542
|
+
to: z17.tuple([
|
|
543
|
+
z17.array(PermissionRequestZod)
|
|
563
544
|
]),
|
|
564
|
-
from:
|
|
565
|
-
|
|
545
|
+
from: z17.tuple([
|
|
546
|
+
z17.array(PermissionRequestZod)
|
|
566
547
|
])
|
|
567
548
|
},
|
|
568
549
|
result: {
|
|
569
|
-
to:
|
|
570
|
-
from:
|
|
550
|
+
to: z17.array(RequestedPermissionZod),
|
|
551
|
+
from: z17.array(RequestedPermissionZod)
|
|
571
552
|
}
|
|
572
553
|
},
|
|
573
554
|
xyoPermissions_revokePermissions: {
|
|
574
555
|
params: {
|
|
575
|
-
to:
|
|
576
|
-
|
|
556
|
+
to: z17.tuple([
|
|
557
|
+
z17.array(PermissionRequestZod)
|
|
577
558
|
]),
|
|
578
|
-
from:
|
|
579
|
-
|
|
559
|
+
from: z17.tuple([
|
|
560
|
+
z17.array(PermissionRequestZod)
|
|
580
561
|
])
|
|
581
562
|
},
|
|
582
563
|
result: {
|
|
583
|
-
to:
|
|
584
|
-
from:
|
|
564
|
+
to: z17.array(RequestedPermissionZod),
|
|
565
|
+
from: z17.array(RequestedPermissionZod)
|
|
585
566
|
}
|
|
586
567
|
}
|
|
587
568
|
};
|
|
588
569
|
|
|
589
570
|
// src/types/schema/XyoRunnerRpcSchemas.ts
|
|
590
571
|
import { HashToJsonZod, JsonToHashZod } from "@xylabs/hex";
|
|
591
|
-
import * as
|
|
572
|
+
import * as z18 from "zod";
|
|
592
573
|
var XyoRunnerRpcSchemas = {
|
|
593
574
|
xyoRunner_broadcastTransaction: {
|
|
594
575
|
params: {
|
|
595
|
-
to:
|
|
576
|
+
to: z18.tuple([
|
|
596
577
|
SignedHydratedTransactionZod
|
|
597
578
|
]),
|
|
598
|
-
from:
|
|
579
|
+
from: z18.tuple([
|
|
599
580
|
SignedHydratedTransactionZod
|
|
600
581
|
])
|
|
601
582
|
},
|
|
@@ -607,25 +588,26 @@ var XyoRunnerRpcSchemas = {
|
|
|
607
588
|
};
|
|
608
589
|
|
|
609
590
|
// src/types/schema/XyoSignerRpcSchemas.ts
|
|
591
|
+
import { AddressZod as AddressZod5 } from "@xylabs/hex";
|
|
610
592
|
import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
|
|
611
|
-
import { z as
|
|
593
|
+
import { z as z19 } from "zod";
|
|
612
594
|
var XyoSignerRpcSchemas = {
|
|
613
595
|
xyoSigner_address: {
|
|
614
596
|
params: {
|
|
615
|
-
to:
|
|
616
|
-
from:
|
|
597
|
+
to: z19.array(z19.any()).length(0).optional(),
|
|
598
|
+
from: z19.array(z19.any()).length(0).optional()
|
|
617
599
|
},
|
|
618
600
|
result: {
|
|
619
|
-
to:
|
|
620
|
-
from:
|
|
601
|
+
to: AddressZod5,
|
|
602
|
+
from: AddressZod5
|
|
621
603
|
}
|
|
622
604
|
},
|
|
623
605
|
xyoSigner_signTransaction: {
|
|
624
606
|
params: {
|
|
625
|
-
to:
|
|
607
|
+
to: z19.tuple([
|
|
626
608
|
UnsignedHydratedTransactionZod
|
|
627
609
|
]),
|
|
628
|
-
from:
|
|
610
|
+
from: z19.tuple([
|
|
629
611
|
UnsignedHydratedTransactionZod
|
|
630
612
|
])
|
|
631
613
|
},
|
|
@@ -639,18 +621,18 @@ var XyoSignerRpcSchemas = {
|
|
|
639
621
|
};
|
|
640
622
|
|
|
641
623
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
642
|
-
import { BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
|
|
624
|
+
import { AddressZod as AddressZod6, BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
|
|
643
625
|
import { WithHashMetaZod } from "@xyo-network/payload-model";
|
|
644
|
-
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, XL1BlockNumberZod as XL1BlockNumberZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
645
|
-
import * as
|
|
626
|
+
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, TransferZod, XL1BlockNumberZod as XL1BlockNumberZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
627
|
+
import * as z20 from "zod";
|
|
646
628
|
var XyoViewerRpcSchemas = {
|
|
647
629
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
648
630
|
params: {
|
|
649
|
-
to:
|
|
650
|
-
|
|
631
|
+
to: z20.tuple([
|
|
632
|
+
AddressZod6
|
|
651
633
|
]),
|
|
652
|
-
from:
|
|
653
|
-
|
|
634
|
+
from: z20.tuple([
|
|
635
|
+
AddressZod6
|
|
654
636
|
])
|
|
655
637
|
},
|
|
656
638
|
result: {
|
|
@@ -660,51 +642,51 @@ var XyoViewerRpcSchemas = {
|
|
|
660
642
|
},
|
|
661
643
|
xyoViewer_networkStakeStepRewardAddressReward: {
|
|
662
644
|
params: {
|
|
663
|
-
to:
|
|
645
|
+
to: z20.tuple([
|
|
664
646
|
StepIdentityZod2,
|
|
665
|
-
|
|
647
|
+
AddressZod6
|
|
666
648
|
]),
|
|
667
|
-
from:
|
|
649
|
+
from: z20.tuple([
|
|
668
650
|
StepIdentityZod2,
|
|
669
|
-
|
|
651
|
+
AddressZod6
|
|
670
652
|
])
|
|
671
653
|
},
|
|
672
654
|
result: {
|
|
673
|
-
to:
|
|
674
|
-
from:
|
|
655
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
656
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
675
657
|
}
|
|
676
658
|
},
|
|
677
659
|
xyoViewer_networkStakeStepRewardAddressHistory: {
|
|
678
660
|
params: {
|
|
679
|
-
to:
|
|
680
|
-
|
|
661
|
+
to: z20.tuple([
|
|
662
|
+
AddressZod6
|
|
681
663
|
]),
|
|
682
|
-
from:
|
|
683
|
-
|
|
664
|
+
from: z20.tuple([
|
|
665
|
+
AddressZod6
|
|
684
666
|
])
|
|
685
667
|
},
|
|
686
668
|
result: {
|
|
687
|
-
to:
|
|
688
|
-
from:
|
|
669
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
670
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
689
671
|
}
|
|
690
672
|
},
|
|
691
673
|
xyoViewer_networkStakeStepRewardAddressShare: {
|
|
692
674
|
params: {
|
|
693
|
-
to:
|
|
675
|
+
to: z20.tuple([
|
|
694
676
|
StepIdentityZod2,
|
|
695
|
-
|
|
677
|
+
AddressZod6
|
|
696
678
|
]),
|
|
697
|
-
from:
|
|
679
|
+
from: z20.tuple([
|
|
698
680
|
StepIdentityZod2,
|
|
699
|
-
|
|
681
|
+
AddressZod6
|
|
700
682
|
])
|
|
701
683
|
},
|
|
702
684
|
result: {
|
|
703
|
-
to:
|
|
685
|
+
to: z20.tuple([
|
|
704
686
|
BigIntToJsonZod3,
|
|
705
687
|
BigIntToJsonZod3
|
|
706
688
|
]),
|
|
707
|
-
from:
|
|
689
|
+
from: z20.tuple([
|
|
708
690
|
JsonToBigIntZod3,
|
|
709
691
|
JsonToBigIntZod3
|
|
710
692
|
])
|
|
@@ -712,13 +694,13 @@ var XyoViewerRpcSchemas = {
|
|
|
712
694
|
},
|
|
713
695
|
xyoViewer_networkStakeStepRewardWeightForAddress: {
|
|
714
696
|
params: {
|
|
715
|
-
to:
|
|
697
|
+
to: z20.tuple([
|
|
716
698
|
StepIdentityZod2,
|
|
717
|
-
|
|
699
|
+
AddressZod6
|
|
718
700
|
]),
|
|
719
|
-
from:
|
|
701
|
+
from: z20.tuple([
|
|
720
702
|
StepIdentityZod2,
|
|
721
|
-
|
|
703
|
+
AddressZod6
|
|
722
704
|
])
|
|
723
705
|
},
|
|
724
706
|
result: {
|
|
@@ -728,11 +710,11 @@ var XyoViewerRpcSchemas = {
|
|
|
728
710
|
},
|
|
729
711
|
xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
|
|
730
712
|
params: {
|
|
731
|
-
to:
|
|
732
|
-
|
|
713
|
+
to: z20.tuple([
|
|
714
|
+
AddressZod6
|
|
733
715
|
]),
|
|
734
|
-
from:
|
|
735
|
-
|
|
716
|
+
from: z20.tuple([
|
|
717
|
+
AddressZod6
|
|
736
718
|
])
|
|
737
719
|
},
|
|
738
720
|
result: {
|
|
@@ -742,27 +724,27 @@ var XyoViewerRpcSchemas = {
|
|
|
742
724
|
},
|
|
743
725
|
xyoViewer_networkStakeStepRewardPoolRewards: {
|
|
744
726
|
params: {
|
|
745
|
-
to:
|
|
727
|
+
to: z20.tuple([
|
|
746
728
|
StepIdentityZod2
|
|
747
729
|
]),
|
|
748
|
-
from:
|
|
730
|
+
from: z20.tuple([
|
|
749
731
|
StepIdentityZod2
|
|
750
732
|
])
|
|
751
733
|
},
|
|
752
734
|
result: {
|
|
753
|
-
to:
|
|
754
|
-
from:
|
|
735
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
736
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
755
737
|
}
|
|
756
738
|
},
|
|
757
739
|
xyoViewer_networkStakeStepRewardPositionWeight: {
|
|
758
740
|
params: {
|
|
759
|
-
to:
|
|
741
|
+
to: z20.tuple([
|
|
760
742
|
StepIdentityZod2,
|
|
761
|
-
|
|
743
|
+
z20.number()
|
|
762
744
|
]),
|
|
763
|
-
from:
|
|
745
|
+
from: z20.tuple([
|
|
764
746
|
StepIdentityZod2,
|
|
765
|
-
|
|
747
|
+
z20.number()
|
|
766
748
|
])
|
|
767
749
|
},
|
|
768
750
|
result: {
|
|
@@ -772,13 +754,13 @@ var XyoViewerRpcSchemas = {
|
|
|
772
754
|
},
|
|
773
755
|
xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
|
|
774
756
|
params: {
|
|
775
|
-
to:
|
|
757
|
+
to: z20.tuple([
|
|
776
758
|
StepIdentityZod2,
|
|
777
|
-
|
|
759
|
+
z20.number()
|
|
778
760
|
]),
|
|
779
|
-
from:
|
|
761
|
+
from: z20.tuple([
|
|
780
762
|
StepIdentityZod2,
|
|
781
|
-
|
|
763
|
+
z20.number()
|
|
782
764
|
])
|
|
783
765
|
},
|
|
784
766
|
result: {
|
|
@@ -788,10 +770,10 @@ var XyoViewerRpcSchemas = {
|
|
|
788
770
|
},
|
|
789
771
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
790
772
|
params: {
|
|
791
|
-
to:
|
|
773
|
+
to: z20.tuple([
|
|
792
774
|
StepIdentityZod2
|
|
793
775
|
]),
|
|
794
|
-
from:
|
|
776
|
+
from: z20.tuple([
|
|
795
777
|
StepIdentityZod2
|
|
796
778
|
])
|
|
797
779
|
},
|
|
@@ -802,10 +784,10 @@ var XyoViewerRpcSchemas = {
|
|
|
802
784
|
},
|
|
803
785
|
xyoViewer_networkStakeStepRewardRandomizer: {
|
|
804
786
|
params: {
|
|
805
|
-
to:
|
|
787
|
+
to: z20.tuple([
|
|
806
788
|
StepIdentityZod2
|
|
807
789
|
]),
|
|
808
|
-
from:
|
|
790
|
+
from: z20.tuple([
|
|
809
791
|
StepIdentityZod2
|
|
810
792
|
])
|
|
811
793
|
},
|
|
@@ -816,49 +798,49 @@ var XyoViewerRpcSchemas = {
|
|
|
816
798
|
},
|
|
817
799
|
xyoViewer_networkStakeStepRewardStakerCount: {
|
|
818
800
|
params: {
|
|
819
|
-
to:
|
|
801
|
+
to: z20.tuple([
|
|
820
802
|
StepIdentityZod2
|
|
821
803
|
]),
|
|
822
|
-
from:
|
|
804
|
+
from: z20.tuple([
|
|
823
805
|
StepIdentityZod2
|
|
824
806
|
])
|
|
825
807
|
},
|
|
826
808
|
result: {
|
|
827
|
-
to:
|
|
828
|
-
from:
|
|
809
|
+
to: z20.number(),
|
|
810
|
+
from: z20.number()
|
|
829
811
|
}
|
|
830
812
|
},
|
|
831
813
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
832
814
|
params: {
|
|
833
|
-
to:
|
|
815
|
+
to: z20.tuple([
|
|
834
816
|
StepIdentityZod2
|
|
835
817
|
]),
|
|
836
|
-
from:
|
|
818
|
+
from: z20.tuple([
|
|
837
819
|
StepIdentityZod2
|
|
838
820
|
])
|
|
839
821
|
},
|
|
840
822
|
result: {
|
|
841
|
-
to:
|
|
842
|
-
from:
|
|
823
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
824
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
843
825
|
}
|
|
844
826
|
},
|
|
845
827
|
xyoViewer_networkStakeStepRewardForStepForPosition: {
|
|
846
828
|
params: {
|
|
847
|
-
to:
|
|
829
|
+
to: z20.tuple([
|
|
848
830
|
StepIdentityZod2,
|
|
849
|
-
|
|
831
|
+
z20.number()
|
|
850
832
|
]),
|
|
851
|
-
from:
|
|
833
|
+
from: z20.tuple([
|
|
852
834
|
StepIdentityZod2,
|
|
853
|
-
|
|
835
|
+
z20.number()
|
|
854
836
|
])
|
|
855
837
|
},
|
|
856
838
|
result: {
|
|
857
|
-
to:
|
|
839
|
+
to: z20.tuple([
|
|
858
840
|
BigIntToJsonZod3,
|
|
859
841
|
BigIntToJsonZod3
|
|
860
842
|
]),
|
|
861
|
-
from:
|
|
843
|
+
from: z20.tuple([
|
|
862
844
|
JsonToBigIntZod3,
|
|
863
845
|
JsonToBigIntZod3
|
|
864
846
|
])
|
|
@@ -866,27 +848,27 @@ var XyoViewerRpcSchemas = {
|
|
|
866
848
|
},
|
|
867
849
|
xyoViewer_networkStakeStepRewardForPosition: {
|
|
868
850
|
params: {
|
|
869
|
-
to:
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
851
|
+
to: z20.tuple([
|
|
852
|
+
z20.number(),
|
|
853
|
+
z20.tuple([
|
|
854
|
+
z20.number(),
|
|
855
|
+
z20.number()
|
|
874
856
|
])
|
|
875
857
|
]),
|
|
876
|
-
from:
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
858
|
+
from: z20.tuple([
|
|
859
|
+
z20.number(),
|
|
860
|
+
z20.tuple([
|
|
861
|
+
z20.number(),
|
|
862
|
+
z20.number()
|
|
881
863
|
])
|
|
882
864
|
])
|
|
883
865
|
},
|
|
884
866
|
result: {
|
|
885
|
-
to:
|
|
867
|
+
to: z20.tuple([
|
|
886
868
|
BigIntToJsonZod3,
|
|
887
869
|
BigIntToJsonZod3
|
|
888
870
|
]),
|
|
889
|
-
from:
|
|
871
|
+
from: z20.tuple([
|
|
890
872
|
JsonToBigIntZod3,
|
|
891
873
|
JsonToBigIntZod3
|
|
892
874
|
])
|
|
@@ -894,16 +876,16 @@ var XyoViewerRpcSchemas = {
|
|
|
894
876
|
},
|
|
895
877
|
xyoViewer_networkStakeStepRewardsForRange: {
|
|
896
878
|
params: {
|
|
897
|
-
to:
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
879
|
+
to: z20.tuple([
|
|
880
|
+
z20.tuple([
|
|
881
|
+
z20.number(),
|
|
882
|
+
z20.number()
|
|
901
883
|
])
|
|
902
884
|
]),
|
|
903
|
-
from:
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
885
|
+
from: z20.tuple([
|
|
886
|
+
z20.tuple([
|
|
887
|
+
z20.number(),
|
|
888
|
+
z20.number()
|
|
907
889
|
])
|
|
908
890
|
])
|
|
909
891
|
},
|
|
@@ -914,18 +896,18 @@ var XyoViewerRpcSchemas = {
|
|
|
914
896
|
},
|
|
915
897
|
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
916
898
|
params: {
|
|
917
|
-
to:
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
899
|
+
to: z20.tuple([
|
|
900
|
+
z20.number(),
|
|
901
|
+
z20.tuple([
|
|
902
|
+
z20.number(),
|
|
903
|
+
z20.number()
|
|
922
904
|
])
|
|
923
905
|
]),
|
|
924
|
-
from:
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
906
|
+
from: z20.tuple([
|
|
907
|
+
z20.number(),
|
|
908
|
+
z20.tuple([
|
|
909
|
+
z20.number(),
|
|
910
|
+
z20.number()
|
|
929
911
|
])
|
|
930
912
|
])
|
|
931
913
|
},
|
|
@@ -936,27 +918,27 @@ var XyoViewerRpcSchemas = {
|
|
|
936
918
|
},
|
|
937
919
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
938
920
|
params: {
|
|
939
|
-
to:
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
921
|
+
to: z20.tuple([
|
|
922
|
+
z20.number(),
|
|
923
|
+
z20.tuple([
|
|
924
|
+
z20.number(),
|
|
925
|
+
z20.number()
|
|
944
926
|
])
|
|
945
927
|
]),
|
|
946
|
-
from:
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
928
|
+
from: z20.tuple([
|
|
929
|
+
z20.number(),
|
|
930
|
+
z20.tuple([
|
|
931
|
+
z20.number(),
|
|
932
|
+
z20.number()
|
|
951
933
|
])
|
|
952
934
|
])
|
|
953
935
|
},
|
|
954
936
|
result: {
|
|
955
|
-
to:
|
|
937
|
+
to: z20.record(z20.string(), z20.tuple([
|
|
956
938
|
BigIntToJsonZod3,
|
|
957
939
|
BigIntToJsonZod3
|
|
958
940
|
])),
|
|
959
|
-
from:
|
|
941
|
+
from: z20.record(z20.string(), z20.tuple([
|
|
960
942
|
JsonToBigIntZod3,
|
|
961
943
|
JsonToBigIntZod3
|
|
962
944
|
]))
|
|
@@ -964,11 +946,11 @@ var XyoViewerRpcSchemas = {
|
|
|
964
946
|
},
|
|
965
947
|
xyoViewer_accountBalance: {
|
|
966
948
|
params: {
|
|
967
|
-
to:
|
|
968
|
-
|
|
949
|
+
to: z20.tuple([
|
|
950
|
+
AddressZod6
|
|
969
951
|
]),
|
|
970
|
-
from:
|
|
971
|
-
|
|
952
|
+
from: z20.tuple([
|
|
953
|
+
AddressZod6
|
|
972
954
|
])
|
|
973
955
|
},
|
|
974
956
|
result: {
|
|
@@ -978,25 +960,25 @@ var XyoViewerRpcSchemas = {
|
|
|
978
960
|
},
|
|
979
961
|
xyoViewer_accountBalanceHistory: {
|
|
980
962
|
params: {
|
|
981
|
-
to:
|
|
982
|
-
|
|
983
|
-
|
|
963
|
+
to: z20.union([
|
|
964
|
+
z20.tuple([
|
|
965
|
+
AddressZod6
|
|
984
966
|
]),
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
967
|
+
z20.tuple([
|
|
968
|
+
AddressZod6,
|
|
969
|
+
z20.union([
|
|
988
970
|
XL1BlockRangeZod,
|
|
989
971
|
HashZod3
|
|
990
972
|
])
|
|
991
973
|
])
|
|
992
974
|
]),
|
|
993
|
-
from:
|
|
994
|
-
|
|
995
|
-
|
|
975
|
+
from: z20.union([
|
|
976
|
+
z20.tuple([
|
|
977
|
+
AddressZod6
|
|
996
978
|
]),
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
979
|
+
z20.tuple([
|
|
980
|
+
AddressZod6,
|
|
981
|
+
z20.union([
|
|
1000
982
|
XL1BlockRangeZod,
|
|
1001
983
|
HashZod3
|
|
1002
984
|
])
|
|
@@ -1004,12 +986,12 @@ var XyoViewerRpcSchemas = {
|
|
|
1004
986
|
])
|
|
1005
987
|
},
|
|
1006
988
|
result: {
|
|
1007
|
-
to:
|
|
989
|
+
to: z20.array(z20.tuple([
|
|
1008
990
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1009
991
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1010
992
|
WithHashMetaZod(TransferZod)
|
|
1011
993
|
])),
|
|
1012
|
-
from:
|
|
994
|
+
from: z20.array(z20.tuple([
|
|
1013
995
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1014
996
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1015
997
|
WithHashMetaZod(TransferZod)
|
|
@@ -1018,10 +1000,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1018
1000
|
},
|
|
1019
1001
|
xyoViewer_transferPairBalance: {
|
|
1020
1002
|
params: {
|
|
1021
|
-
to:
|
|
1003
|
+
to: z20.tuple([
|
|
1022
1004
|
TransferPairZod
|
|
1023
1005
|
]),
|
|
1024
|
-
from:
|
|
1006
|
+
from: z20.tuple([
|
|
1025
1007
|
TransferPairZod
|
|
1026
1008
|
])
|
|
1027
1009
|
},
|
|
@@ -1032,20 +1014,20 @@ var XyoViewerRpcSchemas = {
|
|
|
1032
1014
|
},
|
|
1033
1015
|
xyoViewer_transferPairBalanceHistory: {
|
|
1034
1016
|
params: {
|
|
1035
|
-
to:
|
|
1017
|
+
to: z20.tuple([
|
|
1036
1018
|
TransferPairZod
|
|
1037
1019
|
]),
|
|
1038
|
-
from:
|
|
1020
|
+
from: z20.tuple([
|
|
1039
1021
|
TransferPairZod
|
|
1040
1022
|
])
|
|
1041
1023
|
},
|
|
1042
1024
|
result: {
|
|
1043
|
-
to:
|
|
1025
|
+
to: z20.array(z20.tuple([
|
|
1044
1026
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1045
1027
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1046
1028
|
WithHashMetaZod(TransferZod)
|
|
1047
1029
|
])),
|
|
1048
|
-
from:
|
|
1030
|
+
from: z20.array(z20.tuple([
|
|
1049
1031
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1050
1032
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1051
1033
|
WithHashMetaZod(TransferZod)
|
|
@@ -1054,11 +1036,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1054
1036
|
},
|
|
1055
1037
|
xyoViewer_transferBalance: {
|
|
1056
1038
|
params: {
|
|
1057
|
-
to:
|
|
1058
|
-
|
|
1039
|
+
to: z20.tuple([
|
|
1040
|
+
AddressZod6
|
|
1059
1041
|
]),
|
|
1060
|
-
from:
|
|
1061
|
-
|
|
1042
|
+
from: z20.tuple([
|
|
1043
|
+
AddressZod6
|
|
1062
1044
|
])
|
|
1063
1045
|
},
|
|
1064
1046
|
result: {
|
|
@@ -1068,22 +1050,22 @@ var XyoViewerRpcSchemas = {
|
|
|
1068
1050
|
},
|
|
1069
1051
|
xyoViewer_transferBalanceHistory: {
|
|
1070
1052
|
params: {
|
|
1071
|
-
to:
|
|
1072
|
-
|
|
1053
|
+
to: z20.tuple([
|
|
1054
|
+
AddressZod6,
|
|
1073
1055
|
BlockRangeZod2.optional()
|
|
1074
1056
|
]),
|
|
1075
|
-
from:
|
|
1076
|
-
|
|
1057
|
+
from: z20.tuple([
|
|
1058
|
+
AddressZod6,
|
|
1077
1059
|
BlockRangeZod2.optional()
|
|
1078
1060
|
])
|
|
1079
1061
|
},
|
|
1080
1062
|
result: {
|
|
1081
|
-
to:
|
|
1063
|
+
to: z20.array(z20.tuple([
|
|
1082
1064
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1083
1065
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1084
1066
|
WithHashMetaZod(TransferZod)
|
|
1085
1067
|
])),
|
|
1086
|
-
from:
|
|
1068
|
+
from: z20.array(z20.tuple([
|
|
1087
1069
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1088
1070
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1089
1071
|
WithHashMetaZod(TransferZod)
|
|
@@ -1092,10 +1074,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1092
1074
|
},
|
|
1093
1075
|
xyoViewer_blockByHash: {
|
|
1094
1076
|
params: {
|
|
1095
|
-
to:
|
|
1077
|
+
to: z20.tuple([
|
|
1096
1078
|
HashToJsonZod2
|
|
1097
1079
|
]),
|
|
1098
|
-
from:
|
|
1080
|
+
from: z20.tuple([
|
|
1099
1081
|
JsonToHashZod2
|
|
1100
1082
|
])
|
|
1101
1083
|
},
|
|
@@ -1106,11 +1088,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1106
1088
|
},
|
|
1107
1089
|
xyoViewer_blockByNumber: {
|
|
1108
1090
|
params: {
|
|
1109
|
-
to:
|
|
1110
|
-
|
|
1091
|
+
to: z20.tuple([
|
|
1092
|
+
z20.number()
|
|
1111
1093
|
]),
|
|
1112
|
-
from:
|
|
1113
|
-
|
|
1094
|
+
from: z20.tuple([
|
|
1095
|
+
z20.number()
|
|
1114
1096
|
])
|
|
1115
1097
|
},
|
|
1116
1098
|
result: {
|
|
@@ -1120,48 +1102,48 @@ var XyoViewerRpcSchemas = {
|
|
|
1120
1102
|
},
|
|
1121
1103
|
xyoViewer_blocksByHash: {
|
|
1122
1104
|
params: {
|
|
1123
|
-
to:
|
|
1105
|
+
to: z20.tuple([
|
|
1124
1106
|
HashZod3,
|
|
1125
|
-
|
|
1107
|
+
z20.number().optional()
|
|
1126
1108
|
]),
|
|
1127
|
-
from:
|
|
1109
|
+
from: z20.tuple([
|
|
1128
1110
|
HashZod3,
|
|
1129
|
-
|
|
1111
|
+
z20.number().optional()
|
|
1130
1112
|
])
|
|
1131
1113
|
},
|
|
1132
1114
|
result: {
|
|
1133
|
-
to:
|
|
1134
|
-
from:
|
|
1115
|
+
to: z20.array(SignedHydratedBlockZod),
|
|
1116
|
+
from: z20.array(SignedHydratedBlockZod)
|
|
1135
1117
|
}
|
|
1136
1118
|
},
|
|
1137
1119
|
xyoViewer_chainId: {
|
|
1138
1120
|
params: {
|
|
1139
|
-
to:
|
|
1140
|
-
from:
|
|
1121
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1122
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1141
1123
|
},
|
|
1142
1124
|
result: {
|
|
1143
|
-
to:
|
|
1144
|
-
from:
|
|
1125
|
+
to: AddressZod6,
|
|
1126
|
+
from: AddressZod6
|
|
1145
1127
|
}
|
|
1146
1128
|
},
|
|
1147
1129
|
xyoViewer_chainIdAtBlock: {
|
|
1148
1130
|
params: {
|
|
1149
|
-
to:
|
|
1131
|
+
to: z20.tuple([
|
|
1150
1132
|
BlockNumberZod3
|
|
1151
1133
|
]),
|
|
1152
|
-
from:
|
|
1134
|
+
from: z20.tuple([
|
|
1153
1135
|
BlockNumberZod3
|
|
1154
1136
|
])
|
|
1155
1137
|
},
|
|
1156
1138
|
result: {
|
|
1157
|
-
to:
|
|
1158
|
-
from:
|
|
1139
|
+
to: AddressZod6,
|
|
1140
|
+
from: AddressZod6
|
|
1159
1141
|
}
|
|
1160
1142
|
},
|
|
1161
1143
|
xyoViewer_currentBlock: {
|
|
1162
1144
|
params: {
|
|
1163
|
-
to:
|
|
1164
|
-
from:
|
|
1145
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1146
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1165
1147
|
},
|
|
1166
1148
|
result: {
|
|
1167
1149
|
to: SignedHydratedBlockZod,
|
|
@@ -1170,8 +1152,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1170
1152
|
},
|
|
1171
1153
|
xyoViewer_currentBlockHash: {
|
|
1172
1154
|
params: {
|
|
1173
|
-
to:
|
|
1174
|
-
from:
|
|
1155
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1156
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1175
1157
|
},
|
|
1176
1158
|
result: {
|
|
1177
1159
|
to: HashZod3,
|
|
@@ -1180,8 +1162,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1180
1162
|
},
|
|
1181
1163
|
xyoViewer_currentBlockNumber: {
|
|
1182
1164
|
params: {
|
|
1183
|
-
to:
|
|
1184
|
-
from:
|
|
1165
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1166
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1185
1167
|
},
|
|
1186
1168
|
result: {
|
|
1187
1169
|
to: XL1BlockNumberZod2,
|
|
@@ -1190,23 +1172,23 @@ var XyoViewerRpcSchemas = {
|
|
|
1190
1172
|
},
|
|
1191
1173
|
xyoViewer_forkHistory: {
|
|
1192
1174
|
params: {
|
|
1193
|
-
to:
|
|
1194
|
-
from:
|
|
1175
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1176
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1195
1177
|
},
|
|
1196
1178
|
result: {
|
|
1197
|
-
to:
|
|
1198
|
-
from:
|
|
1179
|
+
to: z20.record(z20.number(), AddressZod6),
|
|
1180
|
+
from: z20.record(z20.number(), AddressZod6)
|
|
1199
1181
|
}
|
|
1200
1182
|
},
|
|
1201
1183
|
xyoViewer_stakeByStaker: {
|
|
1202
1184
|
params: {
|
|
1203
|
-
to:
|
|
1204
|
-
|
|
1205
|
-
|
|
1185
|
+
to: z20.tuple([
|
|
1186
|
+
AddressZod6,
|
|
1187
|
+
z20.number()
|
|
1206
1188
|
]),
|
|
1207
|
-
from:
|
|
1208
|
-
|
|
1209
|
-
|
|
1189
|
+
from: z20.tuple([
|
|
1190
|
+
AddressZod6,
|
|
1191
|
+
z20.number()
|
|
1210
1192
|
])
|
|
1211
1193
|
},
|
|
1212
1194
|
result: {
|
|
@@ -1216,11 +1198,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1216
1198
|
},
|
|
1217
1199
|
xyoViewer_stakeById: {
|
|
1218
1200
|
params: {
|
|
1219
|
-
to:
|
|
1220
|
-
|
|
1201
|
+
to: z20.tuple([
|
|
1202
|
+
z20.number()
|
|
1221
1203
|
]),
|
|
1222
|
-
from:
|
|
1223
|
-
|
|
1204
|
+
from: z20.tuple([
|
|
1205
|
+
z20.number()
|
|
1224
1206
|
])
|
|
1225
1207
|
},
|
|
1226
1208
|
result: {
|
|
@@ -1228,57 +1210,43 @@ var XyoViewerRpcSchemas = {
|
|
|
1228
1210
|
from: JsonToStakeZod
|
|
1229
1211
|
}
|
|
1230
1212
|
},
|
|
1231
|
-
xyoViewer_stakedByStaker: {
|
|
1232
|
-
params: {
|
|
1233
|
-
to: z22.tuple([
|
|
1234
|
-
AddressZod
|
|
1235
|
-
]),
|
|
1236
|
-
from: z22.tuple([
|
|
1237
|
-
AddressZod
|
|
1238
|
-
])
|
|
1239
|
-
},
|
|
1240
|
-
result: {
|
|
1241
|
-
to: z22.array(AddressZod),
|
|
1242
|
-
from: z22.array(AddressZod)
|
|
1243
|
-
}
|
|
1244
|
-
},
|
|
1245
1213
|
xyoViewer_stakesByStaker: {
|
|
1246
1214
|
params: {
|
|
1247
|
-
to:
|
|
1248
|
-
|
|
1215
|
+
to: z20.tuple([
|
|
1216
|
+
AddressZod6
|
|
1249
1217
|
]),
|
|
1250
|
-
from:
|
|
1251
|
-
|
|
1218
|
+
from: z20.tuple([
|
|
1219
|
+
AddressZod6
|
|
1252
1220
|
])
|
|
1253
1221
|
},
|
|
1254
1222
|
result: {
|
|
1255
|
-
to:
|
|
1256
|
-
from:
|
|
1223
|
+
to: z20.array(StakeToJsonZod),
|
|
1224
|
+
from: z20.array(JsonToStakeZod)
|
|
1257
1225
|
}
|
|
1258
1226
|
},
|
|
1259
1227
|
xyoViewer_stakesByStaked: {
|
|
1260
1228
|
params: {
|
|
1261
|
-
to:
|
|
1262
|
-
|
|
1229
|
+
to: z20.tuple([
|
|
1230
|
+
AddressZod6
|
|
1263
1231
|
]),
|
|
1264
|
-
from:
|
|
1265
|
-
|
|
1232
|
+
from: z20.tuple([
|
|
1233
|
+
AddressZod6
|
|
1266
1234
|
])
|
|
1267
1235
|
},
|
|
1268
1236
|
result: {
|
|
1269
|
-
to:
|
|
1270
|
-
from:
|
|
1237
|
+
to: z20.array(StakeToJsonZod),
|
|
1238
|
+
from: z20.array(JsonToStakeZod)
|
|
1271
1239
|
}
|
|
1272
1240
|
},
|
|
1273
1241
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
1274
1242
|
params: {
|
|
1275
|
-
to:
|
|
1243
|
+
to: z20.tuple([
|
|
1276
1244
|
HashZod3,
|
|
1277
|
-
|
|
1245
|
+
z20.number()
|
|
1278
1246
|
]),
|
|
1279
|
-
from:
|
|
1247
|
+
from: z20.tuple([
|
|
1280
1248
|
HashZod3,
|
|
1281
|
-
|
|
1249
|
+
z20.number()
|
|
1282
1250
|
])
|
|
1283
1251
|
},
|
|
1284
1252
|
result: {
|
|
@@ -1288,13 +1256,13 @@ var XyoViewerRpcSchemas = {
|
|
|
1288
1256
|
},
|
|
1289
1257
|
xyoViewer_transactionByBlockNumberAndIndex: {
|
|
1290
1258
|
params: {
|
|
1291
|
-
to:
|
|
1292
|
-
|
|
1293
|
-
|
|
1259
|
+
to: z20.tuple([
|
|
1260
|
+
z20.number(),
|
|
1261
|
+
z20.number()
|
|
1294
1262
|
]),
|
|
1295
|
-
from:
|
|
1296
|
-
|
|
1297
|
-
|
|
1263
|
+
from: z20.tuple([
|
|
1264
|
+
z20.number(),
|
|
1265
|
+
z20.number()
|
|
1298
1266
|
])
|
|
1299
1267
|
},
|
|
1300
1268
|
result: {
|
|
@@ -1304,10 +1272,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1304
1272
|
},
|
|
1305
1273
|
xyoViewer_transactionByHash: {
|
|
1306
1274
|
params: {
|
|
1307
|
-
to:
|
|
1275
|
+
to: z20.tuple([
|
|
1308
1276
|
HashZod3
|
|
1309
1277
|
]),
|
|
1310
|
-
from:
|
|
1278
|
+
from: z20.tuple([
|
|
1311
1279
|
HashZod3
|
|
1312
1280
|
])
|
|
1313
1281
|
},
|
|
@@ -1328,85 +1296,85 @@ var AllRpcSchemas = {
|
|
|
1328
1296
|
};
|
|
1329
1297
|
|
|
1330
1298
|
// src/types/schema/createRequestSchema.ts
|
|
1331
|
-
import * as
|
|
1332
|
-
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema =
|
|
1333
|
-
id:
|
|
1334
|
-
|
|
1335
|
-
|
|
1299
|
+
import * as z21 from "zod";
|
|
1300
|
+
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema = z21.undefined()) => z21.object({
|
|
1301
|
+
id: z21.union([
|
|
1302
|
+
z21.string(),
|
|
1303
|
+
z21.number()
|
|
1336
1304
|
]),
|
|
1337
|
-
jsonrpc:
|
|
1338
|
-
method:
|
|
1305
|
+
jsonrpc: z21.literal(jsonrpc),
|
|
1306
|
+
method: z21.literal(methodName),
|
|
1339
1307
|
params: paramsSchema
|
|
1340
1308
|
}), "createRequestSchema");
|
|
1341
1309
|
|
|
1342
1310
|
// src/types/schema/createResponseSchema.ts
|
|
1343
|
-
import * as
|
|
1344
|
-
var createResponseSchema = /* @__PURE__ */ __name((resultSchema =
|
|
1345
|
-
id:
|
|
1346
|
-
|
|
1347
|
-
|
|
1311
|
+
import * as z22 from "zod";
|
|
1312
|
+
var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z22.undefined()) => z22.object({
|
|
1313
|
+
id: z22.union([
|
|
1314
|
+
z22.string(),
|
|
1315
|
+
z22.number()
|
|
1348
1316
|
]),
|
|
1349
|
-
jsonrpc:
|
|
1317
|
+
jsonrpc: z22.literal(jsonrpc),
|
|
1350
1318
|
result: resultSchema
|
|
1351
1319
|
}), "createResponseSchema");
|
|
1352
1320
|
|
|
1353
1321
|
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1354
1322
|
import { HashZod as HashZod4 } from "@xylabs/hex";
|
|
1355
|
-
import { PayloadZod as
|
|
1356
|
-
import * as
|
|
1323
|
+
import { PayloadZod as PayloadZod2 } from "@xyo-network/payload-model";
|
|
1324
|
+
import * as z23 from "zod";
|
|
1357
1325
|
var DataLakeViewerRpcSchemas = {
|
|
1358
1326
|
dataLakeViewer_get: {
|
|
1359
1327
|
params: {
|
|
1360
|
-
to:
|
|
1328
|
+
to: z23.tuple([
|
|
1361
1329
|
HashZod4
|
|
1362
1330
|
]),
|
|
1363
|
-
from:
|
|
1331
|
+
from: z23.tuple([
|
|
1364
1332
|
HashZod4
|
|
1365
1333
|
])
|
|
1366
1334
|
},
|
|
1367
1335
|
result: {
|
|
1368
|
-
to:
|
|
1369
|
-
|
|
1336
|
+
to: z23.union([
|
|
1337
|
+
PayloadZod2,
|
|
1370
1338
|
ArrayBufferToJsonZod
|
|
1371
1339
|
]).optional(),
|
|
1372
|
-
from:
|
|
1373
|
-
|
|
1340
|
+
from: z23.union([
|
|
1341
|
+
PayloadZod2,
|
|
1374
1342
|
JsonToArrayBufferZod
|
|
1375
1343
|
]).optional()
|
|
1376
1344
|
}
|
|
1377
1345
|
},
|
|
1378
1346
|
dataLakeViewer_getMany: {
|
|
1379
1347
|
params: {
|
|
1380
|
-
to:
|
|
1381
|
-
|
|
1348
|
+
to: z23.tuple([
|
|
1349
|
+
z23.array(HashZod4)
|
|
1382
1350
|
]),
|
|
1383
|
-
from:
|
|
1384
|
-
|
|
1351
|
+
from: z23.tuple([
|
|
1352
|
+
z23.array(HashZod4)
|
|
1385
1353
|
])
|
|
1386
1354
|
},
|
|
1387
1355
|
result: {
|
|
1388
|
-
to:
|
|
1389
|
-
|
|
1356
|
+
to: z23.array(z23.union([
|
|
1357
|
+
PayloadZod2,
|
|
1390
1358
|
ArrayBufferToJsonZod
|
|
1391
1359
|
])),
|
|
1392
|
-
from:
|
|
1393
|
-
|
|
1360
|
+
from: z23.array(z23.union([
|
|
1361
|
+
PayloadZod2,
|
|
1394
1362
|
JsonToArrayBufferZod
|
|
1395
1363
|
]))
|
|
1396
1364
|
}
|
|
1397
1365
|
},
|
|
1398
1366
|
dataLakeViewer_has: {
|
|
1399
1367
|
params: {
|
|
1400
|
-
to:
|
|
1368
|
+
to: z23.tuple([
|
|
1401
1369
|
HashZod4
|
|
1402
1370
|
]),
|
|
1403
|
-
from:
|
|
1371
|
+
from: z23.tuple([
|
|
1404
1372
|
HashZod4
|
|
1405
1373
|
])
|
|
1406
1374
|
},
|
|
1407
1375
|
result: {
|
|
1408
|
-
to:
|
|
1409
|
-
from:
|
|
1376
|
+
to: z23.boolean(),
|
|
1377
|
+
from: z23.boolean()
|
|
1410
1378
|
}
|
|
1411
1379
|
}
|
|
1412
1380
|
};
|
|
@@ -1414,228 +1382,228 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1414
1382
|
// src/types/schema/RewardsByPositionViewerRpcSchemas.ts
|
|
1415
1383
|
import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/hex";
|
|
1416
1384
|
import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
|
|
1417
|
-
import
|
|
1385
|
+
import z24 from "zod";
|
|
1418
1386
|
var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
|
|
1419
1387
|
networkStakingStepRewardsByPositionViewer_bonus: {
|
|
1420
1388
|
params: {
|
|
1421
|
-
from:
|
|
1389
|
+
from: z24.tuple([
|
|
1422
1390
|
RewardsRangeOptionsZod.optional()
|
|
1423
1391
|
]),
|
|
1424
|
-
to:
|
|
1392
|
+
to: z24.tuple([
|
|
1425
1393
|
RewardsRangeOptionsZod.optional()
|
|
1426
1394
|
])
|
|
1427
1395
|
},
|
|
1428
1396
|
result: {
|
|
1429
|
-
from:
|
|
1430
|
-
to:
|
|
1397
|
+
from: z24.record(z24.number(), JsonToBigIntZod4.transform((val) => asAttoXL12(val))),
|
|
1398
|
+
to: z24.record(z24.number(), BigIntToJsonZod4)
|
|
1431
1399
|
}
|
|
1432
1400
|
},
|
|
1433
1401
|
networkStakingStepRewardsByPositionViewer_claimed: {
|
|
1434
1402
|
params: {
|
|
1435
|
-
from:
|
|
1403
|
+
from: z24.tuple([
|
|
1436
1404
|
RewardsRangeOptionsZod.optional()
|
|
1437
1405
|
]),
|
|
1438
|
-
to:
|
|
1406
|
+
to: z24.tuple([
|
|
1439
1407
|
RewardsRangeOptionsZod.optional()
|
|
1440
1408
|
])
|
|
1441
1409
|
},
|
|
1442
1410
|
result: {
|
|
1443
|
-
from:
|
|
1444
|
-
to:
|
|
1411
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1412
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1445
1413
|
}
|
|
1446
1414
|
},
|
|
1447
1415
|
networkStakingStepRewardsByPositionViewer_earned: {
|
|
1448
1416
|
params: {
|
|
1449
|
-
from:
|
|
1417
|
+
from: z24.tuple([
|
|
1450
1418
|
RewardsRangeOptionsZod.optional()
|
|
1451
1419
|
]),
|
|
1452
|
-
to:
|
|
1420
|
+
to: z24.tuple([
|
|
1453
1421
|
RewardsRangeOptionsZod.optional()
|
|
1454
1422
|
])
|
|
1455
1423
|
},
|
|
1456
1424
|
result: {
|
|
1457
|
-
from:
|
|
1458
|
-
to:
|
|
1425
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1426
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1459
1427
|
}
|
|
1460
1428
|
},
|
|
1461
1429
|
networkStakingStepRewardsByPositionViewer_total: {
|
|
1462
1430
|
params: {
|
|
1463
|
-
from:
|
|
1431
|
+
from: z24.tuple([
|
|
1464
1432
|
RewardsRangeOptionsZod.optional()
|
|
1465
1433
|
]),
|
|
1466
|
-
to:
|
|
1434
|
+
to: z24.tuple([
|
|
1467
1435
|
RewardsRangeOptionsZod.optional()
|
|
1468
1436
|
])
|
|
1469
1437
|
},
|
|
1470
1438
|
result: {
|
|
1471
|
-
from:
|
|
1472
|
-
to:
|
|
1439
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1440
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1473
1441
|
}
|
|
1474
1442
|
},
|
|
1475
1443
|
networkStakingStepRewardsByPositionViewer_unclaimed: {
|
|
1476
1444
|
params: {
|
|
1477
|
-
from:
|
|
1445
|
+
from: z24.tuple([
|
|
1478
1446
|
RewardsRangeOptionsZod.optional()
|
|
1479
1447
|
]),
|
|
1480
|
-
to:
|
|
1448
|
+
to: z24.tuple([
|
|
1481
1449
|
RewardsRangeOptionsZod.optional()
|
|
1482
1450
|
])
|
|
1483
1451
|
},
|
|
1484
1452
|
result: {
|
|
1485
|
-
from:
|
|
1486
|
-
to:
|
|
1453
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1454
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1487
1455
|
}
|
|
1488
1456
|
}
|
|
1489
1457
|
};
|
|
1490
1458
|
|
|
1491
1459
|
// src/types/schema/RewardsByStakerViewerRpcSchemas.ts
|
|
1492
|
-
import { BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/hex";
|
|
1493
|
-
import
|
|
1460
|
+
import { AddressZod as AddressZod7, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/hex";
|
|
1461
|
+
import z25 from "zod";
|
|
1494
1462
|
var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
|
|
1495
1463
|
networkStakingStepRewardsByStakerViewer_bonus: {
|
|
1496
1464
|
params: {
|
|
1497
|
-
from:
|
|
1465
|
+
from: z25.tuple([
|
|
1498
1466
|
RewardsRangeOptionsZod.optional()
|
|
1499
1467
|
]),
|
|
1500
|
-
to:
|
|
1468
|
+
to: z25.tuple([
|
|
1501
1469
|
RewardsRangeOptionsZod.optional()
|
|
1502
1470
|
])
|
|
1503
1471
|
},
|
|
1504
1472
|
result: {
|
|
1505
|
-
from:
|
|
1506
|
-
to:
|
|
1473
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1474
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1507
1475
|
}
|
|
1508
1476
|
},
|
|
1509
1477
|
networkStakingStepRewardsByStakerViewer_claimed: {
|
|
1510
1478
|
params: {
|
|
1511
|
-
from:
|
|
1479
|
+
from: z25.tuple([
|
|
1512
1480
|
RewardsRangeOptionsZod.optional()
|
|
1513
1481
|
]),
|
|
1514
|
-
to:
|
|
1482
|
+
to: z25.tuple([
|
|
1515
1483
|
RewardsRangeOptionsZod.optional()
|
|
1516
1484
|
])
|
|
1517
1485
|
},
|
|
1518
1486
|
result: {
|
|
1519
|
-
from:
|
|
1520
|
-
to:
|
|
1487
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1488
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1521
1489
|
}
|
|
1522
1490
|
},
|
|
1523
1491
|
networkStakingStepRewardsByStakerViewer_earned: {
|
|
1524
1492
|
params: {
|
|
1525
|
-
from:
|
|
1493
|
+
from: z25.tuple([
|
|
1526
1494
|
RewardsRangeOptionsZod.optional()
|
|
1527
1495
|
]),
|
|
1528
|
-
to:
|
|
1496
|
+
to: z25.tuple([
|
|
1529
1497
|
RewardsRangeOptionsZod.optional()
|
|
1530
1498
|
])
|
|
1531
1499
|
},
|
|
1532
1500
|
result: {
|
|
1533
|
-
from:
|
|
1534
|
-
to:
|
|
1501
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1502
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1535
1503
|
}
|
|
1536
1504
|
},
|
|
1537
1505
|
networkStakingStepRewardsByStakerViewer_total: {
|
|
1538
1506
|
params: {
|
|
1539
|
-
from:
|
|
1507
|
+
from: z25.tuple([
|
|
1540
1508
|
RewardsRangeOptionsZod.optional()
|
|
1541
1509
|
]),
|
|
1542
|
-
to:
|
|
1510
|
+
to: z25.tuple([
|
|
1543
1511
|
RewardsRangeOptionsZod.optional()
|
|
1544
1512
|
])
|
|
1545
1513
|
},
|
|
1546
1514
|
result: {
|
|
1547
|
-
from:
|
|
1548
|
-
to:
|
|
1515
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1516
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1549
1517
|
}
|
|
1550
1518
|
},
|
|
1551
1519
|
networkStakingStepRewardsByStakerViewer_unclaimed: {
|
|
1552
1520
|
params: {
|
|
1553
|
-
from:
|
|
1521
|
+
from: z25.tuple([
|
|
1554
1522
|
RewardsRangeOptionsZod.optional()
|
|
1555
1523
|
]),
|
|
1556
|
-
to:
|
|
1524
|
+
to: z25.tuple([
|
|
1557
1525
|
RewardsRangeOptionsZod.optional()
|
|
1558
1526
|
])
|
|
1559
1527
|
},
|
|
1560
1528
|
result: {
|
|
1561
|
-
from:
|
|
1562
|
-
to:
|
|
1529
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1530
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1563
1531
|
}
|
|
1564
1532
|
}
|
|
1565
1533
|
};
|
|
1566
1534
|
|
|
1567
1535
|
// src/types/schema/RewardsByStepViewerRpcSchemas.ts
|
|
1568
|
-
import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/hex";
|
|
1569
|
-
import
|
|
1536
|
+
import { AddressZod as AddressZod8, BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/hex";
|
|
1537
|
+
import z26 from "zod";
|
|
1570
1538
|
var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
1571
1539
|
networkStakingStepRewardsByStepViewer_bonus: {
|
|
1572
1540
|
params: {
|
|
1573
|
-
from:
|
|
1541
|
+
from: z26.tuple([
|
|
1574
1542
|
RewardsRangeOptionsZod.optional()
|
|
1575
1543
|
]),
|
|
1576
|
-
to:
|
|
1544
|
+
to: z26.tuple([
|
|
1577
1545
|
RewardsRangeOptionsZod.optional()
|
|
1578
1546
|
])
|
|
1579
1547
|
},
|
|
1580
1548
|
result: {
|
|
1581
|
-
from:
|
|
1582
|
-
to:
|
|
1549
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1550
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1583
1551
|
}
|
|
1584
1552
|
},
|
|
1585
1553
|
networkStakingStepRewardsByStepViewer_claimed: {
|
|
1586
1554
|
params: {
|
|
1587
|
-
from:
|
|
1555
|
+
from: z26.tuple([
|
|
1588
1556
|
RewardsRangeOptionsZod.optional()
|
|
1589
1557
|
]),
|
|
1590
|
-
to:
|
|
1558
|
+
to: z26.tuple([
|
|
1591
1559
|
RewardsRangeOptionsZod.optional()
|
|
1592
1560
|
])
|
|
1593
1561
|
},
|
|
1594
1562
|
result: {
|
|
1595
|
-
from:
|
|
1596
|
-
to:
|
|
1563
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1564
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1597
1565
|
}
|
|
1598
1566
|
},
|
|
1599
1567
|
networkStakingStepRewardsByStepViewer_earned: {
|
|
1600
1568
|
params: {
|
|
1601
|
-
from:
|
|
1569
|
+
from: z26.tuple([
|
|
1602
1570
|
RewardsRangeOptionsZod.optional()
|
|
1603
1571
|
]),
|
|
1604
|
-
to:
|
|
1572
|
+
to: z26.tuple([
|
|
1605
1573
|
RewardsRangeOptionsZod.optional()
|
|
1606
1574
|
])
|
|
1607
1575
|
},
|
|
1608
1576
|
result: {
|
|
1609
|
-
from:
|
|
1610
|
-
to:
|
|
1577
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1578
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1611
1579
|
}
|
|
1612
1580
|
},
|
|
1613
1581
|
networkStakingStepRewardsByStepViewer_total: {
|
|
1614
1582
|
params: {
|
|
1615
|
-
from:
|
|
1583
|
+
from: z26.tuple([
|
|
1616
1584
|
RewardsRangeOptionsZod.optional()
|
|
1617
1585
|
]),
|
|
1618
|
-
to:
|
|
1586
|
+
to: z26.tuple([
|
|
1619
1587
|
RewardsRangeOptionsZod.optional()
|
|
1620
1588
|
])
|
|
1621
1589
|
},
|
|
1622
1590
|
result: {
|
|
1623
|
-
from:
|
|
1624
|
-
to:
|
|
1591
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1592
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1625
1593
|
}
|
|
1626
1594
|
},
|
|
1627
1595
|
networkStakingStepRewardsByStepViewer_unclaimed: {
|
|
1628
1596
|
params: {
|
|
1629
|
-
from:
|
|
1597
|
+
from: z26.tuple([
|
|
1630
1598
|
RewardsRangeOptionsZod.optional()
|
|
1631
1599
|
]),
|
|
1632
|
-
to:
|
|
1600
|
+
to: z26.tuple([
|
|
1633
1601
|
RewardsRangeOptionsZod.optional()
|
|
1634
1602
|
])
|
|
1635
1603
|
},
|
|
1636
1604
|
result: {
|
|
1637
|
-
from:
|
|
1638
|
-
to:
|
|
1605
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1606
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1639
1607
|
}
|
|
1640
1608
|
}
|
|
1641
1609
|
};
|
|
@@ -1643,14 +1611,14 @@ var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
|
1643
1611
|
// src/types/schema/RewardsTotalViewerRpcSchemas.ts
|
|
1644
1612
|
import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/hex";
|
|
1645
1613
|
import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
|
|
1646
|
-
import * as
|
|
1614
|
+
import * as z27 from "zod";
|
|
1647
1615
|
var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
1648
1616
|
networkStakingStepRewardsTotalViewer_bonus: {
|
|
1649
1617
|
params: {
|
|
1650
|
-
from:
|
|
1618
|
+
from: z27.tuple([
|
|
1651
1619
|
RewardsRangeOptionsZod.optional()
|
|
1652
1620
|
]),
|
|
1653
|
-
to:
|
|
1621
|
+
to: z27.tuple([
|
|
1654
1622
|
RewardsRangeOptionsZod.optional()
|
|
1655
1623
|
])
|
|
1656
1624
|
},
|
|
@@ -1661,10 +1629,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1661
1629
|
},
|
|
1662
1630
|
networkStakingStepRewardsTotalViewer_claimed: {
|
|
1663
1631
|
params: {
|
|
1664
|
-
from:
|
|
1632
|
+
from: z27.tuple([
|
|
1665
1633
|
RewardsRangeOptionsZod.optional()
|
|
1666
1634
|
]),
|
|
1667
|
-
to:
|
|
1635
|
+
to: z27.tuple([
|
|
1668
1636
|
RewardsRangeOptionsZod.optional()
|
|
1669
1637
|
])
|
|
1670
1638
|
},
|
|
@@ -1675,10 +1643,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1675
1643
|
},
|
|
1676
1644
|
networkStakingStepRewardsTotalViewer_earned: {
|
|
1677
1645
|
params: {
|
|
1678
|
-
from:
|
|
1646
|
+
from: z27.tuple([
|
|
1679
1647
|
RewardsRangeOptionsZod.optional()
|
|
1680
1648
|
]),
|
|
1681
|
-
to:
|
|
1649
|
+
to: z27.tuple([
|
|
1682
1650
|
RewardsRangeOptionsZod.optional()
|
|
1683
1651
|
])
|
|
1684
1652
|
},
|
|
@@ -1689,10 +1657,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1689
1657
|
},
|
|
1690
1658
|
networkStakingStepRewardsTotalViewer_total: {
|
|
1691
1659
|
params: {
|
|
1692
|
-
from:
|
|
1660
|
+
from: z27.tuple([
|
|
1693
1661
|
RewardsRangeOptionsZod.optional()
|
|
1694
1662
|
]),
|
|
1695
|
-
to:
|
|
1663
|
+
to: z27.tuple([
|
|
1696
1664
|
RewardsRangeOptionsZod.optional()
|
|
1697
1665
|
])
|
|
1698
1666
|
},
|
|
@@ -1703,10 +1671,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1703
1671
|
},
|
|
1704
1672
|
networkStakingStepRewardsTotalViewer_unclaimed: {
|
|
1705
1673
|
params: {
|
|
1706
|
-
from:
|
|
1674
|
+
from: z27.tuple([
|
|
1707
1675
|
RewardsRangeOptionsZod.optional()
|
|
1708
1676
|
]),
|
|
1709
|
-
to:
|
|
1677
|
+
to: z27.tuple([
|
|
1710
1678
|
RewardsRangeOptionsZod.optional()
|
|
1711
1679
|
])
|
|
1712
1680
|
},
|
|
@@ -1720,6 +1688,83 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1720
1688
|
// src/types/schema/StepRewardsViewerRpcSchemas.ts
|
|
1721
1689
|
var NetworkStakingStepRewardsViewerRpcSchemas = {};
|
|
1722
1690
|
|
|
1691
|
+
// src/types/schema/TimeSyncViewerRpcSchema.ts
|
|
1692
|
+
import { TimePayloadZod } from "@xyo-network/xl1-protocol";
|
|
1693
|
+
import * as z28 from "zod";
|
|
1694
|
+
var TimeSyncViewerRpcSchemas = {
|
|
1695
|
+
timeSyncViewer_convertTime: {
|
|
1696
|
+
params: {
|
|
1697
|
+
from: z28.tuple([
|
|
1698
|
+
TimeDomainZod,
|
|
1699
|
+
TimeDomainZod,
|
|
1700
|
+
z28.number()
|
|
1701
|
+
]),
|
|
1702
|
+
to: z28.tuple([
|
|
1703
|
+
TimeDomainZod,
|
|
1704
|
+
TimeDomainZod,
|
|
1705
|
+
z28.number()
|
|
1706
|
+
])
|
|
1707
|
+
},
|
|
1708
|
+
result: {
|
|
1709
|
+
from: z28.number(),
|
|
1710
|
+
to: z28.number()
|
|
1711
|
+
}
|
|
1712
|
+
},
|
|
1713
|
+
timeSyncViewer_currentTime: {
|
|
1714
|
+
params: {
|
|
1715
|
+
from: z28.tuple([
|
|
1716
|
+
TimeDomainZod
|
|
1717
|
+
]),
|
|
1718
|
+
to: z28.tuple([
|
|
1719
|
+
TimeDomainZod
|
|
1720
|
+
])
|
|
1721
|
+
},
|
|
1722
|
+
result: {
|
|
1723
|
+
from: z28.tuple([
|
|
1724
|
+
TimeDomainZod,
|
|
1725
|
+
z28.number()
|
|
1726
|
+
]),
|
|
1727
|
+
to: z28.tuple([
|
|
1728
|
+
TimeDomainZod,
|
|
1729
|
+
z28.number()
|
|
1730
|
+
])
|
|
1731
|
+
}
|
|
1732
|
+
},
|
|
1733
|
+
timeSyncViewer_currentTimeAndHash: {
|
|
1734
|
+
params: {
|
|
1735
|
+
from: z28.tuple([
|
|
1736
|
+
TimeDomainZod
|
|
1737
|
+
]),
|
|
1738
|
+
to: z28.tuple([
|
|
1739
|
+
TimeDomainZod
|
|
1740
|
+
])
|
|
1741
|
+
},
|
|
1742
|
+
result: {
|
|
1743
|
+
from: z28.tuple([
|
|
1744
|
+
z28.number(),
|
|
1745
|
+
z28.nullable(z28.string())
|
|
1746
|
+
]),
|
|
1747
|
+
to: z28.tuple([
|
|
1748
|
+
z28.number(),
|
|
1749
|
+
z28.nullable(z28.string())
|
|
1750
|
+
])
|
|
1751
|
+
}
|
|
1752
|
+
},
|
|
1753
|
+
timeSyncViewer_currentTimePayload: {
|
|
1754
|
+
params: {
|
|
1755
|
+
from: z28.tuple([]),
|
|
1756
|
+
to: z28.tuple([])
|
|
1757
|
+
},
|
|
1758
|
+
result: {
|
|
1759
|
+
from: TimePayloadZod,
|
|
1760
|
+
to: TimePayloadZod
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
};
|
|
1764
|
+
|
|
1765
|
+
// src/types/TimeSyncViewerRpc.ts
|
|
1766
|
+
var TimeSyncViewerRpcNamespace = "timeSyncViewer";
|
|
1767
|
+
|
|
1723
1768
|
// src/engine-node/rpcEngineFromConnection.ts
|
|
1724
1769
|
var rpcEngineFromConnection = /* @__PURE__ */ __name((connection, networkStakeViewer) => {
|
|
1725
1770
|
const engine = new JsonRpcEngine();
|
|
@@ -1739,6 +1784,7 @@ var rpcEngineFromConnection = /* @__PURE__ */ __name((connection, networkStakeVi
|
|
|
1739
1784
|
}
|
|
1740
1785
|
const parsed = requestSchema.safeParse(req);
|
|
1741
1786
|
if (!parsed.success) {
|
|
1787
|
+
console.error("RPC Request Validation Error:", parsed.error);
|
|
1742
1788
|
res.error = {
|
|
1743
1789
|
// Return invalid params error
|
|
1744
1790
|
...JsonRpcErrorCodes.InvalidParams,
|
|
@@ -1748,8 +1794,13 @@ var rpcEngineFromConnection = /* @__PURE__ */ __name((connection, networkStakeVi
|
|
|
1748
1794
|
return;
|
|
1749
1795
|
}
|
|
1750
1796
|
const { params } = parsed.data;
|
|
1751
|
-
|
|
1752
|
-
|
|
1797
|
+
try {
|
|
1798
|
+
const result = await handler(params);
|
|
1799
|
+
res.result = schema.result.to.parse(result);
|
|
1800
|
+
} catch (error) {
|
|
1801
|
+
console.error("RPC Response Handler Error:", error);
|
|
1802
|
+
throw error;
|
|
1803
|
+
}
|
|
1753
1804
|
}));
|
|
1754
1805
|
return engine;
|
|
1755
1806
|
}, "rpcEngineFromConnection");
|
|
@@ -1889,12 +1940,12 @@ var NodeXyoRunner = class {
|
|
|
1889
1940
|
}
|
|
1890
1941
|
getArchivist = /* @__PURE__ */ __name(async (identifier) => {
|
|
1891
1942
|
const archivist = await this.node.resolve(identifier);
|
|
1892
|
-
return assertEx2(asArchivistInstance(archivist), () => `
|
|
1943
|
+
return assertEx2(asArchivistInstance(archivist), () => `Could not resolve ${identifier} to an archivist instance`);
|
|
1893
1944
|
}, "getArchivist");
|
|
1894
1945
|
getPendingArchivist = /* @__PURE__ */ __name(async () => {
|
|
1895
1946
|
if (this._pendingArchivist) return this._pendingArchivist;
|
|
1896
1947
|
this._pendingArchivist = await this.getArchivist(this.pendingArchivistPath);
|
|
1897
|
-
return assertEx2(this._pendingArchivist, () => `
|
|
1948
|
+
return assertEx2(this._pendingArchivist, () => `Could not resolve pending archivist at ${this.pendingArchivistPath}`);
|
|
1898
1949
|
}, "getPendingArchivist");
|
|
1899
1950
|
};
|
|
1900
1951
|
|
|
@@ -1967,9 +2018,51 @@ var JsonRpcNetworkStakeViewer = class extends JsonRpcNetworkStakeViewerMethods {
|
|
|
1967
2018
|
}
|
|
1968
2019
|
};
|
|
1969
2020
|
|
|
2021
|
+
// src/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewerMethods.ts
|
|
2022
|
+
var JsonRpcTimeSyncViewerMethods = class {
|
|
2023
|
+
static {
|
|
2024
|
+
__name(this, "JsonRpcTimeSyncViewerMethods");
|
|
2025
|
+
}
|
|
2026
|
+
transport;
|
|
2027
|
+
constructor(transport) {
|
|
2028
|
+
this.transport = transport;
|
|
2029
|
+
}
|
|
2030
|
+
async convertTime(fromDomain, toDomain, from) {
|
|
2031
|
+
return await this.transport.sendRequest("timeSyncViewer_convertTime", [
|
|
2032
|
+
fromDomain,
|
|
2033
|
+
toDomain,
|
|
2034
|
+
from
|
|
2035
|
+
]);
|
|
2036
|
+
}
|
|
2037
|
+
async currentTime(domain) {
|
|
2038
|
+
return await this.transport.sendRequest("timeSyncViewer_currentTime", [
|
|
2039
|
+
domain
|
|
2040
|
+
]);
|
|
2041
|
+
}
|
|
2042
|
+
async currentTimeAndHash(domain) {
|
|
2043
|
+
return await this.transport.sendRequest("timeSyncViewer_currentTimeAndHash", [
|
|
2044
|
+
domain
|
|
2045
|
+
]);
|
|
2046
|
+
}
|
|
2047
|
+
async currentTimePayload() {
|
|
2048
|
+
return await this.transport.sendRequest("timeSyncViewer_currentTimePayload", []);
|
|
2049
|
+
}
|
|
2050
|
+
};
|
|
2051
|
+
|
|
2052
|
+
// src/provider/viewer/JsonRpcTimeSyncViewer/JsonRpcTimeSyncViewer.ts
|
|
2053
|
+
var JsonRpcTimeSyncViewer = class extends JsonRpcTimeSyncViewerMethods {
|
|
2054
|
+
static {
|
|
2055
|
+
__name(this, "JsonRpcTimeSyncViewer");
|
|
2056
|
+
}
|
|
2057
|
+
constructor(transport) {
|
|
2058
|
+
super(transport);
|
|
2059
|
+
}
|
|
2060
|
+
};
|
|
2061
|
+
|
|
1970
2062
|
// src/provider/viewer/JsonRpcXyoViewer.ts
|
|
1971
|
-
import {
|
|
1972
|
-
import {
|
|
2063
|
+
import { isHash } from "@xylabs/hex";
|
|
2064
|
+
import { isDefined } from "@xylabs/typeof";
|
|
2065
|
+
import { asAttoXL1 as asAttoXL14, asHydratedBlock } from "@xyo-network/xl1-protocol";
|
|
1973
2066
|
var JsonRpcXyoViewer = class {
|
|
1974
2067
|
static {
|
|
1975
2068
|
__name(this, "JsonRpcXyoViewer");
|
|
@@ -1989,18 +2082,16 @@ var JsonRpcXyoViewer = class {
|
|
|
1989
2082
|
]));
|
|
1990
2083
|
}
|
|
1991
2084
|
async accountBalanceHistory(address, headOrRange) {
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
}
|
|
2000
|
-
if (isRange(range)) {
|
|
2085
|
+
if (isDefined(headOrRange)) {
|
|
2086
|
+
if (isHash(headOrRange)) {
|
|
2087
|
+
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
2088
|
+
address,
|
|
2089
|
+
headOrRange
|
|
2090
|
+
]);
|
|
2091
|
+
}
|
|
2001
2092
|
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
2002
2093
|
address,
|
|
2003
|
-
|
|
2094
|
+
headOrRange
|
|
2004
2095
|
]);
|
|
2005
2096
|
}
|
|
2006
2097
|
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
@@ -2157,11 +2248,6 @@ var JsonRpcXyoViewer = class {
|
|
|
2157
2248
|
slot
|
|
2158
2249
|
]);
|
|
2159
2250
|
}
|
|
2160
|
-
async stakedByStaker(staker) {
|
|
2161
|
-
return await this.transport.sendRequest("xyoViewer_stakedByStaker", [
|
|
2162
|
-
staker
|
|
2163
|
-
]);
|
|
2164
|
-
}
|
|
2165
2251
|
async stakesByStaked(staked) {
|
|
2166
2252
|
return await this.transport.sendRequest("xyoViewer_stakesByStaked", [
|
|
2167
2253
|
staked
|
|
@@ -2331,7 +2417,6 @@ var RpcXyoSigner = class {
|
|
|
2331
2417
|
}
|
|
2332
2418
|
};
|
|
2333
2419
|
export {
|
|
2334
|
-
AddressZod,
|
|
2335
2420
|
AllRpcSchemas,
|
|
2336
2421
|
AnyBoundWitnessZod,
|
|
2337
2422
|
AnySignedBoundWitnessWithStorageMetaZod,
|
|
@@ -2349,6 +2434,7 @@ export {
|
|
|
2349
2434
|
CaveatTypesZod,
|
|
2350
2435
|
CaveatsZod,
|
|
2351
2436
|
ChainZod,
|
|
2437
|
+
DataLakeViewerRpcNamespace,
|
|
2352
2438
|
DataLakeViewerRpcSchemas,
|
|
2353
2439
|
HttpRpcTransport,
|
|
2354
2440
|
HttpRpcXyoConnection,
|
|
@@ -2364,6 +2450,8 @@ export {
|
|
|
2364
2450
|
JsonRpcNetworkStakeViewerMethods,
|
|
2365
2451
|
JsonRpcNetworkStakingStepRewardsViewer,
|
|
2366
2452
|
JsonRpcNetworkStakingStepRewardsViewerMethods,
|
|
2453
|
+
JsonRpcTimeSyncViewer,
|
|
2454
|
+
JsonRpcTimeSyncViewerMethods,
|
|
2367
2455
|
JsonRpcViewer,
|
|
2368
2456
|
JsonRpcXyoRunner,
|
|
2369
2457
|
JsonRpcXyoViewer,
|
|
@@ -2387,7 +2475,6 @@ export {
|
|
|
2387
2475
|
NetworkStakingStepRewardsViewerRpcNamespace,
|
|
2388
2476
|
NetworkStakingStepRewardsViewerRpcSchemas,
|
|
2389
2477
|
NodeXyoRunner,
|
|
2390
|
-
PayloadZodOfSchema,
|
|
2391
2478
|
PermissionRequestZod,
|
|
2392
2479
|
PermissionZod,
|
|
2393
2480
|
QualifiedSequenceFromStringZod,
|
|
@@ -2409,15 +2496,15 @@ export {
|
|
|
2409
2496
|
SignedTransactionBoundWitnessZod,
|
|
2410
2497
|
StakeToJsonZod,
|
|
2411
2498
|
StakeZod,
|
|
2412
|
-
|
|
2499
|
+
TimeDomainZod,
|
|
2500
|
+
TimeSyncViewerRpcNamespace,
|
|
2501
|
+
TimeSyncViewerRpcSchemas,
|
|
2413
2502
|
TransactionBoundWitnessZod,
|
|
2414
2503
|
TransactionFeesBigIntToJsonZod,
|
|
2415
2504
|
TransactionFeesBigIntZod,
|
|
2416
2505
|
TransactionFeesHexZod,
|
|
2417
2506
|
TransactionFeesJsonToBigIntZod,
|
|
2418
|
-
TransferFieldsZod,
|
|
2419
2507
|
TransferPairZod,
|
|
2420
|
-
TransferZod,
|
|
2421
2508
|
UnsignedBoundWitnessWithStorageMetaZod,
|
|
2422
2509
|
UnsignedBoundWitnessZod,
|
|
2423
2510
|
UnsignedHydratedTransactionZod,
|