@xyo-network/xl1-rpc 1.16.8 → 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 +603 -509
- 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 +196 -566
- 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 +180 -518
- 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 +611 -511
- 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 +196 -566
- 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 +180 -518
- 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 +12 -21
- 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 +6 -17
- 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 -25
- 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 -25
- 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 -16
- /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,79 +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 TransferZod = PayloadZodStrictOfSchema(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
|
+
]);
|
|
536
519
|
|
|
537
520
|
// src/types/schema/common/TransferPair.ts
|
|
538
|
-
import
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
521
|
+
import { AddressZod as AddressZod4 } from "@xylabs/hex";
|
|
522
|
+
import z16 from "zod";
|
|
523
|
+
var TransferPairZod = z16.tuple([
|
|
524
|
+
AddressZod4,
|
|
525
|
+
AddressZod4
|
|
542
526
|
]);
|
|
543
527
|
|
|
544
528
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
545
529
|
var XyoPermissionsRpcSchemas = {
|
|
546
530
|
xyoPermissions_getPermissions: {
|
|
547
531
|
params: {
|
|
548
|
-
to:
|
|
549
|
-
from:
|
|
532
|
+
to: z17.array(z17.any()).length(0),
|
|
533
|
+
from: z17.array(z17.any()).length(0)
|
|
550
534
|
},
|
|
551
535
|
result: {
|
|
552
|
-
to:
|
|
553
|
-
from:
|
|
536
|
+
to: z17.array(InvokerPermissionZod),
|
|
537
|
+
from: z17.array(InvokerPermissionZod)
|
|
554
538
|
}
|
|
555
539
|
},
|
|
556
540
|
xyoPermissions_requestPermissions: {
|
|
557
541
|
params: {
|
|
558
|
-
to:
|
|
559
|
-
|
|
542
|
+
to: z17.tuple([
|
|
543
|
+
z17.array(PermissionRequestZod)
|
|
560
544
|
]),
|
|
561
|
-
from:
|
|
562
|
-
|
|
545
|
+
from: z17.tuple([
|
|
546
|
+
z17.array(PermissionRequestZod)
|
|
563
547
|
])
|
|
564
548
|
},
|
|
565
549
|
result: {
|
|
566
|
-
to:
|
|
567
|
-
from:
|
|
550
|
+
to: z17.array(RequestedPermissionZod),
|
|
551
|
+
from: z17.array(RequestedPermissionZod)
|
|
568
552
|
}
|
|
569
553
|
},
|
|
570
554
|
xyoPermissions_revokePermissions: {
|
|
571
555
|
params: {
|
|
572
|
-
to:
|
|
573
|
-
|
|
556
|
+
to: z17.tuple([
|
|
557
|
+
z17.array(PermissionRequestZod)
|
|
574
558
|
]),
|
|
575
|
-
from:
|
|
576
|
-
|
|
559
|
+
from: z17.tuple([
|
|
560
|
+
z17.array(PermissionRequestZod)
|
|
577
561
|
])
|
|
578
562
|
},
|
|
579
563
|
result: {
|
|
580
|
-
to:
|
|
581
|
-
from:
|
|
564
|
+
to: z17.array(RequestedPermissionZod),
|
|
565
|
+
from: z17.array(RequestedPermissionZod)
|
|
582
566
|
}
|
|
583
567
|
}
|
|
584
568
|
};
|
|
585
569
|
|
|
586
570
|
// src/types/schema/XyoRunnerRpcSchemas.ts
|
|
587
571
|
import { HashToJsonZod, JsonToHashZod } from "@xylabs/hex";
|
|
588
|
-
import * as
|
|
572
|
+
import * as z18 from "zod";
|
|
589
573
|
var XyoRunnerRpcSchemas = {
|
|
590
574
|
xyoRunner_broadcastTransaction: {
|
|
591
575
|
params: {
|
|
592
|
-
to:
|
|
576
|
+
to: z18.tuple([
|
|
593
577
|
SignedHydratedTransactionZod
|
|
594
578
|
]),
|
|
595
|
-
from:
|
|
579
|
+
from: z18.tuple([
|
|
596
580
|
SignedHydratedTransactionZod
|
|
597
581
|
])
|
|
598
582
|
},
|
|
@@ -604,25 +588,26 @@ var XyoRunnerRpcSchemas = {
|
|
|
604
588
|
};
|
|
605
589
|
|
|
606
590
|
// src/types/schema/XyoSignerRpcSchemas.ts
|
|
591
|
+
import { AddressZod as AddressZod5 } from "@xylabs/hex";
|
|
607
592
|
import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
|
|
608
|
-
import { z as
|
|
593
|
+
import { z as z19 } from "zod";
|
|
609
594
|
var XyoSignerRpcSchemas = {
|
|
610
595
|
xyoSigner_address: {
|
|
611
596
|
params: {
|
|
612
|
-
to:
|
|
613
|
-
from:
|
|
597
|
+
to: z19.array(z19.any()).length(0).optional(),
|
|
598
|
+
from: z19.array(z19.any()).length(0).optional()
|
|
614
599
|
},
|
|
615
600
|
result: {
|
|
616
|
-
to:
|
|
617
|
-
from:
|
|
601
|
+
to: AddressZod5,
|
|
602
|
+
from: AddressZod5
|
|
618
603
|
}
|
|
619
604
|
},
|
|
620
605
|
xyoSigner_signTransaction: {
|
|
621
606
|
params: {
|
|
622
|
-
to:
|
|
607
|
+
to: z19.tuple([
|
|
623
608
|
UnsignedHydratedTransactionZod
|
|
624
609
|
]),
|
|
625
|
-
from:
|
|
610
|
+
from: z19.tuple([
|
|
626
611
|
UnsignedHydratedTransactionZod
|
|
627
612
|
])
|
|
628
613
|
},
|
|
@@ -636,18 +621,18 @@ var XyoSignerRpcSchemas = {
|
|
|
636
621
|
};
|
|
637
622
|
|
|
638
623
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
639
|
-
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";
|
|
640
625
|
import { WithHashMetaZod } from "@xyo-network/payload-model";
|
|
641
|
-
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
642
|
-
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";
|
|
643
628
|
var XyoViewerRpcSchemas = {
|
|
644
629
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
645
630
|
params: {
|
|
646
|
-
to:
|
|
647
|
-
|
|
631
|
+
to: z20.tuple([
|
|
632
|
+
AddressZod6
|
|
648
633
|
]),
|
|
649
|
-
from:
|
|
650
|
-
|
|
634
|
+
from: z20.tuple([
|
|
635
|
+
AddressZod6
|
|
651
636
|
])
|
|
652
637
|
},
|
|
653
638
|
result: {
|
|
@@ -657,51 +642,51 @@ var XyoViewerRpcSchemas = {
|
|
|
657
642
|
},
|
|
658
643
|
xyoViewer_networkStakeStepRewardAddressReward: {
|
|
659
644
|
params: {
|
|
660
|
-
to:
|
|
645
|
+
to: z20.tuple([
|
|
661
646
|
StepIdentityZod2,
|
|
662
|
-
|
|
647
|
+
AddressZod6
|
|
663
648
|
]),
|
|
664
|
-
from:
|
|
649
|
+
from: z20.tuple([
|
|
665
650
|
StepIdentityZod2,
|
|
666
|
-
|
|
651
|
+
AddressZod6
|
|
667
652
|
])
|
|
668
653
|
},
|
|
669
654
|
result: {
|
|
670
|
-
to:
|
|
671
|
-
from:
|
|
655
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
656
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
672
657
|
}
|
|
673
658
|
},
|
|
674
659
|
xyoViewer_networkStakeStepRewardAddressHistory: {
|
|
675
660
|
params: {
|
|
676
|
-
to:
|
|
677
|
-
|
|
661
|
+
to: z20.tuple([
|
|
662
|
+
AddressZod6
|
|
678
663
|
]),
|
|
679
|
-
from:
|
|
680
|
-
|
|
664
|
+
from: z20.tuple([
|
|
665
|
+
AddressZod6
|
|
681
666
|
])
|
|
682
667
|
},
|
|
683
668
|
result: {
|
|
684
|
-
to:
|
|
685
|
-
from:
|
|
669
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
670
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
686
671
|
}
|
|
687
672
|
},
|
|
688
673
|
xyoViewer_networkStakeStepRewardAddressShare: {
|
|
689
674
|
params: {
|
|
690
|
-
to:
|
|
675
|
+
to: z20.tuple([
|
|
691
676
|
StepIdentityZod2,
|
|
692
|
-
|
|
677
|
+
AddressZod6
|
|
693
678
|
]),
|
|
694
|
-
from:
|
|
679
|
+
from: z20.tuple([
|
|
695
680
|
StepIdentityZod2,
|
|
696
|
-
|
|
681
|
+
AddressZod6
|
|
697
682
|
])
|
|
698
683
|
},
|
|
699
684
|
result: {
|
|
700
|
-
to:
|
|
685
|
+
to: z20.tuple([
|
|
701
686
|
BigIntToJsonZod3,
|
|
702
687
|
BigIntToJsonZod3
|
|
703
688
|
]),
|
|
704
|
-
from:
|
|
689
|
+
from: z20.tuple([
|
|
705
690
|
JsonToBigIntZod3,
|
|
706
691
|
JsonToBigIntZod3
|
|
707
692
|
])
|
|
@@ -709,13 +694,13 @@ var XyoViewerRpcSchemas = {
|
|
|
709
694
|
},
|
|
710
695
|
xyoViewer_networkStakeStepRewardWeightForAddress: {
|
|
711
696
|
params: {
|
|
712
|
-
to:
|
|
697
|
+
to: z20.tuple([
|
|
713
698
|
StepIdentityZod2,
|
|
714
|
-
|
|
699
|
+
AddressZod6
|
|
715
700
|
]),
|
|
716
|
-
from:
|
|
701
|
+
from: z20.tuple([
|
|
717
702
|
StepIdentityZod2,
|
|
718
|
-
|
|
703
|
+
AddressZod6
|
|
719
704
|
])
|
|
720
705
|
},
|
|
721
706
|
result: {
|
|
@@ -725,11 +710,11 @@ var XyoViewerRpcSchemas = {
|
|
|
725
710
|
},
|
|
726
711
|
xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
|
|
727
712
|
params: {
|
|
728
|
-
to:
|
|
729
|
-
|
|
713
|
+
to: z20.tuple([
|
|
714
|
+
AddressZod6
|
|
730
715
|
]),
|
|
731
|
-
from:
|
|
732
|
-
|
|
716
|
+
from: z20.tuple([
|
|
717
|
+
AddressZod6
|
|
733
718
|
])
|
|
734
719
|
},
|
|
735
720
|
result: {
|
|
@@ -739,27 +724,27 @@ var XyoViewerRpcSchemas = {
|
|
|
739
724
|
},
|
|
740
725
|
xyoViewer_networkStakeStepRewardPoolRewards: {
|
|
741
726
|
params: {
|
|
742
|
-
to:
|
|
727
|
+
to: z20.tuple([
|
|
743
728
|
StepIdentityZod2
|
|
744
729
|
]),
|
|
745
|
-
from:
|
|
730
|
+
from: z20.tuple([
|
|
746
731
|
StepIdentityZod2
|
|
747
732
|
])
|
|
748
733
|
},
|
|
749
734
|
result: {
|
|
750
|
-
to:
|
|
751
|
-
from:
|
|
735
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
736
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
752
737
|
}
|
|
753
738
|
},
|
|
754
739
|
xyoViewer_networkStakeStepRewardPositionWeight: {
|
|
755
740
|
params: {
|
|
756
|
-
to:
|
|
741
|
+
to: z20.tuple([
|
|
757
742
|
StepIdentityZod2,
|
|
758
|
-
|
|
743
|
+
z20.number()
|
|
759
744
|
]),
|
|
760
|
-
from:
|
|
745
|
+
from: z20.tuple([
|
|
761
746
|
StepIdentityZod2,
|
|
762
|
-
|
|
747
|
+
z20.number()
|
|
763
748
|
])
|
|
764
749
|
},
|
|
765
750
|
result: {
|
|
@@ -769,13 +754,13 @@ var XyoViewerRpcSchemas = {
|
|
|
769
754
|
},
|
|
770
755
|
xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
|
|
771
756
|
params: {
|
|
772
|
-
to:
|
|
757
|
+
to: z20.tuple([
|
|
773
758
|
StepIdentityZod2,
|
|
774
|
-
|
|
759
|
+
z20.number()
|
|
775
760
|
]),
|
|
776
|
-
from:
|
|
761
|
+
from: z20.tuple([
|
|
777
762
|
StepIdentityZod2,
|
|
778
|
-
|
|
763
|
+
z20.number()
|
|
779
764
|
])
|
|
780
765
|
},
|
|
781
766
|
result: {
|
|
@@ -785,10 +770,10 @@ var XyoViewerRpcSchemas = {
|
|
|
785
770
|
},
|
|
786
771
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
787
772
|
params: {
|
|
788
|
-
to:
|
|
773
|
+
to: z20.tuple([
|
|
789
774
|
StepIdentityZod2
|
|
790
775
|
]),
|
|
791
|
-
from:
|
|
776
|
+
from: z20.tuple([
|
|
792
777
|
StepIdentityZod2
|
|
793
778
|
])
|
|
794
779
|
},
|
|
@@ -799,10 +784,10 @@ var XyoViewerRpcSchemas = {
|
|
|
799
784
|
},
|
|
800
785
|
xyoViewer_networkStakeStepRewardRandomizer: {
|
|
801
786
|
params: {
|
|
802
|
-
to:
|
|
787
|
+
to: z20.tuple([
|
|
803
788
|
StepIdentityZod2
|
|
804
789
|
]),
|
|
805
|
-
from:
|
|
790
|
+
from: z20.tuple([
|
|
806
791
|
StepIdentityZod2
|
|
807
792
|
])
|
|
808
793
|
},
|
|
@@ -813,49 +798,49 @@ var XyoViewerRpcSchemas = {
|
|
|
813
798
|
},
|
|
814
799
|
xyoViewer_networkStakeStepRewardStakerCount: {
|
|
815
800
|
params: {
|
|
816
|
-
to:
|
|
801
|
+
to: z20.tuple([
|
|
817
802
|
StepIdentityZod2
|
|
818
803
|
]),
|
|
819
|
-
from:
|
|
804
|
+
from: z20.tuple([
|
|
820
805
|
StepIdentityZod2
|
|
821
806
|
])
|
|
822
807
|
},
|
|
823
808
|
result: {
|
|
824
|
-
to:
|
|
825
|
-
from:
|
|
809
|
+
to: z20.number(),
|
|
810
|
+
from: z20.number()
|
|
826
811
|
}
|
|
827
812
|
},
|
|
828
813
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
829
814
|
params: {
|
|
830
|
-
to:
|
|
815
|
+
to: z20.tuple([
|
|
831
816
|
StepIdentityZod2
|
|
832
817
|
]),
|
|
833
|
-
from:
|
|
818
|
+
from: z20.tuple([
|
|
834
819
|
StepIdentityZod2
|
|
835
820
|
])
|
|
836
821
|
},
|
|
837
822
|
result: {
|
|
838
|
-
to:
|
|
839
|
-
from:
|
|
823
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
824
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
840
825
|
}
|
|
841
826
|
},
|
|
842
827
|
xyoViewer_networkStakeStepRewardForStepForPosition: {
|
|
843
828
|
params: {
|
|
844
|
-
to:
|
|
829
|
+
to: z20.tuple([
|
|
845
830
|
StepIdentityZod2,
|
|
846
|
-
|
|
831
|
+
z20.number()
|
|
847
832
|
]),
|
|
848
|
-
from:
|
|
833
|
+
from: z20.tuple([
|
|
849
834
|
StepIdentityZod2,
|
|
850
|
-
|
|
835
|
+
z20.number()
|
|
851
836
|
])
|
|
852
837
|
},
|
|
853
838
|
result: {
|
|
854
|
-
to:
|
|
839
|
+
to: z20.tuple([
|
|
855
840
|
BigIntToJsonZod3,
|
|
856
841
|
BigIntToJsonZod3
|
|
857
842
|
]),
|
|
858
|
-
from:
|
|
843
|
+
from: z20.tuple([
|
|
859
844
|
JsonToBigIntZod3,
|
|
860
845
|
JsonToBigIntZod3
|
|
861
846
|
])
|
|
@@ -863,27 +848,27 @@ var XyoViewerRpcSchemas = {
|
|
|
863
848
|
},
|
|
864
849
|
xyoViewer_networkStakeStepRewardForPosition: {
|
|
865
850
|
params: {
|
|
866
|
-
to:
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
851
|
+
to: z20.tuple([
|
|
852
|
+
z20.number(),
|
|
853
|
+
z20.tuple([
|
|
854
|
+
z20.number(),
|
|
855
|
+
z20.number()
|
|
871
856
|
])
|
|
872
857
|
]),
|
|
873
|
-
from:
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
858
|
+
from: z20.tuple([
|
|
859
|
+
z20.number(),
|
|
860
|
+
z20.tuple([
|
|
861
|
+
z20.number(),
|
|
862
|
+
z20.number()
|
|
878
863
|
])
|
|
879
864
|
])
|
|
880
865
|
},
|
|
881
866
|
result: {
|
|
882
|
-
to:
|
|
867
|
+
to: z20.tuple([
|
|
883
868
|
BigIntToJsonZod3,
|
|
884
869
|
BigIntToJsonZod3
|
|
885
870
|
]),
|
|
886
|
-
from:
|
|
871
|
+
from: z20.tuple([
|
|
887
872
|
JsonToBigIntZod3,
|
|
888
873
|
JsonToBigIntZod3
|
|
889
874
|
])
|
|
@@ -891,16 +876,16 @@ var XyoViewerRpcSchemas = {
|
|
|
891
876
|
},
|
|
892
877
|
xyoViewer_networkStakeStepRewardsForRange: {
|
|
893
878
|
params: {
|
|
894
|
-
to:
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
879
|
+
to: z20.tuple([
|
|
880
|
+
z20.tuple([
|
|
881
|
+
z20.number(),
|
|
882
|
+
z20.number()
|
|
898
883
|
])
|
|
899
884
|
]),
|
|
900
|
-
from:
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
885
|
+
from: z20.tuple([
|
|
886
|
+
z20.tuple([
|
|
887
|
+
z20.number(),
|
|
888
|
+
z20.number()
|
|
904
889
|
])
|
|
905
890
|
])
|
|
906
891
|
},
|
|
@@ -911,18 +896,18 @@ var XyoViewerRpcSchemas = {
|
|
|
911
896
|
},
|
|
912
897
|
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
913
898
|
params: {
|
|
914
|
-
to:
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
899
|
+
to: z20.tuple([
|
|
900
|
+
z20.number(),
|
|
901
|
+
z20.tuple([
|
|
902
|
+
z20.number(),
|
|
903
|
+
z20.number()
|
|
919
904
|
])
|
|
920
905
|
]),
|
|
921
|
-
from:
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
906
|
+
from: z20.tuple([
|
|
907
|
+
z20.number(),
|
|
908
|
+
z20.tuple([
|
|
909
|
+
z20.number(),
|
|
910
|
+
z20.number()
|
|
926
911
|
])
|
|
927
912
|
])
|
|
928
913
|
},
|
|
@@ -933,27 +918,27 @@ var XyoViewerRpcSchemas = {
|
|
|
933
918
|
},
|
|
934
919
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
935
920
|
params: {
|
|
936
|
-
to:
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
921
|
+
to: z20.tuple([
|
|
922
|
+
z20.number(),
|
|
923
|
+
z20.tuple([
|
|
924
|
+
z20.number(),
|
|
925
|
+
z20.number()
|
|
941
926
|
])
|
|
942
927
|
]),
|
|
943
|
-
from:
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
928
|
+
from: z20.tuple([
|
|
929
|
+
z20.number(),
|
|
930
|
+
z20.tuple([
|
|
931
|
+
z20.number(),
|
|
932
|
+
z20.number()
|
|
948
933
|
])
|
|
949
934
|
])
|
|
950
935
|
},
|
|
951
936
|
result: {
|
|
952
|
-
to:
|
|
937
|
+
to: z20.record(z20.string(), z20.tuple([
|
|
953
938
|
BigIntToJsonZod3,
|
|
954
939
|
BigIntToJsonZod3
|
|
955
940
|
])),
|
|
956
|
-
from:
|
|
941
|
+
from: z20.record(z20.string(), z20.tuple([
|
|
957
942
|
JsonToBigIntZod3,
|
|
958
943
|
JsonToBigIntZod3
|
|
959
944
|
]))
|
|
@@ -961,11 +946,11 @@ var XyoViewerRpcSchemas = {
|
|
|
961
946
|
},
|
|
962
947
|
xyoViewer_accountBalance: {
|
|
963
948
|
params: {
|
|
964
|
-
to:
|
|
965
|
-
|
|
949
|
+
to: z20.tuple([
|
|
950
|
+
AddressZod6
|
|
966
951
|
]),
|
|
967
|
-
from:
|
|
968
|
-
|
|
952
|
+
from: z20.tuple([
|
|
953
|
+
AddressZod6
|
|
969
954
|
])
|
|
970
955
|
},
|
|
971
956
|
result: {
|
|
@@ -975,28 +960,38 @@ var XyoViewerRpcSchemas = {
|
|
|
975
960
|
},
|
|
976
961
|
xyoViewer_accountBalanceHistory: {
|
|
977
962
|
params: {
|
|
978
|
-
to:
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
963
|
+
to: z20.union([
|
|
964
|
+
z20.tuple([
|
|
965
|
+
AddressZod6
|
|
966
|
+
]),
|
|
967
|
+
z20.tuple([
|
|
968
|
+
AddressZod6,
|
|
969
|
+
z20.union([
|
|
970
|
+
XL1BlockRangeZod,
|
|
971
|
+
HashZod3
|
|
972
|
+
])
|
|
973
|
+
])
|
|
984
974
|
]),
|
|
985
|
-
from:
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
975
|
+
from: z20.union([
|
|
976
|
+
z20.tuple([
|
|
977
|
+
AddressZod6
|
|
978
|
+
]),
|
|
979
|
+
z20.tuple([
|
|
980
|
+
AddressZod6,
|
|
981
|
+
z20.union([
|
|
982
|
+
XL1BlockRangeZod,
|
|
983
|
+
HashZod3
|
|
984
|
+
])
|
|
985
|
+
])
|
|
991
986
|
])
|
|
992
987
|
},
|
|
993
988
|
result: {
|
|
994
|
-
to:
|
|
989
|
+
to: z20.array(z20.tuple([
|
|
995
990
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
996
991
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
997
992
|
WithHashMetaZod(TransferZod)
|
|
998
993
|
])),
|
|
999
|
-
from:
|
|
994
|
+
from: z20.array(z20.tuple([
|
|
1000
995
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1001
996
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1002
997
|
WithHashMetaZod(TransferZod)
|
|
@@ -1005,10 +1000,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1005
1000
|
},
|
|
1006
1001
|
xyoViewer_transferPairBalance: {
|
|
1007
1002
|
params: {
|
|
1008
|
-
to:
|
|
1003
|
+
to: z20.tuple([
|
|
1009
1004
|
TransferPairZod
|
|
1010
1005
|
]),
|
|
1011
|
-
from:
|
|
1006
|
+
from: z20.tuple([
|
|
1012
1007
|
TransferPairZod
|
|
1013
1008
|
])
|
|
1014
1009
|
},
|
|
@@ -1019,20 +1014,20 @@ var XyoViewerRpcSchemas = {
|
|
|
1019
1014
|
},
|
|
1020
1015
|
xyoViewer_transferPairBalanceHistory: {
|
|
1021
1016
|
params: {
|
|
1022
|
-
to:
|
|
1017
|
+
to: z20.tuple([
|
|
1023
1018
|
TransferPairZod
|
|
1024
1019
|
]),
|
|
1025
|
-
from:
|
|
1020
|
+
from: z20.tuple([
|
|
1026
1021
|
TransferPairZod
|
|
1027
1022
|
])
|
|
1028
1023
|
},
|
|
1029
1024
|
result: {
|
|
1030
|
-
to:
|
|
1025
|
+
to: z20.array(z20.tuple([
|
|
1031
1026
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1032
1027
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1033
1028
|
WithHashMetaZod(TransferZod)
|
|
1034
1029
|
])),
|
|
1035
|
-
from:
|
|
1030
|
+
from: z20.array(z20.tuple([
|
|
1036
1031
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1037
1032
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1038
1033
|
WithHashMetaZod(TransferZod)
|
|
@@ -1041,11 +1036,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1041
1036
|
},
|
|
1042
1037
|
xyoViewer_transferBalance: {
|
|
1043
1038
|
params: {
|
|
1044
|
-
to:
|
|
1045
|
-
|
|
1039
|
+
to: z20.tuple([
|
|
1040
|
+
AddressZod6
|
|
1046
1041
|
]),
|
|
1047
|
-
from:
|
|
1048
|
-
|
|
1042
|
+
from: z20.tuple([
|
|
1043
|
+
AddressZod6
|
|
1049
1044
|
])
|
|
1050
1045
|
},
|
|
1051
1046
|
result: {
|
|
@@ -1055,22 +1050,22 @@ var XyoViewerRpcSchemas = {
|
|
|
1055
1050
|
},
|
|
1056
1051
|
xyoViewer_transferBalanceHistory: {
|
|
1057
1052
|
params: {
|
|
1058
|
-
to:
|
|
1059
|
-
|
|
1053
|
+
to: z20.tuple([
|
|
1054
|
+
AddressZod6,
|
|
1060
1055
|
BlockRangeZod2.optional()
|
|
1061
1056
|
]),
|
|
1062
|
-
from:
|
|
1063
|
-
|
|
1057
|
+
from: z20.tuple([
|
|
1058
|
+
AddressZod6,
|
|
1064
1059
|
BlockRangeZod2.optional()
|
|
1065
1060
|
])
|
|
1066
1061
|
},
|
|
1067
1062
|
result: {
|
|
1068
|
-
to:
|
|
1063
|
+
to: z20.array(z20.tuple([
|
|
1069
1064
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1070
1065
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1071
1066
|
WithHashMetaZod(TransferZod)
|
|
1072
1067
|
])),
|
|
1073
|
-
from:
|
|
1068
|
+
from: z20.array(z20.tuple([
|
|
1074
1069
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1075
1070
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1076
1071
|
WithHashMetaZod(TransferZod)
|
|
@@ -1079,10 +1074,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1079
1074
|
},
|
|
1080
1075
|
xyoViewer_blockByHash: {
|
|
1081
1076
|
params: {
|
|
1082
|
-
to:
|
|
1077
|
+
to: z20.tuple([
|
|
1083
1078
|
HashToJsonZod2
|
|
1084
1079
|
]),
|
|
1085
|
-
from:
|
|
1080
|
+
from: z20.tuple([
|
|
1086
1081
|
JsonToHashZod2
|
|
1087
1082
|
])
|
|
1088
1083
|
},
|
|
@@ -1093,11 +1088,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1093
1088
|
},
|
|
1094
1089
|
xyoViewer_blockByNumber: {
|
|
1095
1090
|
params: {
|
|
1096
|
-
to:
|
|
1097
|
-
|
|
1091
|
+
to: z20.tuple([
|
|
1092
|
+
z20.number()
|
|
1098
1093
|
]),
|
|
1099
|
-
from:
|
|
1100
|
-
|
|
1094
|
+
from: z20.tuple([
|
|
1095
|
+
z20.number()
|
|
1101
1096
|
])
|
|
1102
1097
|
},
|
|
1103
1098
|
result: {
|
|
@@ -1107,48 +1102,48 @@ var XyoViewerRpcSchemas = {
|
|
|
1107
1102
|
},
|
|
1108
1103
|
xyoViewer_blocksByHash: {
|
|
1109
1104
|
params: {
|
|
1110
|
-
to:
|
|
1105
|
+
to: z20.tuple([
|
|
1111
1106
|
HashZod3,
|
|
1112
|
-
|
|
1107
|
+
z20.number().optional()
|
|
1113
1108
|
]),
|
|
1114
|
-
from:
|
|
1109
|
+
from: z20.tuple([
|
|
1115
1110
|
HashZod3,
|
|
1116
|
-
|
|
1111
|
+
z20.number().optional()
|
|
1117
1112
|
])
|
|
1118
1113
|
},
|
|
1119
1114
|
result: {
|
|
1120
|
-
to:
|
|
1121
|
-
from:
|
|
1115
|
+
to: z20.array(SignedHydratedBlockZod),
|
|
1116
|
+
from: z20.array(SignedHydratedBlockZod)
|
|
1122
1117
|
}
|
|
1123
1118
|
},
|
|
1124
1119
|
xyoViewer_chainId: {
|
|
1125
1120
|
params: {
|
|
1126
|
-
to:
|
|
1127
|
-
from:
|
|
1121
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1122
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1128
1123
|
},
|
|
1129
1124
|
result: {
|
|
1130
|
-
to:
|
|
1131
|
-
from:
|
|
1125
|
+
to: AddressZod6,
|
|
1126
|
+
from: AddressZod6
|
|
1132
1127
|
}
|
|
1133
1128
|
},
|
|
1134
1129
|
xyoViewer_chainIdAtBlock: {
|
|
1135
1130
|
params: {
|
|
1136
|
-
to:
|
|
1131
|
+
to: z20.tuple([
|
|
1137
1132
|
BlockNumberZod3
|
|
1138
1133
|
]),
|
|
1139
|
-
from:
|
|
1134
|
+
from: z20.tuple([
|
|
1140
1135
|
BlockNumberZod3
|
|
1141
1136
|
])
|
|
1142
1137
|
},
|
|
1143
1138
|
result: {
|
|
1144
|
-
to:
|
|
1145
|
-
from:
|
|
1139
|
+
to: AddressZod6,
|
|
1140
|
+
from: AddressZod6
|
|
1146
1141
|
}
|
|
1147
1142
|
},
|
|
1148
1143
|
xyoViewer_currentBlock: {
|
|
1149
1144
|
params: {
|
|
1150
|
-
to:
|
|
1151
|
-
from:
|
|
1145
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1146
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1152
1147
|
},
|
|
1153
1148
|
result: {
|
|
1154
1149
|
to: SignedHydratedBlockZod,
|
|
@@ -1157,8 +1152,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1157
1152
|
},
|
|
1158
1153
|
xyoViewer_currentBlockHash: {
|
|
1159
1154
|
params: {
|
|
1160
|
-
to:
|
|
1161
|
-
from:
|
|
1155
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1156
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1162
1157
|
},
|
|
1163
1158
|
result: {
|
|
1164
1159
|
to: HashZod3,
|
|
@@ -1167,33 +1162,33 @@ var XyoViewerRpcSchemas = {
|
|
|
1167
1162
|
},
|
|
1168
1163
|
xyoViewer_currentBlockNumber: {
|
|
1169
1164
|
params: {
|
|
1170
|
-
to:
|
|
1171
|
-
from:
|
|
1165
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1166
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1172
1167
|
},
|
|
1173
1168
|
result: {
|
|
1174
|
-
to:
|
|
1175
|
-
from:
|
|
1169
|
+
to: XL1BlockNumberZod2,
|
|
1170
|
+
from: XL1BlockNumberZod2
|
|
1176
1171
|
}
|
|
1177
1172
|
},
|
|
1178
1173
|
xyoViewer_forkHistory: {
|
|
1179
1174
|
params: {
|
|
1180
|
-
to:
|
|
1181
|
-
from:
|
|
1175
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1176
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1182
1177
|
},
|
|
1183
1178
|
result: {
|
|
1184
|
-
to:
|
|
1185
|
-
from:
|
|
1179
|
+
to: z20.record(z20.number(), AddressZod6),
|
|
1180
|
+
from: z20.record(z20.number(), AddressZod6)
|
|
1186
1181
|
}
|
|
1187
1182
|
},
|
|
1188
1183
|
xyoViewer_stakeByStaker: {
|
|
1189
1184
|
params: {
|
|
1190
|
-
to:
|
|
1191
|
-
|
|
1192
|
-
|
|
1185
|
+
to: z20.tuple([
|
|
1186
|
+
AddressZod6,
|
|
1187
|
+
z20.number()
|
|
1193
1188
|
]),
|
|
1194
|
-
from:
|
|
1195
|
-
|
|
1196
|
-
|
|
1189
|
+
from: z20.tuple([
|
|
1190
|
+
AddressZod6,
|
|
1191
|
+
z20.number()
|
|
1197
1192
|
])
|
|
1198
1193
|
},
|
|
1199
1194
|
result: {
|
|
@@ -1203,11 +1198,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1203
1198
|
},
|
|
1204
1199
|
xyoViewer_stakeById: {
|
|
1205
1200
|
params: {
|
|
1206
|
-
to:
|
|
1207
|
-
|
|
1201
|
+
to: z20.tuple([
|
|
1202
|
+
z20.number()
|
|
1208
1203
|
]),
|
|
1209
|
-
from:
|
|
1210
|
-
|
|
1204
|
+
from: z20.tuple([
|
|
1205
|
+
z20.number()
|
|
1211
1206
|
])
|
|
1212
1207
|
},
|
|
1213
1208
|
result: {
|
|
@@ -1215,57 +1210,43 @@ var XyoViewerRpcSchemas = {
|
|
|
1215
1210
|
from: JsonToStakeZod
|
|
1216
1211
|
}
|
|
1217
1212
|
},
|
|
1218
|
-
xyoViewer_stakedByStaker: {
|
|
1219
|
-
params: {
|
|
1220
|
-
to: z22.tuple([
|
|
1221
|
-
AddressZod
|
|
1222
|
-
]),
|
|
1223
|
-
from: z22.tuple([
|
|
1224
|
-
AddressZod
|
|
1225
|
-
])
|
|
1226
|
-
},
|
|
1227
|
-
result: {
|
|
1228
|
-
to: z22.array(AddressZod),
|
|
1229
|
-
from: z22.array(AddressZod)
|
|
1230
|
-
}
|
|
1231
|
-
},
|
|
1232
1213
|
xyoViewer_stakesByStaker: {
|
|
1233
1214
|
params: {
|
|
1234
|
-
to:
|
|
1235
|
-
|
|
1215
|
+
to: z20.tuple([
|
|
1216
|
+
AddressZod6
|
|
1236
1217
|
]),
|
|
1237
|
-
from:
|
|
1238
|
-
|
|
1218
|
+
from: z20.tuple([
|
|
1219
|
+
AddressZod6
|
|
1239
1220
|
])
|
|
1240
1221
|
},
|
|
1241
1222
|
result: {
|
|
1242
|
-
to:
|
|
1243
|
-
from:
|
|
1223
|
+
to: z20.array(StakeToJsonZod),
|
|
1224
|
+
from: z20.array(JsonToStakeZod)
|
|
1244
1225
|
}
|
|
1245
1226
|
},
|
|
1246
1227
|
xyoViewer_stakesByStaked: {
|
|
1247
1228
|
params: {
|
|
1248
|
-
to:
|
|
1249
|
-
|
|
1229
|
+
to: z20.tuple([
|
|
1230
|
+
AddressZod6
|
|
1250
1231
|
]),
|
|
1251
|
-
from:
|
|
1252
|
-
|
|
1232
|
+
from: z20.tuple([
|
|
1233
|
+
AddressZod6
|
|
1253
1234
|
])
|
|
1254
1235
|
},
|
|
1255
1236
|
result: {
|
|
1256
|
-
to:
|
|
1257
|
-
from:
|
|
1237
|
+
to: z20.array(StakeToJsonZod),
|
|
1238
|
+
from: z20.array(JsonToStakeZod)
|
|
1258
1239
|
}
|
|
1259
1240
|
},
|
|
1260
1241
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
1261
1242
|
params: {
|
|
1262
|
-
to:
|
|
1243
|
+
to: z20.tuple([
|
|
1263
1244
|
HashZod3,
|
|
1264
|
-
|
|
1245
|
+
z20.number()
|
|
1265
1246
|
]),
|
|
1266
|
-
from:
|
|
1247
|
+
from: z20.tuple([
|
|
1267
1248
|
HashZod3,
|
|
1268
|
-
|
|
1249
|
+
z20.number()
|
|
1269
1250
|
])
|
|
1270
1251
|
},
|
|
1271
1252
|
result: {
|
|
@@ -1275,13 +1256,13 @@ var XyoViewerRpcSchemas = {
|
|
|
1275
1256
|
},
|
|
1276
1257
|
xyoViewer_transactionByBlockNumberAndIndex: {
|
|
1277
1258
|
params: {
|
|
1278
|
-
to:
|
|
1279
|
-
|
|
1280
|
-
|
|
1259
|
+
to: z20.tuple([
|
|
1260
|
+
z20.number(),
|
|
1261
|
+
z20.number()
|
|
1281
1262
|
]),
|
|
1282
|
-
from:
|
|
1283
|
-
|
|
1284
|
-
|
|
1263
|
+
from: z20.tuple([
|
|
1264
|
+
z20.number(),
|
|
1265
|
+
z20.number()
|
|
1285
1266
|
])
|
|
1286
1267
|
},
|
|
1287
1268
|
result: {
|
|
@@ -1291,10 +1272,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1291
1272
|
},
|
|
1292
1273
|
xyoViewer_transactionByHash: {
|
|
1293
1274
|
params: {
|
|
1294
|
-
to:
|
|
1275
|
+
to: z20.tuple([
|
|
1295
1276
|
HashZod3
|
|
1296
1277
|
]),
|
|
1297
|
-
from:
|
|
1278
|
+
from: z20.tuple([
|
|
1298
1279
|
HashZod3
|
|
1299
1280
|
])
|
|
1300
1281
|
},
|
|
@@ -1315,48 +1296,48 @@ var AllRpcSchemas = {
|
|
|
1315
1296
|
};
|
|
1316
1297
|
|
|
1317
1298
|
// src/types/schema/createRequestSchema.ts
|
|
1318
|
-
import * as
|
|
1319
|
-
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema =
|
|
1320
|
-
id:
|
|
1321
|
-
|
|
1322
|
-
|
|
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()
|
|
1323
1304
|
]),
|
|
1324
|
-
jsonrpc:
|
|
1325
|
-
method:
|
|
1305
|
+
jsonrpc: z21.literal(jsonrpc),
|
|
1306
|
+
method: z21.literal(methodName),
|
|
1326
1307
|
params: paramsSchema
|
|
1327
1308
|
}), "createRequestSchema");
|
|
1328
1309
|
|
|
1329
1310
|
// src/types/schema/createResponseSchema.ts
|
|
1330
|
-
import * as
|
|
1331
|
-
var createResponseSchema = /* @__PURE__ */ __name((resultSchema =
|
|
1332
|
-
id:
|
|
1333
|
-
|
|
1334
|
-
|
|
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()
|
|
1335
1316
|
]),
|
|
1336
|
-
jsonrpc:
|
|
1317
|
+
jsonrpc: z22.literal(jsonrpc),
|
|
1337
1318
|
result: resultSchema
|
|
1338
1319
|
}), "createResponseSchema");
|
|
1339
1320
|
|
|
1340
1321
|
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1341
1322
|
import { HashZod as HashZod4 } from "@xylabs/hex";
|
|
1342
1323
|
import { PayloadZod as PayloadZod2 } from "@xyo-network/payload-model";
|
|
1343
|
-
import * as
|
|
1324
|
+
import * as z23 from "zod";
|
|
1344
1325
|
var DataLakeViewerRpcSchemas = {
|
|
1345
1326
|
dataLakeViewer_get: {
|
|
1346
1327
|
params: {
|
|
1347
|
-
to:
|
|
1328
|
+
to: z23.tuple([
|
|
1348
1329
|
HashZod4
|
|
1349
1330
|
]),
|
|
1350
|
-
from:
|
|
1331
|
+
from: z23.tuple([
|
|
1351
1332
|
HashZod4
|
|
1352
1333
|
])
|
|
1353
1334
|
},
|
|
1354
1335
|
result: {
|
|
1355
|
-
to:
|
|
1336
|
+
to: z23.union([
|
|
1356
1337
|
PayloadZod2,
|
|
1357
1338
|
ArrayBufferToJsonZod
|
|
1358
1339
|
]).optional(),
|
|
1359
|
-
from:
|
|
1340
|
+
from: z23.union([
|
|
1360
1341
|
PayloadZod2,
|
|
1361
1342
|
JsonToArrayBufferZod
|
|
1362
1343
|
]).optional()
|
|
@@ -1364,19 +1345,19 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1364
1345
|
},
|
|
1365
1346
|
dataLakeViewer_getMany: {
|
|
1366
1347
|
params: {
|
|
1367
|
-
to:
|
|
1368
|
-
|
|
1348
|
+
to: z23.tuple([
|
|
1349
|
+
z23.array(HashZod4)
|
|
1369
1350
|
]),
|
|
1370
|
-
from:
|
|
1371
|
-
|
|
1351
|
+
from: z23.tuple([
|
|
1352
|
+
z23.array(HashZod4)
|
|
1372
1353
|
])
|
|
1373
1354
|
},
|
|
1374
1355
|
result: {
|
|
1375
|
-
to:
|
|
1356
|
+
to: z23.array(z23.union([
|
|
1376
1357
|
PayloadZod2,
|
|
1377
1358
|
ArrayBufferToJsonZod
|
|
1378
1359
|
])),
|
|
1379
|
-
from:
|
|
1360
|
+
from: z23.array(z23.union([
|
|
1380
1361
|
PayloadZod2,
|
|
1381
1362
|
JsonToArrayBufferZod
|
|
1382
1363
|
]))
|
|
@@ -1384,16 +1365,16 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1384
1365
|
},
|
|
1385
1366
|
dataLakeViewer_has: {
|
|
1386
1367
|
params: {
|
|
1387
|
-
to:
|
|
1368
|
+
to: z23.tuple([
|
|
1388
1369
|
HashZod4
|
|
1389
1370
|
]),
|
|
1390
|
-
from:
|
|
1371
|
+
from: z23.tuple([
|
|
1391
1372
|
HashZod4
|
|
1392
1373
|
])
|
|
1393
1374
|
},
|
|
1394
1375
|
result: {
|
|
1395
|
-
to:
|
|
1396
|
-
from:
|
|
1376
|
+
to: z23.boolean(),
|
|
1377
|
+
from: z23.boolean()
|
|
1397
1378
|
}
|
|
1398
1379
|
}
|
|
1399
1380
|
};
|
|
@@ -1401,228 +1382,228 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1401
1382
|
// src/types/schema/RewardsByPositionViewerRpcSchemas.ts
|
|
1402
1383
|
import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/hex";
|
|
1403
1384
|
import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
|
|
1404
|
-
import
|
|
1385
|
+
import z24 from "zod";
|
|
1405
1386
|
var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
|
|
1406
1387
|
networkStakingStepRewardsByPositionViewer_bonus: {
|
|
1407
1388
|
params: {
|
|
1408
|
-
from:
|
|
1389
|
+
from: z24.tuple([
|
|
1409
1390
|
RewardsRangeOptionsZod.optional()
|
|
1410
1391
|
]),
|
|
1411
|
-
to:
|
|
1392
|
+
to: z24.tuple([
|
|
1412
1393
|
RewardsRangeOptionsZod.optional()
|
|
1413
1394
|
])
|
|
1414
1395
|
},
|
|
1415
1396
|
result: {
|
|
1416
|
-
from:
|
|
1417
|
-
to:
|
|
1397
|
+
from: z24.record(z24.number(), JsonToBigIntZod4.transform((val) => asAttoXL12(val))),
|
|
1398
|
+
to: z24.record(z24.number(), BigIntToJsonZod4)
|
|
1418
1399
|
}
|
|
1419
1400
|
},
|
|
1420
1401
|
networkStakingStepRewardsByPositionViewer_claimed: {
|
|
1421
1402
|
params: {
|
|
1422
|
-
from:
|
|
1403
|
+
from: z24.tuple([
|
|
1423
1404
|
RewardsRangeOptionsZod.optional()
|
|
1424
1405
|
]),
|
|
1425
|
-
to:
|
|
1406
|
+
to: z24.tuple([
|
|
1426
1407
|
RewardsRangeOptionsZod.optional()
|
|
1427
1408
|
])
|
|
1428
1409
|
},
|
|
1429
1410
|
result: {
|
|
1430
|
-
from:
|
|
1431
|
-
to:
|
|
1411
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1412
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1432
1413
|
}
|
|
1433
1414
|
},
|
|
1434
1415
|
networkStakingStepRewardsByPositionViewer_earned: {
|
|
1435
1416
|
params: {
|
|
1436
|
-
from:
|
|
1417
|
+
from: z24.tuple([
|
|
1437
1418
|
RewardsRangeOptionsZod.optional()
|
|
1438
1419
|
]),
|
|
1439
|
-
to:
|
|
1420
|
+
to: z24.tuple([
|
|
1440
1421
|
RewardsRangeOptionsZod.optional()
|
|
1441
1422
|
])
|
|
1442
1423
|
},
|
|
1443
1424
|
result: {
|
|
1444
|
-
from:
|
|
1445
|
-
to:
|
|
1425
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1426
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1446
1427
|
}
|
|
1447
1428
|
},
|
|
1448
1429
|
networkStakingStepRewardsByPositionViewer_total: {
|
|
1449
1430
|
params: {
|
|
1450
|
-
from:
|
|
1431
|
+
from: z24.tuple([
|
|
1451
1432
|
RewardsRangeOptionsZod.optional()
|
|
1452
1433
|
]),
|
|
1453
|
-
to:
|
|
1434
|
+
to: z24.tuple([
|
|
1454
1435
|
RewardsRangeOptionsZod.optional()
|
|
1455
1436
|
])
|
|
1456
1437
|
},
|
|
1457
1438
|
result: {
|
|
1458
|
-
from:
|
|
1459
|
-
to:
|
|
1439
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1440
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1460
1441
|
}
|
|
1461
1442
|
},
|
|
1462
1443
|
networkStakingStepRewardsByPositionViewer_unclaimed: {
|
|
1463
1444
|
params: {
|
|
1464
|
-
from:
|
|
1445
|
+
from: z24.tuple([
|
|
1465
1446
|
RewardsRangeOptionsZod.optional()
|
|
1466
1447
|
]),
|
|
1467
|
-
to:
|
|
1448
|
+
to: z24.tuple([
|
|
1468
1449
|
RewardsRangeOptionsZod.optional()
|
|
1469
1450
|
])
|
|
1470
1451
|
},
|
|
1471
1452
|
result: {
|
|
1472
|
-
from:
|
|
1473
|
-
to:
|
|
1453
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1454
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1474
1455
|
}
|
|
1475
1456
|
}
|
|
1476
1457
|
};
|
|
1477
1458
|
|
|
1478
1459
|
// src/types/schema/RewardsByStakerViewerRpcSchemas.ts
|
|
1479
|
-
import { BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/hex";
|
|
1480
|
-
import
|
|
1460
|
+
import { AddressZod as AddressZod7, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/hex";
|
|
1461
|
+
import z25 from "zod";
|
|
1481
1462
|
var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
|
|
1482
1463
|
networkStakingStepRewardsByStakerViewer_bonus: {
|
|
1483
1464
|
params: {
|
|
1484
|
-
from:
|
|
1465
|
+
from: z25.tuple([
|
|
1485
1466
|
RewardsRangeOptionsZod.optional()
|
|
1486
1467
|
]),
|
|
1487
|
-
to:
|
|
1468
|
+
to: z25.tuple([
|
|
1488
1469
|
RewardsRangeOptionsZod.optional()
|
|
1489
1470
|
])
|
|
1490
1471
|
},
|
|
1491
1472
|
result: {
|
|
1492
|
-
from:
|
|
1493
|
-
to:
|
|
1473
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1474
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1494
1475
|
}
|
|
1495
1476
|
},
|
|
1496
1477
|
networkStakingStepRewardsByStakerViewer_claimed: {
|
|
1497
1478
|
params: {
|
|
1498
|
-
from:
|
|
1479
|
+
from: z25.tuple([
|
|
1499
1480
|
RewardsRangeOptionsZod.optional()
|
|
1500
1481
|
]),
|
|
1501
|
-
to:
|
|
1482
|
+
to: z25.tuple([
|
|
1502
1483
|
RewardsRangeOptionsZod.optional()
|
|
1503
1484
|
])
|
|
1504
1485
|
},
|
|
1505
1486
|
result: {
|
|
1506
|
-
from:
|
|
1507
|
-
to:
|
|
1487
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1488
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1508
1489
|
}
|
|
1509
1490
|
},
|
|
1510
1491
|
networkStakingStepRewardsByStakerViewer_earned: {
|
|
1511
1492
|
params: {
|
|
1512
|
-
from:
|
|
1493
|
+
from: z25.tuple([
|
|
1513
1494
|
RewardsRangeOptionsZod.optional()
|
|
1514
1495
|
]),
|
|
1515
|
-
to:
|
|
1496
|
+
to: z25.tuple([
|
|
1516
1497
|
RewardsRangeOptionsZod.optional()
|
|
1517
1498
|
])
|
|
1518
1499
|
},
|
|
1519
1500
|
result: {
|
|
1520
|
-
from:
|
|
1521
|
-
to:
|
|
1501
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1502
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1522
1503
|
}
|
|
1523
1504
|
},
|
|
1524
1505
|
networkStakingStepRewardsByStakerViewer_total: {
|
|
1525
1506
|
params: {
|
|
1526
|
-
from:
|
|
1507
|
+
from: z25.tuple([
|
|
1527
1508
|
RewardsRangeOptionsZod.optional()
|
|
1528
1509
|
]),
|
|
1529
|
-
to:
|
|
1510
|
+
to: z25.tuple([
|
|
1530
1511
|
RewardsRangeOptionsZod.optional()
|
|
1531
1512
|
])
|
|
1532
1513
|
},
|
|
1533
1514
|
result: {
|
|
1534
|
-
from:
|
|
1535
|
-
to:
|
|
1515
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1516
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1536
1517
|
}
|
|
1537
1518
|
},
|
|
1538
1519
|
networkStakingStepRewardsByStakerViewer_unclaimed: {
|
|
1539
1520
|
params: {
|
|
1540
|
-
from:
|
|
1521
|
+
from: z25.tuple([
|
|
1541
1522
|
RewardsRangeOptionsZod.optional()
|
|
1542
1523
|
]),
|
|
1543
|
-
to:
|
|
1524
|
+
to: z25.tuple([
|
|
1544
1525
|
RewardsRangeOptionsZod.optional()
|
|
1545
1526
|
])
|
|
1546
1527
|
},
|
|
1547
1528
|
result: {
|
|
1548
|
-
from:
|
|
1549
|
-
to:
|
|
1529
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1530
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1550
1531
|
}
|
|
1551
1532
|
}
|
|
1552
1533
|
};
|
|
1553
1534
|
|
|
1554
1535
|
// src/types/schema/RewardsByStepViewerRpcSchemas.ts
|
|
1555
|
-
import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/hex";
|
|
1556
|
-
import
|
|
1536
|
+
import { AddressZod as AddressZod8, BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/hex";
|
|
1537
|
+
import z26 from "zod";
|
|
1557
1538
|
var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
1558
1539
|
networkStakingStepRewardsByStepViewer_bonus: {
|
|
1559
1540
|
params: {
|
|
1560
|
-
from:
|
|
1541
|
+
from: z26.tuple([
|
|
1561
1542
|
RewardsRangeOptionsZod.optional()
|
|
1562
1543
|
]),
|
|
1563
|
-
to:
|
|
1544
|
+
to: z26.tuple([
|
|
1564
1545
|
RewardsRangeOptionsZod.optional()
|
|
1565
1546
|
])
|
|
1566
1547
|
},
|
|
1567
1548
|
result: {
|
|
1568
|
-
from:
|
|
1569
|
-
to:
|
|
1549
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1550
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1570
1551
|
}
|
|
1571
1552
|
},
|
|
1572
1553
|
networkStakingStepRewardsByStepViewer_claimed: {
|
|
1573
1554
|
params: {
|
|
1574
|
-
from:
|
|
1555
|
+
from: z26.tuple([
|
|
1575
1556
|
RewardsRangeOptionsZod.optional()
|
|
1576
1557
|
]),
|
|
1577
|
-
to:
|
|
1558
|
+
to: z26.tuple([
|
|
1578
1559
|
RewardsRangeOptionsZod.optional()
|
|
1579
1560
|
])
|
|
1580
1561
|
},
|
|
1581
1562
|
result: {
|
|
1582
|
-
from:
|
|
1583
|
-
to:
|
|
1563
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1564
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1584
1565
|
}
|
|
1585
1566
|
},
|
|
1586
1567
|
networkStakingStepRewardsByStepViewer_earned: {
|
|
1587
1568
|
params: {
|
|
1588
|
-
from:
|
|
1569
|
+
from: z26.tuple([
|
|
1589
1570
|
RewardsRangeOptionsZod.optional()
|
|
1590
1571
|
]),
|
|
1591
|
-
to:
|
|
1572
|
+
to: z26.tuple([
|
|
1592
1573
|
RewardsRangeOptionsZod.optional()
|
|
1593
1574
|
])
|
|
1594
1575
|
},
|
|
1595
1576
|
result: {
|
|
1596
|
-
from:
|
|
1597
|
-
to:
|
|
1577
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1578
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1598
1579
|
}
|
|
1599
1580
|
},
|
|
1600
1581
|
networkStakingStepRewardsByStepViewer_total: {
|
|
1601
1582
|
params: {
|
|
1602
|
-
from:
|
|
1583
|
+
from: z26.tuple([
|
|
1603
1584
|
RewardsRangeOptionsZod.optional()
|
|
1604
1585
|
]),
|
|
1605
|
-
to:
|
|
1586
|
+
to: z26.tuple([
|
|
1606
1587
|
RewardsRangeOptionsZod.optional()
|
|
1607
1588
|
])
|
|
1608
1589
|
},
|
|
1609
1590
|
result: {
|
|
1610
|
-
from:
|
|
1611
|
-
to:
|
|
1591
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1592
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1612
1593
|
}
|
|
1613
1594
|
},
|
|
1614
1595
|
networkStakingStepRewardsByStepViewer_unclaimed: {
|
|
1615
1596
|
params: {
|
|
1616
|
-
from:
|
|
1597
|
+
from: z26.tuple([
|
|
1617
1598
|
RewardsRangeOptionsZod.optional()
|
|
1618
1599
|
]),
|
|
1619
|
-
to:
|
|
1600
|
+
to: z26.tuple([
|
|
1620
1601
|
RewardsRangeOptionsZod.optional()
|
|
1621
1602
|
])
|
|
1622
1603
|
},
|
|
1623
1604
|
result: {
|
|
1624
|
-
from:
|
|
1625
|
-
to:
|
|
1605
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1606
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1626
1607
|
}
|
|
1627
1608
|
}
|
|
1628
1609
|
};
|
|
@@ -1630,14 +1611,14 @@ var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
|
1630
1611
|
// src/types/schema/RewardsTotalViewerRpcSchemas.ts
|
|
1631
1612
|
import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/hex";
|
|
1632
1613
|
import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
|
|
1633
|
-
import * as
|
|
1614
|
+
import * as z27 from "zod";
|
|
1634
1615
|
var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
1635
1616
|
networkStakingStepRewardsTotalViewer_bonus: {
|
|
1636
1617
|
params: {
|
|
1637
|
-
from:
|
|
1618
|
+
from: z27.tuple([
|
|
1638
1619
|
RewardsRangeOptionsZod.optional()
|
|
1639
1620
|
]),
|
|
1640
|
-
to:
|
|
1621
|
+
to: z27.tuple([
|
|
1641
1622
|
RewardsRangeOptionsZod.optional()
|
|
1642
1623
|
])
|
|
1643
1624
|
},
|
|
@@ -1648,10 +1629,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1648
1629
|
},
|
|
1649
1630
|
networkStakingStepRewardsTotalViewer_claimed: {
|
|
1650
1631
|
params: {
|
|
1651
|
-
from:
|
|
1632
|
+
from: z27.tuple([
|
|
1652
1633
|
RewardsRangeOptionsZod.optional()
|
|
1653
1634
|
]),
|
|
1654
|
-
to:
|
|
1635
|
+
to: z27.tuple([
|
|
1655
1636
|
RewardsRangeOptionsZod.optional()
|
|
1656
1637
|
])
|
|
1657
1638
|
},
|
|
@@ -1662,10 +1643,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1662
1643
|
},
|
|
1663
1644
|
networkStakingStepRewardsTotalViewer_earned: {
|
|
1664
1645
|
params: {
|
|
1665
|
-
from:
|
|
1646
|
+
from: z27.tuple([
|
|
1666
1647
|
RewardsRangeOptionsZod.optional()
|
|
1667
1648
|
]),
|
|
1668
|
-
to:
|
|
1649
|
+
to: z27.tuple([
|
|
1669
1650
|
RewardsRangeOptionsZod.optional()
|
|
1670
1651
|
])
|
|
1671
1652
|
},
|
|
@@ -1676,10 +1657,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1676
1657
|
},
|
|
1677
1658
|
networkStakingStepRewardsTotalViewer_total: {
|
|
1678
1659
|
params: {
|
|
1679
|
-
from:
|
|
1660
|
+
from: z27.tuple([
|
|
1680
1661
|
RewardsRangeOptionsZod.optional()
|
|
1681
1662
|
]),
|
|
1682
|
-
to:
|
|
1663
|
+
to: z27.tuple([
|
|
1683
1664
|
RewardsRangeOptionsZod.optional()
|
|
1684
1665
|
])
|
|
1685
1666
|
},
|
|
@@ -1690,10 +1671,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1690
1671
|
},
|
|
1691
1672
|
networkStakingStepRewardsTotalViewer_unclaimed: {
|
|
1692
1673
|
params: {
|
|
1693
|
-
from:
|
|
1674
|
+
from: z27.tuple([
|
|
1694
1675
|
RewardsRangeOptionsZod.optional()
|
|
1695
1676
|
]),
|
|
1696
|
-
to:
|
|
1677
|
+
to: z27.tuple([
|
|
1697
1678
|
RewardsRangeOptionsZod.optional()
|
|
1698
1679
|
])
|
|
1699
1680
|
},
|
|
@@ -1707,6 +1688,83 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1707
1688
|
// src/types/schema/StepRewardsViewerRpcSchemas.ts
|
|
1708
1689
|
var NetworkStakingStepRewardsViewerRpcSchemas = {};
|
|
1709
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
|
+
|
|
1710
1768
|
// src/engine-node/rpcEngineFromConnection.ts
|
|
1711
1769
|
var rpcEngineFromConnection = /* @__PURE__ */ __name((connection, networkStakeViewer) => {
|
|
1712
1770
|
const engine = new JsonRpcEngine();
|
|
@@ -1726,6 +1784,7 @@ var rpcEngineFromConnection = /* @__PURE__ */ __name((connection, networkStakeVi
|
|
|
1726
1784
|
}
|
|
1727
1785
|
const parsed = requestSchema.safeParse(req);
|
|
1728
1786
|
if (!parsed.success) {
|
|
1787
|
+
console.error("RPC Request Validation Error:", parsed.error);
|
|
1729
1788
|
res.error = {
|
|
1730
1789
|
// Return invalid params error
|
|
1731
1790
|
...JsonRpcErrorCodes.InvalidParams,
|
|
@@ -1735,8 +1794,13 @@ var rpcEngineFromConnection = /* @__PURE__ */ __name((connection, networkStakeVi
|
|
|
1735
1794
|
return;
|
|
1736
1795
|
}
|
|
1737
1796
|
const { params } = parsed.data;
|
|
1738
|
-
|
|
1739
|
-
|
|
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
|
+
}
|
|
1740
1804
|
}));
|
|
1741
1805
|
return engine;
|
|
1742
1806
|
}, "rpcEngineFromConnection");
|
|
@@ -1876,12 +1940,12 @@ var NodeXyoRunner = class {
|
|
|
1876
1940
|
}
|
|
1877
1941
|
getArchivist = /* @__PURE__ */ __name(async (identifier) => {
|
|
1878
1942
|
const archivist = await this.node.resolve(identifier);
|
|
1879
|
-
return assertEx2(asArchivistInstance(archivist), () => `
|
|
1943
|
+
return assertEx2(asArchivistInstance(archivist), () => `Could not resolve ${identifier} to an archivist instance`);
|
|
1880
1944
|
}, "getArchivist");
|
|
1881
1945
|
getPendingArchivist = /* @__PURE__ */ __name(async () => {
|
|
1882
1946
|
if (this._pendingArchivist) return this._pendingArchivist;
|
|
1883
1947
|
this._pendingArchivist = await this.getArchivist(this.pendingArchivistPath);
|
|
1884
|
-
return assertEx2(this._pendingArchivist, () => `
|
|
1948
|
+
return assertEx2(this._pendingArchivist, () => `Could not resolve pending archivist at ${this.pendingArchivistPath}`);
|
|
1885
1949
|
}, "getPendingArchivist");
|
|
1886
1950
|
};
|
|
1887
1951
|
|
|
@@ -1954,9 +2018,51 @@ var JsonRpcNetworkStakeViewer = class extends JsonRpcNetworkStakeViewerMethods {
|
|
|
1954
2018
|
}
|
|
1955
2019
|
};
|
|
1956
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
|
+
|
|
1957
2062
|
// src/provider/viewer/JsonRpcXyoViewer.ts
|
|
1958
|
-
import {
|
|
1959
|
-
import {
|
|
2063
|
+
import { isHash } from "@xylabs/hex";
|
|
2064
|
+
import { isDefined } from "@xylabs/typeof";
|
|
2065
|
+
import { asAttoXL1 as asAttoXL14, asHydratedBlock } from "@xyo-network/xl1-protocol";
|
|
1960
2066
|
var JsonRpcXyoViewer = class {
|
|
1961
2067
|
static {
|
|
1962
2068
|
__name(this, "JsonRpcXyoViewer");
|
|
@@ -1976,23 +2082,20 @@ var JsonRpcXyoViewer = class {
|
|
|
1976
2082
|
]));
|
|
1977
2083
|
}
|
|
1978
2084
|
async accountBalanceHistory(address, headOrRange) {
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
}
|
|
1987
|
-
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
|
+
}
|
|
1988
2092
|
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
1989
2093
|
address,
|
|
1990
|
-
|
|
2094
|
+
headOrRange
|
|
1991
2095
|
]);
|
|
1992
2096
|
}
|
|
1993
2097
|
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
1994
|
-
address
|
|
1995
|
-
range
|
|
2098
|
+
address
|
|
1996
2099
|
]);
|
|
1997
2100
|
}
|
|
1998
2101
|
async blockByHash(hash) {
|
|
@@ -2145,11 +2248,6 @@ var JsonRpcXyoViewer = class {
|
|
|
2145
2248
|
slot
|
|
2146
2249
|
]);
|
|
2147
2250
|
}
|
|
2148
|
-
async stakedByStaker(staker) {
|
|
2149
|
-
return await this.transport.sendRequest("xyoViewer_stakedByStaker", [
|
|
2150
|
-
staker
|
|
2151
|
-
]);
|
|
2152
|
-
}
|
|
2153
2251
|
async stakesByStaked(staked) {
|
|
2154
2252
|
return await this.transport.sendRequest("xyoViewer_stakesByStaked", [
|
|
2155
2253
|
staked
|
|
@@ -2319,7 +2417,6 @@ var RpcXyoSigner = class {
|
|
|
2319
2417
|
}
|
|
2320
2418
|
};
|
|
2321
2419
|
export {
|
|
2322
|
-
AddressZod,
|
|
2323
2420
|
AllRpcSchemas,
|
|
2324
2421
|
AnyBoundWitnessZod,
|
|
2325
2422
|
AnySignedBoundWitnessWithStorageMetaZod,
|
|
@@ -2337,6 +2434,7 @@ export {
|
|
|
2337
2434
|
CaveatTypesZod,
|
|
2338
2435
|
CaveatsZod,
|
|
2339
2436
|
ChainZod,
|
|
2437
|
+
DataLakeViewerRpcNamespace,
|
|
2340
2438
|
DataLakeViewerRpcSchemas,
|
|
2341
2439
|
HttpRpcTransport,
|
|
2342
2440
|
HttpRpcXyoConnection,
|
|
@@ -2352,6 +2450,8 @@ export {
|
|
|
2352
2450
|
JsonRpcNetworkStakeViewerMethods,
|
|
2353
2451
|
JsonRpcNetworkStakingStepRewardsViewer,
|
|
2354
2452
|
JsonRpcNetworkStakingStepRewardsViewerMethods,
|
|
2453
|
+
JsonRpcTimeSyncViewer,
|
|
2454
|
+
JsonRpcTimeSyncViewerMethods,
|
|
2355
2455
|
JsonRpcViewer,
|
|
2356
2456
|
JsonRpcXyoRunner,
|
|
2357
2457
|
JsonRpcXyoViewer,
|
|
@@ -2396,15 +2496,15 @@ export {
|
|
|
2396
2496
|
SignedTransactionBoundWitnessZod,
|
|
2397
2497
|
StakeToJsonZod,
|
|
2398
2498
|
StakeZod,
|
|
2399
|
-
|
|
2499
|
+
TimeDomainZod,
|
|
2500
|
+
TimeSyncViewerRpcNamespace,
|
|
2501
|
+
TimeSyncViewerRpcSchemas,
|
|
2400
2502
|
TransactionBoundWitnessZod,
|
|
2401
2503
|
TransactionFeesBigIntToJsonZod,
|
|
2402
2504
|
TransactionFeesBigIntZod,
|
|
2403
2505
|
TransactionFeesHexZod,
|
|
2404
2506
|
TransactionFeesJsonToBigIntZod,
|
|
2405
|
-
TransferFieldsZod,
|
|
2406
2507
|
TransferPairZod,
|
|
2407
|
-
TransferZod,
|
|
2408
2508
|
UnsignedBoundWitnessWithStorageMetaZod,
|
|
2409
2509
|
UnsignedBoundWitnessZod,
|
|
2410
2510
|
UnsignedHydratedTransactionZod,
|