@xyo-network/xl1-schema 1.24.26 → 1.24.28
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/boundwitness/BlockBoundWitness.d.ts +1 -1
- package/dist/neutral/boundwitness/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/boundwitness/BlockBoundWitnessWithStorageMeta.d.ts +1 -2
- package/dist/neutral/boundwitness/BlockBoundWitnessWithStorageMeta.d.ts.map +1 -1
- package/dist/neutral/boundwitness/TransactionBoundWitness.d.ts +1 -1
- package/dist/neutral/boundwitness/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/neutral/boundwitness/TransactionBoundWitnessWithStorageMeta.d.ts +1 -1
- package/dist/neutral/boundwitness/TransactionBoundWitnessWithStorageMeta.d.ts.map +1 -1
- package/dist/neutral/index.mjs +17 -11
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/payload/ChainStakeIntent.d.ts +1 -1
- package/dist/neutral/payload/ChainStakeIntent.d.ts.map +1 -1
- package/dist/neutral/payload/HashPayload.d.ts +1 -1
- package/dist/neutral/payload/HashPayload.d.ts.map +1 -1
- package/dist/neutral/payload/TransferPayload.d.ts +1 -1
- package/dist/neutral/payload/TransferPayload.d.ts.map +1 -1
- package/package.json +5 -6
- package/src/boundwitness/BlockBoundWitness.ts +2 -3
- package/src/boundwitness/BlockBoundWitnessWithStorageMeta.ts +2 -4
- package/src/boundwitness/TransactionBoundWitness.ts +3 -3
- package/src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts +3 -3
- package/src/payload/ChainStakeIntent.ts +4 -3
- package/src/payload/HashPayload.ts +4 -3
- package/src/payload/TransferPayload.ts +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
1
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol';
|
|
3
3
|
import type { JSONSchemaType } from 'ajv';
|
|
4
4
|
export declare const BlockBoundWitnessJsonSchema: JSONSchemaType<BlockBoundWitness>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BlockBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAKxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,eAAO,MAAM,2BAA2B,EAAE,cAAc,CAAC,iBAAiB,CAmBhE,CAAA;AAEV,eAAO,MAAM,8BAA8B,eACmB,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
2
|
-
import type { WithStorageMeta } from '@xyo-network/sdk-js';
|
|
1
|
+
import type { SchemaPayload, WithStorageMeta } from '@xyo-network/sdk-js';
|
|
3
2
|
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol';
|
|
4
3
|
import type { JSONSchemaType } from 'ajv';
|
|
5
4
|
export declare const BlockBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<WithStorageMeta<BlockBoundWitness>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"BlockBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAKzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAKzC,eAAO,MAAM,0CAA0C,EAAE,cAAc,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAUhG,CAAA;AAEV,eAAO,MAAM,6CAA6C,eACmB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
1
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { TransactionBoundWitness } from '@xyo-network/xl1-protocol';
|
|
3
3
|
import type { JSONSchemaType } from 'ajv';
|
|
4
4
|
export declare const TransactionBoundWitnessJsonSchema: JSONSchemaType<TransactionBoundWitness>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAMxD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAIzC,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,uBAAuB,CA0B5E,CAAA;AAEV,eAAO,MAAM,oCAAoC,eACmB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
1
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { TransactionBoundWitness } from '@xyo-network/xl1-protocol';
|
|
3
3
|
import type { JSONSchemaType } from 'ajv';
|
|
4
4
|
export declare const TransactionBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<TransactionBoundWitness>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAMxD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAIzC,eAAO,MAAM,gDAAgD,EAAE,cAAc,CAAC,uBAAuB,CAe3F,CAAA;AAEV,eAAO,MAAM,mDAAmD,eACmB,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// src/boundwitness/BlockBoundWitness.ts
|
|
2
2
|
import { AddressRegEx, HashRegEx } from "@xylabs/sdk-js";
|
|
3
|
-
import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
|
|
4
3
|
import {
|
|
5
4
|
boundWitnessJsonSchema,
|
|
6
5
|
boundWitnessProperties,
|
|
7
6
|
BoundWitnessSchema,
|
|
8
|
-
PayloadBuilder
|
|
7
|
+
PayloadBuilder,
|
|
8
|
+
SchemaSchema
|
|
9
9
|
} from "@xyo-network/sdk-js";
|
|
10
10
|
var BlockBoundWitnessJsonSchema = {
|
|
11
11
|
...boundWitnessJsonSchema,
|
|
@@ -32,12 +32,12 @@ var BlockBoundWitnessJsonSchema = {
|
|
|
32
32
|
var BlockBoundWitnessSchemaPayload = new PayloadBuilder({ schema: SchemaSchema }).fields({ definition: BlockBoundWitnessJsonSchema }).build();
|
|
33
33
|
|
|
34
34
|
// src/boundwitness/BlockBoundWitnessWithStorageMeta.ts
|
|
35
|
-
import { SchemaSchema as SchemaSchema2 } from "@xyo-network/schema-payload-plugin";
|
|
36
35
|
import {
|
|
37
36
|
boundWitnessJsonSchema as boundWitnessJsonSchema2,
|
|
38
37
|
boundWitnessProperties as boundWitnessProperties2,
|
|
39
38
|
BoundWitnessSchema as BoundWitnessSchema2,
|
|
40
|
-
PayloadBuilder as PayloadBuilder2
|
|
39
|
+
PayloadBuilder as PayloadBuilder2,
|
|
40
|
+
SchemaSchema as SchemaSchema2
|
|
41
41
|
} from "@xyo-network/sdk-js";
|
|
42
42
|
|
|
43
43
|
// src/StorageMeta.ts
|
|
@@ -69,11 +69,11 @@ var BlockBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder2({ schema
|
|
|
69
69
|
|
|
70
70
|
// src/boundwitness/TransactionBoundWitness.ts
|
|
71
71
|
import { AddressRegEx as AddressRegEx2 } from "@xylabs/sdk-js";
|
|
72
|
-
import { SchemaSchema as SchemaSchema3 } from "@xyo-network/schema-payload-plugin";
|
|
73
72
|
import {
|
|
74
73
|
boundWitnessJsonSchema as boundWitnessJsonSchema3,
|
|
75
74
|
BoundWitnessSchema as BoundWitnessSchema3,
|
|
76
75
|
PayloadBuilder as PayloadBuilder3,
|
|
76
|
+
SchemaSchema as SchemaSchema3,
|
|
77
77
|
Uint256RegEx
|
|
78
78
|
} from "@xyo-network/sdk-js";
|
|
79
79
|
|
|
@@ -118,11 +118,11 @@ var TransactionBoundWitnessSchemaPayload = new PayloadBuilder3({ schema: SchemaS
|
|
|
118
118
|
|
|
119
119
|
// src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts
|
|
120
120
|
import { AddressRegEx as AddressRegEx3 } from "@xylabs/sdk-js";
|
|
121
|
-
import { SchemaSchema as SchemaSchema4 } from "@xyo-network/schema-payload-plugin";
|
|
122
121
|
import {
|
|
123
122
|
boundWitnessJsonSchema as boundWitnessJsonSchema4,
|
|
124
123
|
BoundWitnessSchema as BoundWitnessSchema4,
|
|
125
124
|
PayloadBuilder as PayloadBuilder4,
|
|
125
|
+
SchemaSchema as SchemaSchema4,
|
|
126
126
|
Uint256RegEx as Uint256RegEx2
|
|
127
127
|
} from "@xyo-network/sdk-js";
|
|
128
128
|
var TransactionBoundWitnessWithStorageMetaJsonSchema = {
|
|
@@ -145,8 +145,11 @@ var TransactionBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder4({
|
|
|
145
145
|
|
|
146
146
|
// src/payload/ChainStakeIntent.ts
|
|
147
147
|
import { AddressRegEx as AddressRegEx4 } from "@xylabs/sdk-js";
|
|
148
|
-
import {
|
|
149
|
-
|
|
148
|
+
import {
|
|
149
|
+
PayloadBuilder as PayloadBuilder5,
|
|
150
|
+
payloadJsonSchema,
|
|
151
|
+
SchemaSchema as SchemaSchema5
|
|
152
|
+
} from "@xyo-network/sdk-js";
|
|
150
153
|
import { ChainStakeIntentSchema } from "@xyo-network/xl1-protocol";
|
|
151
154
|
var ChainStakeIntentPayloadJsonSchema = {
|
|
152
155
|
...payloadJsonSchema,
|
|
@@ -165,8 +168,11 @@ var ChainStakeIntentPayloadJsonSchemaPayload = new PayloadBuilder5({ schema: Sch
|
|
|
165
168
|
|
|
166
169
|
// src/payload/HashPayload.ts
|
|
167
170
|
import { HashRegEx as HashRegEx3 } from "@xylabs/sdk-js";
|
|
168
|
-
import {
|
|
169
|
-
|
|
171
|
+
import {
|
|
172
|
+
PayloadBuilder as PayloadBuilder6,
|
|
173
|
+
payloadJsonSchema as payloadJsonSchema2,
|
|
174
|
+
SchemaSchema as SchemaSchema6
|
|
175
|
+
} from "@xyo-network/sdk-js";
|
|
170
176
|
import { HashSchema } from "@xyo-network/xl1-protocol";
|
|
171
177
|
var HashPayloadJsonSchema = {
|
|
172
178
|
...payloadJsonSchema2,
|
|
@@ -184,10 +190,10 @@ var HashPayloadJsonSchemaPayload = new PayloadBuilder6({ schema: SchemaSchema6 }
|
|
|
184
190
|
|
|
185
191
|
// src/payload/TransferPayload.ts
|
|
186
192
|
import { AddressRegEx as AddressRegEx5 } from "@xylabs/sdk-js";
|
|
187
|
-
import { SchemaSchema as SchemaSchema7 } from "@xyo-network/schema-payload-plugin";
|
|
188
193
|
import {
|
|
189
194
|
PayloadBuilder as PayloadBuilder7,
|
|
190
195
|
payloadJsonSchema as payloadJsonSchema3,
|
|
196
|
+
SchemaSchema as SchemaSchema7,
|
|
191
197
|
Uint256RegEx as Uint256RegEx3
|
|
192
198
|
} from "@xyo-network/sdk-js";
|
|
193
199
|
import { TransferSchema } from "@xyo-network/xl1-protocol";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/boundwitness/BlockBoundWitness.ts","../../src/boundwitness/BlockBoundWitnessWithStorageMeta.ts","../../src/StorageMeta.ts","../../src/boundwitness/TransactionBoundWitness.ts","../../src/Executable.ts","../../src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts","../../src/payload/ChainStakeIntent.ts","../../src/payload/HashPayload.ts","../../src/payload/TransferPayload.ts"],"sourcesContent":["import { AddressRegEx, HashRegEx } from '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport {\n boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,\n PayloadBuilder,\n} from '@xyo-network/sdk-js'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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 required: [...boundWitnessJsonSchema.required, 'block', 'chain', 'step_hashes', 'previous', '$epoch'],\n type: 'object',\n} as const\n\nexport const BlockBoundWitnessSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: BlockBoundWitnessJsonSchema }).build()\n","import type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { WithStorageMeta } from '@xyo-network/sdk-js'\nimport {\n boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,\n PayloadBuilder,\n} from '@xyo-network/sdk-js'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\nimport { BlockBoundWitnessJsonSchema } from './BlockBoundWitness.ts'\n\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 required: [...new Set([...boundWitnessJsonSchema.required, ...BlockBoundWitnessJsonSchema.required, ...StorageMetaJsonSchema.required])],\n type: 'object',\n} as const\n\nexport const BlockBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: BlockBoundWitnessWithStorageMetaJsonSchema }).build()\n","import { HashRegEx, HexRegEx } from '@xylabs/sdk-js'\nimport type { StorageMeta } from '@xyo-network/sdk-js'\nimport type { JSONSchemaType } from 'ajv'\n\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 '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport {\n boundWitnessJsonSchema, BoundWitnessSchema,\n PayloadBuilder, Uint256RegEx,\n} from '@xyo-network/sdk-js'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { ExecutableJsonSchema } from '../Executable.ts'\n\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: AddressRegEx.source },\n nbf: { type: 'integer' },\n exp: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...boundWitnessJsonSchema.required, 'chain', 'fees', 'nbf', 'exp'],\n type: 'object',\n} as const\n\nexport const TransactionBoundWitnessSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransactionBoundWitnessJsonSchema }).build()\n","import type { Executable } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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 '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport {\n boundWitnessJsonSchema, BoundWitnessSchema,\n PayloadBuilder, Uint256RegEx,\n} from '@xyo-network/sdk-js'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\n\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 required: [...boundWitnessJsonSchema.required, ...StorageMetaJsonSchema.required, 'chain', 'gas', 'nbf', 'exp'],\n type: 'object',\n} as const\n\nexport const TransactionBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransactionBoundWitnessWithStorageMetaJsonSchema }).build()\n","import { AddressRegEx } from '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport { PayloadBuilder, payloadJsonSchema } from '@xyo-network/sdk-js'\nimport type { ChainStakeIntent } from '@xyo-network/xl1-protocol'\nimport { ChainStakeIntentSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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: AddressRegEx.source },\n intent: { type: 'string', enum: ['producer'] },\n schema: { type: 'string', pattern: ChainStakeIntentSchema },\n },\n required: [...payloadJsonSchema.required, 'intent'],\n type: 'object',\n}\n\nexport const ChainStakeIntentPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: ChainStakeIntentPayloadJsonSchema }).build()\n","import { HashRegEx } from '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport { PayloadBuilder, payloadJsonSchema } from '@xyo-network/sdk-js'\nimport type { HashPayload } from '@xyo-network/xl1-protocol'\nimport { HashSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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 required: [...payloadJsonSchema.required, 'hash'],\n type: 'object',\n}\n\nexport const HashPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: HashPayloadJsonSchema }).build()\n","import { AddressRegEx } from '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport {\n PayloadBuilder, payloadJsonSchema, Uint256RegEx,\n} from '@xyo-network/sdk-js'\nimport type { Transfer } from '@xyo-network/xl1-protocol'\nimport { TransferSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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: AddressRegEx.source },\n epoch: { type: 'number' },\n transfers: {\n type: 'object',\n propertyNames: { pattern: AddressRegEx.source },\n patternProperties: { [AddressRegEx.source]: { type: 'string', pattern: Uint256RegEx.source } },\n },\n schema: { type: 'string', pattern: TransferSchema },\n },\n required: [...payloadJsonSchema.required, 'transfers', 'epoch'],\n type: 'object',\n}\n\nexport const TransferPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransferPayloadJsonSchema }).build()\n"],"mappings":";AAAA,SAAS,cAAc,iBAAiB;AAExC,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EAAwB;AAAA,EAAwB;AAAA,EAChD;AAAA,OACK;AAIA,IAAM,8BAAiE;AAAA,EAC5E,GAAG;AAAA,EACH,KAAK;AAAA,EACL,YAAY;AAAA,IACV,GAAG;AAAA,IACH,OAAO,EAAE,MAAM,UAAU;AAAA,IACzB,OAAO,EAAE,MAAM,UAAU,SAAS,aAAa,OAAO;AAAA,IACtD,UAAU;AAAA,MACR,MAAM;AAAA,MAAU,SAAS,UAAU;AAAA,MAAQ,UAAU;AAAA,IACvD;AAAA,IACA,aAAa;AAAA,MACX,OAAO,EAAE,MAAM,UAAU,SAAS,UAAU,OAAO;AAAA,MACnD,MAAM;AAAA,IACR;AAAA,IACA,QAAQ,EAAE,MAAM,UAAU;AAAA,IAC1B,QAAQ,EAAE,MAAM,UAAU,SAAS,mBAAmB;AAAA,EACxD;AAAA,EACA,UAAU,CAAC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F;AAAA,IACA,QAAQ,EAAE,MAAM,UAAU,SAAS,eAAe;AAAA,EACpD;AAAA,EACA,UAAU,CAAC,GAAGD,mBAAkB,UAAU,aAAa,OAAO;AAAA,EAC9D,MAAM;AACR;AAEO,IAAM,mCAAmC,IAAID,gBAA8B,EAAE,QAAQD,cAAa,CAAC,EACvG,OAAO,EAAE,YAAY,0BAA0B,CAAC,EAAE,MAAM;","names":["SchemaSchema","boundWitnessJsonSchema","boundWitnessProperties","BoundWitnessSchema","PayloadBuilder","HashRegEx","boundWitnessProperties","BoundWitnessSchema","boundWitnessJsonSchema","PayloadBuilder","SchemaSchema","AddressRegEx","SchemaSchema","boundWitnessJsonSchema","BoundWitnessSchema","PayloadBuilder","boundWitnessJsonSchema","AddressRegEx","BoundWitnessSchema","PayloadBuilder","SchemaSchema","AddressRegEx","SchemaSchema","boundWitnessJsonSchema","BoundWitnessSchema","PayloadBuilder","Uint256RegEx","boundWitnessJsonSchema","AddressRegEx","Uint256RegEx","BoundWitnessSchema","PayloadBuilder","SchemaSchema","AddressRegEx","SchemaSchema","PayloadBuilder","HashRegEx","SchemaSchema","PayloadBuilder","payloadJsonSchema","AddressRegEx","SchemaSchema","PayloadBuilder","payloadJsonSchema","Uint256RegEx"]}
|
|
1
|
+
{"version":3,"sources":["../../src/boundwitness/BlockBoundWitness.ts","../../src/boundwitness/BlockBoundWitnessWithStorageMeta.ts","../../src/StorageMeta.ts","../../src/boundwitness/TransactionBoundWitness.ts","../../src/Executable.ts","../../src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts","../../src/payload/ChainStakeIntent.ts","../../src/payload/HashPayload.ts","../../src/payload/TransferPayload.ts"],"sourcesContent":["import { AddressRegEx, HashRegEx } from '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/sdk-js'\nimport {\n boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,\n PayloadBuilder, SchemaSchema,\n} from '@xyo-network/sdk-js'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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 required: [...boundWitnessJsonSchema.required, 'block', 'chain', 'step_hashes', 'previous', '$epoch'],\n type: 'object',\n} as const\n\nexport const BlockBoundWitnessSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: BlockBoundWitnessJsonSchema }).build()\n","import type { SchemaPayload, WithStorageMeta } from '@xyo-network/sdk-js'\nimport {\n boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,\n PayloadBuilder, SchemaSchema,\n} from '@xyo-network/sdk-js'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\nimport { BlockBoundWitnessJsonSchema } from './BlockBoundWitness.ts'\n\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 required: [...new Set([...boundWitnessJsonSchema.required, ...BlockBoundWitnessJsonSchema.required, ...StorageMetaJsonSchema.required])],\n type: 'object',\n} as const\n\nexport const BlockBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: BlockBoundWitnessWithStorageMetaJsonSchema }).build()\n","import { HashRegEx, HexRegEx } from '@xylabs/sdk-js'\nimport type { StorageMeta } from '@xyo-network/sdk-js'\nimport type { JSONSchemaType } from 'ajv'\n\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 '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/sdk-js'\nimport {\n boundWitnessJsonSchema, BoundWitnessSchema,\n PayloadBuilder, SchemaSchema,\n Uint256RegEx,\n} from '@xyo-network/sdk-js'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { ExecutableJsonSchema } from '../Executable.ts'\n\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: AddressRegEx.source },\n nbf: { type: 'integer' },\n exp: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...boundWitnessJsonSchema.required, 'chain', 'fees', 'nbf', 'exp'],\n type: 'object',\n} as const\n\nexport const TransactionBoundWitnessSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransactionBoundWitnessJsonSchema }).build()\n","import type { Executable } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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 '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/sdk-js'\nimport {\n boundWitnessJsonSchema, BoundWitnessSchema,\n PayloadBuilder, SchemaSchema,\n Uint256RegEx,\n} from '@xyo-network/sdk-js'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\n\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 required: [...boundWitnessJsonSchema.required, ...StorageMetaJsonSchema.required, 'chain', 'gas', 'nbf', 'exp'],\n type: 'object',\n} as const\n\nexport const TransactionBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransactionBoundWitnessWithStorageMetaJsonSchema }).build()\n","import { AddressRegEx } from '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/sdk-js'\nimport {\n PayloadBuilder, payloadJsonSchema, SchemaSchema,\n} from '@xyo-network/sdk-js'\nimport type { ChainStakeIntent } from '@xyo-network/xl1-protocol'\nimport { ChainStakeIntentSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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: AddressRegEx.source },\n intent: { type: 'string', enum: ['producer'] },\n schema: { type: 'string', pattern: ChainStakeIntentSchema },\n },\n required: [...payloadJsonSchema.required, 'intent'],\n type: 'object',\n}\n\nexport const ChainStakeIntentPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: ChainStakeIntentPayloadJsonSchema }).build()\n","import { HashRegEx } from '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/sdk-js'\nimport {\n PayloadBuilder, payloadJsonSchema, SchemaSchema,\n} from '@xyo-network/sdk-js'\nimport type { HashPayload } from '@xyo-network/xl1-protocol'\nimport { HashSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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 required: [...payloadJsonSchema.required, 'hash'],\n type: 'object',\n}\n\nexport const HashPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: HashPayloadJsonSchema }).build()\n","import { AddressRegEx } from '@xylabs/sdk-js'\nimport type { SchemaPayload } from '@xyo-network/sdk-js'\nimport {\n PayloadBuilder, payloadJsonSchema, SchemaSchema,\n Uint256RegEx,\n} from '@xyo-network/sdk-js'\nimport type { Transfer } from '@xyo-network/xl1-protocol'\nimport { TransferSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\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: AddressRegEx.source },\n epoch: { type: 'number' },\n transfers: {\n type: 'object',\n propertyNames: { pattern: AddressRegEx.source },\n patternProperties: { [AddressRegEx.source]: { type: 'string', pattern: Uint256RegEx.source } },\n },\n schema: { type: 'string', pattern: TransferSchema },\n },\n required: [...payloadJsonSchema.required, 'transfers', 'epoch'],\n type: 'object',\n}\n\nexport const TransferPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransferPayloadJsonSchema }).build()\n"],"mappings":";AAAA,SAAS,cAAc,iBAAiB;AAExC;AAAA,EACE;AAAA,EAAwB;AAAA,EAAwB;AAAA,EAChD;AAAA,EAAgB;AAAA,OACX;AAIA,IAAM,8BAAiE;AAAA,EAC5E,GAAG;AAAA,EACH,KAAK;AAAA,EACL,YAAY;AAAA,IACV,GAAG;AAAA,IACH,OAAO,EAAE,MAAM,UAAU;AAAA,IACzB,OAAO,EAAE,MAAM,UAAU,SAAS,aAAa,OAAO;AAAA,IACtD,UAAU;AAAA,MACR,MAAM;AAAA,MAAU,SAAS,UAAU;AAAA,MAAQ,UAAU;AAAA,IACvD;AAAA,IACA,aAAa;AAAA,MACX,OAAO,EAAE,MAAM,UAAU,SAAS,UAAU,OAAO;AAAA,MACnD,MAAM;AAAA,IACR;AAAA,IACA,QAAQ,EAAE,MAAM,UAAU;AAAA,IAC1B,QAAQ,EAAE,MAAM,UAAU,SAAS,mBAAmB;AAAA,EACxD;AAAA,EACA,UAAU,CAAC,GAAG,uBAAuB,UAAU,SAAS,SAAS,eAAe,YA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A,UAAU,CAAC,GAAGF,mBAAkB,UAAU,aAAa,OAAO;AAAA,EAC9D,MAAM;AACR;AAEO,IAAM,mCAAmC,IAAID,gBAA8B,EAAE,QAAQE,cAAa,CAAC,EACvG,OAAO,EAAE,YAAY,0BAA0B,CAAC,EAAE,MAAM;","names":["boundWitnessJsonSchema","boundWitnessProperties","BoundWitnessSchema","PayloadBuilder","SchemaSchema","HashRegEx","boundWitnessProperties","BoundWitnessSchema","boundWitnessJsonSchema","PayloadBuilder","SchemaSchema","AddressRegEx","boundWitnessJsonSchema","BoundWitnessSchema","PayloadBuilder","SchemaSchema","boundWitnessJsonSchema","AddressRegEx","BoundWitnessSchema","PayloadBuilder","SchemaSchema","AddressRegEx","boundWitnessJsonSchema","BoundWitnessSchema","PayloadBuilder","SchemaSchema","Uint256RegEx","boundWitnessJsonSchema","AddressRegEx","Uint256RegEx","BoundWitnessSchema","PayloadBuilder","SchemaSchema","AddressRegEx","PayloadBuilder","SchemaSchema","HashRegEx","PayloadBuilder","payloadJsonSchema","SchemaSchema","AddressRegEx","PayloadBuilder","payloadJsonSchema","SchemaSchema","Uint256RegEx"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
1
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { ChainStakeIntent } from '@xyo-network/xl1-protocol';
|
|
3
3
|
import type { JSONSchemaType } from 'ajv';
|
|
4
4
|
export declare const ChainStakeIntentPayloadJsonSchema: JSONSchemaType<ChainStakeIntent>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChainStakeIntent.d.ts","sourceRoot":"","sources":["../../../src/payload/ChainStakeIntent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ChainStakeIntent.d.ts","sourceRoot":"","sources":["../../../src/payload/ChainStakeIntent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAIxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,eAAO,MAAM,iCAAiC,EAAE,cAAc,CAAC,gBAAgB,CAY9E,CAAA;AAED,eAAO,MAAM,wCAAwC,eACe,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
1
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { HashPayload } from '@xyo-network/xl1-protocol';
|
|
3
3
|
import type { JSONSchemaType } from 'ajv';
|
|
4
4
|
export declare const HashPayloadJsonSchema: JSONSchemaType<HashPayload>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HashPayload.d.ts","sourceRoot":"","sources":["../../../src/payload/HashPayload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"HashPayload.d.ts","sourceRoot":"","sources":["../../../src/payload/HashPayload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAIxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,WAAW,CAW7D,CAAA;AAED,eAAO,MAAM,4BAA4B,eACe,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
1
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { Transfer } from '@xyo-network/xl1-protocol';
|
|
3
3
|
import type { JSONSchemaType } from 'ajv';
|
|
4
4
|
export declare const TransferPayloadJsonSchema: JSONSchemaType<Transfer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransferPayload.d.ts","sourceRoot":"","sources":["../../../src/payload/TransferPayload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransferPayload.d.ts","sourceRoot":"","sources":["../../../src/payload/TransferPayload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAKxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,eAAO,MAAM,yBAAyB,EAAE,cAAc,CAAC,QAAQ,CAiB9D,CAAA;AAED,eAAO,MAAM,gCAAgC,eACe,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/xl1-schema",
|
|
4
|
-
"version": "1.24.
|
|
4
|
+
"version": "1.24.28",
|
|
5
5
|
"description": "XYO Layer One SDK Schema",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -39,18 +39,17 @@
|
|
|
39
39
|
"!**/*.test.*"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xyo-network/
|
|
43
|
-
"@xyo-network/xl1-protocol": "~1.24.26"
|
|
42
|
+
"@xyo-network/xl1-protocol": "~1.24.28"
|
|
44
43
|
},
|
|
45
44
|
"devDependencies": {
|
|
46
45
|
"@types/node": "~25.3.0",
|
|
47
46
|
"@xylabs/sdk-js": "^5.0.80",
|
|
48
47
|
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
49
48
|
"@xylabs/tsconfig": "~7.3.2",
|
|
50
|
-
"@xyo-network/account": "~5.3.
|
|
51
|
-
"@xyo-network/sdk-js": "^5.3.
|
|
49
|
+
"@xyo-network/account": "~5.3.10",
|
|
50
|
+
"@xyo-network/sdk-js": "^5.3.10",
|
|
52
51
|
"ajv": "~8.18.0",
|
|
53
|
-
"eslint": "^9.39.
|
|
52
|
+
"eslint": "^9.39.3",
|
|
54
53
|
"ethers": "^6.16.0",
|
|
55
54
|
"typescript": "~5.9.3",
|
|
56
55
|
"vitest": "~4.0.18",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AddressRegEx, HashRegEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
3
|
-
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
2
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js'
|
|
4
3
|
import {
|
|
5
4
|
boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,
|
|
6
|
-
PayloadBuilder,
|
|
5
|
+
PayloadBuilder, SchemaSchema,
|
|
7
6
|
} from '@xyo-network/sdk-js'
|
|
8
7
|
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
|
|
9
8
|
import type { JSONSchemaType } from 'ajv'
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
2
|
-
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
3
|
-
import type { WithStorageMeta } from '@xyo-network/sdk-js'
|
|
1
|
+
import type { SchemaPayload, WithStorageMeta } from '@xyo-network/sdk-js'
|
|
4
2
|
import {
|
|
5
3
|
boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,
|
|
6
|
-
PayloadBuilder,
|
|
4
|
+
PayloadBuilder, SchemaSchema,
|
|
7
5
|
} from '@xyo-network/sdk-js'
|
|
8
6
|
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
|
|
9
7
|
import type { JSONSchemaType } from 'ajv'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AddressRegEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
3
|
-
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
2
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js'
|
|
4
3
|
import {
|
|
5
4
|
boundWitnessJsonSchema, BoundWitnessSchema,
|
|
6
|
-
PayloadBuilder,
|
|
5
|
+
PayloadBuilder, SchemaSchema,
|
|
6
|
+
Uint256RegEx,
|
|
7
7
|
} from '@xyo-network/sdk-js'
|
|
8
8
|
import type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'
|
|
9
9
|
import type { JSONSchemaType } from 'ajv'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AddressRegEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
3
|
-
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
2
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js'
|
|
4
3
|
import {
|
|
5
4
|
boundWitnessJsonSchema, BoundWitnessSchema,
|
|
6
|
-
PayloadBuilder,
|
|
5
|
+
PayloadBuilder, SchemaSchema,
|
|
6
|
+
Uint256RegEx,
|
|
7
7
|
} from '@xyo-network/sdk-js'
|
|
8
8
|
import type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'
|
|
9
9
|
import type { JSONSchemaType } from 'ajv'
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AddressRegEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js'
|
|
3
|
+
import {
|
|
4
|
+
PayloadBuilder, payloadJsonSchema, SchemaSchema,
|
|
5
|
+
} from '@xyo-network/sdk-js'
|
|
5
6
|
import type { ChainStakeIntent } from '@xyo-network/xl1-protocol'
|
|
6
7
|
import { ChainStakeIntentSchema } from '@xyo-network/xl1-protocol'
|
|
7
8
|
import type { JSONSchemaType } from 'ajv'
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { HashRegEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js'
|
|
3
|
+
import {
|
|
4
|
+
PayloadBuilder, payloadJsonSchema, SchemaSchema,
|
|
5
|
+
} from '@xyo-network/sdk-js'
|
|
5
6
|
import type { HashPayload } from '@xyo-network/xl1-protocol'
|
|
6
7
|
import { HashSchema } from '@xyo-network/xl1-protocol'
|
|
7
8
|
import type { JSONSchemaType } from 'ajv'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AddressRegEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { SchemaPayload } from '@xyo-network/
|
|
3
|
-
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
2
|
+
import type { SchemaPayload } from '@xyo-network/sdk-js'
|
|
4
3
|
import {
|
|
5
|
-
PayloadBuilder, payloadJsonSchema,
|
|
4
|
+
PayloadBuilder, payloadJsonSchema, SchemaSchema,
|
|
5
|
+
Uint256RegEx,
|
|
6
6
|
} from '@xyo-network/sdk-js'
|
|
7
7
|
import type { Transfer } from '@xyo-network/xl1-protocol'
|
|
8
8
|
import { TransferSchema } from '@xyo-network/xl1-protocol'
|