@xyo-network/xl1-rpc 1.16.10 → 1.16.11
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/index.mjs +24 -25
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/runner/JsonRpcXyoRunner.d.ts +1 -1
- package/dist/neutral/provider/runner/JsonRpcXyoRunner.d.ts.map +1 -1
- package/dist/neutral/provider/runner/NodeXyoRunner.d.ts +1 -1
- package/dist/neutral/provider/runner/NodeXyoRunner.d.ts.map +1 -1
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts +1 -1
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/transport/MemoryRpcTransport.d.ts.map +1 -1
- package/dist/neutral/types/schema/DataLakeViewerRpcSchema.d.ts +6 -6
- package/dist/neutral/types/schema/NetworkStakeViewerRpcSchemas.d.ts +2 -2
- package/dist/neutral/types/schema/RewardsByPositionViewerRpcSchemas.d.ts +20 -20
- package/dist/neutral/types/schema/RewardsByStakerViewerRpcSchemas.d.ts +20 -20
- package/dist/neutral/types/schema/RewardsByStepViewerRpcSchemas.d.ts +20 -20
- package/dist/neutral/types/schema/RewardsTotalViewerRpcSchemas.d.ts +20 -20
- package/dist/neutral/types/schema/StepViewerRpcSchemas.d.ts +23 -23
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts +26 -26
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts +62 -62
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +454 -454
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts +20 -20
- package/dist/neutral/types/schema/common/BoundWitness.d.ts +60 -60
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts +84 -84
- package/dist/neutral/types/schema/common/RewardsRangeOptions.d.ts +1 -1
- package/dist/neutral/types/schema/common/Stake.d.ts +17 -17
- package/dist/neutral/types/schema/common/TransactionFees.d.ts +18 -18
- package/dist/neutral/types/schema/common/TransactionFees.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/TransferPair.d.ts +1 -1
- package/dist/neutral/types/schema/common/TransferPair.d.ts.map +1 -1
- package/dist/node/index-node.mjs +24 -25
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/runner/JsonRpcXyoRunner.d.ts +1 -1
- package/dist/node/provider/runner/JsonRpcXyoRunner.d.ts.map +1 -1
- package/dist/node/provider/runner/NodeXyoRunner.d.ts +1 -1
- package/dist/node/provider/runner/NodeXyoRunner.d.ts.map +1 -1
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts +1 -1
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/transport/MemoryRpcTransport.d.ts.map +1 -1
- package/dist/node/types/schema/DataLakeViewerRpcSchema.d.ts +6 -6
- package/dist/node/types/schema/NetworkStakeViewerRpcSchemas.d.ts +2 -2
- package/dist/node/types/schema/RewardsByPositionViewerRpcSchemas.d.ts +20 -20
- package/dist/node/types/schema/RewardsByStakerViewerRpcSchemas.d.ts +20 -20
- package/dist/node/types/schema/RewardsByStepViewerRpcSchemas.d.ts +20 -20
- package/dist/node/types/schema/RewardsTotalViewerRpcSchemas.d.ts +20 -20
- package/dist/node/types/schema/StepViewerRpcSchemas.d.ts +23 -23
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts +26 -26
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts +62 -62
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +454 -454
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts +20 -20
- package/dist/node/types/schema/common/BoundWitness.d.ts +60 -60
- package/dist/node/types/schema/common/HydratedTransaction.d.ts +84 -84
- package/dist/node/types/schema/common/RewardsRangeOptions.d.ts +1 -1
- package/dist/node/types/schema/common/Stake.d.ts +17 -17
- package/dist/node/types/schema/common/TransactionFees.d.ts +18 -18
- package/dist/node/types/schema/common/TransactionFees.d.ts.map +1 -1
- package/dist/node/types/schema/common/TransferPair.d.ts +1 -1
- package/dist/node/types/schema/common/TransferPair.d.ts.map +1 -1
- package/package.json +16 -19
- package/src/provider/runner/JsonRpcXyoRunner.ts +1 -1
- package/src/provider/runner/NodeXyoRunner.ts +2 -2
- package/src/provider/signer/JsonRpcXyoSigner.ts +1 -1
- package/src/provider/signer/spec/RpcEngineXyoSigner.spec.ts +1 -1
- package/src/provider/viewer/JsonRpcXyoViewer.ts +2 -2
- package/src/provider/viewer/spec/JsonRpcXyoViewer.spec.ts +3 -4
- package/src/spec/MemoryXyoGateway.spec.ts +4 -4
- package/src/transport/HttpRpcTransport.ts +3 -3
- package/src/transport/MemoryRpcTransport.ts +3 -2
- package/src/types/schema/DataLakeViewerRpcSchema.ts +1 -1
- package/src/types/schema/NetworkStakeViewerRpcSchemas.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/XyoRunnerRpcSchemas.ts +1 -1
- package/src/types/schema/XyoSignerRpcSchemas.ts +1 -1
- package/src/types/schema/XyoViewerRpcSchemas.ts +1 -1
- package/src/types/schema/common/BlockBoundWitness.ts +1 -1
- package/src/types/schema/common/BoundWitness.ts +1 -1
- package/src/types/schema/common/Chain.ts +1 -1
- package/src/types/schema/common/HydratedTransaction.ts +1 -1
- package/src/types/schema/common/RewardsRangeOptions.ts +1 -1
- package/src/types/schema/common/Sequence.ts +1 -1
- package/src/types/schema/common/Stake.ts +1 -1
- package/src/types/schema/common/TransactionFees.ts +1 -1
- package/src/types/schema/common/TransferPair.ts +1 -1
- package/src/types/schema/common/spec/BigIntZod.spec.ts +1 -1
- package/src/types/schema/common/spec/HydratedTransaction.spec.ts +1 -1
- package/src/types/schema/common/spec/Payload.spec.ts +1 -1
- package/src/types/schema/common/spec/TransactionBoundWitnessZod.spec.ts +1 -1
|
@@ -5,8 +5,8 @@ export declare const StakeZod: z.ZodObject<{
|
|
|
5
5
|
addBlock: z.ZodNumber;
|
|
6
6
|
id: z.ZodNumber;
|
|
7
7
|
removeBlock: z.ZodNumber;
|
|
8
|
-
staked: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
9
|
-
staker: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
8
|
+
staked: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
9
|
+
staker: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
10
10
|
withdrawBlock: z.ZodNumber;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
12
|
export declare const StakeToJsonZod: z.ZodPipe<z.ZodObject<{
|
|
@@ -14,49 +14,49 @@ export declare const StakeToJsonZod: z.ZodPipe<z.ZodObject<{
|
|
|
14
14
|
addBlock: z.ZodNumber;
|
|
15
15
|
id: z.ZodNumber;
|
|
16
16
|
removeBlock: z.ZodNumber;
|
|
17
|
-
staked: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
18
|
-
staker: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
17
|
+
staked: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
18
|
+
staker: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
19
19
|
withdrawBlock: z.ZodNumber;
|
|
20
20
|
}, z.core.$strip>, z.ZodTransform<{
|
|
21
21
|
addBlock: number;
|
|
22
|
-
amount: import("@xylabs/
|
|
22
|
+
amount: import("@xylabs/sdk-js").Hex;
|
|
23
23
|
id: number;
|
|
24
24
|
removeBlock: number;
|
|
25
|
-
staked: import("@xylabs/
|
|
26
|
-
staker: import("@xylabs/
|
|
25
|
+
staked: import("@xylabs/sdk-js").Address;
|
|
26
|
+
staker: import("@xylabs/sdk-js").Address;
|
|
27
27
|
withdrawBlock: number;
|
|
28
28
|
}, {
|
|
29
29
|
amount: bigint;
|
|
30
30
|
addBlock: number;
|
|
31
31
|
id: number;
|
|
32
32
|
removeBlock: number;
|
|
33
|
-
staked: import("@xylabs/
|
|
34
|
-
staker: import("@xylabs/
|
|
33
|
+
staked: import("@xylabs/sdk-js").Address;
|
|
34
|
+
staker: import("@xylabs/sdk-js").Address;
|
|
35
35
|
withdrawBlock: number;
|
|
36
36
|
}>>;
|
|
37
37
|
export declare const JsonToStakeZod: z.ZodPipe<z.ZodObject<{
|
|
38
38
|
addBlock: z.ZodNumber;
|
|
39
39
|
id: z.ZodNumber;
|
|
40
40
|
removeBlock: z.ZodNumber;
|
|
41
|
-
staked: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
42
|
-
staker: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
41
|
+
staked: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
42
|
+
staker: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>;
|
|
43
43
|
withdrawBlock: z.ZodNumber;
|
|
44
|
-
amount: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
44
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
45
45
|
}, z.core.$strip>, z.ZodTransform<{
|
|
46
46
|
addBlock: number;
|
|
47
47
|
amount: import("@xyo-network/xl1-protocol").AttoXL1;
|
|
48
48
|
id: PositionId;
|
|
49
49
|
removeBlock: number;
|
|
50
|
-
staked: import("@xylabs/
|
|
51
|
-
staker: import("@xylabs/
|
|
50
|
+
staked: import("@xylabs/sdk-js").Address;
|
|
51
|
+
staker: import("@xylabs/sdk-js").Address;
|
|
52
52
|
withdrawBlock: number;
|
|
53
53
|
}, {
|
|
54
54
|
addBlock: number;
|
|
55
55
|
id: number;
|
|
56
56
|
removeBlock: number;
|
|
57
|
-
staked: import("@xylabs/
|
|
58
|
-
staker: import("@xylabs/
|
|
57
|
+
staked: import("@xylabs/sdk-js").Address;
|
|
58
|
+
staker: import("@xylabs/sdk-js").Address;
|
|
59
59
|
withdrawBlock: number;
|
|
60
|
-
amount: import("@xylabs/
|
|
60
|
+
amount: import("@xylabs/sdk-js").Hex;
|
|
61
61
|
}>>;
|
|
62
62
|
//# sourceMappingURL=Stake.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
export declare const AttoZod: z.ZodBigInt;
|
|
3
|
-
export declare const JsonToAttoZod: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
4
|
-
export declare const AttoToJsonZod: z.ZodPipe<z.ZodBigInt, z.ZodTransform<import("@xylabs/
|
|
3
|
+
export declare const JsonToAttoZod: z.ZodPipe<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>, z.ZodTransform<bigint, import("@xylabs/sdk-js").Hex>>, z.ZodTransform<import("@xyo-network/xl1-protocol").AttoXL1, bigint>>;
|
|
4
|
+
export declare const AttoToJsonZod: z.ZodPipe<z.ZodBigInt, z.ZodTransform<import("@xylabs/sdk-js").Hex, bigint>>;
|
|
5
5
|
export declare const TransactionFeesHexZod: z.ZodObject<{
|
|
6
|
-
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
7
|
-
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
8
|
-
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
9
|
-
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
6
|
+
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
7
|
+
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
8
|
+
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
9
|
+
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
11
|
export type TransactionFeesHexZodType = z.infer<typeof TransactionFeesHexZod>;
|
|
12
12
|
export declare const TransactionFeesBigIntZod: z.ZodObject<{
|
|
@@ -17,20 +17,20 @@ export declare const TransactionFeesBigIntZod: z.ZodObject<{
|
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export type TransactionFeesBigIntZodType = z.infer<typeof TransactionFeesBigIntZod>;
|
|
19
19
|
export declare const TransactionFeesJsonToBigIntZod: z.ZodPipe<z.ZodObject<{
|
|
20
|
-
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
21
|
-
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
22
|
-
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
23
|
-
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
20
|
+
base: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
21
|
+
gasLimit: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
22
|
+
gasPrice: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
23
|
+
priority: z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Hex, string>>;
|
|
24
24
|
}, z.core.$strip>, z.ZodTransform<{
|
|
25
25
|
base: bigint;
|
|
26
26
|
gasLimit: bigint;
|
|
27
27
|
gasPrice: bigint;
|
|
28
28
|
priority: bigint;
|
|
29
29
|
}, {
|
|
30
|
-
base: import("@xylabs/
|
|
31
|
-
gasLimit: import("@xylabs/
|
|
32
|
-
gasPrice: import("@xylabs/
|
|
33
|
-
priority: import("@xylabs/
|
|
30
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
31
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
32
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
33
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
34
34
|
}>>;
|
|
35
35
|
export declare const TransactionFeesBigIntToJsonZod: z.ZodPipe<z.ZodObject<{
|
|
36
36
|
base: z.ZodBigInt;
|
|
@@ -38,10 +38,10 @@ export declare const TransactionFeesBigIntToJsonZod: z.ZodPipe<z.ZodObject<{
|
|
|
38
38
|
gasPrice: z.ZodBigInt;
|
|
39
39
|
priority: z.ZodBigInt;
|
|
40
40
|
}, z.core.$strip>, z.ZodTransform<{
|
|
41
|
-
base: import("@xylabs/
|
|
42
|
-
gasLimit: import("@xylabs/
|
|
43
|
-
gasPrice: import("@xylabs/
|
|
44
|
-
priority: import("@xylabs/
|
|
41
|
+
base: import("@xylabs/sdk-js").Hex;
|
|
42
|
+
gasLimit: import("@xylabs/sdk-js").Hex;
|
|
43
|
+
gasPrice: import("@xylabs/sdk-js").Hex;
|
|
44
|
+
priority: import("@xylabs/sdk-js").Hex;
|
|
45
45
|
}, {
|
|
46
46
|
base: bigint;
|
|
47
47
|
gasLimit: bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionFees.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/TransactionFees.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,eAAO,MAAM,OAAO,aAAa,CAAA;AACjC,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"TransactionFees.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/TransactionFees.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,eAAO,MAAM,OAAO,aAAa,CAAA;AACjC,eAAO,MAAM,aAAa,+NAA+C,CAAA;AAEzE,eAAO,MAAM,aAAa,8EAAkB,CAAA;AAE5C,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAA;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE7E,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEnF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;GAKxC,CAAA;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;GAKxC,CAAA;AAEH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAC/F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import z from 'zod';
|
|
2
|
-
export declare const TransferPairZod: z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/
|
|
2
|
+
export declare const TransferPairZod: z.ZodTuple<[z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("@xylabs/sdk-js").Address, string>>], null>;
|
|
3
3
|
//# sourceMappingURL=TransferPair.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferPair.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/TransferPair.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAA;AAEnB,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"TransferPair.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/TransferPair.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAA;AAEnB,eAAO,MAAM,eAAe,wLAE1B,CAAA"}
|
package/dist/node/index-node.mjs
CHANGED
|
@@ -165,7 +165,7 @@ var NetworkStakingStepRewardsTotalViewerRpcNamespace = "networkStakingStepReward
|
|
|
165
165
|
var NetworkStakingStepRewardsViewerRpcNamespace = "networkStakingStepRewardsViewer";
|
|
166
166
|
|
|
167
167
|
// src/types/schema/NetworkStakeViewerRpcSchemas.ts
|
|
168
|
-
import { BigIntToJsonZod, JsonToBigIntZod } from "@xylabs/
|
|
168
|
+
import { BigIntToJsonZod, JsonToBigIntZod } from "@xylabs/sdk-js";
|
|
169
169
|
import { BlockNumberZod } from "@xyo-network/xl1-protocol";
|
|
170
170
|
import * as z from "zod";
|
|
171
171
|
var NetworkStakeViewerRpcSchemas = {
|
|
@@ -228,13 +228,13 @@ var JsonToArrayBufferZod = z2.string().transform((x) => {
|
|
|
228
228
|
});
|
|
229
229
|
|
|
230
230
|
// src/types/schema/common/BlockBoundWitness.ts
|
|
231
|
-
import { HashZod as HashZod2 } from "@xylabs/
|
|
231
|
+
import { HashZod as HashZod2 } from "@xylabs/sdk-js";
|
|
232
232
|
import { StorageMetaZod as StorageMetaZod2 } from "@xyo-network/payload-model";
|
|
233
233
|
import { XL1BlockNumberZod } from "@xyo-network/xl1-protocol";
|
|
234
234
|
import * as z5 from "zod";
|
|
235
235
|
|
|
236
236
|
// src/types/schema/common/BoundWitness.ts
|
|
237
|
-
import { AddressZod, HashZod, HexZod } from "@xylabs/
|
|
237
|
+
import { AddressZod, HashZod, HexZod } from "@xylabs/sdk-js";
|
|
238
238
|
import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
239
239
|
import { PayloadZod, SchemaZod, StorageMetaZod } from "@xyo-network/payload-model";
|
|
240
240
|
import * as z3 from "zod";
|
|
@@ -271,7 +271,7 @@ var AnySignedBoundWitnessZod = UnsignedBoundWitnessZod.catchall(z3.any());
|
|
|
271
271
|
var AnySignedBoundWitnessWithStorageMetaZod = UnsignedBoundWitnessWithStorageMetaZod.catchall(z3.any());
|
|
272
272
|
|
|
273
273
|
// src/types/schema/common/Chain.ts
|
|
274
|
-
import { AddressRegEx, toAddress } from "@xylabs/
|
|
274
|
+
import { AddressRegEx, toAddress } from "@xylabs/sdk-js";
|
|
275
275
|
import * as z4 from "zod";
|
|
276
276
|
var ChainZod = z4.string().toLowerCase().regex(AddressRegEx).transform((v) => toAddress(v));
|
|
277
277
|
|
|
@@ -324,7 +324,7 @@ import { BlockNumberZod as BlockNumberZod2 } from "@xyo-network/xl1-protocol";
|
|
|
324
324
|
import * as z8 from "zod";
|
|
325
325
|
|
|
326
326
|
// src/types/schema/common/TransactionFees.ts
|
|
327
|
-
import { BigIntToJsonZod as BigIntToJsonZod2, HexZod as HexZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/
|
|
327
|
+
import { BigIntToJsonZod as BigIntToJsonZod2, HexZod as HexZod2, JsonToBigIntZod as JsonToBigIntZod2 } from "@xylabs/sdk-js";
|
|
328
328
|
import { asAttoXL1 } from "@xyo-network/xl1-protocol";
|
|
329
329
|
import * as z7 from "zod";
|
|
330
330
|
var AttoZod = z7.bigint();
|
|
@@ -441,7 +441,7 @@ var RequestedPermissionZod = z11.object({
|
|
|
441
441
|
});
|
|
442
442
|
|
|
443
443
|
// src/types/schema/common/RewardsRangeOptions.ts
|
|
444
|
-
import { AddressZod as AddressZod2 } from "@xylabs/
|
|
444
|
+
import { AddressZod as AddressZod2 } from "@xylabs/sdk-js";
|
|
445
445
|
import { BlockRangeZod, StepIdentityZod } from "@xyo-network/xl1-protocol";
|
|
446
446
|
import { z as z12 } from "zod";
|
|
447
447
|
var RewardsRangeOptionsZod = z12.object({
|
|
@@ -452,7 +452,7 @@ var RewardsRangeOptionsZod = z12.object({
|
|
|
452
452
|
});
|
|
453
453
|
|
|
454
454
|
// src/types/schema/common/Sequence.ts
|
|
455
|
-
import { HexRegExMinMax, toHex } from "@xylabs/
|
|
455
|
+
import { HexRegExMinMax, toHex } from "@xylabs/sdk-js";
|
|
456
456
|
import { SequenceConstants } from "@xyo-network/payload-model";
|
|
457
457
|
import * as z13 from "zod";
|
|
458
458
|
var LocalSequenceRegex = new RegExp(HexRegExMinMax(SequenceConstants.localSequenceBytes, SequenceConstants.localSequenceBytes));
|
|
@@ -471,7 +471,7 @@ var SequenceFromStringZod = z13.union([
|
|
|
471
471
|
]);
|
|
472
472
|
|
|
473
473
|
// src/types/schema/common/Stake.ts
|
|
474
|
-
import { AddressZod as AddressZod3, HexZod as HexZod3 } from "@xylabs/
|
|
474
|
+
import { AddressZod as AddressZod3, HexZod as HexZod3 } from "@xylabs/sdk-js";
|
|
475
475
|
import * as z14 from "zod";
|
|
476
476
|
var StakeZod = z14.object({
|
|
477
477
|
amount: AttoZod,
|
|
@@ -518,7 +518,7 @@ var TimeDomainZod = z15.union([
|
|
|
518
518
|
]);
|
|
519
519
|
|
|
520
520
|
// src/types/schema/common/TransferPair.ts
|
|
521
|
-
import { AddressZod as AddressZod4 } from "@xylabs/
|
|
521
|
+
import { AddressZod as AddressZod4 } from "@xylabs/sdk-js";
|
|
522
522
|
import z16 from "zod";
|
|
523
523
|
var TransferPairZod = z16.tuple([
|
|
524
524
|
AddressZod4,
|
|
@@ -568,7 +568,7 @@ var XyoPermissionsRpcSchemas = {
|
|
|
568
568
|
};
|
|
569
569
|
|
|
570
570
|
// src/types/schema/XyoRunnerRpcSchemas.ts
|
|
571
|
-
import { HashToJsonZod, JsonToHashZod } from "@xylabs/
|
|
571
|
+
import { HashToJsonZod, JsonToHashZod } from "@xylabs/sdk-js";
|
|
572
572
|
import * as z18 from "zod";
|
|
573
573
|
var XyoRunnerRpcSchemas = {
|
|
574
574
|
xyoRunner_broadcastTransaction: {
|
|
@@ -588,7 +588,7 @@ var XyoRunnerRpcSchemas = {
|
|
|
588
588
|
};
|
|
589
589
|
|
|
590
590
|
// src/types/schema/XyoSignerRpcSchemas.ts
|
|
591
|
-
import { AddressZod as AddressZod5 } from "@xylabs/
|
|
591
|
+
import { AddressZod as AddressZod5 } from "@xylabs/sdk-js";
|
|
592
592
|
import { asHydratedTransactionWithStorageMeta } from "@xyo-network/xl1-protocol";
|
|
593
593
|
import { z as z19 } from "zod";
|
|
594
594
|
var XyoSignerRpcSchemas = {
|
|
@@ -621,7 +621,7 @@ var XyoSignerRpcSchemas = {
|
|
|
621
621
|
};
|
|
622
622
|
|
|
623
623
|
// src/types/schema/XyoViewerRpcSchemas.ts
|
|
624
|
-
import { AddressZod as AddressZod6, BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/
|
|
624
|
+
import { AddressZod as AddressZod6, BigIntToJsonZod as BigIntToJsonZod3, HashToJsonZod as HashToJsonZod2, HashZod as HashZod3, JsonToBigIntZod as JsonToBigIntZod3, JsonToHashZod as JsonToHashZod2 } from "@xylabs/sdk-js";
|
|
625
625
|
import { WithHashMetaZod } from "@xyo-network/payload-model";
|
|
626
626
|
import { BlockNumberZod as BlockNumberZod3, BlockRangeZod as BlockRangeZod2, StepIdentityZod as StepIdentityZod2, TransferZod, XL1BlockNumberZod as XL1BlockNumberZod2, XL1BlockRangeZod } from "@xyo-network/xl1-protocol";
|
|
627
627
|
import * as z20 from "zod";
|
|
@@ -1319,7 +1319,7 @@ var createResponseSchema = /* @__PURE__ */ __name((resultSchema = z22.undefined(
|
|
|
1319
1319
|
}), "createResponseSchema");
|
|
1320
1320
|
|
|
1321
1321
|
// src/types/schema/DataLakeViewerRpcSchema.ts
|
|
1322
|
-
import { HashZod as HashZod4 } from "@xylabs/
|
|
1322
|
+
import { HashZod as HashZod4 } from "@xylabs/sdk-js";
|
|
1323
1323
|
import { PayloadZod as PayloadZod2 } from "@xyo-network/payload-model";
|
|
1324
1324
|
import * as z23 from "zod";
|
|
1325
1325
|
var DataLakeViewerRpcSchemas = {
|
|
@@ -1380,7 +1380,7 @@ var DataLakeViewerRpcSchemas = {
|
|
|
1380
1380
|
};
|
|
1381
1381
|
|
|
1382
1382
|
// src/types/schema/RewardsByPositionViewerRpcSchemas.ts
|
|
1383
|
-
import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/
|
|
1383
|
+
import { BigIntToJsonZod as BigIntToJsonZod4, JsonToBigIntZod as JsonToBigIntZod4 } from "@xylabs/sdk-js";
|
|
1384
1384
|
import { asAttoXL1 as asAttoXL12 } from "@xyo-network/xl1-protocol";
|
|
1385
1385
|
import z24 from "zod";
|
|
1386
1386
|
var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
|
|
@@ -1457,7 +1457,7 @@ var NetworkStakingStepRewardsByPositionViewerRpcSchemas = {
|
|
|
1457
1457
|
};
|
|
1458
1458
|
|
|
1459
1459
|
// src/types/schema/RewardsByStakerViewerRpcSchemas.ts
|
|
1460
|
-
import { AddressZod as AddressZod7, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/
|
|
1460
|
+
import { AddressZod as AddressZod7, BigIntToJsonZod as BigIntToJsonZod5, JsonToBigIntZod as JsonToBigIntZod5 } from "@xylabs/sdk-js";
|
|
1461
1461
|
import z25 from "zod";
|
|
1462
1462
|
var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
|
|
1463
1463
|
networkStakingStepRewardsByStakerViewer_bonus: {
|
|
@@ -1533,7 +1533,7 @@ var NetworkStakingStepRewardsByStakerViewerRpcSchemas = {
|
|
|
1533
1533
|
};
|
|
1534
1534
|
|
|
1535
1535
|
// src/types/schema/RewardsByStepViewerRpcSchemas.ts
|
|
1536
|
-
import { AddressZod as AddressZod8, BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/
|
|
1536
|
+
import { AddressZod as AddressZod8, BigIntToJsonZod as BigIntToJsonZod6, JsonToBigIntZod as JsonToBigIntZod6 } from "@xylabs/sdk-js";
|
|
1537
1537
|
import z26 from "zod";
|
|
1538
1538
|
var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
1539
1539
|
networkStakingStepRewardsByStepViewer_bonus: {
|
|
@@ -1609,7 +1609,7 @@ var NetworkStakingStepRewardsByStepViewerRpcSchemas = {
|
|
|
1609
1609
|
};
|
|
1610
1610
|
|
|
1611
1611
|
// src/types/schema/RewardsTotalViewerRpcSchemas.ts
|
|
1612
|
-
import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/
|
|
1612
|
+
import { BigIntToJsonZod as BigIntToJsonZod7, JsonToBigIntZod as JsonToBigIntZod7 } from "@xylabs/sdk-js";
|
|
1613
1613
|
import { asAttoXL1 as asAttoXL13 } from "@xyo-network/xl1-protocol";
|
|
1614
1614
|
import * as z27 from "zod";
|
|
1615
1615
|
var NetworkStakingStepRewardsTotalViewerRpcSchemas = {
|
|
@@ -1807,8 +1807,8 @@ var rpcEngineFromConnection = /* @__PURE__ */ __name((connection, networkStakeVi
|
|
|
1807
1807
|
|
|
1808
1808
|
// src/transport/HttpRpcTransport.ts
|
|
1809
1809
|
import { AxiosJson } from "@xylabs/axios";
|
|
1810
|
-
import { isError, isUndefinedOrNull } from "@xylabs/
|
|
1811
|
-
import { isAxiosError } from "axios";
|
|
1810
|
+
import { isError, isUndefinedOrNull } from "@xylabs/sdk-js";
|
|
1811
|
+
import { Axios, isAxiosError } from "axios";
|
|
1812
1812
|
import { v4 } from "uuid";
|
|
1813
1813
|
var HttpRpcTransport = class {
|
|
1814
1814
|
static {
|
|
@@ -1834,7 +1834,7 @@ var HttpRpcTransport = class {
|
|
|
1834
1834
|
if (params) {
|
|
1835
1835
|
body.params = schemas[method].params.to.parse(params);
|
|
1836
1836
|
}
|
|
1837
|
-
const res = await new AxiosJson().post(url, body);
|
|
1837
|
+
const res = await new Axios(AxiosJson.axiosConfig()).post(url, body);
|
|
1838
1838
|
const json = res.data;
|
|
1839
1839
|
if (isUndefinedOrNull(json) || json.error) {
|
|
1840
1840
|
throw new Error(json.error.message);
|
|
@@ -1851,8 +1851,7 @@ var HttpRpcTransport = class {
|
|
|
1851
1851
|
};
|
|
1852
1852
|
|
|
1853
1853
|
// src/transport/MemoryRpcTransport.ts
|
|
1854
|
-
import { assertEx } from "@xylabs/
|
|
1855
|
-
import { isObject, isString } from "@xylabs/typeof";
|
|
1854
|
+
import { assertEx, isObject, isString } from "@xylabs/sdk-js";
|
|
1856
1855
|
import { v4 as v42 } from "uuid";
|
|
1857
1856
|
var MemoryRpcTransport = class {
|
|
1858
1857
|
static {
|
|
@@ -1908,7 +1907,7 @@ var JsonRpcXyoRunner = class {
|
|
|
1908
1907
|
};
|
|
1909
1908
|
|
|
1910
1909
|
// src/provider/runner/NodeXyoRunner.ts
|
|
1911
|
-
import { assertEx as assertEx2 } from "@xylabs/
|
|
1910
|
+
import { assertEx as assertEx2 } from "@xylabs/sdk-js";
|
|
1912
1911
|
import { asArchivistInstance } from "@xyo-network/archivist-model";
|
|
1913
1912
|
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
1914
1913
|
import { PayloadBundleSchema } from "@xyo-network/payload-model";
|
|
@@ -2060,8 +2059,8 @@ var JsonRpcTimeSyncViewer = class extends JsonRpcTimeSyncViewerMethods {
|
|
|
2060
2059
|
};
|
|
2061
2060
|
|
|
2062
2061
|
// src/provider/viewer/JsonRpcXyoViewer.ts
|
|
2063
|
-
import { isHash } from "@xylabs/
|
|
2064
|
-
import { isDefined } from "@xylabs/
|
|
2062
|
+
import { isHash } from "@xylabs/sdk-js";
|
|
2063
|
+
import { isDefined } from "@xylabs/sdk-js";
|
|
2065
2064
|
import { asAttoXL1 as asAttoXL14, asHydratedBlock } from "@xyo-network/xl1-protocol";
|
|
2066
2065
|
var JsonRpcXyoViewer = class {
|
|
2067
2066
|
static {
|