@xyo-network/xl1-schema 4.0.11 → 4.0.12
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.d.ts +1 -4
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +2 -258
- package/dist/neutral/index.mjs.map +4 -4
- package/package.json +14 -19
- package/dist/neutral/Executable.d.ts +0 -5
- package/dist/neutral/Executable.d.ts.map +0 -1
- package/dist/neutral/StorageMeta.d.ts +0 -5
- package/dist/neutral/StorageMeta.d.ts.map +0 -1
- package/dist/neutral/boundwitness/BlockBoundWitness.d.ts +0 -17
- package/dist/neutral/boundwitness/BlockBoundWitness.d.ts.map +0 -1
- package/dist/neutral/boundwitness/BlockBoundWitnessWithStorageMeta.d.ts +0 -18
- package/dist/neutral/boundwitness/BlockBoundWitnessWithStorageMeta.d.ts.map +0 -1
- package/dist/neutral/boundwitness/TransactionBoundWitness.d.ts +0 -17
- package/dist/neutral/boundwitness/TransactionBoundWitness.d.ts.map +0 -1
- package/dist/neutral/boundwitness/TransactionBoundWitnessWithStorageMeta.d.ts +0 -17
- package/dist/neutral/boundwitness/TransactionBoundWitnessWithStorageMeta.d.ts.map +0 -1
- package/dist/neutral/boundwitness/index.d.ts +0 -5
- package/dist/neutral/boundwitness/index.d.ts.map +0 -1
- package/dist/neutral/mergeJsonSchemaRequired.d.ts +0 -7
- package/dist/neutral/mergeJsonSchemaRequired.d.ts.map +0 -1
- package/dist/neutral/payload/ChainStakeIntent.d.ts +0 -17
- package/dist/neutral/payload/ChainStakeIntent.d.ts.map +0 -1
- package/dist/neutral/payload/HashPayload.d.ts +0 -17
- package/dist/neutral/payload/HashPayload.d.ts.map +0 -1
- package/dist/neutral/payload/TransferPayload.d.ts +0 -17
- package/dist/neutral/payload/TransferPayload.d.ts.map +0 -1
- package/dist/neutral/payload/index.d.ts +0 -4
- package/dist/neutral/payload/index.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kCAAkC,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,259 +1,3 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
boundWitnessJsonSchema,
|
|
5
|
-
boundWitnessProperties,
|
|
6
|
-
BoundWitnessSchema,
|
|
7
|
-
PayloadBuilder,
|
|
8
|
-
SchemaSchema
|
|
9
|
-
} from "@xyo-network/sdk";
|
|
10
|
-
|
|
11
|
-
// src/mergeJsonSchemaRequired.ts
|
|
12
|
-
var asRequiredStrings = (required) => {
|
|
13
|
-
if (typeof required === "string") return [required];
|
|
14
|
-
if (!Array.isArray(required)) return [];
|
|
15
|
-
return required.filter((item) => typeof item === "string");
|
|
16
|
-
};
|
|
17
|
-
var mergeJsonSchemaRequired = (...groups) => [...new Set(groups.flatMap(asRequiredStrings))];
|
|
18
|
-
|
|
19
|
-
// src/boundwitness/BlockBoundWitness.ts
|
|
20
|
-
var BlockBoundWitnessJsonSchema = {
|
|
21
|
-
...boundWitnessJsonSchema,
|
|
22
|
-
$id: "https://schemas.xyo.network/2.0/block",
|
|
23
|
-
properties: {
|
|
24
|
-
...boundWitnessProperties,
|
|
25
|
-
block: { type: "integer" },
|
|
26
|
-
chain: { type: "string", pattern: AddressRegEx.source },
|
|
27
|
-
previous: {
|
|
28
|
-
type: "string",
|
|
29
|
-
pattern: HashRegEx.source,
|
|
30
|
-
nullable: true
|
|
31
|
-
},
|
|
32
|
-
step_hashes: {
|
|
33
|
-
items: { type: "string", pattern: HashRegEx.source },
|
|
34
|
-
type: "array"
|
|
35
|
-
},
|
|
36
|
-
$epoch: { type: "integer" },
|
|
37
|
-
schema: { type: "string", pattern: BoundWitnessSchema }
|
|
38
|
-
},
|
|
39
|
-
required: mergeJsonSchemaRequired(boundWitnessJsonSchema.required, "block", "chain", "step_hashes", "previous", "$epoch"),
|
|
40
|
-
type: "object"
|
|
41
|
-
};
|
|
42
|
-
var blockBoundWitnessSchemaBuilder = new PayloadBuilder({ schema: SchemaSchema });
|
|
43
|
-
var BlockBoundWitnessSchemaPayload = blockBoundWitnessSchemaBuilder.fields({ definition: BlockBoundWitnessJsonSchema }).build();
|
|
44
|
-
|
|
45
|
-
// src/boundwitness/BlockBoundWitnessWithStorageMeta.ts
|
|
46
|
-
import {
|
|
47
|
-
boundWitnessJsonSchema as boundWitnessJsonSchema2,
|
|
48
|
-
boundWitnessProperties as boundWitnessProperties2,
|
|
49
|
-
BoundWitnessSchema as BoundWitnessSchema2,
|
|
50
|
-
PayloadBuilder as PayloadBuilder2,
|
|
51
|
-
SchemaSchema as SchemaSchema2
|
|
52
|
-
} from "@xyo-network/sdk";
|
|
53
|
-
|
|
54
|
-
// src/StorageMeta.ts
|
|
55
|
-
import { HashRegEx as HashRegEx2, HexRegEx } from "@ariestools/sdk";
|
|
56
|
-
var StorageMetaJsonSchema = {
|
|
57
|
-
$id: "https://schemas.xyo.network/2.0/storage-meta",
|
|
58
|
-
properties: {
|
|
59
|
-
_sequence: { type: "string", pattern: HexRegEx.source },
|
|
60
|
-
_hash: { type: "string", pattern: HashRegEx2.source },
|
|
61
|
-
_dataHash: { type: "string", pattern: HashRegEx2.source }
|
|
62
|
-
},
|
|
63
|
-
required: ["_sequence", "_hash", "_dataHash"],
|
|
64
|
-
type: "object"
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
// src/boundwitness/BlockBoundWitnessWithStorageMeta.ts
|
|
68
|
-
var BlockBoundWitnessWithStorageMetaJsonSchema = {
|
|
69
|
-
$id: "https://schemas.xyo.network/2.0/block-with-storage-meta",
|
|
70
|
-
properties: {
|
|
71
|
-
...boundWitnessProperties2,
|
|
72
|
-
...BlockBoundWitnessJsonSchema.properties,
|
|
73
|
-
...StorageMetaJsonSchema.properties,
|
|
74
|
-
schema: { type: "string", pattern: BoundWitnessSchema2 }
|
|
75
|
-
},
|
|
76
|
-
required: mergeJsonSchemaRequired(
|
|
77
|
-
boundWitnessJsonSchema2.required,
|
|
78
|
-
BlockBoundWitnessJsonSchema.required,
|
|
79
|
-
StorageMetaJsonSchema.required
|
|
80
|
-
),
|
|
81
|
-
type: "object"
|
|
82
|
-
};
|
|
83
|
-
var blockBoundWitnessWithStorageMetaSchemaBuilder = new PayloadBuilder2({ schema: SchemaSchema2 });
|
|
84
|
-
var BlockBoundWitnessWithStorageMetaSchemaPayload = blockBoundWitnessWithStorageMetaSchemaBuilder.fields({ definition: BlockBoundWitnessWithStorageMetaJsonSchema }).build();
|
|
85
|
-
|
|
86
|
-
// src/boundwitness/TransactionBoundWitness.ts
|
|
87
|
-
import { AddressRegEx as AddressRegEx2 } from "@ariestools/sdk";
|
|
88
|
-
import {
|
|
89
|
-
boundWitnessJsonSchema as boundWitnessJsonSchema3,
|
|
90
|
-
BoundWitnessSchema as BoundWitnessSchema3,
|
|
91
|
-
PayloadBuilder as PayloadBuilder3,
|
|
92
|
-
SchemaSchema as SchemaSchema3,
|
|
93
|
-
Uint256RegEx,
|
|
94
|
-
XyoAddressRegEx
|
|
95
|
-
} from "@xyo-network/sdk";
|
|
96
|
-
|
|
97
|
-
// src/Executable.ts
|
|
98
|
-
var ExecutableJsonSchema = {
|
|
99
|
-
$id: "https://schemas.xyo.network/2.0/executable",
|
|
100
|
-
additionalProperties: true,
|
|
101
|
-
properties: { script: { items: { type: "string", pattern: String.raw`^elevate\|` }, type: "array" } },
|
|
102
|
-
required: ["script"],
|
|
103
|
-
type: "object"
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
// src/boundwitness/TransactionBoundWitness.ts
|
|
107
|
-
var TransactionBoundWitnessJsonSchema = {
|
|
108
|
-
...boundWitnessJsonSchema3,
|
|
109
|
-
$id: "https://schemas.xyo.network/2.0/transaction",
|
|
110
|
-
additionalProperties: false,
|
|
111
|
-
properties: {
|
|
112
|
-
...boundWitnessJsonSchema3.properties,
|
|
113
|
-
...ExecutableJsonSchema.properties,
|
|
114
|
-
chain: { type: "string", pattern: AddressRegEx2.source },
|
|
115
|
-
fees: {
|
|
116
|
-
type: "object",
|
|
117
|
-
properties: {
|
|
118
|
-
base: { type: "string", pattern: Uint256RegEx.source },
|
|
119
|
-
gasLimit: { type: "string", pattern: Uint256RegEx.source },
|
|
120
|
-
gasPrice: { type: "string", pattern: Uint256RegEx.source },
|
|
121
|
-
priority: { type: "string", pattern: Uint256RegEx.source }
|
|
122
|
-
},
|
|
123
|
-
required: ["base"],
|
|
124
|
-
additionalProperties: false
|
|
125
|
-
},
|
|
126
|
-
from: { type: "string", pattern: XyoAddressRegEx.source },
|
|
127
|
-
nbf: { type: "integer" },
|
|
128
|
-
exp: { type: "integer" },
|
|
129
|
-
schema: { type: "string", pattern: BoundWitnessSchema3 }
|
|
130
|
-
},
|
|
131
|
-
required: mergeJsonSchemaRequired(boundWitnessJsonSchema3.required, "chain", "fees", "nbf", "exp"),
|
|
132
|
-
type: "object"
|
|
133
|
-
};
|
|
134
|
-
var transactionBoundWitnessSchemaBuilder = new PayloadBuilder3({ schema: SchemaSchema3 });
|
|
135
|
-
var TransactionBoundWitnessSchemaPayload = transactionBoundWitnessSchemaBuilder.fields({ definition: TransactionBoundWitnessJsonSchema }).build();
|
|
136
|
-
|
|
137
|
-
// src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts
|
|
138
|
-
import { AddressRegEx as AddressRegEx3 } from "@ariestools/sdk";
|
|
139
|
-
import {
|
|
140
|
-
boundWitnessJsonSchema as boundWitnessJsonSchema4,
|
|
141
|
-
BoundWitnessSchema as BoundWitnessSchema4,
|
|
142
|
-
PayloadBuilder as PayloadBuilder4,
|
|
143
|
-
SchemaSchema as SchemaSchema4,
|
|
144
|
-
Uint256RegEx as Uint256RegEx2
|
|
145
|
-
} from "@xyo-network/sdk";
|
|
146
|
-
var TransactionBoundWitnessWithStorageMetaJsonSchema = {
|
|
147
|
-
...boundWitnessJsonSchema4,
|
|
148
|
-
$id: "https://schemas.xyo.network/2.0/transaction-with-storage-meta",
|
|
149
|
-
additionalProperties: false,
|
|
150
|
-
properties: {
|
|
151
|
-
...boundWitnessJsonSchema4.properties,
|
|
152
|
-
...StorageMetaJsonSchema.properties,
|
|
153
|
-
chain: { type: "string", pattern: AddressRegEx3.source },
|
|
154
|
-
gas: { type: "string", pattern: Uint256RegEx2.source },
|
|
155
|
-
nbf: { type: "integer" },
|
|
156
|
-
exp: { type: "integer" },
|
|
157
|
-
schema: { type: "string", pattern: BoundWitnessSchema4 }
|
|
158
|
-
},
|
|
159
|
-
required: mergeJsonSchemaRequired(boundWitnessJsonSchema4.required, StorageMetaJsonSchema.required, "chain", "gas", "nbf", "exp"),
|
|
160
|
-
type: "object"
|
|
161
|
-
};
|
|
162
|
-
var transactionBoundWitnessWithStorageMetaSchemaBuilder = new PayloadBuilder4({ schema: SchemaSchema4 });
|
|
163
|
-
var TransactionBoundWitnessWithStorageMetaSchemaPayload = transactionBoundWitnessWithStorageMetaSchemaBuilder.fields({ definition: TransactionBoundWitnessWithStorageMetaJsonSchema }).build();
|
|
164
|
-
|
|
165
|
-
// src/payload/ChainStakeIntent.ts
|
|
166
|
-
import {
|
|
167
|
-
PayloadBuilder as PayloadBuilder5,
|
|
168
|
-
payloadJsonSchema,
|
|
169
|
-
SchemaSchema as SchemaSchema5,
|
|
170
|
-
XyoAddressRegEx as XyoAddressRegEx2
|
|
171
|
-
} from "@xyo-network/sdk";
|
|
172
|
-
import { ChainStakeIntentSchema } from "@xyo-network/xl1-protocol-lib";
|
|
173
|
-
var ChainStakeIntentPayloadJsonSchema = {
|
|
174
|
-
...payloadJsonSchema,
|
|
175
|
-
$id: "https://schemas.xyo.network/2.0/payload/chain-stake-intent",
|
|
176
|
-
additionalProperties: false,
|
|
177
|
-
properties: {
|
|
178
|
-
...payloadJsonSchema.properties,
|
|
179
|
-
from: { type: "string", pattern: XyoAddressRegEx2.source },
|
|
180
|
-
intent: { type: "string", enum: ["producer"] },
|
|
181
|
-
schema: { type: "string", pattern: ChainStakeIntentSchema }
|
|
182
|
-
},
|
|
183
|
-
required: mergeJsonSchemaRequired(payloadJsonSchema.required, "intent"),
|
|
184
|
-
type: "object"
|
|
185
|
-
};
|
|
186
|
-
var chainStakeIntentPayloadJsonSchemaBuilder = new PayloadBuilder5({ schema: SchemaSchema5 });
|
|
187
|
-
var ChainStakeIntentPayloadJsonSchemaPayload = chainStakeIntentPayloadJsonSchemaBuilder.fields({ definition: ChainStakeIntentPayloadJsonSchema }).build();
|
|
188
|
-
|
|
189
|
-
// src/payload/HashPayload.ts
|
|
190
|
-
import { HashRegEx as HashRegEx3 } from "@ariestools/sdk";
|
|
191
|
-
import {
|
|
192
|
-
PayloadBuilder as PayloadBuilder6,
|
|
193
|
-
payloadJsonSchema as payloadJsonSchema2,
|
|
194
|
-
SchemaSchema as SchemaSchema6
|
|
195
|
-
} from "@xyo-network/sdk";
|
|
196
|
-
import { HashSchema } from "@xyo-network/xl1-protocol-lib";
|
|
197
|
-
var HashPayloadJsonSchema = {
|
|
198
|
-
...payloadJsonSchema2,
|
|
199
|
-
$id: "https://schemas.xyo.network/2.0/payload/hash",
|
|
200
|
-
additionalProperties: false,
|
|
201
|
-
properties: {
|
|
202
|
-
...payloadJsonSchema2.properties,
|
|
203
|
-
hash: { type: "string", pattern: HashRegEx3.source },
|
|
204
|
-
schema: { type: "string", pattern: HashSchema }
|
|
205
|
-
},
|
|
206
|
-
required: mergeJsonSchemaRequired(payloadJsonSchema2.required, "hash"),
|
|
207
|
-
type: "object"
|
|
208
|
-
};
|
|
209
|
-
var hashPayloadJsonSchemaBuilder = new PayloadBuilder6({ schema: SchemaSchema6 });
|
|
210
|
-
var HashPayloadJsonSchemaPayload = hashPayloadJsonSchemaBuilder.fields({ definition: HashPayloadJsonSchema }).build();
|
|
211
|
-
|
|
212
|
-
// src/payload/TransferPayload.ts
|
|
213
|
-
import {
|
|
214
|
-
PayloadBuilder as PayloadBuilder7,
|
|
215
|
-
payloadJsonSchema as payloadJsonSchema3,
|
|
216
|
-
SchemaSchema as SchemaSchema7,
|
|
217
|
-
Uint256RegEx as Uint256RegEx3,
|
|
218
|
-
XyoAddressRegEx as XyoAddressRegEx3
|
|
219
|
-
} from "@xyo-network/sdk";
|
|
220
|
-
import { TransferSchema } from "@xyo-network/xl1-protocol-lib";
|
|
221
|
-
var TransferPayloadJsonSchema = {
|
|
222
|
-
...payloadJsonSchema3,
|
|
223
|
-
$id: "https://schemas.xyo.network/2.0/payload/transfer",
|
|
224
|
-
additionalProperties: false,
|
|
225
|
-
properties: {
|
|
226
|
-
...payloadJsonSchema3.properties,
|
|
227
|
-
from: { type: "string", pattern: XyoAddressRegEx3.source },
|
|
228
|
-
epoch: { type: "number" },
|
|
229
|
-
transfers: {
|
|
230
|
-
type: "object",
|
|
231
|
-
propertyNames: { pattern: XyoAddressRegEx3.source },
|
|
232
|
-
patternProperties: { [XyoAddressRegEx3.source]: { type: "string", pattern: Uint256RegEx3.source } }
|
|
233
|
-
},
|
|
234
|
-
schema: { type: "string", pattern: TransferSchema }
|
|
235
|
-
},
|
|
236
|
-
required: mergeJsonSchemaRequired(payloadJsonSchema3.required, "transfers", "epoch"),
|
|
237
|
-
type: "object"
|
|
238
|
-
};
|
|
239
|
-
var transferPayloadJsonSchemaBuilder = new PayloadBuilder7({ schema: SchemaSchema7 });
|
|
240
|
-
var TransferPayloadJsonSchemaPayload = transferPayloadJsonSchemaBuilder.fields({ definition: TransferPayloadJsonSchema }).build();
|
|
241
|
-
export {
|
|
242
|
-
BlockBoundWitnessJsonSchema,
|
|
243
|
-
BlockBoundWitnessSchemaPayload,
|
|
244
|
-
BlockBoundWitnessWithStorageMetaJsonSchema,
|
|
245
|
-
BlockBoundWitnessWithStorageMetaSchemaPayload,
|
|
246
|
-
ChainStakeIntentPayloadJsonSchema,
|
|
247
|
-
ChainStakeIntentPayloadJsonSchemaPayload,
|
|
248
|
-
ExecutableJsonSchema,
|
|
249
|
-
HashPayloadJsonSchema,
|
|
250
|
-
HashPayloadJsonSchemaPayload,
|
|
251
|
-
StorageMetaJsonSchema,
|
|
252
|
-
TransactionBoundWitnessJsonSchema,
|
|
253
|
-
TransactionBoundWitnessSchemaPayload,
|
|
254
|
-
TransactionBoundWitnessWithStorageMetaJsonSchema,
|
|
255
|
-
TransactionBoundWitnessWithStorageMetaSchemaPayload,
|
|
256
|
-
TransferPayloadJsonSchema,
|
|
257
|
-
TransferPayloadJsonSchemaPayload
|
|
258
|
-
};
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@xyo-network/xl1-protocol/schema";
|
|
259
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
4
|
-
"sourcesContent": ["import { AddressRegEx, HashRegEx } from '@ariestools/sdk'\nimport type { SchemaPayload } from '@xyo-network/sdk'\nimport {\n boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,\n PayloadBuilder, SchemaSchema,\n} from '@xyo-network/sdk'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol-lib'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { mergeJsonSchemaRequired } from '../mergeJsonSchemaRequired.ts'\n\n/** JSON schema for validating BlockBoundWitness payloads. */\nexport const BlockBoundWitnessJsonSchema: JSONSchemaType<BlockBoundWitness> = {\n ...boundWitnessJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/block',\n properties: {\n ...boundWitnessProperties,\n block: { type: 'integer' },\n chain: { type: 'string', pattern: AddressRegEx.source },\n previous: {\n type: 'string', pattern: HashRegEx.source, nullable: true,\n },\n step_hashes: {\n items: { type: 'string', pattern: HashRegEx.source },\n type: 'array',\n },\n $epoch: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n\n required: mergeJsonSchemaRequired<BlockBoundWitness>(boundWitnessJsonSchema.required, 'block', 'chain', 'step_hashes', 'previous', '$epoch'),\n type: 'object',\n} as const\n\n/** Pre-built schema payload for BlockBoundWitness validation. */\nconst blockBoundWitnessSchemaBuilder = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\nexport const BlockBoundWitnessSchemaPayload = blockBoundWitnessSchemaBuilder\n .fields({ definition: BlockBoundWitnessJsonSchema }).build()\n", "import type { JSONSchemaType } from 'ajv'\n\nexport const asRequiredStrings = (required: unknown): readonly string[] => {\n if (typeof required === 'string') return [required]\n if (!Array.isArray(required)) return []\n return required.filter((item): item is string => typeof item === 'string')\n}\n\n/** Merge JSON schema `required` arrays without spreading untyped sdk-js values. */\nexport const mergeJsonSchemaRequired = <T>(\n ...groups: readonly unknown[]\n): JSONSchemaType<T> extends { required: infer R } ? R : never => (\n [...new Set(groups.flatMap(asRequiredStrings))] as JSONSchemaType<T> extends { required: infer R } ? R : never\n)\n", "import type { SchemaPayload, WithStorageMeta } from '@xyo-network/sdk'\nimport {\n boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,\n PayloadBuilder, SchemaSchema,\n} from '@xyo-network/sdk'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol-lib'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { mergeJsonSchemaRequired } from '../mergeJsonSchemaRequired.ts'\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\nimport { BlockBoundWitnessJsonSchema } from './BlockBoundWitness.ts'\n\n/** JSON schema for validating BlockBoundWitness payloads including storage metadata. */\nexport const BlockBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<WithStorageMeta<BlockBoundWitness>> = {\n $id: 'https://schemas.xyo.network/2.0/block-with-storage-meta',\n properties: {\n ...boundWitnessProperties,\n ...BlockBoundWitnessJsonSchema.properties,\n ...StorageMetaJsonSchema.properties,\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n\n required: mergeJsonSchemaRequired<WithStorageMeta<BlockBoundWitness>>(\n boundWitnessJsonSchema.required,\n BlockBoundWitnessJsonSchema.required,\n StorageMetaJsonSchema.required,\n ),\n type: 'object',\n} as const\n\n/** Pre-built schema payload for BlockBoundWitness with storage meta validation. */\nconst blockBoundWitnessWithStorageMetaSchemaBuilder = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\nexport const BlockBoundWitnessWithStorageMetaSchemaPayload = blockBoundWitnessWithStorageMetaSchemaBuilder\n .fields({ definition: BlockBoundWitnessWithStorageMetaJsonSchema }).build()\n", "import { HashRegEx, HexRegEx } from '@ariestools/sdk'\nimport type { StorageMeta } from '@xyo-network/sdk'\nimport type { JSONSchemaType } from 'ajv'\n\n/** JSON schema for validating storage metadata fields (_sequence, _hash, _dataHash). */\nexport const StorageMetaJsonSchema: JSONSchemaType<StorageMeta> = {\n $id: 'https://schemas.xyo.network/2.0/storage-meta',\n properties: {\n _sequence: { type: 'string', pattern: HexRegEx.source },\n _hash: { type: 'string', pattern: HashRegEx.source },\n _dataHash: { type: 'string', pattern: HashRegEx.source },\n },\n required: ['_sequence', '_hash', '_dataHash'],\n type: 'object',\n} as const\n", "import { AddressRegEx } from '@ariestools/sdk'\nimport type { SchemaPayload } from '@xyo-network/sdk'\nimport {\n boundWitnessJsonSchema, BoundWitnessSchema,\n PayloadBuilder, SchemaSchema,\n Uint256RegEx, XyoAddressRegEx,\n} from '@xyo-network/sdk'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol-lib'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { ExecutableJsonSchema } from '../Executable.ts'\nimport { mergeJsonSchemaRequired } from '../mergeJsonSchemaRequired.ts'\n\n/** JSON schema for validating TransactionBoundWitness payloads. */\nexport const TransactionBoundWitnessJsonSchema: JSONSchemaType<TransactionBoundWitness> = {\n ...boundWitnessJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/transaction',\n additionalProperties: false,\n properties: {\n ...boundWitnessJsonSchema.properties,\n ...ExecutableJsonSchema.properties,\n chain: { type: 'string', pattern: AddressRegEx.source },\n fees: {\n type: 'object',\n properties: {\n base: { type: 'string', pattern: Uint256RegEx.source },\n gasLimit: { type: 'string', pattern: Uint256RegEx.source },\n gasPrice: { type: 'string', pattern: Uint256RegEx.source },\n priority: { type: 'string', pattern: Uint256RegEx.source },\n },\n required: ['base'],\n additionalProperties: false,\n },\n from: { type: 'string', pattern: XyoAddressRegEx.source },\n nbf: { type: 'integer' },\n exp: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n\n required: mergeJsonSchemaRequired<TransactionBoundWitness>(boundWitnessJsonSchema.required, 'chain', 'fees', 'nbf', 'exp'),\n type: 'object',\n} as const\n\n/** Pre-built schema payload for TransactionBoundWitness validation. */\nconst transactionBoundWitnessSchemaBuilder = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\nexport const TransactionBoundWitnessSchemaPayload = transactionBoundWitnessSchemaBuilder\n .fields({ definition: TransactionBoundWitnessJsonSchema }).build()\n", "import type { Executable } from '@xyo-network/xl1-protocol-lib'\nimport type { JSONSchemaType } from 'ajv'\n\n/** JSON schema for validating Executable payloads containing elevation scripts. */\nexport const ExecutableJsonSchema: JSONSchemaType<Executable> = {\n $id: 'https://schemas.xyo.network/2.0/executable',\n additionalProperties: true,\n properties: { script: { items: { type: 'string', pattern: String.raw`^elevate\\|` }, type: 'array' } },\n required: ['script'],\n type: 'object',\n} as const\n", "import { AddressRegEx } from '@ariestools/sdk'\nimport type { SchemaPayload } from '@xyo-network/sdk'\nimport {\n boundWitnessJsonSchema, BoundWitnessSchema,\n PayloadBuilder, SchemaSchema,\n Uint256RegEx,\n} from '@xyo-network/sdk'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol-lib'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { mergeJsonSchemaRequired } from '../mergeJsonSchemaRequired.ts'\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\n\n/** JSON schema for validating TransactionBoundWitness payloads including storage metadata. */\nexport const TransactionBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<TransactionBoundWitness> = {\n ...boundWitnessJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/transaction-with-storage-meta',\n additionalProperties: false,\n properties: {\n ...boundWitnessJsonSchema.properties,\n ...StorageMetaJsonSchema.properties,\n chain: { type: 'string', pattern: AddressRegEx.source },\n gas: { type: 'string', pattern: Uint256RegEx.source },\n nbf: { type: 'integer' },\n exp: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n\n required: mergeJsonSchemaRequired<TransactionBoundWitness>(boundWitnessJsonSchema.required, StorageMetaJsonSchema.required, 'chain', 'gas', 'nbf', 'exp'),\n type: 'object',\n} as const\n\n/** Pre-built schema payload for TransactionBoundWitness with storage meta validation. */\nconst transactionBoundWitnessWithStorageMetaSchemaBuilder = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\nexport const TransactionBoundWitnessWithStorageMetaSchemaPayload = transactionBoundWitnessWithStorageMetaSchemaBuilder\n .fields({ definition: TransactionBoundWitnessWithStorageMetaJsonSchema }).build()\n", "import type { SchemaPayload } from '@xyo-network/sdk'\nimport {\n PayloadBuilder, payloadJsonSchema, SchemaSchema, XyoAddressRegEx,\n} from '@xyo-network/sdk'\nimport type { ChainStakeIntent } from '@xyo-network/xl1-protocol-lib'\nimport { ChainStakeIntentSchema } from '@xyo-network/xl1-protocol-lib'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { mergeJsonSchemaRequired } from '../mergeJsonSchemaRequired.ts'\n\n/** JSON schema for validating ChainStakeIntent payloads. */\nexport const ChainStakeIntentPayloadJsonSchema: JSONSchemaType<ChainStakeIntent> = {\n ...payloadJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/payload/chain-stake-intent',\n additionalProperties: false,\n properties: {\n ...payloadJsonSchema.properties,\n from: { type: 'string', pattern: XyoAddressRegEx.source },\n intent: { type: 'string', enum: ['producer'] },\n schema: { type: 'string', pattern: ChainStakeIntentSchema },\n },\n\n required: mergeJsonSchemaRequired<ChainStakeIntent>(payloadJsonSchema.required, 'intent'),\n type: 'object',\n}\n\n/** Pre-built schema payload for ChainStakeIntent validation. */\nconst chainStakeIntentPayloadJsonSchemaBuilder = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\nexport const ChainStakeIntentPayloadJsonSchemaPayload = chainStakeIntentPayloadJsonSchemaBuilder\n .fields({ definition: ChainStakeIntentPayloadJsonSchema }).build()\n", "import { HashRegEx } from '@ariestools/sdk'\nimport type { SchemaPayload } from '@xyo-network/sdk'\nimport {\n PayloadBuilder, payloadJsonSchema, SchemaSchema,\n} from '@xyo-network/sdk'\nimport type { HashPayload } from '@xyo-network/xl1-protocol-lib'\nimport { HashSchema } from '@xyo-network/xl1-protocol-lib'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { mergeJsonSchemaRequired } from '../mergeJsonSchemaRequired.ts'\n\n/** JSON schema for validating Hash payloads. */\nexport const HashPayloadJsonSchema: JSONSchemaType<HashPayload> = {\n ...payloadJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/payload/hash',\n additionalProperties: false,\n properties: {\n ...payloadJsonSchema.properties,\n hash: { type: 'string', pattern: HashRegEx.source },\n schema: { type: 'string', pattern: HashSchema },\n },\n\n required: mergeJsonSchemaRequired<HashPayload>(payloadJsonSchema.required, 'hash'),\n type: 'object',\n}\n\n/** Pre-built schema payload for Hash validation. */\nconst hashPayloadJsonSchemaBuilder = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\nexport const HashPayloadJsonSchemaPayload = hashPayloadJsonSchemaBuilder\n .fields({ definition: HashPayloadJsonSchema }).build()\n", "import type { SchemaPayload } from '@xyo-network/sdk'\nimport {\n PayloadBuilder, payloadJsonSchema, SchemaSchema,\n Uint256RegEx, XyoAddressRegEx,\n} from '@xyo-network/sdk'\nimport type { Transfer } from '@xyo-network/xl1-protocol-lib'\nimport { TransferSchema } from '@xyo-network/xl1-protocol-lib'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { mergeJsonSchemaRequired } from '../mergeJsonSchemaRequired.ts'\n\n/** JSON schema for validating Transfer payloads. */\nexport const TransferPayloadJsonSchema: JSONSchemaType<Transfer> = {\n ...payloadJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/payload/transfer',\n additionalProperties: false,\n properties: {\n ...payloadJsonSchema.properties,\n from: { type: 'string', pattern: XyoAddressRegEx.source },\n epoch: { type: 'number' },\n transfers: {\n type: 'object',\n propertyNames: { pattern: XyoAddressRegEx.source },\n patternProperties: { [XyoAddressRegEx.source]: { type: 'string', pattern: Uint256RegEx.source } },\n },\n schema: { type: 'string', pattern: TransferSchema },\n },\n\n required: mergeJsonSchemaRequired<Transfer>(payloadJsonSchema.required, 'transfers', 'epoch'),\n type: 'object',\n}\n\n/** Pre-built schema payload for Transfer validation. */\nconst transferPayloadJsonSchemaBuilder = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\nexport const TransferPayloadJsonSchemaPayload = transferPayloadJsonSchemaBuilder\n .fields({ definition: TransferPayloadJsonSchema }).build()\n"],
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/xl1-protocol.\nexport * from '@xyo-network/xl1-protocol/schema'\n"],
|
|
5
|
+
"mappings": ";AACA,cAAc;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/xl1-schema",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.12",
|
|
4
4
|
"description": "XYO Layer One SDK Schema",
|
|
5
5
|
"homepage": "https://xylabs.com",
|
|
6
6
|
"bugs": {
|
|
@@ -34,10 +34,11 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@xyo-network/xl1-protocol
|
|
37
|
+
"@xyo-network/xl1-protocol": "~4.0.12"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ariestools/sdk": "~
|
|
40
|
+
"@ariestools/sdk": "~8.0.3",
|
|
41
|
+
"@ariestools/threads": "~8.0.3",
|
|
41
42
|
"@bitauth/libauth": "~3.0.0",
|
|
42
43
|
"@metamask/providers": "~22.1.1",
|
|
43
44
|
"@noble/post-quantum": "~0.6.1",
|
|
@@ -45,12 +46,10 @@
|
|
|
45
46
|
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
46
47
|
"@scure/base": "~2.2.0",
|
|
47
48
|
"@scure/bip39": "~2.2.0",
|
|
48
|
-
"@xylabs/
|
|
49
|
-
"@xylabs/
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@xyo-network/sdk": "~7.0.8",
|
|
53
|
-
"@xyo-network/sdk-protocol": "~7.0.13",
|
|
49
|
+
"@xylabs/toolchain": "~8.6.10",
|
|
50
|
+
"@xylabs/tsconfig": "~8.6.10",
|
|
51
|
+
"@xyo-network/sdk": "~7.0.11",
|
|
52
|
+
"@xyo-network/sdk-protocol": "~7.0.15",
|
|
54
53
|
"ajv": "~8.20.0",
|
|
55
54
|
"async-mutex": "~0.5.0",
|
|
56
55
|
"debug": "~4.4.3",
|
|
@@ -58,16 +57,14 @@
|
|
|
58
57
|
"ethers": "~6.17.0",
|
|
59
58
|
"hash-wasm": "~4.12.0",
|
|
60
59
|
"idb": "~8.0.3",
|
|
61
|
-
"lru-cache": "~11.5.1",
|
|
62
60
|
"observable-fns": "~0.6.1",
|
|
63
61
|
"typescript": "~6.0.3",
|
|
64
|
-
"vite": "~8.1.3",
|
|
65
|
-
"vitest": "~4.1.9",
|
|
66
62
|
"webextension-polyfill": "~0.12.0",
|
|
67
63
|
"zod": "~4.4.3"
|
|
68
64
|
},
|
|
69
65
|
"peerDependencies": {
|
|
70
|
-
"@ariestools/sdk": "^
|
|
66
|
+
"@ariestools/sdk": "^8.0.3",
|
|
67
|
+
"@ariestools/threads": "^8.0.3",
|
|
71
68
|
"@bitauth/libauth": "^3.0.0",
|
|
72
69
|
"@metamask/providers": "^22.1.1",
|
|
73
70
|
"@noble/post-quantum": "^0.6.1",
|
|
@@ -75,17 +72,14 @@
|
|
|
75
72
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
76
73
|
"@scure/base": "^2.2.0",
|
|
77
74
|
"@scure/bip39": "^2.2.0",
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@xyo-network/sdk": "^7.0.8",
|
|
81
|
-
"@xyo-network/sdk-protocol": "^7.0.13",
|
|
75
|
+
"@xyo-network/sdk": "^7.0.11",
|
|
76
|
+
"@xyo-network/sdk-protocol": "^7.0.15",
|
|
82
77
|
"ajv": "^8.20.0",
|
|
83
78
|
"async-mutex": "^0.5.0",
|
|
84
79
|
"debug": "^4.4.3",
|
|
85
80
|
"ethers": "^6.17.0",
|
|
86
81
|
"hash-wasm": "^4.12.0",
|
|
87
82
|
"idb": "^8.0.3",
|
|
88
|
-
"lru-cache": "^11.5.1",
|
|
89
83
|
"observable-fns": "^0.6.1",
|
|
90
84
|
"webextension-polyfill": "^0.12.0",
|
|
91
85
|
"zod": "^4.4.3"
|
|
@@ -96,5 +90,6 @@
|
|
|
96
90
|
"engineStrict": true,
|
|
97
91
|
"publishConfig": {
|
|
98
92
|
"access": "public"
|
|
99
|
-
}
|
|
93
|
+
},
|
|
94
|
+
"deprecated": "Use @xyo-network/xl1-protocol/schema instead. Replace @xyo-network/xl1-schema with @xyo-network/xl1-protocol/schema. This package is a compatibility shim only and will not receive further updates."
|
|
100
95
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Executable } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
import type { JSONSchemaType } from 'ajv';
|
|
3
|
-
/** JSON schema for validating Executable payloads containing elevation scripts. */
|
|
4
|
-
export declare const ExecutableJsonSchema: JSONSchemaType<Executable>;
|
|
5
|
-
//# sourceMappingURL=Executable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Executable.d.ts","sourceRoot":"","sources":["../../src/Executable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,EAAE,cAAc,CAAC,UAAU,CAMlD,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { StorageMeta } from '@xyo-network/sdk';
|
|
2
|
-
import type { JSONSchemaType } from 'ajv';
|
|
3
|
-
/** JSON schema for validating storage metadata fields (_sequence, _hash, _dataHash). */
|
|
4
|
-
export declare const StorageMetaJsonSchema: JSONSchemaType<StorageMeta>;
|
|
5
|
-
//# sourceMappingURL=StorageMeta.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StorageMeta.d.ts","sourceRoot":"","sources":["../../src/StorageMeta.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,wFAAwF;AACxF,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,WAAW,CASpD,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
import type { JSONSchemaType } from 'ajv';
|
|
3
|
-
/** JSON schema for validating BlockBoundWitness payloads. */
|
|
4
|
-
export declare const BlockBoundWitnessJsonSchema: JSONSchemaType<BlockBoundWitness>;
|
|
5
|
-
export declare const BlockBoundWitnessSchemaPayload: {
|
|
6
|
-
schema: "network.xyo.schema" & {
|
|
7
|
-
readonly __schema: true;
|
|
8
|
-
};
|
|
9
|
-
definition: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
$id?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
extends?: string | undefined;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
version?: number | undefined;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=BlockBoundWitness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitness.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAIzC,6DAA6D;AAC7D,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,iBAAiB,CAoBhE,CAAA;AAIV,eAAO,MAAM,8BAA8B;;;;;;;;;;;CACmB,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { WithStorageMeta } from '@xyo-network/sdk';
|
|
2
|
-
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol-lib';
|
|
3
|
-
import type { JSONSchemaType } from 'ajv';
|
|
4
|
-
/** JSON schema for validating BlockBoundWitness payloads including storage metadata. */
|
|
5
|
-
export declare const BlockBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<WithStorageMeta<BlockBoundWitness>>;
|
|
6
|
-
export declare const BlockBoundWitnessWithStorageMetaSchemaPayload: {
|
|
7
|
-
schema: "network.xyo.schema" & {
|
|
8
|
-
readonly __schema: true;
|
|
9
|
-
};
|
|
10
|
-
definition: {
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
$id?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
extends?: string | undefined;
|
|
15
|
-
name?: string | undefined;
|
|
16
|
-
version?: number | undefined;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=BlockBoundWitnessWithStorageMeta.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlockBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAKtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAMzC,wFAAwF;AACxF,eAAO,MAAM,0CAA0C,EAAE,cAAc,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAehG,CAAA;AAIV,eAAO,MAAM,6CAA6C;;;;;;;;;;;CACmB,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { TransactionBoundWitness } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
import type { JSONSchemaType } from 'ajv';
|
|
3
|
-
/** JSON schema for validating TransactionBoundWitness payloads. */
|
|
4
|
-
export declare const TransactionBoundWitnessJsonSchema: JSONSchemaType<TransactionBoundWitness>;
|
|
5
|
-
export declare const TransactionBoundWitnessSchemaPayload: {
|
|
6
|
-
schema: "network.xyo.schema" & {
|
|
7
|
-
readonly __schema: true;
|
|
8
|
-
};
|
|
9
|
-
definition: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
$id?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
extends?: string | undefined;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
version?: number | undefined;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=TransactionBoundWitness.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitness.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAKzC,mEAAmE;AACnE,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,uBAAuB,CA2B5E,CAAA;AAIV,eAAO,MAAM,oCAAoC;;;;;;;;;;;CACmB,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { TransactionBoundWitness } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
import type { JSONSchemaType } from 'ajv';
|
|
3
|
-
/** JSON schema for validating TransactionBoundWitness payloads including storage metadata. */
|
|
4
|
-
export declare const TransactionBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<TransactionBoundWitness>;
|
|
5
|
-
export declare const TransactionBoundWitnessWithStorageMetaSchemaPayload: {
|
|
6
|
-
schema: "network.xyo.schema" & {
|
|
7
|
-
readonly __schema: true;
|
|
8
|
-
};
|
|
9
|
-
definition: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
$id?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
extends?: string | undefined;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
version?: number | undefined;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=TransactionBoundWitnessWithStorageMeta.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAKzC,8FAA8F;AAC9F,eAAO,MAAM,gDAAgD,EAAE,cAAc,CAAC,uBAAuB,CAgB3F,CAAA;AAIV,eAAO,MAAM,mDAAmD;;;;;;;;;;;CACmB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,uCAAuC,CAAA;AACrD,cAAc,8BAA8B,CAAA;AAC5C,cAAc,6CAA6C,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { JSONSchemaType } from 'ajv';
|
|
2
|
-
export declare const asRequiredStrings: (required: unknown) => readonly string[];
|
|
3
|
-
/** Merge JSON schema `required` arrays without spreading untyped sdk-js values. */
|
|
4
|
-
export declare const mergeJsonSchemaRequired: <T>(...groups: readonly unknown[]) => JSONSchemaType<T> extends {
|
|
5
|
-
required: infer R;
|
|
6
|
-
} ? R : never;
|
|
7
|
-
//# sourceMappingURL=mergeJsonSchemaRequired.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mergeJsonSchemaRequired.d.ts","sourceRoot":"","sources":["../../src/mergeJsonSchemaRequired.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,eAAO,MAAM,iBAAiB,GAAI,UAAU,OAAO,KAAG,SAAS,MAAM,EAIpE,CAAA;AAED,mFAAmF;AACnF,eAAO,MAAM,uBAAuB,GAAI,CAAC,EACvC,GAAG,QAAQ,SAAS,OAAO,EAAE,KAC5B,cAAc,CAAC,CAAC,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAC,CAAA;CAAE,GAAG,CAAC,GAAG,KAExD,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ChainStakeIntent } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
import type { JSONSchemaType } from 'ajv';
|
|
3
|
-
/** JSON schema for validating ChainStakeIntent payloads. */
|
|
4
|
-
export declare const ChainStakeIntentPayloadJsonSchema: JSONSchemaType<ChainStakeIntent>;
|
|
5
|
-
export declare const ChainStakeIntentPayloadJsonSchemaPayload: {
|
|
6
|
-
schema: "network.xyo.schema" & {
|
|
7
|
-
readonly __schema: true;
|
|
8
|
-
};
|
|
9
|
-
definition: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
$id?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
extends?: string | undefined;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
version?: number | undefined;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=ChainStakeIntent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChainStakeIntent.d.ts","sourceRoot":"","sources":["../../../src/payload/ChainStakeIntent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAErE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAIzC,4DAA4D;AAC5D,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,gBAAgB,CAa9E,CAAA;AAID,eAAO,MAAM,wCAAwC;;;;;;;;;;;CACe,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { HashPayload } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
import type { JSONSchemaType } from 'ajv';
|
|
3
|
-
/** JSON schema for validating Hash payloads. */
|
|
4
|
-
export declare const HashPayloadJsonSchema: JSONSchemaType<HashPayload>;
|
|
5
|
-
export declare const HashPayloadJsonSchemaPayload: {
|
|
6
|
-
schema: "network.xyo.schema" & {
|
|
7
|
-
readonly __schema: true;
|
|
8
|
-
};
|
|
9
|
-
definition: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
$id?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
extends?: string | undefined;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
version?: number | undefined;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=HashPayload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HashPayload.d.ts","sourceRoot":"","sources":["../../../src/payload/HashPayload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAIzC,gDAAgD;AAChD,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,WAAW,CAY7D,CAAA;AAID,eAAO,MAAM,4BAA4B;;;;;;;;;;;CACe,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Transfer } from '@xyo-network/xl1-protocol-lib';
|
|
2
|
-
import type { JSONSchemaType } from 'ajv';
|
|
3
|
-
/** JSON schema for validating Transfer payloads. */
|
|
4
|
-
export declare const TransferPayloadJsonSchema: JSONSchemaType<Transfer>;
|
|
5
|
-
export declare const TransferPayloadJsonSchemaPayload: {
|
|
6
|
-
schema: "network.xyo.schema" & {
|
|
7
|
-
readonly __schema: true;
|
|
8
|
-
};
|
|
9
|
-
definition: {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
$id?: string | undefined;
|
|
12
|
-
};
|
|
13
|
-
extends?: string | undefined;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
version?: number | undefined;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=TransferPayload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransferPayload.d.ts","sourceRoot":"","sources":["../../../src/payload/TransferPayload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAE7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAIzC,oDAAoD;AACpD,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAC,QAAQ,CAkB9D,CAAA;AAID,eAAO,MAAM,gCAAgC;;;;;;;;;;;CACe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA"}
|