@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/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,79 +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 TransferZod = PayloadZodStrictOfSchema(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
|
+
]);
|
|
539
522
|
|
|
540
523
|
// src/types/schema/common/TransferPair.ts
|
|
541
|
-
import
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
524
|
+
import { AddressZod as AddressZod4 } from "@xylabs/hex";
|
|
525
|
+
import z16 from "zod";
|
|
526
|
+
var TransferPairZod = z16.tuple([
|
|
527
|
+
AddressZod4,
|
|
528
|
+
AddressZod4
|
|
545
529
|
]);
|
|
546
530
|
|
|
547
531
|
// src/types/schema/XyoPermissionsRpcSchemas.ts
|
|
548
532
|
var XyoPermissionsRpcSchemas = {
|
|
549
533
|
xyoPermissions_getPermissions: {
|
|
550
534
|
params: {
|
|
551
|
-
to:
|
|
552
|
-
from:
|
|
535
|
+
to: z17.array(z17.any()).length(0),
|
|
536
|
+
from: z17.array(z17.any()).length(0)
|
|
553
537
|
},
|
|
554
538
|
result: {
|
|
555
|
-
to:
|
|
556
|
-
from:
|
|
539
|
+
to: z17.array(InvokerPermissionZod),
|
|
540
|
+
from: z17.array(InvokerPermissionZod)
|
|
557
541
|
}
|
|
558
542
|
},
|
|
559
543
|
xyoPermissions_requestPermissions: {
|
|
560
544
|
params: {
|
|
561
|
-
to:
|
|
562
|
-
|
|
545
|
+
to: z17.tuple([
|
|
546
|
+
z17.array(PermissionRequestZod)
|
|
563
547
|
]),
|
|
564
|
-
from:
|
|
565
|
-
|
|
548
|
+
from: z17.tuple([
|
|
549
|
+
z17.array(PermissionRequestZod)
|
|
566
550
|
])
|
|
567
551
|
},
|
|
568
552
|
result: {
|
|
569
|
-
to:
|
|
570
|
-
from:
|
|
553
|
+
to: z17.array(RequestedPermissionZod),
|
|
554
|
+
from: z17.array(RequestedPermissionZod)
|
|
571
555
|
}
|
|
572
556
|
},
|
|
573
557
|
xyoPermissions_revokePermissions: {
|
|
574
558
|
params: {
|
|
575
|
-
to:
|
|
576
|
-
|
|
559
|
+
to: z17.tuple([
|
|
560
|
+
z17.array(PermissionRequestZod)
|
|
577
561
|
]),
|
|
578
|
-
from:
|
|
579
|
-
|
|
562
|
+
from: z17.tuple([
|
|
563
|
+
z17.array(PermissionRequestZod)
|
|
580
564
|
])
|
|
581
565
|
},
|
|
582
566
|
result: {
|
|
583
|
-
to:
|
|
584
|
-
from:
|
|
567
|
+
to: z17.array(RequestedPermissionZod),
|
|
568
|
+
from: z17.array(RequestedPermissionZod)
|
|
585
569
|
}
|
|
586
570
|
}
|
|
587
571
|
};
|
|
588
572
|
|
|
589
573
|
// src/types/schema/XyoRunnerRpcSchemas.ts
|
|
590
574
|
import { HashToJsonZod, JsonToHashZod } from "@xylabs/hex";
|
|
591
|
-
import * as
|
|
575
|
+
import * as z18 from "zod";
|
|
592
576
|
var XyoRunnerRpcSchemas = {
|
|
593
577
|
xyoRunner_broadcastTransaction: {
|
|
594
578
|
params: {
|
|
595
|
-
to:
|
|
579
|
+
to: z18.tuple([
|
|
596
580
|
SignedHydratedTransactionZod
|
|
597
581
|
]),
|
|
598
|
-
from:
|
|
582
|
+
from: z18.tuple([
|
|
599
583
|
SignedHydratedTransactionZod
|
|
600
584
|
])
|
|
601
585
|
},
|
|
@@ -607,25 +591,26 @@ var XyoRunnerRpcSchemas = {
|
|
|
607
591
|
};
|
|
608
592
|
|
|
609
593
|
// src/types/schema/XyoSignerRpcSchemas.ts
|
|
594
|
+
import { AddressZod as AddressZod5 } from "@xylabs/hex";
|
|
610
595
|
import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
|
|
611
|
-
import { z as
|
|
596
|
+
import { z as z19 } from "zod";
|
|
612
597
|
var XyoSignerRpcSchemas = {
|
|
613
598
|
xyoSigner_address: {
|
|
614
599
|
params: {
|
|
615
|
-
to:
|
|
616
|
-
from:
|
|
600
|
+
to: z19.array(z19.any()).length(0).optional(),
|
|
601
|
+
from: z19.array(z19.any()).length(0).optional()
|
|
617
602
|
},
|
|
618
603
|
result: {
|
|
619
|
-
to:
|
|
620
|
-
from:
|
|
604
|
+
to: AddressZod5,
|
|
605
|
+
from: AddressZod5
|
|
621
606
|
}
|
|
622
607
|
},
|
|
623
608
|
xyoSigner_signTransaction: {
|
|
624
609
|
params: {
|
|
625
|
-
to:
|
|
610
|
+
to: z19.tuple([
|
|
626
611
|
UnsignedHydratedTransactionZod
|
|
627
612
|
]),
|
|
628
|
-
from:
|
|
613
|
+
from: z19.tuple([
|
|
629
614
|
UnsignedHydratedTransactionZod
|
|
630
615
|
])
|
|
631
616
|
},
|
|
@@ -639,18 +624,18 @@ var XyoSignerRpcSchemas = {
|
|
|
639
624
|
};
|
|
640
625
|
|
|
641
626
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
642
|
-
import { BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
|
|
627
|
+
import { AddressZod as AddressZod6, BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/hex";
|
|
643
628
|
import { WithHashMetaZod } from "@xyo-network/payload-model";
|
|
644
|
-
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
645
|
-
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";
|
|
646
631
|
var XyoViewerRpcSchemas = {
|
|
647
632
|
xyoViewer_networkStakeStepRewardClaimedByAddress: {
|
|
648
633
|
params: {
|
|
649
|
-
to:
|
|
650
|
-
|
|
634
|
+
to: z20.tuple([
|
|
635
|
+
AddressZod6
|
|
651
636
|
]),
|
|
652
|
-
from:
|
|
653
|
-
|
|
637
|
+
from: z20.tuple([
|
|
638
|
+
AddressZod6
|
|
654
639
|
])
|
|
655
640
|
},
|
|
656
641
|
result: {
|
|
@@ -660,51 +645,51 @@ var XyoViewerRpcSchemas = {
|
|
|
660
645
|
},
|
|
661
646
|
xyoViewer_networkStakeStepRewardAddressReward: {
|
|
662
647
|
params: {
|
|
663
|
-
to:
|
|
648
|
+
to: z20.tuple([
|
|
664
649
|
StepIdentityZod2,
|
|
665
|
-
|
|
650
|
+
AddressZod6
|
|
666
651
|
]),
|
|
667
|
-
from:
|
|
652
|
+
from: z20.tuple([
|
|
668
653
|
StepIdentityZod2,
|
|
669
|
-
|
|
654
|
+
AddressZod6
|
|
670
655
|
])
|
|
671
656
|
},
|
|
672
657
|
result: {
|
|
673
|
-
to:
|
|
674
|
-
from:
|
|
658
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
659
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
675
660
|
}
|
|
676
661
|
},
|
|
677
662
|
xyoViewer_networkStakeStepRewardAddressHistory: {
|
|
678
663
|
params: {
|
|
679
|
-
to:
|
|
680
|
-
|
|
664
|
+
to: z20.tuple([
|
|
665
|
+
AddressZod6
|
|
681
666
|
]),
|
|
682
|
-
from:
|
|
683
|
-
|
|
667
|
+
from: z20.tuple([
|
|
668
|
+
AddressZod6
|
|
684
669
|
])
|
|
685
670
|
},
|
|
686
671
|
result: {
|
|
687
|
-
to:
|
|
688
|
-
from:
|
|
672
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
673
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
689
674
|
}
|
|
690
675
|
},
|
|
691
676
|
xyoViewer_networkStakeStepRewardAddressShare: {
|
|
692
677
|
params: {
|
|
693
|
-
to:
|
|
678
|
+
to: z20.tuple([
|
|
694
679
|
StepIdentityZod2,
|
|
695
|
-
|
|
680
|
+
AddressZod6
|
|
696
681
|
]),
|
|
697
|
-
from:
|
|
682
|
+
from: z20.tuple([
|
|
698
683
|
StepIdentityZod2,
|
|
699
|
-
|
|
684
|
+
AddressZod6
|
|
700
685
|
])
|
|
701
686
|
},
|
|
702
687
|
result: {
|
|
703
|
-
to:
|
|
688
|
+
to: z20.tuple([
|
|
704
689
|
BigIntToJsonZod3,
|
|
705
690
|
BigIntToJsonZod3
|
|
706
691
|
]),
|
|
707
|
-
from:
|
|
692
|
+
from: z20.tuple([
|
|
708
693
|
JsonToBigIntZod3,
|
|
709
694
|
JsonToBigIntZod3
|
|
710
695
|
])
|
|
@@ -712,13 +697,13 @@ var XyoViewerRpcSchemas = {
|
|
|
712
697
|
},
|
|
713
698
|
xyoViewer_networkStakeStepRewardWeightForAddress: {
|
|
714
699
|
params: {
|
|
715
|
-
to:
|
|
700
|
+
to: z20.tuple([
|
|
716
701
|
StepIdentityZod2,
|
|
717
|
-
|
|
702
|
+
AddressZod6
|
|
718
703
|
]),
|
|
719
|
-
from:
|
|
704
|
+
from: z20.tuple([
|
|
720
705
|
StepIdentityZod2,
|
|
721
|
-
|
|
706
|
+
AddressZod6
|
|
722
707
|
])
|
|
723
708
|
},
|
|
724
709
|
result: {
|
|
@@ -728,11 +713,11 @@ var XyoViewerRpcSchemas = {
|
|
|
728
713
|
},
|
|
729
714
|
xyoViewer_networkStakeStepRewardUnclaimedByAddress: {
|
|
730
715
|
params: {
|
|
731
|
-
to:
|
|
732
|
-
|
|
716
|
+
to: z20.tuple([
|
|
717
|
+
AddressZod6
|
|
733
718
|
]),
|
|
734
|
-
from:
|
|
735
|
-
|
|
719
|
+
from: z20.tuple([
|
|
720
|
+
AddressZod6
|
|
736
721
|
])
|
|
737
722
|
},
|
|
738
723
|
result: {
|
|
@@ -742,27 +727,27 @@ var XyoViewerRpcSchemas = {
|
|
|
742
727
|
},
|
|
743
728
|
xyoViewer_networkStakeStepRewardPoolRewards: {
|
|
744
729
|
params: {
|
|
745
|
-
to:
|
|
730
|
+
to: z20.tuple([
|
|
746
731
|
StepIdentityZod2
|
|
747
732
|
]),
|
|
748
|
-
from:
|
|
733
|
+
from: z20.tuple([
|
|
749
734
|
StepIdentityZod2
|
|
750
735
|
])
|
|
751
736
|
},
|
|
752
737
|
result: {
|
|
753
|
-
to:
|
|
754
|
-
from:
|
|
738
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
739
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
755
740
|
}
|
|
756
741
|
},
|
|
757
742
|
xyoViewer_networkStakeStepRewardPositionWeight: {
|
|
758
743
|
params: {
|
|
759
|
-
to:
|
|
744
|
+
to: z20.tuple([
|
|
760
745
|
StepIdentityZod2,
|
|
761
|
-
|
|
746
|
+
z20.number()
|
|
762
747
|
]),
|
|
763
|
-
from:
|
|
748
|
+
from: z20.tuple([
|
|
764
749
|
StepIdentityZod2,
|
|
765
|
-
|
|
750
|
+
z20.number()
|
|
766
751
|
])
|
|
767
752
|
},
|
|
768
753
|
result: {
|
|
@@ -772,13 +757,13 @@ var XyoViewerRpcSchemas = {
|
|
|
772
757
|
},
|
|
773
758
|
xyoViewer_networkStakeStepRewardPotentialPositionLoss: {
|
|
774
759
|
params: {
|
|
775
|
-
to:
|
|
760
|
+
to: z20.tuple([
|
|
776
761
|
StepIdentityZod2,
|
|
777
|
-
|
|
762
|
+
z20.number()
|
|
778
763
|
]),
|
|
779
|
-
from:
|
|
764
|
+
from: z20.tuple([
|
|
780
765
|
StepIdentityZod2,
|
|
781
|
-
|
|
766
|
+
z20.number()
|
|
782
767
|
])
|
|
783
768
|
},
|
|
784
769
|
result: {
|
|
@@ -788,10 +773,10 @@ var XyoViewerRpcSchemas = {
|
|
|
788
773
|
},
|
|
789
774
|
xyoViewer_networkStakeStepRewardForStep: {
|
|
790
775
|
params: {
|
|
791
|
-
to:
|
|
776
|
+
to: z20.tuple([
|
|
792
777
|
StepIdentityZod2
|
|
793
778
|
]),
|
|
794
|
-
from:
|
|
779
|
+
from: z20.tuple([
|
|
795
780
|
StepIdentityZod2
|
|
796
781
|
])
|
|
797
782
|
},
|
|
@@ -802,10 +787,10 @@ var XyoViewerRpcSchemas = {
|
|
|
802
787
|
},
|
|
803
788
|
xyoViewer_networkStakeStepRewardRandomizer: {
|
|
804
789
|
params: {
|
|
805
|
-
to:
|
|
790
|
+
to: z20.tuple([
|
|
806
791
|
StepIdentityZod2
|
|
807
792
|
]),
|
|
808
|
-
from:
|
|
793
|
+
from: z20.tuple([
|
|
809
794
|
StepIdentityZod2
|
|
810
795
|
])
|
|
811
796
|
},
|
|
@@ -816,49 +801,49 @@ var XyoViewerRpcSchemas = {
|
|
|
816
801
|
},
|
|
817
802
|
xyoViewer_networkStakeStepRewardStakerCount: {
|
|
818
803
|
params: {
|
|
819
|
-
to:
|
|
804
|
+
to: z20.tuple([
|
|
820
805
|
StepIdentityZod2
|
|
821
806
|
]),
|
|
822
|
-
from:
|
|
807
|
+
from: z20.tuple([
|
|
823
808
|
StepIdentityZod2
|
|
824
809
|
])
|
|
825
810
|
},
|
|
826
811
|
result: {
|
|
827
|
-
to:
|
|
828
|
-
from:
|
|
812
|
+
to: z20.number(),
|
|
813
|
+
from: z20.number()
|
|
829
814
|
}
|
|
830
815
|
},
|
|
831
816
|
xyoViewer_networkStakeStepRewardPoolShares: {
|
|
832
817
|
params: {
|
|
833
|
-
to:
|
|
818
|
+
to: z20.tuple([
|
|
834
819
|
StepIdentityZod2
|
|
835
820
|
]),
|
|
836
|
-
from:
|
|
821
|
+
from: z20.tuple([
|
|
837
822
|
StepIdentityZod2
|
|
838
823
|
])
|
|
839
824
|
},
|
|
840
825
|
result: {
|
|
841
|
-
to:
|
|
842
|
-
from:
|
|
826
|
+
to: z20.record(AddressZod6, BigIntToJsonZod3),
|
|
827
|
+
from: z20.record(AddressZod6, JsonToBigIntZod3)
|
|
843
828
|
}
|
|
844
829
|
},
|
|
845
830
|
xyoViewer_networkStakeStepRewardForStepForPosition: {
|
|
846
831
|
params: {
|
|
847
|
-
to:
|
|
832
|
+
to: z20.tuple([
|
|
848
833
|
StepIdentityZod2,
|
|
849
|
-
|
|
834
|
+
z20.number()
|
|
850
835
|
]),
|
|
851
|
-
from:
|
|
836
|
+
from: z20.tuple([
|
|
852
837
|
StepIdentityZod2,
|
|
853
|
-
|
|
838
|
+
z20.number()
|
|
854
839
|
])
|
|
855
840
|
},
|
|
856
841
|
result: {
|
|
857
|
-
to:
|
|
842
|
+
to: z20.tuple([
|
|
858
843
|
BigIntToJsonZod3,
|
|
859
844
|
BigIntToJsonZod3
|
|
860
845
|
]),
|
|
861
|
-
from:
|
|
846
|
+
from: z20.tuple([
|
|
862
847
|
JsonToBigIntZod3,
|
|
863
848
|
JsonToBigIntZod3
|
|
864
849
|
])
|
|
@@ -866,27 +851,27 @@ var XyoViewerRpcSchemas = {
|
|
|
866
851
|
},
|
|
867
852
|
xyoViewer_networkStakeStepRewardForPosition: {
|
|
868
853
|
params: {
|
|
869
|
-
to:
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
854
|
+
to: z20.tuple([
|
|
855
|
+
z20.number(),
|
|
856
|
+
z20.tuple([
|
|
857
|
+
z20.number(),
|
|
858
|
+
z20.number()
|
|
874
859
|
])
|
|
875
860
|
]),
|
|
876
|
-
from:
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
861
|
+
from: z20.tuple([
|
|
862
|
+
z20.number(),
|
|
863
|
+
z20.tuple([
|
|
864
|
+
z20.number(),
|
|
865
|
+
z20.number()
|
|
881
866
|
])
|
|
882
867
|
])
|
|
883
868
|
},
|
|
884
869
|
result: {
|
|
885
|
-
to:
|
|
870
|
+
to: z20.tuple([
|
|
886
871
|
BigIntToJsonZod3,
|
|
887
872
|
BigIntToJsonZod3
|
|
888
873
|
]),
|
|
889
|
-
from:
|
|
874
|
+
from: z20.tuple([
|
|
890
875
|
JsonToBigIntZod3,
|
|
891
876
|
JsonToBigIntZod3
|
|
892
877
|
])
|
|
@@ -894,16 +879,16 @@ var XyoViewerRpcSchemas = {
|
|
|
894
879
|
},
|
|
895
880
|
xyoViewer_networkStakeStepRewardsForRange: {
|
|
896
881
|
params: {
|
|
897
|
-
to:
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
882
|
+
to: z20.tuple([
|
|
883
|
+
z20.tuple([
|
|
884
|
+
z20.number(),
|
|
885
|
+
z20.number()
|
|
901
886
|
])
|
|
902
887
|
]),
|
|
903
|
-
from:
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
888
|
+
from: z20.tuple([
|
|
889
|
+
z20.tuple([
|
|
890
|
+
z20.number(),
|
|
891
|
+
z20.number()
|
|
907
892
|
])
|
|
908
893
|
])
|
|
909
894
|
},
|
|
@@ -914,18 +899,18 @@ var XyoViewerRpcSchemas = {
|
|
|
914
899
|
},
|
|
915
900
|
xyoViewer_networkStakeStepRewardsForStepLevel: {
|
|
916
901
|
params: {
|
|
917
|
-
to:
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
902
|
+
to: z20.tuple([
|
|
903
|
+
z20.number(),
|
|
904
|
+
z20.tuple([
|
|
905
|
+
z20.number(),
|
|
906
|
+
z20.number()
|
|
922
907
|
])
|
|
923
908
|
]),
|
|
924
|
-
from:
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
909
|
+
from: z20.tuple([
|
|
910
|
+
z20.number(),
|
|
911
|
+
z20.tuple([
|
|
912
|
+
z20.number(),
|
|
913
|
+
z20.number()
|
|
929
914
|
])
|
|
930
915
|
])
|
|
931
916
|
},
|
|
@@ -936,27 +921,27 @@ var XyoViewerRpcSchemas = {
|
|
|
936
921
|
},
|
|
937
922
|
xyoViewer_networkStakeStepRewardsForPosition: {
|
|
938
923
|
params: {
|
|
939
|
-
to:
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
924
|
+
to: z20.tuple([
|
|
925
|
+
z20.number(),
|
|
926
|
+
z20.tuple([
|
|
927
|
+
z20.number(),
|
|
928
|
+
z20.number()
|
|
944
929
|
])
|
|
945
930
|
]),
|
|
946
|
-
from:
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
931
|
+
from: z20.tuple([
|
|
932
|
+
z20.number(),
|
|
933
|
+
z20.tuple([
|
|
934
|
+
z20.number(),
|
|
935
|
+
z20.number()
|
|
951
936
|
])
|
|
952
937
|
])
|
|
953
938
|
},
|
|
954
939
|
result: {
|
|
955
|
-
to:
|
|
940
|
+
to: z20.record(z20.string(), z20.tuple([
|
|
956
941
|
BigIntToJsonZod3,
|
|
957
942
|
BigIntToJsonZod3
|
|
958
943
|
])),
|
|
959
|
-
from:
|
|
944
|
+
from: z20.record(z20.string(), z20.tuple([
|
|
960
945
|
JsonToBigIntZod3,
|
|
961
946
|
JsonToBigIntZod3
|
|
962
947
|
]))
|
|
@@ -964,11 +949,11 @@ var XyoViewerRpcSchemas = {
|
|
|
964
949
|
},
|
|
965
950
|
xyoViewer_accountBalance: {
|
|
966
951
|
params: {
|
|
967
|
-
to:
|
|
968
|
-
|
|
952
|
+
to: z20.tuple([
|
|
953
|
+
AddressZod6
|
|
969
954
|
]),
|
|
970
|
-
from:
|
|
971
|
-
|
|
955
|
+
from: z20.tuple([
|
|
956
|
+
AddressZod6
|
|
972
957
|
])
|
|
973
958
|
},
|
|
974
959
|
result: {
|
|
@@ -978,28 +963,38 @@ var XyoViewerRpcSchemas = {
|
|
|
978
963
|
},
|
|
979
964
|
xyoViewer_accountBalanceHistory: {
|
|
980
965
|
params: {
|
|
981
|
-
to:
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
966
|
+
to: z20.union([
|
|
967
|
+
z20.tuple([
|
|
968
|
+
AddressZod6
|
|
969
|
+
]),
|
|
970
|
+
z20.tuple([
|
|
971
|
+
AddressZod6,
|
|
972
|
+
z20.union([
|
|
973
|
+
XL1BlockRangeZod,
|
|
974
|
+
HashZod3
|
|
975
|
+
])
|
|
976
|
+
])
|
|
987
977
|
]),
|
|
988
|
-
from:
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
978
|
+
from: z20.union([
|
|
979
|
+
z20.tuple([
|
|
980
|
+
AddressZod6
|
|
981
|
+
]),
|
|
982
|
+
z20.tuple([
|
|
983
|
+
AddressZod6,
|
|
984
|
+
z20.union([
|
|
985
|
+
XL1BlockRangeZod,
|
|
986
|
+
HashZod3
|
|
987
|
+
])
|
|
988
|
+
])
|
|
994
989
|
])
|
|
995
990
|
},
|
|
996
991
|
result: {
|
|
997
|
-
to:
|
|
992
|
+
to: z20.array(z20.tuple([
|
|
998
993
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
999
994
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1000
995
|
WithHashMetaZod(TransferZod)
|
|
1001
996
|
])),
|
|
1002
|
-
from:
|
|
997
|
+
from: z20.array(z20.tuple([
|
|
1003
998
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1004
999
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1005
1000
|
WithHashMetaZod(TransferZod)
|
|
@@ -1008,10 +1003,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1008
1003
|
},
|
|
1009
1004
|
xyoViewer_transferPairBalance: {
|
|
1010
1005
|
params: {
|
|
1011
|
-
to:
|
|
1006
|
+
to: z20.tuple([
|
|
1012
1007
|
TransferPairZod
|
|
1013
1008
|
]),
|
|
1014
|
-
from:
|
|
1009
|
+
from: z20.tuple([
|
|
1015
1010
|
TransferPairZod
|
|
1016
1011
|
])
|
|
1017
1012
|
},
|
|
@@ -1022,20 +1017,20 @@ var XyoViewerRpcSchemas = {
|
|
|
1022
1017
|
},
|
|
1023
1018
|
xyoViewer_transferPairBalanceHistory: {
|
|
1024
1019
|
params: {
|
|
1025
|
-
to:
|
|
1020
|
+
to: z20.tuple([
|
|
1026
1021
|
TransferPairZod
|
|
1027
1022
|
]),
|
|
1028
|
-
from:
|
|
1023
|
+
from: z20.tuple([
|
|
1029
1024
|
TransferPairZod
|
|
1030
1025
|
])
|
|
1031
1026
|
},
|
|
1032
1027
|
result: {
|
|
1033
|
-
to:
|
|
1028
|
+
to: z20.array(z20.tuple([
|
|
1034
1029
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1035
1030
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1036
1031
|
WithHashMetaZod(TransferZod)
|
|
1037
1032
|
])),
|
|
1038
|
-
from:
|
|
1033
|
+
from: z20.array(z20.tuple([
|
|
1039
1034
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1040
1035
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1041
1036
|
WithHashMetaZod(TransferZod)
|
|
@@ -1044,11 +1039,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1044
1039
|
},
|
|
1045
1040
|
xyoViewer_transferBalance: {
|
|
1046
1041
|
params: {
|
|
1047
|
-
to:
|
|
1048
|
-
|
|
1042
|
+
to: z20.tuple([
|
|
1043
|
+
AddressZod6
|
|
1049
1044
|
]),
|
|
1050
|
-
from:
|
|
1051
|
-
|
|
1045
|
+
from: z20.tuple([
|
|
1046
|
+
AddressZod6
|
|
1052
1047
|
])
|
|
1053
1048
|
},
|
|
1054
1049
|
result: {
|
|
@@ -1058,22 +1053,22 @@ var XyoViewerRpcSchemas = {
|
|
|
1058
1053
|
},
|
|
1059
1054
|
xyoViewer_transferBalanceHistory: {
|
|
1060
1055
|
params: {
|
|
1061
|
-
to:
|
|
1062
|
-
|
|
1056
|
+
to: z20.tuple([
|
|
1057
|
+
AddressZod6,
|
|
1063
1058
|
BlockRangeZod2.optional()
|
|
1064
1059
|
]),
|
|
1065
|
-
from:
|
|
1066
|
-
|
|
1060
|
+
from: z20.tuple([
|
|
1061
|
+
AddressZod6,
|
|
1067
1062
|
BlockRangeZod2.optional()
|
|
1068
1063
|
])
|
|
1069
1064
|
},
|
|
1070
1065
|
result: {
|
|
1071
|
-
to:
|
|
1066
|
+
to: z20.array(z20.tuple([
|
|
1072
1067
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1073
1068
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1074
1069
|
WithHashMetaZod(TransferZod)
|
|
1075
1070
|
])),
|
|
1076
|
-
from:
|
|
1071
|
+
from: z20.array(z20.tuple([
|
|
1077
1072
|
WithHashMetaZod(BlockBoundWitnessZod),
|
|
1078
1073
|
WithHashMetaZod(TransactionBoundWitnessZod).nullable(),
|
|
1079
1074
|
WithHashMetaZod(TransferZod)
|
|
@@ -1082,10 +1077,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1082
1077
|
},
|
|
1083
1078
|
xyoViewer_blockByHash: {
|
|
1084
1079
|
params: {
|
|
1085
|
-
to:
|
|
1080
|
+
to: z20.tuple([
|
|
1086
1081
|
HashToJsonZod2
|
|
1087
1082
|
]),
|
|
1088
|
-
from:
|
|
1083
|
+
from: z20.tuple([
|
|
1089
1084
|
JsonToHashZod2
|
|
1090
1085
|
])
|
|
1091
1086
|
},
|
|
@@ -1096,11 +1091,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1096
1091
|
},
|
|
1097
1092
|
xyoViewer_blockByNumber: {
|
|
1098
1093
|
params: {
|
|
1099
|
-
to:
|
|
1100
|
-
|
|
1094
|
+
to: z20.tuple([
|
|
1095
|
+
z20.number()
|
|
1101
1096
|
]),
|
|
1102
|
-
from:
|
|
1103
|
-
|
|
1097
|
+
from: z20.tuple([
|
|
1098
|
+
z20.number()
|
|
1104
1099
|
])
|
|
1105
1100
|
},
|
|
1106
1101
|
result: {
|
|
@@ -1110,48 +1105,48 @@ var XyoViewerRpcSchemas = {
|
|
|
1110
1105
|
},
|
|
1111
1106
|
xyoViewer_blocksByHash: {
|
|
1112
1107
|
params: {
|
|
1113
|
-
to:
|
|
1108
|
+
to: z20.tuple([
|
|
1114
1109
|
HashZod3,
|
|
1115
|
-
|
|
1110
|
+
z20.number().optional()
|
|
1116
1111
|
]),
|
|
1117
|
-
from:
|
|
1112
|
+
from: z20.tuple([
|
|
1118
1113
|
HashZod3,
|
|
1119
|
-
|
|
1114
|
+
z20.number().optional()
|
|
1120
1115
|
])
|
|
1121
1116
|
},
|
|
1122
1117
|
result: {
|
|
1123
|
-
to:
|
|
1124
|
-
from:
|
|
1118
|
+
to: z20.array(SignedHydratedBlockZod),
|
|
1119
|
+
from: z20.array(SignedHydratedBlockZod)
|
|
1125
1120
|
}
|
|
1126
1121
|
},
|
|
1127
1122
|
xyoViewer_chainId: {
|
|
1128
1123
|
params: {
|
|
1129
|
-
to:
|
|
1130
|
-
from:
|
|
1124
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1125
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1131
1126
|
},
|
|
1132
1127
|
result: {
|
|
1133
|
-
to:
|
|
1134
|
-
from:
|
|
1128
|
+
to: AddressZod6,
|
|
1129
|
+
from: AddressZod6
|
|
1135
1130
|
}
|
|
1136
1131
|
},
|
|
1137
1132
|
xyoViewer_chainIdAtBlock: {
|
|
1138
1133
|
params: {
|
|
1139
|
-
to:
|
|
1134
|
+
to: z20.tuple([
|
|
1140
1135
|
BlockNumberZod3
|
|
1141
1136
|
]),
|
|
1142
|
-
from:
|
|
1137
|
+
from: z20.tuple([
|
|
1143
1138
|
BlockNumberZod3
|
|
1144
1139
|
])
|
|
1145
1140
|
},
|
|
1146
1141
|
result: {
|
|
1147
|
-
to:
|
|
1148
|
-
from:
|
|
1142
|
+
to: AddressZod6,
|
|
1143
|
+
from: AddressZod6
|
|
1149
1144
|
}
|
|
1150
1145
|
},
|
|
1151
1146
|
xyoViewer_currentBlock: {
|
|
1152
1147
|
params: {
|
|
1153
|
-
to:
|
|
1154
|
-
from:
|
|
1148
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1149
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1155
1150
|
},
|
|
1156
1151
|
result: {
|
|
1157
1152
|
to: SignedHydratedBlockZod,
|
|
@@ -1160,8 +1155,8 @@ var XyoViewerRpcSchemas = {
|
|
|
1160
1155
|
},
|
|
1161
1156
|
xyoViewer_currentBlockHash: {
|
|
1162
1157
|
params: {
|
|
1163
|
-
to:
|
|
1164
|
-
from:
|
|
1158
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1159
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1165
1160
|
},
|
|
1166
1161
|
result: {
|
|
1167
1162
|
to: HashZod3,
|
|
@@ -1170,33 +1165,33 @@ var XyoViewerRpcSchemas = {
|
|
|
1170
1165
|
},
|
|
1171
1166
|
xyoViewer_currentBlockNumber: {
|
|
1172
1167
|
params: {
|
|
1173
|
-
to:
|
|
1174
|
-
from:
|
|
1168
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1169
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1175
1170
|
},
|
|
1176
1171
|
result: {
|
|
1177
|
-
to:
|
|
1178
|
-
from:
|
|
1172
|
+
to: XL1BlockNumberZod2,
|
|
1173
|
+
from: XL1BlockNumberZod2
|
|
1179
1174
|
}
|
|
1180
1175
|
},
|
|
1181
1176
|
xyoViewer_forkHistory: {
|
|
1182
1177
|
params: {
|
|
1183
|
-
to:
|
|
1184
|
-
from:
|
|
1178
|
+
to: z20.array(z20.any()).length(0).optional(),
|
|
1179
|
+
from: z20.array(z20.any()).length(0).optional()
|
|
1185
1180
|
},
|
|
1186
1181
|
result: {
|
|
1187
|
-
to:
|
|
1188
|
-
from:
|
|
1182
|
+
to: z20.record(z20.number(), AddressZod6),
|
|
1183
|
+
from: z20.record(z20.number(), AddressZod6)
|
|
1189
1184
|
}
|
|
1190
1185
|
},
|
|
1191
1186
|
xyoViewer_stakeByStaker: {
|
|
1192
1187
|
params: {
|
|
1193
|
-
to:
|
|
1194
|
-
|
|
1195
|
-
|
|
1188
|
+
to: z20.tuple([
|
|
1189
|
+
AddressZod6,
|
|
1190
|
+
z20.number()
|
|
1196
1191
|
]),
|
|
1197
|
-
from:
|
|
1198
|
-
|
|
1199
|
-
|
|
1192
|
+
from: z20.tuple([
|
|
1193
|
+
AddressZod6,
|
|
1194
|
+
z20.number()
|
|
1200
1195
|
])
|
|
1201
1196
|
},
|
|
1202
1197
|
result: {
|
|
@@ -1206,11 +1201,11 @@ var XyoViewerRpcSchemas = {
|
|
|
1206
1201
|
},
|
|
1207
1202
|
xyoViewer_stakeById: {
|
|
1208
1203
|
params: {
|
|
1209
|
-
to:
|
|
1210
|
-
|
|
1204
|
+
to: z20.tuple([
|
|
1205
|
+
z20.number()
|
|
1211
1206
|
]),
|
|
1212
|
-
from:
|
|
1213
|
-
|
|
1207
|
+
from: z20.tuple([
|
|
1208
|
+
z20.number()
|
|
1214
1209
|
])
|
|
1215
1210
|
},
|
|
1216
1211
|
result: {
|
|
@@ -1218,57 +1213,43 @@ var XyoViewerRpcSchemas = {
|
|
|
1218
1213
|
from: JsonToStakeZod
|
|
1219
1214
|
}
|
|
1220
1215
|
},
|
|
1221
|
-
xyoViewer_stakedByStaker: {
|
|
1222
|
-
params: {
|
|
1223
|
-
to: z22.tuple([
|
|
1224
|
-
AddressZod
|
|
1225
|
-
]),
|
|
1226
|
-
from: z22.tuple([
|
|
1227
|
-
AddressZod
|
|
1228
|
-
])
|
|
1229
|
-
},
|
|
1230
|
-
result: {
|
|
1231
|
-
to: z22.array(AddressZod),
|
|
1232
|
-
from: z22.array(AddressZod)
|
|
1233
|
-
}
|
|
1234
|
-
},
|
|
1235
1216
|
xyoViewer_stakesByStaker: {
|
|
1236
1217
|
params: {
|
|
1237
|
-
to:
|
|
1238
|
-
|
|
1218
|
+
to: z20.tuple([
|
|
1219
|
+
AddressZod6
|
|
1239
1220
|
]),
|
|
1240
|
-
from:
|
|
1241
|
-
|
|
1221
|
+
from: z20.tuple([
|
|
1222
|
+
AddressZod6
|
|
1242
1223
|
])
|
|
1243
1224
|
},
|
|
1244
1225
|
result: {
|
|
1245
|
-
to:
|
|
1246
|
-
from:
|
|
1226
|
+
to: z20.array(StakeToJsonZod),
|
|
1227
|
+
from: z20.array(JsonToStakeZod)
|
|
1247
1228
|
}
|
|
1248
1229
|
},
|
|
1249
1230
|
xyoViewer_stakesByStaked: {
|
|
1250
1231
|
params: {
|
|
1251
|
-
to:
|
|
1252
|
-
|
|
1232
|
+
to: z20.tuple([
|
|
1233
|
+
AddressZod6
|
|
1253
1234
|
]),
|
|
1254
|
-
from:
|
|
1255
|
-
|
|
1235
|
+
from: z20.tuple([
|
|
1236
|
+
AddressZod6
|
|
1256
1237
|
])
|
|
1257
1238
|
},
|
|
1258
1239
|
result: {
|
|
1259
|
-
to:
|
|
1260
|
-
from:
|
|
1240
|
+
to: z20.array(StakeToJsonZod),
|
|
1241
|
+
from: z20.array(JsonToStakeZod)
|
|
1261
1242
|
}
|
|
1262
1243
|
},
|
|
1263
1244
|
xyoViewer_transactionByBlockHashAndIndex: {
|
|
1264
1245
|
params: {
|
|
1265
|
-
to:
|
|
1246
|
+
to: z20.tuple([
|
|
1266
1247
|
HashZod3,
|
|
1267
|
-
|
|
1248
|
+
z20.number()
|
|
1268
1249
|
]),
|
|
1269
|
-
from:
|
|
1250
|
+
from: z20.tuple([
|
|
1270
1251
|
HashZod3,
|
|
1271
|
-
|
|
1252
|
+
z20.number()
|
|
1272
1253
|
])
|
|
1273
1254
|
},
|
|
1274
1255
|
result: {
|
|
@@ -1278,13 +1259,13 @@ var XyoViewerRpcSchemas = {
|
|
|
1278
1259
|
},
|
|
1279
1260
|
xyoViewer_transactionByBlockNumberAndIndex: {
|
|
1280
1261
|
params: {
|
|
1281
|
-
to:
|
|
1282
|
-
|
|
1283
|
-
|
|
1262
|
+
to: z20.tuple([
|
|
1263
|
+
z20.number(),
|
|
1264
|
+
z20.number()
|
|
1284
1265
|
]),
|
|
1285
|
-
from:
|
|
1286
|
-
|
|
1287
|
-
|
|
1266
|
+
from: z20.tuple([
|
|
1267
|
+
z20.number(),
|
|
1268
|
+
z20.number()
|
|
1288
1269
|
])
|
|
1289
1270
|
},
|
|
1290
1271
|
result: {
|
|
@@ -1294,10 +1275,10 @@ var XyoViewerRpcSchemas = {
|
|
|
1294
1275
|
},
|
|
1295
1276
|
xyoViewer_transactionByHash: {
|
|
1296
1277
|
params: {
|
|
1297
|
-
to:
|
|
1278
|
+
to: z20.tuple([
|
|
1298
1279
|
HashZod3
|
|
1299
1280
|
]),
|
|
1300
|
-
from:
|
|
1281
|
+
from: z20.tuple([
|
|
1301
1282
|
HashZod3
|
|
1302
1283
|
])
|
|
1303
1284
|
},
|
|
@@ -1318,48 +1299,48 @@ var AllRpcSchemas = {
|
|
|
1318
1299
|
};
|
|
1319
1300
|
|
|
1320
1301
|
// src/types/schema/createRequestSchema.ts
|
|
1321
|
-
import * as
|
|
1322
|
-
var createRequestSchema = /* @__PURE__ */ __name((methodName, paramsSchema =
|
|
1323
|
-
id:
|
|
1324
|
-
|
|
1325
|
-
|
|
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()
|
|
1326
1307
|
]),
|
|
1327
|
-
jsonrpc:
|
|
1328
|
-
method:
|
|
1308
|
+
jsonrpc: z21.literal(jsonrpc),
|
|
1309
|
+
method: z21.literal(methodName),
|
|
1329
1310
|
params: paramsSchema
|
|
1330
1311
|
}), "createRequestSchema");
|
|
1331
1312
|
|
|
1332
1313
|
// src/types/schema/createResponseSchema.ts
|
|
1333
|
-
import * as
|
|
1334
|
-
var createResponseSchema = /* @__PURE__ */ __name((resultSchema =
|
|
1335
|
-
id:
|
|
1336
|
-
|
|
1337
|
-
|
|
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()
|
|
1338
1319
|
]),
|
|
1339
|
-
jsonrpc:
|
|
1320
|
+
jsonrpc: z22.literal(jsonrpc),
|
|
1340
1321
|
result: resultSchema
|
|
1341
1322
|
}), "createResponseSchema");
|
|
1342
1323
|
|
|
1343
1324
|
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1344
1325
|
import { HashZod as HashZod4 } from "@xylabs/hex";
|
|
1345
1326
|
import { PayloadZod as PayloadZod2 } from "@xyo-network/payload-model";
|
|
1346
|
-
import * as
|
|
1327
|
+
import * as z23 from "zod";
|
|
1347
1328
|
var DataLakeViewerRpcSchemas = {
|
|
1348
1329
|
dataLakeViewer_get: {
|
|
1349
1330
|
params: {
|
|
1350
|
-
to:
|
|
1331
|
+
to: z23.tuple([
|
|
1351
1332
|
HashZod4
|
|
1352
1333
|
]),
|
|
1353
|
-
from:
|
|
1334
|
+
from: z23.tuple([
|
|
1354
1335
|
HashZod4
|
|
1355
1336
|
])
|
|
1356
1337
|
},
|
|
1357
1338
|
result: {
|
|
1358
|
-
to:
|
|
1339
|
+
to: z23.union([
|
|
1359
1340
|
PayloadZod2,
|
|
1360
1341
|
ArrayBufferToJsonZod
|
|
1361
1342
|
]).optional(),
|
|
1362
|
-
from:
|
|
1343
|
+
from: z23.union([
|
|
1363
1344
|
PayloadZod2,
|
|
1364
1345
|
JsonToArrayBufferZod
|
|
1365
1346
|
]).optional()
|
|
@@ -1367,19 +1348,19 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1367
1348
|
},
|
|
1368
1349
|
dataLakeViewer_getMany: {
|
|
1369
1350
|
params: {
|
|
1370
|
-
to:
|
|
1371
|
-
|
|
1351
|
+
to: z23.tuple([
|
|
1352
|
+
z23.array(HashZod4)
|
|
1372
1353
|
]),
|
|
1373
|
-
from:
|
|
1374
|
-
|
|
1354
|
+
from: z23.tuple([
|
|
1355
|
+
z23.array(HashZod4)
|
|
1375
1356
|
])
|
|
1376
1357
|
},
|
|
1377
1358
|
result: {
|
|
1378
|
-
to:
|
|
1359
|
+
to: z23.array(z23.union([
|
|
1379
1360
|
PayloadZod2,
|
|
1380
1361
|
ArrayBufferToJsonZod
|
|
1381
1362
|
])),
|
|
1382
|
-
from:
|
|
1363
|
+
from: z23.array(z23.union([
|
|
1383
1364
|
PayloadZod2,
|
|
1384
1365
|
JsonToArrayBufferZod
|
|
1385
1366
|
]))
|
|
@@ -1387,16 +1368,16 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1387
1368
|
},
|
|
1388
1369
|
dataLakeViewer_has: {
|
|
1389
1370
|
params: {
|
|
1390
|
-
to:
|
|
1371
|
+
to: z23.tuple([
|
|
1391
1372
|
HashZod4
|
|
1392
1373
|
]),
|
|
1393
|
-
from:
|
|
1374
|
+
from: z23.tuple([
|
|
1394
1375
|
HashZod4
|
|
1395
1376
|
])
|
|
1396
1377
|
},
|
|
1397
1378
|
result: {
|
|
1398
|
-
to:
|
|
1399
|
-
from:
|
|
1379
|
+
to: z23.boolean(),
|
|
1380
|
+
from: z23.boolean()
|
|
1400
1381
|
}
|
|
1401
1382
|
}
|
|
1402
1383
|
};
|
|
@@ -1404,228 +1385,228 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1404
1385
|
// src/types/schema/RewardsByPositionViewerRpcSchemas.ts
|
|
1405
1386
|
import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/hex";
|
|
1406
1387
|
import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
|
|
1407
|
-
import
|
|
1388
|
+
import z24 from "zod";
|
|
1408
1389
|
var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
|
|
1409
1390
|
networkStakingStepRewardsByPositionViewer_bonus: {
|
|
1410
1391
|
params: {
|
|
1411
|
-
from:
|
|
1392
|
+
from: z24.tuple([
|
|
1412
1393
|
RewardsRangeOptionsZod.optional()
|
|
1413
1394
|
]),
|
|
1414
|
-
to:
|
|
1395
|
+
to: z24.tuple([
|
|
1415
1396
|
RewardsRangeOptionsZod.optional()
|
|
1416
1397
|
])
|
|
1417
1398
|
},
|
|
1418
1399
|
result: {
|
|
1419
|
-
from:
|
|
1420
|
-
to:
|
|
1400
|
+
from: z24.record(z24.number(), JsonToBigIntZod4.transform((val) => asAttoXL12(val))),
|
|
1401
|
+
to: z24.record(z24.number(), BigIntToJsonZod4)
|
|
1421
1402
|
}
|
|
1422
1403
|
},
|
|
1423
1404
|
networkStakingStepRewardsByPositionViewer_claimed: {
|
|
1424
1405
|
params: {
|
|
1425
|
-
from:
|
|
1406
|
+
from: z24.tuple([
|
|
1426
1407
|
RewardsRangeOptionsZod.optional()
|
|
1427
1408
|
]),
|
|
1428
|
-
to:
|
|
1409
|
+
to: z24.tuple([
|
|
1429
1410
|
RewardsRangeOptionsZod.optional()
|
|
1430
1411
|
])
|
|
1431
1412
|
},
|
|
1432
1413
|
result: {
|
|
1433
|
-
from:
|
|
1434
|
-
to:
|
|
1414
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1415
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1435
1416
|
}
|
|
1436
1417
|
},
|
|
1437
1418
|
networkStakingStepRewardsByPositionViewer_earned: {
|
|
1438
1419
|
params: {
|
|
1439
|
-
from:
|
|
1420
|
+
from: z24.tuple([
|
|
1440
1421
|
RewardsRangeOptionsZod.optional()
|
|
1441
1422
|
]),
|
|
1442
|
-
to:
|
|
1423
|
+
to: z24.tuple([
|
|
1443
1424
|
RewardsRangeOptionsZod.optional()
|
|
1444
1425
|
])
|
|
1445
1426
|
},
|
|
1446
1427
|
result: {
|
|
1447
|
-
from:
|
|
1448
|
-
to:
|
|
1428
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1429
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1449
1430
|
}
|
|
1450
1431
|
},
|
|
1451
1432
|
networkStakingStepRewardsByPositionViewer_total: {
|
|
1452
1433
|
params: {
|
|
1453
|
-
from:
|
|
1434
|
+
from: z24.tuple([
|
|
1454
1435
|
RewardsRangeOptionsZod.optional()
|
|
1455
1436
|
]),
|
|
1456
|
-
to:
|
|
1437
|
+
to: z24.tuple([
|
|
1457
1438
|
RewardsRangeOptionsZod.optional()
|
|
1458
1439
|
])
|
|
1459
1440
|
},
|
|
1460
1441
|
result: {
|
|
1461
|
-
from:
|
|
1462
|
-
to:
|
|
1442
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1443
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1463
1444
|
}
|
|
1464
1445
|
},
|
|
1465
1446
|
networkStakingStepRewardsByPositionViewer_unclaimed: {
|
|
1466
1447
|
params: {
|
|
1467
|
-
from:
|
|
1448
|
+
from: z24.tuple([
|
|
1468
1449
|
RewardsRangeOptionsZod.optional()
|
|
1469
1450
|
]),
|
|
1470
|
-
to:
|
|
1451
|
+
to: z24.tuple([
|
|
1471
1452
|
RewardsRangeOptionsZod.optional()
|
|
1472
1453
|
])
|
|
1473
1454
|
},
|
|
1474
1455
|
result: {
|
|
1475
|
-
from:
|
|
1476
|
-
to:
|
|
1456
|
+
from: z24.record(z24.number(), BigIntToJsonZod4.transform((val) => asAttoXL12(val))),
|
|
1457
|
+
to: z24.record(z24.number(), JsonToBigIntZod4)
|
|
1477
1458
|
}
|
|
1478
1459
|
}
|
|
1479
1460
|
};
|
|
1480
1461
|
|
|
1481
1462
|
// src/types/schema/RewardsByStakerViewerRpcSchemas.ts
|
|
1482
|
-
import { BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/hex";
|
|
1483
|
-
import
|
|
1463
|
+
import { AddressZod as AddressZod7, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/hex";
|
|
1464
|
+
import z25 from "zod";
|
|
1484
1465
|
var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
|
|
1485
1466
|
networkStakingStepRewardsByStakerViewer_bonus: {
|
|
1486
1467
|
params: {
|
|
1487
|
-
from:
|
|
1468
|
+
from: z25.tuple([
|
|
1488
1469
|
RewardsRangeOptionsZod.optional()
|
|
1489
1470
|
]),
|
|
1490
|
-
to:
|
|
1471
|
+
to: z25.tuple([
|
|
1491
1472
|
RewardsRangeOptionsZod.optional()
|
|
1492
1473
|
])
|
|
1493
1474
|
},
|
|
1494
1475
|
result: {
|
|
1495
|
-
from:
|
|
1496
|
-
to:
|
|
1476
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1477
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1497
1478
|
}
|
|
1498
1479
|
},
|
|
1499
1480
|
networkStakingStepRewardsByStakerViewer_claimed: {
|
|
1500
1481
|
params: {
|
|
1501
|
-
from:
|
|
1482
|
+
from: z25.tuple([
|
|
1502
1483
|
RewardsRangeOptionsZod.optional()
|
|
1503
1484
|
]),
|
|
1504
|
-
to:
|
|
1485
|
+
to: z25.tuple([
|
|
1505
1486
|
RewardsRangeOptionsZod.optional()
|
|
1506
1487
|
])
|
|
1507
1488
|
},
|
|
1508
1489
|
result: {
|
|
1509
|
-
from:
|
|
1510
|
-
to:
|
|
1490
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1491
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1511
1492
|
}
|
|
1512
1493
|
},
|
|
1513
1494
|
networkStakingStepRewardsByStakerViewer_earned: {
|
|
1514
1495
|
params: {
|
|
1515
|
-
from:
|
|
1496
|
+
from: z25.tuple([
|
|
1516
1497
|
RewardsRangeOptionsZod.optional()
|
|
1517
1498
|
]),
|
|
1518
|
-
to:
|
|
1499
|
+
to: z25.tuple([
|
|
1519
1500
|
RewardsRangeOptionsZod.optional()
|
|
1520
1501
|
])
|
|
1521
1502
|
},
|
|
1522
1503
|
result: {
|
|
1523
|
-
from:
|
|
1524
|
-
to:
|
|
1504
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1505
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1525
1506
|
}
|
|
1526
1507
|
},
|
|
1527
1508
|
networkStakingStepRewardsByStakerViewer_total: {
|
|
1528
1509
|
params: {
|
|
1529
|
-
from:
|
|
1510
|
+
from: z25.tuple([
|
|
1530
1511
|
RewardsRangeOptionsZod.optional()
|
|
1531
1512
|
]),
|
|
1532
|
-
to:
|
|
1513
|
+
to: z25.tuple([
|
|
1533
1514
|
RewardsRangeOptionsZod.optional()
|
|
1534
1515
|
])
|
|
1535
1516
|
},
|
|
1536
1517
|
result: {
|
|
1537
|
-
from:
|
|
1538
|
-
to:
|
|
1518
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1519
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1539
1520
|
}
|
|
1540
1521
|
},
|
|
1541
1522
|
networkStakingStepRewardsByStakerViewer_unclaimed: {
|
|
1542
1523
|
params: {
|
|
1543
|
-
from:
|
|
1524
|
+
from: z25.tuple([
|
|
1544
1525
|
RewardsRangeOptionsZod.optional()
|
|
1545
1526
|
]),
|
|
1546
|
-
to:
|
|
1527
|
+
to: z25.tuple([
|
|
1547
1528
|
RewardsRangeOptionsZod.optional()
|
|
1548
1529
|
])
|
|
1549
1530
|
},
|
|
1550
1531
|
result: {
|
|
1551
|
-
from:
|
|
1552
|
-
to:
|
|
1532
|
+
from: z25.record(AddressZod7, BigIntToJsonZod5),
|
|
1533
|
+
to: z25.record(AddressZod7, JsonToBigIntZod5)
|
|
1553
1534
|
}
|
|
1554
1535
|
}
|
|
1555
1536
|
};
|
|
1556
1537
|
|
|
1557
1538
|
// src/types/schema/RewardsByStepViewerRpcSchemas.ts
|
|
1558
|
-
import { BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/hex";
|
|
1559
|
-
import
|
|
1539
|
+
import { AddressZod as AddressZod8, BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/hex";
|
|
1540
|
+
import z26 from "zod";
|
|
1560
1541
|
var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
1561
1542
|
networkStakingStepRewardsByStepViewer_bonus: {
|
|
1562
1543
|
params: {
|
|
1563
|
-
from:
|
|
1544
|
+
from: z26.tuple([
|
|
1564
1545
|
RewardsRangeOptionsZod.optional()
|
|
1565
1546
|
]),
|
|
1566
|
-
to:
|
|
1547
|
+
to: z26.tuple([
|
|
1567
1548
|
RewardsRangeOptionsZod.optional()
|
|
1568
1549
|
])
|
|
1569
1550
|
},
|
|
1570
1551
|
result: {
|
|
1571
|
-
from:
|
|
1572
|
-
to:
|
|
1552
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1553
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1573
1554
|
}
|
|
1574
1555
|
},
|
|
1575
1556
|
networkStakingStepRewardsByStepViewer_claimed: {
|
|
1576
1557
|
params: {
|
|
1577
|
-
from:
|
|
1558
|
+
from: z26.tuple([
|
|
1578
1559
|
RewardsRangeOptionsZod.optional()
|
|
1579
1560
|
]),
|
|
1580
|
-
to:
|
|
1561
|
+
to: z26.tuple([
|
|
1581
1562
|
RewardsRangeOptionsZod.optional()
|
|
1582
1563
|
])
|
|
1583
1564
|
},
|
|
1584
1565
|
result: {
|
|
1585
|
-
from:
|
|
1586
|
-
to:
|
|
1566
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1567
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1587
1568
|
}
|
|
1588
1569
|
},
|
|
1589
1570
|
networkStakingStepRewardsByStepViewer_earned: {
|
|
1590
1571
|
params: {
|
|
1591
|
-
from:
|
|
1572
|
+
from: z26.tuple([
|
|
1592
1573
|
RewardsRangeOptionsZod.optional()
|
|
1593
1574
|
]),
|
|
1594
|
-
to:
|
|
1575
|
+
to: z26.tuple([
|
|
1595
1576
|
RewardsRangeOptionsZod.optional()
|
|
1596
1577
|
])
|
|
1597
1578
|
},
|
|
1598
1579
|
result: {
|
|
1599
|
-
from:
|
|
1600
|
-
to:
|
|
1580
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1581
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1601
1582
|
}
|
|
1602
1583
|
},
|
|
1603
1584
|
networkStakingStepRewardsByStepViewer_total: {
|
|
1604
1585
|
params: {
|
|
1605
|
-
from:
|
|
1586
|
+
from: z26.tuple([
|
|
1606
1587
|
RewardsRangeOptionsZod.optional()
|
|
1607
1588
|
]),
|
|
1608
|
-
to:
|
|
1589
|
+
to: z26.tuple([
|
|
1609
1590
|
RewardsRangeOptionsZod.optional()
|
|
1610
1591
|
])
|
|
1611
1592
|
},
|
|
1612
1593
|
result: {
|
|
1613
|
-
from:
|
|
1614
|
-
to:
|
|
1594
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1595
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1615
1596
|
}
|
|
1616
1597
|
},
|
|
1617
1598
|
networkStakingStepRewardsByStepViewer_unclaimed: {
|
|
1618
1599
|
params: {
|
|
1619
|
-
from:
|
|
1600
|
+
from: z26.tuple([
|
|
1620
1601
|
RewardsRangeOptionsZod.optional()
|
|
1621
1602
|
]),
|
|
1622
|
-
to:
|
|
1603
|
+
to: z26.tuple([
|
|
1623
1604
|
RewardsRangeOptionsZod.optional()
|
|
1624
1605
|
])
|
|
1625
1606
|
},
|
|
1626
1607
|
result: {
|
|
1627
|
-
from:
|
|
1628
|
-
to:
|
|
1608
|
+
from: z26.record(AddressZod8, BigIntToJsonZod6),
|
|
1609
|
+
to: z26.record(AddressZod8, JsonToBigIntZod6)
|
|
1629
1610
|
}
|
|
1630
1611
|
}
|
|
1631
1612
|
};
|
|
@@ -1633,14 +1614,14 @@ var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
|
1633
1614
|
// src/types/schema/RewardsTotalViewerRpcSchemas.ts
|
|
1634
1615
|
import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/hex";
|
|
1635
1616
|
import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
|
|
1636
|
-
import * as
|
|
1617
|
+
import * as z27 from "zod";
|
|
1637
1618
|
var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
1638
1619
|
networkStakingStepRewardsTotalViewer_bonus: {
|
|
1639
1620
|
params: {
|
|
1640
|
-
from:
|
|
1621
|
+
from: z27.tuple([
|
|
1641
1622
|
RewardsRangeOptionsZod.optional()
|
|
1642
1623
|
]),
|
|
1643
|
-
to:
|
|
1624
|
+
to: z27.tuple([
|
|
1644
1625
|
RewardsRangeOptionsZod.optional()
|
|
1645
1626
|
])
|
|
1646
1627
|
},
|
|
@@ -1651,10 +1632,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1651
1632
|
},
|
|
1652
1633
|
networkStakingStepRewardsTotalViewer_claimed: {
|
|
1653
1634
|
params: {
|
|
1654
|
-
from:
|
|
1635
|
+
from: z27.tuple([
|
|
1655
1636
|
RewardsRangeOptionsZod.optional()
|
|
1656
1637
|
]),
|
|
1657
|
-
to:
|
|
1638
|
+
to: z27.tuple([
|
|
1658
1639
|
RewardsRangeOptionsZod.optional()
|
|
1659
1640
|
])
|
|
1660
1641
|
},
|
|
@@ -1665,10 +1646,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1665
1646
|
},
|
|
1666
1647
|
networkStakingStepRewardsTotalViewer_earned: {
|
|
1667
1648
|
params: {
|
|
1668
|
-
from:
|
|
1649
|
+
from: z27.tuple([
|
|
1669
1650
|
RewardsRangeOptionsZod.optional()
|
|
1670
1651
|
]),
|
|
1671
|
-
to:
|
|
1652
|
+
to: z27.tuple([
|
|
1672
1653
|
RewardsRangeOptionsZod.optional()
|
|
1673
1654
|
])
|
|
1674
1655
|
},
|
|
@@ -1679,10 +1660,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1679
1660
|
},
|
|
1680
1661
|
networkStakingStepRewardsTotalViewer_total: {
|
|
1681
1662
|
params: {
|
|
1682
|
-
from:
|
|
1663
|
+
from: z27.tuple([
|
|
1683
1664
|
RewardsRangeOptionsZod.optional()
|
|
1684
1665
|
]),
|
|
1685
|
-
to:
|
|
1666
|
+
to: z27.tuple([
|
|
1686
1667
|
RewardsRangeOptionsZod.optional()
|
|
1687
1668
|
])
|
|
1688
1669
|
},
|
|
@@ -1693,10 +1674,10 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1693
1674
|
},
|
|
1694
1675
|
networkStakingStepRewardsTotalViewer_unclaimed: {
|
|
1695
1676
|
params: {
|
|
1696
|
-
from:
|
|
1677
|
+
from: z27.tuple([
|
|
1697
1678
|
RewardsRangeOptionsZod.optional()
|
|
1698
1679
|
]),
|
|
1699
|
-
to:
|
|
1680
|
+
to: z27.tuple([
|
|
1700
1681
|
RewardsRangeOptionsZod.optional()
|
|
1701
1682
|
])
|
|
1702
1683
|
},
|
|
@@ -1710,6 +1691,83 @@ var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
|
1710
1691
|
// src/types/schema/StepRewardsViewerRpcSchemas.ts
|
|
1711
1692
|
var NetworkStakingStepRewardsViewerRpcSchemas = {};
|
|
1712
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
|
+
|
|
1713
1771
|
// src/transport/HttpRpcTransport.ts
|
|
1714
1772
|
var HttpRpcTransport = class {
|
|
1715
1773
|
static {
|
|
@@ -1841,12 +1899,12 @@ var NodeXyoRunner = class {
|
|
|
1841
1899
|
}
|
|
1842
1900
|
getArchivist = /* @__PURE__ */ __name(async (identifier) => {
|
|
1843
1901
|
const archivist = await this.node.resolve(identifier);
|
|
1844
|
-
return assertEx2(asArchivistInstance(archivist), () => `
|
|
1902
|
+
return assertEx2(asArchivistInstance(archivist), () => `Could not resolve ${identifier} to an archivist instance`);
|
|
1845
1903
|
}, "getArchivist");
|
|
1846
1904
|
getPendingArchivist = /* @__PURE__ */ __name(async () => {
|
|
1847
1905
|
if (this._pendingArchivist) return this._pendingArchivist;
|
|
1848
1906
|
this._pendingArchivist = await this.getArchivist(this.pendingArchivistPath);
|
|
1849
|
-
return assertEx2(this._pendingArchivist, () => `
|
|
1907
|
+
return assertEx2(this._pendingArchivist, () => `Could not resolve pending archivist at ${this.pendingArchivistPath}`);
|
|
1850
1908
|
}, "getPendingArchivist");
|
|
1851
1909
|
};
|
|
1852
1910
|
|
|
@@ -1919,9 +1977,51 @@ var JsonRpcNetworkStakeViewer = class extends JsonRpcNetworkStakeViewerMethods {
|
|
|
1919
1977
|
}
|
|
1920
1978
|
};
|
|
1921
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
|
+
|
|
1922
2021
|
// src/provider/viewer/JsonRpcXyoViewer.ts
|
|
1923
|
-
import {
|
|
1924
|
-
import {
|
|
2022
|
+
import { isHash } from "@xylabs/hex";
|
|
2023
|
+
import { isDefined } from "@xylabs/typeof";
|
|
2024
|
+
import { asAttoXL1 as asAttoXL14, asHydratedBlock } from "@xyo-network/xl1-protocol";
|
|
1925
2025
|
var JsonRpcXyoViewer = class {
|
|
1926
2026
|
static {
|
|
1927
2027
|
__name(this, "JsonRpcXyoViewer");
|
|
@@ -1941,23 +2041,20 @@ var JsonRpcXyoViewer = class {
|
|
|
1941
2041
|
]));
|
|
1942
2042
|
}
|
|
1943
2043
|
async accountBalanceHistory(address, headOrRange) {
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
}
|
|
1952
|
-
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
|
+
}
|
|
1953
2051
|
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
1954
2052
|
address,
|
|
1955
|
-
|
|
2053
|
+
headOrRange
|
|
1956
2054
|
]);
|
|
1957
2055
|
}
|
|
1958
2056
|
return await this.transport.sendRequest("xyoViewer_accountBalanceHistory", [
|
|
1959
|
-
address
|
|
1960
|
-
range
|
|
2057
|
+
address
|
|
1961
2058
|
]);
|
|
1962
2059
|
}
|
|
1963
2060
|
async blockByHash(hash) {
|
|
@@ -2110,11 +2207,6 @@ var JsonRpcXyoViewer = class {
|
|
|
2110
2207
|
slot
|
|
2111
2208
|
]);
|
|
2112
2209
|
}
|
|
2113
|
-
async stakedByStaker(staker) {
|
|
2114
|
-
return await this.transport.sendRequest("xyoViewer_stakedByStaker", [
|
|
2115
|
-
staker
|
|
2116
|
-
]);
|
|
2117
|
-
}
|
|
2118
2210
|
async stakesByStaked(staked) {
|
|
2119
2211
|
return await this.transport.sendRequest("xyoViewer_stakesByStaked", [
|
|
2120
2212
|
staked
|
|
@@ -2284,7 +2376,6 @@ var RpcXyoSigner = class {
|
|
|
2284
2376
|
}
|
|
2285
2377
|
};
|
|
2286
2378
|
export {
|
|
2287
|
-
AddressZod,
|
|
2288
2379
|
AllRpcSchemas,
|
|
2289
2380
|
AnyBoundWitnessZod,
|
|
2290
2381
|
AnySignedBoundWitnessWithStorageMetaZod,
|
|
@@ -2302,6 +2393,7 @@ export {
|
|
|
2302
2393
|
CaveatTypesZod,
|
|
2303
2394
|
CaveatsZod,
|
|
2304
2395
|
ChainZod,
|
|
2396
|
+
DataLakeViewerRpcNamespace,
|
|
2305
2397
|
DataLakeViewerRpcSchemas,
|
|
2306
2398
|
HttpRpcTransport,
|
|
2307
2399
|
HttpRpcXyoConnection,
|
|
@@ -2317,6 +2409,8 @@ export {
|
|
|
2317
2409
|
JsonRpcNetworkStakeViewerMethods,
|
|
2318
2410
|
JsonRpcNetworkStakingStepRewardsViewer,
|
|
2319
2411
|
JsonRpcNetworkStakingStepRewardsViewerMethods,
|
|
2412
|
+
JsonRpcTimeSyncViewer,
|
|
2413
|
+
JsonRpcTimeSyncViewerMethods,
|
|
2320
2414
|
JsonRpcViewer,
|
|
2321
2415
|
JsonRpcXyoRunner,
|
|
2322
2416
|
JsonRpcXyoViewer,
|
|
@@ -2361,15 +2455,15 @@ export {
|
|
|
2361
2455
|
SignedTransactionBoundWitnessZod,
|
|
2362
2456
|
StakeToJsonZod,
|
|
2363
2457
|
StakeZod,
|
|
2364
|
-
|
|
2458
|
+
TimeDomainZod,
|
|
2459
|
+
TimeSyncViewerRpcNamespace,
|
|
2460
|
+
TimeSyncViewerRpcSchemas,
|
|
2365
2461
|
TransactionBoundWitnessZod,
|
|
2366
2462
|
TransactionFeesBigIntToJsonZod,
|
|
2367
2463
|
TransactionFeesBigIntZod,
|
|
2368
2464
|
TransactionFeesHexZod,
|
|
2369
2465
|
TransactionFeesJsonToBigIntZod,
|
|
2370
|
-
TransferFieldsZod,
|
|
2371
2466
|
TransferPairZod,
|
|
2372
|
-
TransferZod,
|
|
2373
2467
|
UnsignedBoundWitnessWithStorageMetaZod,
|
|
2374
2468
|
UnsignedBoundWitnessZod,
|
|
2375
2469
|
UnsignedHydratedTransactionZod,
|