@xyo-network/xl1-rpc 1.11.0 → 1.12.0
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/requestSchemas.d.ts +2 -2
- package/dist/neutral/engine/requestSchemas.d.ts.map +1 -1
- package/dist/neutral/index.mjs +433 -312
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/provider/connection/XyoConnection.d.ts +2 -2
- package/dist/neutral/provider/connection/XyoConnection.d.ts.map +1 -1
- package/dist/neutral/provider/runner/JsonRpcXyoRunner.d.ts +2 -2
- package/dist/neutral/provider/runner/JsonRpcXyoRunner.d.ts.map +1 -1
- package/dist/neutral/provider/runner/MemoryXyoRunner.d.ts +2 -2
- package/dist/neutral/provider/runner/MemoryXyoRunner.d.ts.map +1 -1
- package/dist/neutral/provider/runner/NodeXyoRunner.d.ts +2 -2
- package/dist/neutral/provider/runner/NodeXyoRunner.d.ts.map +1 -1
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts +5 -5
- package/dist/neutral/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/neutral/provider/signer/MemoryXyoSigner.d.ts +2 -2
- package/dist/neutral/provider/signer/MemoryXyoSigner.d.ts.map +1 -1
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts +5 -5
- package/dist/neutral/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/neutral/transport/HttpRpcTransport.d.ts +1 -1
- package/dist/neutral/transport/HttpRpcTransport.d.ts.map +1 -1
- package/dist/neutral/transport/MemoryRpcTransport.d.ts +4 -4
- package/dist/neutral/transport/MemoryRpcTransport.d.ts.map +1 -1
- package/dist/neutral/transport/RpcTransport.d.ts +1 -1
- package/dist/neutral/transport/RpcTransport.d.ts.map +1 -1
- package/dist/neutral/transport/post-message/LegacyPostMessageRpcTransport.d.ts +5 -5
- package/dist/neutral/transport/post-message/LegacyPostMessageRpcTransport.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoGatewayRpcSchemas.d.ts +422 -76
- package/dist/neutral/types/schema/XyoGatewayRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoProviderRpcSchemas.d.ts +297 -3
- package/dist/neutral/types/schema/XyoProviderRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts +231 -3
- package/dist/neutral/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts +838 -3
- package/dist/neutral/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts +1611 -3
- package/dist/neutral/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/Address.d.ts +7 -0
- package/dist/neutral/types/schema/common/Address.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/AllowedBlockPayload.d.ts +11 -0
- package/dist/neutral/types/schema/common/AllowedBlockPayload.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts +324 -0
- package/dist/neutral/types/schema/common/BlockBoundWitness.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/BoundWitness.d.ts +420 -0
- package/dist/neutral/types/schema/common/BoundWitness.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/Chain.d.ts +4 -0
- package/dist/neutral/types/schema/common/Chain.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts +474 -0
- package/dist/neutral/types/schema/common/HydratedBlock.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts +624 -0
- package/dist/neutral/types/schema/common/HydratedTransaction.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/Json.d.ts +7 -0
- package/dist/neutral/types/schema/common/Json.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/Payload.d.ts +134 -0
- package/dist/neutral/types/schema/common/Payload.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/Sequence.d.ts +9 -0
- package/dist/neutral/types/schema/common/Sequence.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts +239 -0
- package/dist/neutral/types/schema/common/TransactionBoundWitness.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/TransactionFees.d.ts +93 -24
- package/dist/neutral/types/schema/common/TransactionFees.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/index.d.ts +11 -13
- package/dist/neutral/types/schema/common/index.d.ts.map +1 -1
- package/dist/neutral/types/schema/common/spec/BigIntZod.spec.d.ts +2 -0
- package/dist/neutral/types/schema/common/spec/BigIntZod.spec.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/spec/HydratedTransaction.spec.d.ts +2 -0
- package/dist/neutral/types/schema/common/spec/HydratedTransaction.spec.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/spec/Payload.spec.d.ts +2 -0
- package/dist/neutral/types/schema/common/spec/Payload.spec.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/spec/TransactionBoundWitnessZod.spec.d.ts +2 -0
- package/dist/neutral/types/schema/common/spec/TransactionBoundWitnessZod.spec.d.ts.map +1 -0
- package/dist/neutral/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec copy.d.ts +2 -0
- package/dist/neutral/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec copy.d.ts.map +1 -0
- package/dist/neutral/types/schema/createRequestSchema.d.ts +2 -22
- package/dist/neutral/types/schema/createRequestSchema.d.ts.map +1 -1
- package/dist/neutral/types/schema/createResponseSchema.d.ts +2 -18
- package/dist/neutral/types/schema/createResponseSchema.d.ts.map +1 -1
- package/dist/neutral/types/schema/index.d.ts +1 -0
- package/dist/neutral/types/schema/index.d.ts.map +1 -1
- package/dist/node/engine/requestSchemas.d.ts +2 -2
- package/dist/node/engine/requestSchemas.d.ts.map +1 -1
- package/dist/node/index-node.mjs +433 -312
- package/dist/node/index-node.mjs.map +1 -1
- package/dist/node/provider/connection/XyoConnection.d.ts +2 -2
- package/dist/node/provider/connection/XyoConnection.d.ts.map +1 -1
- package/dist/node/provider/runner/JsonRpcXyoRunner.d.ts +2 -2
- package/dist/node/provider/runner/JsonRpcXyoRunner.d.ts.map +1 -1
- package/dist/node/provider/runner/MemoryXyoRunner.d.ts +2 -2
- package/dist/node/provider/runner/MemoryXyoRunner.d.ts.map +1 -1
- package/dist/node/provider/runner/NodeXyoRunner.d.ts +2 -2
- package/dist/node/provider/runner/NodeXyoRunner.d.ts.map +1 -1
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts +5 -5
- package/dist/node/provider/signer/JsonRpcXyoSigner.d.ts.map +1 -1
- package/dist/node/provider/signer/MemoryXyoSigner.d.ts +2 -2
- package/dist/node/provider/signer/MemoryXyoSigner.d.ts.map +1 -1
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts +5 -5
- package/dist/node/provider/viewer/JsonRpcXyoViewer.d.ts.map +1 -1
- package/dist/node/transport/HttpRpcTransport.d.ts +1 -1
- package/dist/node/transport/HttpRpcTransport.d.ts.map +1 -1
- package/dist/node/transport/MemoryRpcTransport.d.ts +4 -4
- package/dist/node/transport/MemoryRpcTransport.d.ts.map +1 -1
- package/dist/node/transport/RpcTransport.d.ts +1 -1
- package/dist/node/transport/RpcTransport.d.ts.map +1 -1
- package/dist/node/transport/post-message/LegacyPostMessageRpcTransport.d.ts +5 -5
- package/dist/node/transport/post-message/LegacyPostMessageRpcTransport.d.ts.map +1 -1
- package/dist/node/types/schema/XyoGatewayRpcSchemas.d.ts +422 -76
- package/dist/node/types/schema/XyoGatewayRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoProviderRpcSchemas.d.ts +297 -3
- package/dist/node/types/schema/XyoProviderRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts +231 -3
- package/dist/node/types/schema/XyoRunnerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts +838 -3
- package/dist/node/types/schema/XyoSignerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts +1611 -3
- package/dist/node/types/schema/XyoViewerRpcSchemas.d.ts.map +1 -1
- package/dist/node/types/schema/common/Address.d.ts +7 -0
- package/dist/node/types/schema/common/Address.d.ts.map +1 -0
- package/dist/node/types/schema/common/AllowedBlockPayload.d.ts +11 -0
- package/dist/node/types/schema/common/AllowedBlockPayload.d.ts.map +1 -0
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts +324 -0
- package/dist/node/types/schema/common/BlockBoundWitness.d.ts.map +1 -0
- package/dist/node/types/schema/common/BoundWitness.d.ts +420 -0
- package/dist/node/types/schema/common/BoundWitness.d.ts.map +1 -0
- package/dist/node/types/schema/common/Chain.d.ts +4 -0
- package/dist/node/types/schema/common/Chain.d.ts.map +1 -0
- package/dist/node/types/schema/common/HydratedBlock.d.ts +474 -0
- package/dist/node/types/schema/common/HydratedBlock.d.ts.map +1 -0
- package/dist/node/types/schema/common/HydratedTransaction.d.ts +624 -0
- package/dist/node/types/schema/common/HydratedTransaction.d.ts.map +1 -0
- package/dist/node/types/schema/common/Json.d.ts +7 -0
- package/dist/node/types/schema/common/Json.d.ts.map +1 -0
- package/dist/node/types/schema/common/Payload.d.ts +134 -0
- package/dist/node/types/schema/common/Payload.d.ts.map +1 -0
- package/dist/node/types/schema/common/Sequence.d.ts +9 -0
- package/dist/node/types/schema/common/Sequence.d.ts.map +1 -0
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts +239 -0
- package/dist/node/types/schema/common/TransactionBoundWitness.d.ts.map +1 -0
- package/dist/node/types/schema/common/TransactionFees.d.ts +93 -24
- package/dist/node/types/schema/common/TransactionFees.d.ts.map +1 -1
- package/dist/node/types/schema/common/index.d.ts +11 -13
- package/dist/node/types/schema/common/index.d.ts.map +1 -1
- package/dist/node/types/schema/common/spec/BigIntZod.spec.d.ts +2 -0
- package/dist/node/types/schema/common/spec/BigIntZod.spec.d.ts.map +1 -0
- package/dist/node/types/schema/common/spec/HydratedTransaction.spec.d.ts +2 -0
- package/dist/node/types/schema/common/spec/HydratedTransaction.spec.d.ts.map +1 -0
- package/dist/node/types/schema/common/spec/Payload.spec.d.ts +2 -0
- package/dist/node/types/schema/common/spec/Payload.spec.d.ts.map +1 -0
- package/dist/node/types/schema/common/spec/TransactionBoundWitnessZod.spec.d.ts +2 -0
- package/dist/node/types/schema/common/spec/TransactionBoundWitnessZod.spec.d.ts.map +1 -0
- package/dist/node/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec copy.d.ts +2 -0
- package/dist/node/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec copy.d.ts.map +1 -0
- package/dist/node/types/schema/createRequestSchema.d.ts +2 -22
- package/dist/node/types/schema/createRequestSchema.d.ts.map +1 -1
- package/dist/node/types/schema/createResponseSchema.d.ts +2 -18
- package/dist/node/types/schema/createResponseSchema.d.ts.map +1 -1
- package/dist/node/types/schema/index.d.ts +1 -0
- package/dist/node/types/schema/index.d.ts.map +1 -1
- package/package.json +17 -15
- package/src/engine/requestSchemas.ts +2 -2
- package/src/provider/connection/XyoConnection.ts +3 -3
- package/src/provider/connection/spec/XyoConnection.ts +2 -2
- package/src/provider/runner/JsonRpcXyoRunner.ts +2 -2
- package/src/provider/runner/MemoryXyoRunner.ts +2 -2
- package/src/provider/runner/NodeXyoRunner.ts +2 -2
- package/src/provider/signer/JsonRpcXyoSigner.ts +11 -8
- package/src/provider/signer/MemoryXyoSigner.ts +2 -2
- package/src/provider/signer/spec/RpcEngineXyoSigner.spec.ts +5 -4
- package/src/provider/viewer/JsonRpcXyoViewer.ts +15 -16
- package/src/transport/HttpRpcTransport.ts +7 -7
- package/src/transport/MemoryRpcTransport.ts +15 -13
- package/src/transport/RpcTransport.ts +3 -3
- package/src/transport/post-message/LegacyPostMessageRpcTransport.ts +12 -12
- package/src/types/schema/XyoGatewayRpcSchemas.ts +17 -17
- package/src/types/schema/XyoProviderRpcSchemas.ts +16 -16
- package/src/types/schema/XyoRunnerRpcSchemas.ts +8 -11
- package/src/types/schema/XyoSignerRpcSchemas.ts +30 -25
- package/src/types/schema/XyoViewerRpcSchemas.ts +55 -52
- package/src/types/schema/common/{AddressSchema.ts → Address.ts} +1 -2
- package/src/types/schema/common/AllowedBlockPayload.ts +16 -0
- package/src/types/schema/common/BlockBoundWitness.ts +49 -0
- package/src/types/schema/common/BoundWitness.ts +53 -0
- package/src/types/schema/common/Chain.ts +8 -0
- package/src/types/schema/common/HydratedBlock.ts +32 -0
- package/src/types/schema/common/HydratedTransaction.ts +38 -0
- package/src/types/schema/common/Json.ts +19 -0
- package/src/types/schema/common/Payload.ts +31 -0
- package/src/types/schema/common/Sequence.ts +19 -0
- package/src/types/schema/common/TransactionBoundWitness.ts +42 -0
- package/src/types/schema/common/TransactionFees.ts +37 -11
- package/src/types/schema/common/index.ts +11 -13
- package/src/types/schema/common/spec/{BigIntSchema.spec.ts → BigIntZod.spec.ts} +6 -7
- package/src/types/schema/common/spec/HydratedBlockSchema.spec.ts +9 -83
- package/src/types/schema/common/spec/HydratedTransaction.spec.ts +18 -0
- package/src/types/schema/common/spec/Payload.spec.ts +29 -0
- package/src/types/schema/common/spec/TransactionBoundWitnessZod.spec.ts +18 -0
- package/src/types/schema/common/spec/UnsignedHydratedTransactionSchema.spec copy.ts +53 -0
- package/src/types/schema/index.ts +1 -0
- package/dist/neutral/types/schema/common/AddressSchema.d.ts +0 -5
- package/dist/neutral/types/schema/common/AddressSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/BigIntSchema.d.ts +0 -4
- package/dist/neutral/types/schema/common/BigIntSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/BlockBoundWitnessSchema.d.ts +0 -235
- package/dist/neutral/types/schema/common/BlockBoundWitnessSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/BoundWitnessSchema.d.ts +0 -163
- package/dist/neutral/types/schema/common/BoundWitnessSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/HashSchema.d.ts +0 -5
- package/dist/neutral/types/schema/common/HashSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/HexSchema.d.ts +0 -5
- package/dist/neutral/types/schema/common/HexSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/HydratedBlockSchema.d.ts +0 -282
- package/dist/neutral/types/schema/common/HydratedBlockSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/HydratedTransactionSchema.d.ts +0 -214
- package/dist/neutral/types/schema/common/HydratedTransactionSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/JsonSchema.d.ts +0 -7
- package/dist/neutral/types/schema/common/JsonSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/PayloadSchema.d.ts +0 -28
- package/dist/neutral/types/schema/common/PayloadSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/SequenceSchema.d.ts +0 -9
- package/dist/neutral/types/schema/common/SequenceSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/StorageMetaSchema.d.ts +0 -46
- package/dist/neutral/types/schema/common/StorageMetaSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/TransactionBoundWitnessSchema.d.ts +0 -258
- package/dist/neutral/types/schema/common/TransactionBoundWitnessSchema.d.ts.map +0 -1
- package/dist/neutral/types/schema/common/spec/BigIntSchema.spec.d.ts +0 -2
- package/dist/neutral/types/schema/common/spec/BigIntSchema.spec.d.ts.map +0 -1
- package/dist/node/types/schema/common/AddressSchema.d.ts +0 -5
- package/dist/node/types/schema/common/AddressSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/BigIntSchema.d.ts +0 -4
- package/dist/node/types/schema/common/BigIntSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/BlockBoundWitnessSchema.d.ts +0 -235
- package/dist/node/types/schema/common/BlockBoundWitnessSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/BoundWitnessSchema.d.ts +0 -163
- package/dist/node/types/schema/common/BoundWitnessSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/HashSchema.d.ts +0 -5
- package/dist/node/types/schema/common/HashSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/HexSchema.d.ts +0 -5
- package/dist/node/types/schema/common/HexSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/HydratedBlockSchema.d.ts +0 -282
- package/dist/node/types/schema/common/HydratedBlockSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/HydratedTransactionSchema.d.ts +0 -214
- package/dist/node/types/schema/common/HydratedTransactionSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/JsonSchema.d.ts +0 -7
- package/dist/node/types/schema/common/JsonSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/PayloadSchema.d.ts +0 -28
- package/dist/node/types/schema/common/PayloadSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/SequenceSchema.d.ts +0 -9
- package/dist/node/types/schema/common/SequenceSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/StorageMetaSchema.d.ts +0 -46
- package/dist/node/types/schema/common/StorageMetaSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/TransactionBoundWitnessSchema.d.ts +0 -258
- package/dist/node/types/schema/common/TransactionBoundWitnessSchema.d.ts.map +0 -1
- package/dist/node/types/schema/common/spec/BigIntSchema.spec.d.ts +0 -2
- package/dist/node/types/schema/common/spec/BigIntSchema.spec.d.ts.map +0 -1
- package/src/types/schema/common/BigIntSchema.ts +0 -10
- package/src/types/schema/common/BlockBoundWitnessSchema.ts +0 -30
- package/src/types/schema/common/BoundWitnessSchema.ts +0 -45
- package/src/types/schema/common/HashSchema.ts +0 -7
- package/src/types/schema/common/HexSchema.ts +0 -7
- package/src/types/schema/common/HydratedBlockSchema.ts +0 -26
- package/src/types/schema/common/HydratedTransactionSchema.ts +0 -14
- package/src/types/schema/common/JsonSchema.ts +0 -19
- package/src/types/schema/common/PayloadSchema.ts +0 -6
- package/src/types/schema/common/SequenceSchema.ts +0 -19
- package/src/types/schema/common/StorageMetaSchema.ts +0 -14
- package/src/types/schema/common/TransactionBoundWitnessSchema.ts +0 -33
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const HydratedTransactionSchema: z.ZodTuple<[z.ZodObject<{} & {
|
|
3
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
4
|
-
} & {
|
|
5
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
6
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
7
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
8
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
9
|
-
} & {
|
|
10
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
11
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
12
|
-
} & {
|
|
13
|
-
nbf: z.ZodNumber;
|
|
14
|
-
exp: z.ZodNumber;
|
|
15
|
-
} & {
|
|
16
|
-
fees: z.ZodObject<{
|
|
17
|
-
base: z.ZodString;
|
|
18
|
-
gasLimit: z.ZodString;
|
|
19
|
-
gasPrice: z.ZodString;
|
|
20
|
-
priority: z.ZodString;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
base: string;
|
|
23
|
-
gasLimit: string;
|
|
24
|
-
gasPrice: string;
|
|
25
|
-
priority: string;
|
|
26
|
-
}, {
|
|
27
|
-
base: string;
|
|
28
|
-
gasLimit: string;
|
|
29
|
-
gasPrice: string;
|
|
30
|
-
priority: string;
|
|
31
|
-
}>;
|
|
32
|
-
} & {
|
|
33
|
-
chain: z.ZodString;
|
|
34
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{} & {
|
|
35
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
36
|
-
} & {
|
|
37
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
38
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
39
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
40
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
41
|
-
} & {
|
|
42
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
43
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
44
|
-
} & {
|
|
45
|
-
nbf: z.ZodNumber;
|
|
46
|
-
exp: z.ZodNumber;
|
|
47
|
-
} & {
|
|
48
|
-
fees: z.ZodObject<{
|
|
49
|
-
base: z.ZodString;
|
|
50
|
-
gasLimit: z.ZodString;
|
|
51
|
-
gasPrice: z.ZodString;
|
|
52
|
-
priority: z.ZodString;
|
|
53
|
-
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
base: string;
|
|
55
|
-
gasLimit: string;
|
|
56
|
-
gasPrice: string;
|
|
57
|
-
priority: string;
|
|
58
|
-
}, {
|
|
59
|
-
base: string;
|
|
60
|
-
gasLimit: string;
|
|
61
|
-
gasPrice: string;
|
|
62
|
-
priority: string;
|
|
63
|
-
}>;
|
|
64
|
-
} & {
|
|
65
|
-
chain: z.ZodString;
|
|
66
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{} & {
|
|
67
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
68
|
-
} & {
|
|
69
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
70
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
71
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
72
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
73
|
-
} & {
|
|
74
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
75
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
76
|
-
} & {
|
|
77
|
-
nbf: z.ZodNumber;
|
|
78
|
-
exp: z.ZodNumber;
|
|
79
|
-
} & {
|
|
80
|
-
fees: z.ZodObject<{
|
|
81
|
-
base: z.ZodString;
|
|
82
|
-
gasLimit: z.ZodString;
|
|
83
|
-
gasPrice: z.ZodString;
|
|
84
|
-
priority: z.ZodString;
|
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
base: string;
|
|
87
|
-
gasLimit: string;
|
|
88
|
-
gasPrice: string;
|
|
89
|
-
priority: string;
|
|
90
|
-
}, {
|
|
91
|
-
base: string;
|
|
92
|
-
gasLimit: string;
|
|
93
|
-
gasPrice: string;
|
|
94
|
-
priority: string;
|
|
95
|
-
}>;
|
|
96
|
-
} & {
|
|
97
|
-
chain: z.ZodString;
|
|
98
|
-
}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{
|
|
99
|
-
schema: z.ZodString;
|
|
100
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
101
|
-
schema: z.ZodString;
|
|
102
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
103
|
-
schema: z.ZodString;
|
|
104
|
-
}, z.ZodTypeAny, "passthrough">>, "many">], null>;
|
|
105
|
-
export declare const SignedHydratedTransactionSchema: z.ZodTuple<[z.ZodObject<{} & {
|
|
106
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
107
|
-
} & {
|
|
108
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
109
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
110
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
111
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
112
|
-
} & {
|
|
113
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
114
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
115
|
-
} & {
|
|
116
|
-
$signatures: z.ZodArray<z.ZodString, "many">;
|
|
117
|
-
} & {
|
|
118
|
-
nbf: z.ZodNumber;
|
|
119
|
-
exp: z.ZodNumber;
|
|
120
|
-
} & {
|
|
121
|
-
fees: z.ZodObject<{
|
|
122
|
-
base: z.ZodString;
|
|
123
|
-
gasLimit: z.ZodString;
|
|
124
|
-
gasPrice: z.ZodString;
|
|
125
|
-
priority: z.ZodString;
|
|
126
|
-
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
base: string;
|
|
128
|
-
gasLimit: string;
|
|
129
|
-
gasPrice: string;
|
|
130
|
-
priority: string;
|
|
131
|
-
}, {
|
|
132
|
-
base: string;
|
|
133
|
-
gasLimit: string;
|
|
134
|
-
gasPrice: string;
|
|
135
|
-
priority: string;
|
|
136
|
-
}>;
|
|
137
|
-
} & {
|
|
138
|
-
chain: z.ZodString;
|
|
139
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{} & {
|
|
140
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
141
|
-
} & {
|
|
142
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
143
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
144
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
145
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
146
|
-
} & {
|
|
147
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
148
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
149
|
-
} & {
|
|
150
|
-
$signatures: z.ZodArray<z.ZodString, "many">;
|
|
151
|
-
} & {
|
|
152
|
-
nbf: z.ZodNumber;
|
|
153
|
-
exp: z.ZodNumber;
|
|
154
|
-
} & {
|
|
155
|
-
fees: z.ZodObject<{
|
|
156
|
-
base: z.ZodString;
|
|
157
|
-
gasLimit: z.ZodString;
|
|
158
|
-
gasPrice: z.ZodString;
|
|
159
|
-
priority: z.ZodString;
|
|
160
|
-
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
base: string;
|
|
162
|
-
gasLimit: string;
|
|
163
|
-
gasPrice: string;
|
|
164
|
-
priority: string;
|
|
165
|
-
}, {
|
|
166
|
-
base: string;
|
|
167
|
-
gasLimit: string;
|
|
168
|
-
gasPrice: string;
|
|
169
|
-
priority: string;
|
|
170
|
-
}>;
|
|
171
|
-
} & {
|
|
172
|
-
chain: z.ZodString;
|
|
173
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{} & {
|
|
174
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
175
|
-
} & {
|
|
176
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
177
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
178
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
179
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
180
|
-
} & {
|
|
181
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
182
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
183
|
-
} & {
|
|
184
|
-
$signatures: z.ZodArray<z.ZodString, "many">;
|
|
185
|
-
} & {
|
|
186
|
-
nbf: z.ZodNumber;
|
|
187
|
-
exp: z.ZodNumber;
|
|
188
|
-
} & {
|
|
189
|
-
fees: z.ZodObject<{
|
|
190
|
-
base: z.ZodString;
|
|
191
|
-
gasLimit: z.ZodString;
|
|
192
|
-
gasPrice: z.ZodString;
|
|
193
|
-
priority: z.ZodString;
|
|
194
|
-
}, "strip", z.ZodTypeAny, {
|
|
195
|
-
base: string;
|
|
196
|
-
gasLimit: string;
|
|
197
|
-
gasPrice: string;
|
|
198
|
-
priority: string;
|
|
199
|
-
}, {
|
|
200
|
-
base: string;
|
|
201
|
-
gasLimit: string;
|
|
202
|
-
gasPrice: string;
|
|
203
|
-
priority: string;
|
|
204
|
-
}>;
|
|
205
|
-
} & {
|
|
206
|
-
chain: z.ZodString;
|
|
207
|
-
}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{
|
|
208
|
-
schema: z.ZodString;
|
|
209
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
210
|
-
schema: z.ZodString;
|
|
211
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
212
|
-
schema: z.ZodString;
|
|
213
|
-
}, z.ZodTypeAny, "passthrough">>, "many">], null>;
|
|
214
|
-
//# sourceMappingURL=HydratedTransactionSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HydratedTransactionSchema.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/HydratedTransactionSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAGpC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iDAG1C,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const JsonValueSchema: z.ZodType<unknown>;
|
|
3
|
-
export declare const JsonObjectSchema: z.ZodRecord<z.ZodString, z.ZodType<unknown, z.ZodTypeDef, unknown>>;
|
|
4
|
-
export type JsonValue = z.infer<typeof JsonValueSchema>;
|
|
5
|
-
export type JsonObject = z.infer<typeof JsonObjectSchema>;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=JsonSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JsonSchema.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/JsonSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,QAAA,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAQnC,CAAA;AAGL,eAAO,MAAM,gBAAgB,qEAA4B,CAAA;AAGzD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AACvD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const PayloadSchema: z.ZodObject<{
|
|
3
|
-
schema: z.ZodString;
|
|
4
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5
|
-
schema: z.ZodString;
|
|
6
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
7
|
-
schema: z.ZodString;
|
|
8
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
9
|
-
export declare const PayloadWithStorageMetaSchema: z.ZodObject<{
|
|
10
|
-
schema: z.ZodString;
|
|
11
|
-
} & {
|
|
12
|
-
_hash: z.ZodString;
|
|
13
|
-
_dataHash: z.ZodString;
|
|
14
|
-
_sequence: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
15
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
16
|
-
schema: z.ZodString;
|
|
17
|
-
} & {
|
|
18
|
-
_hash: z.ZodString;
|
|
19
|
-
_dataHash: z.ZodString;
|
|
20
|
-
_sequence: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
21
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
22
|
-
schema: z.ZodString;
|
|
23
|
-
} & {
|
|
24
|
-
_hash: z.ZodString;
|
|
25
|
-
_dataHash: z.ZodString;
|
|
26
|
-
_sequence: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
27
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
28
|
-
//# sourceMappingURL=PayloadSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayloadSchema.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/PayloadSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,eAAO,MAAM,aAAa;;;;;;gCAAiD,CAAA;AAC3E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;gCAA8D,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { LocalSequence, QualifiedSequence } from '@xyo-network/payload-model';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export declare const LocalSequenceToStringSchema: z.ZodString;
|
|
4
|
-
export declare const LocalSequenceFromStringSchema: z.ZodEffects<z.ZodString, LocalSequence, string>;
|
|
5
|
-
export declare const QualifiedSequenceToStringSchema: z.ZodString;
|
|
6
|
-
export declare const QualifiedSequenceFromStringSchema: z.ZodEffects<z.ZodString, QualifiedSequence, string>;
|
|
7
|
-
export declare const SequenceToStringSchema: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
8
|
-
export declare const SequenceFromStringSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, LocalSequence, string>, z.ZodEffects<z.ZodString, QualifiedSequence, string>]>;
|
|
9
|
-
//# sourceMappingURL=SequenceSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SequenceSchema.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/SequenceSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EAClB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,2BAA2B,aAAuC,CAAA;AAC/E,eAAO,MAAM,6BAA6B,kDAAgG,CAAA;AAG1I,eAAO,MAAM,+BAA+B,aAA2C,CAAA;AACvF,eAAO,MAAM,iCAAiC,sDAA4G,CAAA;AAE1J,eAAO,MAAM,sBAAsB,wCAA0E,CAAA;AAC7G,eAAO,MAAM,wBAAwB,sHAA8E,CAAA"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const StorageMetaSchema: z.ZodObject<{
|
|
3
|
-
_hash: z.ZodString;
|
|
4
|
-
_dataHash: z.ZodString;
|
|
5
|
-
_sequence: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
_hash: string;
|
|
8
|
-
_dataHash: string;
|
|
9
|
-
_sequence: string;
|
|
10
|
-
}, {
|
|
11
|
-
_hash: string;
|
|
12
|
-
_dataHash: string;
|
|
13
|
-
_sequence: string;
|
|
14
|
-
}>;
|
|
15
|
-
export declare function WithStorageMetaSchema<T extends z.ZodTypeAny>(valueSchema: T): z.ZodObject<{
|
|
16
|
-
_hash: z.ZodString;
|
|
17
|
-
_dataHash: z.ZodString;
|
|
18
|
-
_sequence: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
19
|
-
} & {
|
|
20
|
-
value: T;
|
|
21
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
22
|
-
_hash: z.ZodString;
|
|
23
|
-
_dataHash: z.ZodString;
|
|
24
|
-
_sequence: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
25
|
-
} & {
|
|
26
|
-
value: T;
|
|
27
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
28
|
-
_hash: z.ZodString;
|
|
29
|
-
_dataHash: z.ZodString;
|
|
30
|
-
_sequence: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
31
|
-
} & {
|
|
32
|
-
value: T;
|
|
33
|
-
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
34
|
-
_hash: z.ZodString;
|
|
35
|
-
_dataHash: z.ZodString;
|
|
36
|
-
_sequence: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
37
|
-
} & {
|
|
38
|
-
value: T;
|
|
39
|
-
}> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
|
|
40
|
-
_hash: z.ZodString;
|
|
41
|
-
_dataHash: z.ZodString;
|
|
42
|
-
_sequence: z.ZodUnion<[z.ZodString, z.ZodString]>;
|
|
43
|
-
} & {
|
|
44
|
-
value: T;
|
|
45
|
-
}>[k_1]; } : never>;
|
|
46
|
-
//# sourceMappingURL=StorageMetaSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageMetaSchema.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/StorageMetaSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAA;AAEF,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,WAAW,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAE3E"}
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
export declare const BlockStartSchema: z.ZodObject<{
|
|
3
|
-
nbf: z.ZodNumber;
|
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
|
5
|
-
nbf: number;
|
|
6
|
-
}, {
|
|
7
|
-
nbf: number;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const BlockEndSchema: z.ZodObject<{
|
|
10
|
-
exp: z.ZodNumber;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
exp: number;
|
|
13
|
-
}, {
|
|
14
|
-
exp: number;
|
|
15
|
-
}>;
|
|
16
|
-
export declare const BlockDurationSchema: z.ZodObject<{
|
|
17
|
-
nbf: z.ZodNumber;
|
|
18
|
-
exp: z.ZodNumber;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
nbf: number;
|
|
21
|
-
exp: number;
|
|
22
|
-
}, {
|
|
23
|
-
nbf: number;
|
|
24
|
-
exp: number;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const TransactionFeesSchema: z.ZodObject<{
|
|
27
|
-
fees: z.ZodObject<{
|
|
28
|
-
base: z.ZodString;
|
|
29
|
-
gasLimit: z.ZodString;
|
|
30
|
-
gasPrice: z.ZodString;
|
|
31
|
-
priority: z.ZodString;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
base: string;
|
|
34
|
-
gasLimit: string;
|
|
35
|
-
gasPrice: string;
|
|
36
|
-
priority: string;
|
|
37
|
-
}, {
|
|
38
|
-
base: string;
|
|
39
|
-
gasLimit: string;
|
|
40
|
-
gasPrice: string;
|
|
41
|
-
priority: string;
|
|
42
|
-
}>;
|
|
43
|
-
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
fees: {
|
|
45
|
-
base: string;
|
|
46
|
-
gasLimit: string;
|
|
47
|
-
gasPrice: string;
|
|
48
|
-
priority: string;
|
|
49
|
-
};
|
|
50
|
-
}, {
|
|
51
|
-
fees: {
|
|
52
|
-
base: string;
|
|
53
|
-
gasLimit: string;
|
|
54
|
-
gasPrice: string;
|
|
55
|
-
priority: string;
|
|
56
|
-
};
|
|
57
|
-
}>;
|
|
58
|
-
export declare const TransactionBoundWitnessSchema: z.ZodObject<{} & {
|
|
59
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
60
|
-
} & {
|
|
61
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
62
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
63
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
64
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
65
|
-
} & {
|
|
66
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
67
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
68
|
-
} & {
|
|
69
|
-
nbf: z.ZodNumber;
|
|
70
|
-
exp: z.ZodNumber;
|
|
71
|
-
} & {
|
|
72
|
-
fees: z.ZodObject<{
|
|
73
|
-
base: z.ZodString;
|
|
74
|
-
gasLimit: z.ZodString;
|
|
75
|
-
gasPrice: z.ZodString;
|
|
76
|
-
priority: z.ZodString;
|
|
77
|
-
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
base: string;
|
|
79
|
-
gasLimit: string;
|
|
80
|
-
gasPrice: string;
|
|
81
|
-
priority: string;
|
|
82
|
-
}, {
|
|
83
|
-
base: string;
|
|
84
|
-
gasLimit: string;
|
|
85
|
-
gasPrice: string;
|
|
86
|
-
priority: string;
|
|
87
|
-
}>;
|
|
88
|
-
} & {
|
|
89
|
-
chain: z.ZodString;
|
|
90
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{} & {
|
|
91
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
92
|
-
} & {
|
|
93
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
94
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
95
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
96
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
97
|
-
} & {
|
|
98
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
99
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
100
|
-
} & {
|
|
101
|
-
nbf: z.ZodNumber;
|
|
102
|
-
exp: z.ZodNumber;
|
|
103
|
-
} & {
|
|
104
|
-
fees: z.ZodObject<{
|
|
105
|
-
base: z.ZodString;
|
|
106
|
-
gasLimit: z.ZodString;
|
|
107
|
-
gasPrice: z.ZodString;
|
|
108
|
-
priority: z.ZodString;
|
|
109
|
-
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
base: string;
|
|
111
|
-
gasLimit: string;
|
|
112
|
-
gasPrice: string;
|
|
113
|
-
priority: string;
|
|
114
|
-
}, {
|
|
115
|
-
base: string;
|
|
116
|
-
gasLimit: string;
|
|
117
|
-
gasPrice: string;
|
|
118
|
-
priority: string;
|
|
119
|
-
}>;
|
|
120
|
-
} & {
|
|
121
|
-
chain: z.ZodString;
|
|
122
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{} & {
|
|
123
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
124
|
-
} & {
|
|
125
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
126
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
127
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
128
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
129
|
-
} & {
|
|
130
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
131
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
132
|
-
} & {
|
|
133
|
-
nbf: z.ZodNumber;
|
|
134
|
-
exp: z.ZodNumber;
|
|
135
|
-
} & {
|
|
136
|
-
fees: z.ZodObject<{
|
|
137
|
-
base: z.ZodString;
|
|
138
|
-
gasLimit: z.ZodString;
|
|
139
|
-
gasPrice: z.ZodString;
|
|
140
|
-
priority: z.ZodString;
|
|
141
|
-
}, "strip", z.ZodTypeAny, {
|
|
142
|
-
base: string;
|
|
143
|
-
gasLimit: string;
|
|
144
|
-
gasPrice: string;
|
|
145
|
-
priority: string;
|
|
146
|
-
}, {
|
|
147
|
-
base: string;
|
|
148
|
-
gasLimit: string;
|
|
149
|
-
gasPrice: string;
|
|
150
|
-
priority: string;
|
|
151
|
-
}>;
|
|
152
|
-
} & {
|
|
153
|
-
chain: z.ZodString;
|
|
154
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
155
|
-
export declare const SignedTransactionBoundWitnessSchema: z.ZodObject<{} & {
|
|
156
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
157
|
-
} & {
|
|
158
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
159
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
160
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
161
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
162
|
-
} & {
|
|
163
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
164
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
165
|
-
} & {
|
|
166
|
-
$signatures: z.ZodArray<z.ZodString, "many">;
|
|
167
|
-
} & {
|
|
168
|
-
nbf: z.ZodNumber;
|
|
169
|
-
exp: z.ZodNumber;
|
|
170
|
-
} & {
|
|
171
|
-
fees: z.ZodObject<{
|
|
172
|
-
base: z.ZodString;
|
|
173
|
-
gasLimit: z.ZodString;
|
|
174
|
-
gasPrice: z.ZodString;
|
|
175
|
-
priority: z.ZodString;
|
|
176
|
-
}, "strip", z.ZodTypeAny, {
|
|
177
|
-
base: string;
|
|
178
|
-
gasLimit: string;
|
|
179
|
-
gasPrice: string;
|
|
180
|
-
priority: string;
|
|
181
|
-
}, {
|
|
182
|
-
base: string;
|
|
183
|
-
gasLimit: string;
|
|
184
|
-
gasPrice: string;
|
|
185
|
-
priority: string;
|
|
186
|
-
}>;
|
|
187
|
-
} & {
|
|
188
|
-
chain: z.ZodString;
|
|
189
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{} & {
|
|
190
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
191
|
-
} & {
|
|
192
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
193
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
194
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
195
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
196
|
-
} & {
|
|
197
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
198
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
199
|
-
} & {
|
|
200
|
-
$signatures: z.ZodArray<z.ZodString, "many">;
|
|
201
|
-
} & {
|
|
202
|
-
nbf: z.ZodNumber;
|
|
203
|
-
exp: z.ZodNumber;
|
|
204
|
-
} & {
|
|
205
|
-
fees: z.ZodObject<{
|
|
206
|
-
base: z.ZodString;
|
|
207
|
-
gasLimit: z.ZodString;
|
|
208
|
-
gasPrice: z.ZodString;
|
|
209
|
-
priority: z.ZodString;
|
|
210
|
-
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
base: string;
|
|
212
|
-
gasLimit: string;
|
|
213
|
-
gasPrice: string;
|
|
214
|
-
priority: string;
|
|
215
|
-
}, {
|
|
216
|
-
base: string;
|
|
217
|
-
gasLimit: string;
|
|
218
|
-
gasPrice: string;
|
|
219
|
-
priority: string;
|
|
220
|
-
}>;
|
|
221
|
-
} & {
|
|
222
|
-
chain: z.ZodString;
|
|
223
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{} & {
|
|
224
|
-
schema: z.ZodLiteral<"network.xyo.boundwitness">;
|
|
225
|
-
} & {
|
|
226
|
-
addresses: z.ZodArray<z.ZodString, "many">;
|
|
227
|
-
payload_hashes: z.ZodArray<z.ZodString, "many">;
|
|
228
|
-
payload_schemas: z.ZodArray<z.ZodString, "many">;
|
|
229
|
-
previous_hashes: z.ZodArray<z.ZodNullable<z.ZodString>, "many">;
|
|
230
|
-
} & {
|
|
231
|
-
$destination: z.ZodOptional<z.ZodString>;
|
|
232
|
-
$sourceQuery: z.ZodOptional<z.ZodString>;
|
|
233
|
-
} & {
|
|
234
|
-
$signatures: z.ZodArray<z.ZodString, "many">;
|
|
235
|
-
} & {
|
|
236
|
-
nbf: z.ZodNumber;
|
|
237
|
-
exp: z.ZodNumber;
|
|
238
|
-
} & {
|
|
239
|
-
fees: z.ZodObject<{
|
|
240
|
-
base: z.ZodString;
|
|
241
|
-
gasLimit: z.ZodString;
|
|
242
|
-
gasPrice: z.ZodString;
|
|
243
|
-
priority: z.ZodString;
|
|
244
|
-
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
base: string;
|
|
246
|
-
gasLimit: string;
|
|
247
|
-
gasPrice: string;
|
|
248
|
-
priority: string;
|
|
249
|
-
}, {
|
|
250
|
-
base: string;
|
|
251
|
-
gasLimit: string;
|
|
252
|
-
gasPrice: string;
|
|
253
|
-
priority: string;
|
|
254
|
-
}>;
|
|
255
|
-
} & {
|
|
256
|
-
chain: z.ZodString;
|
|
257
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
258
|
-
//# sourceMappingURL=TransactionBoundWitnessSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitnessSchema.d.ts","sourceRoot":"","sources":["../../../../../src/types/schema/common/TransactionBoundWitnessSchema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AAOnB,eAAO,MAAM,gBAAgB;;;;;;EAAuC,CAAA;AACpE,eAAO,MAAM,cAAc;;;;;;EAAuC,CAAA;AAClE,eAAO,MAAM,mBAAmB;;;;;;;;;EAA+D,CAAA;AAE/F,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAA;AAIF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAI1B,CAAA;AAEhB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAIhC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BigIntSchema.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/types/schema/common/spec/BigIntSchema.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
asHex, hexToBigInt, toHex,
|
|
3
|
-
} from '@xylabs/hex'
|
|
4
|
-
import { HexRegEx } from '@xyo-network/payload-wrapper'
|
|
5
|
-
import { z } from 'zod'
|
|
6
|
-
|
|
7
|
-
const CompiledHexRegEx = new RegExp(HexRegEx)
|
|
8
|
-
|
|
9
|
-
export const BigIntToStringSchema = z.bigint().nonnegative().transform(x => asHex(toHex(x)))
|
|
10
|
-
export const BigIntFromStringSchema = z.string().regex(CompiledHexRegEx).transform(x => hexToBigInt(asHex(toHex(x), true)))
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod'
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
SignedBoundWitnessSchema, SignedBoundWitnessWithStorageMetaSchema, UnsignedBoundWitnessSchema, UnsignedBoundWitnessWithStorageMetaSchema,
|
|
5
|
-
} from './BoundWitnessSchema.ts'
|
|
6
|
-
import { HexToStringSchema } from './HexSchema.ts'
|
|
7
|
-
|
|
8
|
-
export const BlockNumberSchema = z.number().int().nonnegative()
|
|
9
|
-
|
|
10
|
-
const BlockBoundWitnessFieldsSchema = z.object({
|
|
11
|
-
block: BlockNumberSchema,
|
|
12
|
-
chain: HexToStringSchema,
|
|
13
|
-
previous: HexToStringSchema.nullable(),
|
|
14
|
-
protocol: z.number().optional(),
|
|
15
|
-
step_hashes: z.array(HexToStringSchema).optional(),
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
export const BlockBoundWitnessSchema = UnsignedBoundWitnessSchema
|
|
19
|
-
.merge(BlockBoundWitnessFieldsSchema)
|
|
20
|
-
.passthrough()
|
|
21
|
-
export const BlockBoundWitnessWithStorageMetaSchema = UnsignedBoundWitnessWithStorageMetaSchema
|
|
22
|
-
.merge(BlockBoundWitnessFieldsSchema)
|
|
23
|
-
.passthrough()
|
|
24
|
-
|
|
25
|
-
export const SignedBlockBoundWitnessSchema = SignedBoundWitnessSchema
|
|
26
|
-
.merge(BlockBoundWitnessFieldsSchema)
|
|
27
|
-
.passthrough()
|
|
28
|
-
export const SignedBlockBoundWitnessWithStorageMetaSchema = SignedBoundWitnessWithStorageMetaSchema
|
|
29
|
-
.merge(BlockBoundWitnessFieldsSchema)
|
|
30
|
-
.passthrough()
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
2
|
-
import { z } from 'zod'
|
|
3
|
-
|
|
4
|
-
import { AddressToStringSchema } from './AddressSchema.ts'
|
|
5
|
-
import { HashToStringSchema } from './HashSchema.ts'
|
|
6
|
-
import { HexToStringSchema } from './HexSchema.ts'
|
|
7
|
-
import { PayloadSchema, PayloadWithStorageMetaSchema } from './PayloadSchema.ts'
|
|
8
|
-
|
|
9
|
-
export const SchemaIdSchema = z.string()
|
|
10
|
-
|
|
11
|
-
const BoundWitnessRequiredFieldsSchema = z.object({
|
|
12
|
-
addresses: z.array(AddressToStringSchema),
|
|
13
|
-
payload_hashes: z.array(HashToStringSchema),
|
|
14
|
-
payload_schemas: z.array(SchemaIdSchema),
|
|
15
|
-
previous_hashes: z.array(HashToStringSchema.nullable()),
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
const BoundWitnessMetaSchema = z.object({
|
|
19
|
-
$destination: AddressToStringSchema.optional(),
|
|
20
|
-
$sourceQuery: HashToStringSchema.optional(),
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
export const UnsignedBoundWitnessSchema = PayloadSchema
|
|
24
|
-
.extend({ schema: z.literal(BoundWitnessSchema) })
|
|
25
|
-
.merge(BoundWitnessRequiredFieldsSchema)
|
|
26
|
-
.merge(BoundWitnessMetaSchema)
|
|
27
|
-
.passthrough()
|
|
28
|
-
|
|
29
|
-
export const UnsignedBoundWitnessWithStorageMetaSchema = PayloadWithStorageMetaSchema
|
|
30
|
-
.extend({ schema: z.literal(BoundWitnessSchema) })
|
|
31
|
-
.merge(BoundWitnessRequiredFieldsSchema)
|
|
32
|
-
.merge(BoundWitnessMetaSchema)
|
|
33
|
-
.passthrough()
|
|
34
|
-
|
|
35
|
-
export const SignedBoundWitnessSchema = UnsignedBoundWitnessSchema
|
|
36
|
-
.extend(
|
|
37
|
-
{ $signatures: z.array(HexToStringSchema) },
|
|
38
|
-
)
|
|
39
|
-
.passthrough()
|
|
40
|
-
|
|
41
|
-
export const SignedBoundWitnessWithStorageMetaSchema = UnsignedBoundWitnessWithStorageMetaSchema
|
|
42
|
-
.extend(
|
|
43
|
-
{ $signatures: z.array(HexToStringSchema) },
|
|
44
|
-
)
|
|
45
|
-
.passthrough()
|