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