@xyo-network/xl1-protocol-model 2.0.5 → 2.0.7
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/TransferPayload.d.ts +1 -1
- package/dist/neutral/block/BlockBoundWitness.d.ts +57 -57
- package/dist/neutral/block/HydratedBlock.d.ts +141 -141
- package/dist/neutral/block/signed/SignedBlockBoundWitness.d.ts +19 -19
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts +32 -32
- package/dist/neutral/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts +38 -38
- package/dist/neutral/block/unsigned/UnsignedBlockBoundWitness.d.ts +19 -19
- package/dist/neutral/fields/BlockNumber.d.ts +2 -2
- package/dist/neutral/fields/BlockNumber.d.ts.map +1 -1
- package/dist/neutral/index.mjs +70 -21
- package/dist/neutral/index.mjs.map +4 -4
- package/dist/neutral/model/AccountBalance.d.ts +8 -8
- package/dist/neutral/model/Context/ChainContext.zod.d.ts +18 -18
- package/dist/neutral/model/Context/HeadContext.zod.d.ts +8 -8
- package/dist/neutral/model/HydratedTransaction.d.ts +171 -171
- package/dist/neutral/model/SyncStepSummary.d.ts +409 -0
- package/dist/neutral/model/SyncStepSummary.d.ts.map +1 -0
- package/dist/neutral/model/index.d.ts +1 -0
- package/dist/neutral/model/index.d.ts.map +1 -1
- package/dist/neutral/payload/StepIdentityPayload.d.ts +1 -1
- package/dist/neutral/payload/StepIdentityPayload.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeDestinationObservation.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeIntent.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts +1 -1
- package/dist/neutral/payload/elevatable/Bridge/BridgeSourceObservation.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/Hash.d.ts +1 -1
- package/dist/neutral/payload/elevatable/Hash.d.ts.map +1 -1
- package/dist/neutral/payload/elevatable/StepComplete.d.ts +1 -1
- package/dist/neutral/payload/elevatable/StepComplete.d.ts.map +1 -1
- package/dist/neutral/rejection/BlockRejectionPayload.d.ts +15 -15
- package/dist/neutral/rejection/TransactionRejectionPayload.d.ts +15 -15
- package/dist/neutral/transaction/TransactionBoundWitness.d.ts +171 -171
- package/package.json +14 -54
|
@@ -17,19 +17,19 @@ export declare const BlockRejectionFieldsZod: z.ZodMiniObject<{
|
|
|
17
17
|
schema: z.ZodMiniLiteral<"network.xyo.boundwitness" & {
|
|
18
18
|
readonly __schema: true;
|
|
19
19
|
}>;
|
|
20
|
-
addresses: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
20
|
+
addresses: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
21
21
|
readonly __hex: true;
|
|
22
22
|
} & {
|
|
23
23
|
readonly __address: true;
|
|
24
|
-
}, string
|
|
24
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").XyoQuant1Address, string>>]>>;
|
|
25
25
|
payload_hashes: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
|
|
26
26
|
payload_schemas: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").BrandedSchema<string>, string>>>;
|
|
27
27
|
previous_hashes: z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>>;
|
|
28
|
-
$destination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
28
|
+
$destination: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
29
29
|
readonly __hex: true;
|
|
30
30
|
} & {
|
|
31
31
|
readonly __address: true;
|
|
32
|
-
}, string
|
|
32
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").XyoQuant1Address, string>>]>>;
|
|
33
33
|
$sourceQuery: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
|
|
34
34
|
$signatures: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHex, string>>, z.ZodMiniNull]>>;
|
|
35
35
|
}, z.core.$strip>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -57,19 +57,19 @@ export declare const BlockRejectionZod: z.ZodMiniObject<{
|
|
|
57
57
|
schema: z.ZodMiniLiteral<"network.xyo.boundwitness" & {
|
|
58
58
|
readonly __schema: true;
|
|
59
59
|
}>;
|
|
60
|
-
addresses: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
60
|
+
addresses: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
61
61
|
readonly __hex: true;
|
|
62
62
|
} & {
|
|
63
63
|
readonly __address: true;
|
|
64
|
-
}, string
|
|
64
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").XyoQuant1Address, string>>]>>;
|
|
65
65
|
payload_hashes: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
|
|
66
66
|
payload_schemas: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").BrandedSchema<string>, string>>>;
|
|
67
67
|
previous_hashes: z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>>;
|
|
68
|
-
$destination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
68
|
+
$destination: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
69
69
|
readonly __hex: true;
|
|
70
70
|
} & {
|
|
71
71
|
readonly __address: true;
|
|
72
|
-
}, string
|
|
72
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").XyoQuant1Address, string>>]>>;
|
|
73
73
|
$sourceQuery: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
|
|
74
74
|
$signatures: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHex, string>>, z.ZodMiniNull]>>;
|
|
75
75
|
}, z.core.$strip>, z.ZodMiniArray<z.ZodMiniObject<{
|
|
@@ -85,7 +85,7 @@ export declare const BlockRejectionZod: z.ZodMiniObject<{
|
|
|
85
85
|
/** A block rejection payload representing a rejected block with reasons. */
|
|
86
86
|
export type BlockRejection = z.infer<typeof BlockRejectionZod>;
|
|
87
87
|
/** Type guard that checks if a value is a BlockRejection payload. */
|
|
88
|
-
export declare const isBlockRejection: (x?: unknown
|
|
88
|
+
export declare const isBlockRejection: (x?: unknown) => x is {
|
|
89
89
|
schema: "network.xyo.block.rejection" & {
|
|
90
90
|
readonly __schema: true;
|
|
91
91
|
};
|
|
@@ -97,18 +97,18 @@ export declare const isBlockRejection: (x?: unknown | null) => x is {
|
|
|
97
97
|
schema: "network.xyo.boundwitness" & {
|
|
98
98
|
readonly __schema: true;
|
|
99
99
|
};
|
|
100
|
-
addresses: (Lowercase<string> & {
|
|
100
|
+
addresses: ((Lowercase<string> & {
|
|
101
101
|
readonly __hex: true;
|
|
102
102
|
} & {
|
|
103
103
|
readonly __address: true;
|
|
104
|
-
})[];
|
|
104
|
+
}) | import("@xyo-network/sdk-js").XyoQuant1Address)[];
|
|
105
105
|
payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
|
|
106
106
|
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
107
107
|
previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
|
|
108
108
|
$signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
|
|
109
109
|
protocol?: number | undefined;
|
|
110
110
|
step_hashes?: import("@xylabs/sdk-js").BrandedHash[] | undefined;
|
|
111
|
-
$destination?: (Lowercase<string> & {
|
|
111
|
+
$destination?: import("@xyo-network/sdk-js").XyoQuant1Address | (Lowercase<string> & {
|
|
112
112
|
readonly __hex: true;
|
|
113
113
|
} & {
|
|
114
114
|
readonly __address: true;
|
|
@@ -138,18 +138,18 @@ export declare const asBlockRejection: import("@xylabs/sdk-js").AsTypeFunction<{
|
|
|
138
138
|
schema: "network.xyo.boundwitness" & {
|
|
139
139
|
readonly __schema: true;
|
|
140
140
|
};
|
|
141
|
-
addresses: (Lowercase<string> & {
|
|
141
|
+
addresses: ((Lowercase<string> & {
|
|
142
142
|
readonly __hex: true;
|
|
143
143
|
} & {
|
|
144
144
|
readonly __address: true;
|
|
145
|
-
})[];
|
|
145
|
+
}) | import("@xyo-network/sdk-js").XyoQuant1Address)[];
|
|
146
146
|
payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
|
|
147
147
|
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
148
148
|
previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
|
|
149
149
|
$signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
|
|
150
150
|
protocol?: number | undefined;
|
|
151
151
|
step_hashes?: import("@xylabs/sdk-js").BrandedHash[] | undefined;
|
|
152
|
-
$destination?: (Lowercase<string> & {
|
|
152
|
+
$destination?: import("@xyo-network/sdk-js").XyoQuant1Address | (Lowercase<string> & {
|
|
153
153
|
readonly __hex: true;
|
|
154
154
|
} & {
|
|
155
155
|
readonly __address: true;
|
|
@@ -17,19 +17,19 @@ export declare const TransactionRejectionFieldsZod: z.ZodMiniObject<{
|
|
|
17
17
|
schema: z.ZodMiniLiteral<"network.xyo.boundwitness" & {
|
|
18
18
|
readonly __schema: true;
|
|
19
19
|
}>;
|
|
20
|
-
addresses: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
20
|
+
addresses: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
21
21
|
readonly __hex: true;
|
|
22
22
|
} & {
|
|
23
23
|
readonly __address: true;
|
|
24
|
-
}, string
|
|
24
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").XyoQuant1Address, string>>]>>;
|
|
25
25
|
payload_hashes: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
|
|
26
26
|
payload_schemas: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").BrandedSchema<string>, string>>>;
|
|
27
27
|
previous_hashes: z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>>;
|
|
28
|
-
$destination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
28
|
+
$destination: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
29
29
|
readonly __hex: true;
|
|
30
30
|
} & {
|
|
31
31
|
readonly __address: true;
|
|
32
|
-
}, string
|
|
32
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").XyoQuant1Address, string>>]>>;
|
|
33
33
|
$sourceQuery: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
|
|
34
34
|
$signatures: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHex, string>>, z.ZodMiniNull]>>;
|
|
35
35
|
nbf: import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("../index.ts").XL1BlockNumber, number>>;
|
|
@@ -66,19 +66,19 @@ export declare const TransactionRejectionZod: z.ZodMiniObject<{
|
|
|
66
66
|
schema: z.ZodMiniLiteral<"network.xyo.boundwitness" & {
|
|
67
67
|
readonly __schema: true;
|
|
68
68
|
}>;
|
|
69
|
-
addresses: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
69
|
+
addresses: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
70
70
|
readonly __hex: true;
|
|
71
71
|
} & {
|
|
72
72
|
readonly __address: true;
|
|
73
|
-
}, string
|
|
73
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").XyoQuant1Address, string>>]>>;
|
|
74
74
|
payload_hashes: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
|
|
75
75
|
payload_schemas: z.ZodMiniArray<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").BrandedSchema<string>, string>>>;
|
|
76
76
|
previous_hashes: z.ZodMiniArray<z.ZodMiniNullable<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>>;
|
|
77
|
-
$destination: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
77
|
+
$destination: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<Lowercase<string> & {
|
|
78
78
|
readonly __hex: true;
|
|
79
79
|
} & {
|
|
80
80
|
readonly __address: true;
|
|
81
|
-
}, string
|
|
81
|
+
}, string>>, z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xyo-network/sdk-js").XyoQuant1Address, string>>]>>;
|
|
82
82
|
$sourceQuery: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHash, string>>>;
|
|
83
83
|
$signatures: z.ZodMiniArray<z.ZodMiniUnion<readonly [z.ZodMiniPipe<z.ZodMiniString<string>, z.ZodMiniTransform<import("@xylabs/sdk-js").BrandedHex, string>>, z.ZodMiniNull]>>;
|
|
84
84
|
nbf: import("zod").ZodPipe<import("zod").ZodNumber, import("zod").ZodTransform<import("../index.ts").XL1BlockNumber, number>>;
|
|
@@ -103,7 +103,7 @@ export declare const TransactionRejectionZod: z.ZodMiniObject<{
|
|
|
103
103
|
/** A transaction rejection payload representing a rejected transaction with reasons. */
|
|
104
104
|
export type TransactionRejection = z.infer<typeof TransactionRejectionZod>;
|
|
105
105
|
/** Type guard that checks if a value is a TransactionRejection payload. */
|
|
106
|
-
export declare const isTransactionRejection: (x?: unknown
|
|
106
|
+
export declare const isTransactionRejection: (x?: unknown) => x is {
|
|
107
107
|
schema: "network.xyo.transaction.rejection" & {
|
|
108
108
|
readonly __schema: true;
|
|
109
109
|
};
|
|
@@ -118,11 +118,11 @@ export declare const isTransactionRejection: (x?: unknown | null) => x is {
|
|
|
118
118
|
schema: "network.xyo.boundwitness" & {
|
|
119
119
|
readonly __schema: true;
|
|
120
120
|
};
|
|
121
|
-
addresses: (Lowercase<string> & {
|
|
121
|
+
addresses: ((Lowercase<string> & {
|
|
122
122
|
readonly __hex: true;
|
|
123
123
|
} & {
|
|
124
124
|
readonly __address: true;
|
|
125
|
-
})[];
|
|
125
|
+
}) | import("@xyo-network/sdk-js").XyoQuant1Address)[];
|
|
126
126
|
payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
|
|
127
127
|
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
128
128
|
previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
|
|
@@ -141,7 +141,7 @@ export declare const isTransactionRejection: (x?: unknown | null) => x is {
|
|
|
141
141
|
} & {
|
|
142
142
|
readonly __address: true;
|
|
143
143
|
};
|
|
144
|
-
$destination?: (Lowercase<string> & {
|
|
144
|
+
$destination?: import("@xyo-network/sdk-js").XyoQuant1Address | (Lowercase<string> & {
|
|
145
145
|
readonly __hex: true;
|
|
146
146
|
} & {
|
|
147
147
|
readonly __address: true;
|
|
@@ -168,11 +168,11 @@ export declare const asTransactionRejection: import("@xylabs/sdk-js").AsTypeFunc
|
|
|
168
168
|
schema: "network.xyo.boundwitness" & {
|
|
169
169
|
readonly __schema: true;
|
|
170
170
|
};
|
|
171
|
-
addresses: (Lowercase<string> & {
|
|
171
|
+
addresses: ((Lowercase<string> & {
|
|
172
172
|
readonly __hex: true;
|
|
173
173
|
} & {
|
|
174
174
|
readonly __address: true;
|
|
175
|
-
})[];
|
|
175
|
+
}) | import("@xyo-network/sdk-js").XyoQuant1Address)[];
|
|
176
176
|
payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
|
|
177
177
|
payload_schemas: import("@xyo-network/sdk-js").BrandedSchema<string>[];
|
|
178
178
|
previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
|
|
@@ -191,7 +191,7 @@ export declare const asTransactionRejection: import("@xylabs/sdk-js").AsTypeFunc
|
|
|
191
191
|
} & {
|
|
192
192
|
readonly __address: true;
|
|
193
193
|
};
|
|
194
|
-
$destination?: (Lowercase<string> & {
|
|
194
|
+
$destination?: import("@xyo-network/sdk-js").XyoQuant1Address | (Lowercase<string> & {
|
|
195
195
|
readonly __hex: true;
|
|
196
196
|
} & {
|
|
197
197
|
readonly __address: true;
|