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