@xyo-network/xl1-schema 1.24.21 → 1.24.23
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/StorageMeta.d.ts +1 -1
- package/dist/neutral/StorageMeta.d.ts.map +1 -1
- package/dist/neutral/boundwitness/BlockBoundWitness.d.ts.map +1 -1
- package/dist/neutral/boundwitness/BlockBoundWitnessWithStorageMeta.d.ts +1 -1
- package/dist/neutral/boundwitness/BlockBoundWitnessWithStorageMeta.d.ts.map +1 -1
- package/dist/neutral/boundwitness/TransactionBoundWitness.d.ts.map +1 -1
- package/dist/neutral/boundwitness/TransactionBoundWitnessWithStorageMeta.d.ts.map +1 -1
- package/dist/neutral/index.mjs +4 -4
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +8 -9
- package/src/StorageMeta.ts +1 -1
- package/src/boundwitness/BlockBoundWitness.ts +2 -2
- package/src/boundwitness/BlockBoundWitnessWithStorageMeta.ts +3 -3
- package/src/boundwitness/TransactionBoundWitness.ts +2 -2
- package/src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StorageMeta } from '@xyo-network/
|
|
1
|
+
import type { StorageMeta } from '@xyo-network/sdk-js';
|
|
2
2
|
import type { JSONSchemaType } from 'ajv';
|
|
3
3
|
export declare const StorageMetaJsonSchema: JSONSchemaType<StorageMeta>;
|
|
4
4
|
//# sourceMappingURL=StorageMeta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageMeta.d.ts","sourceRoot":"","sources":["../../src/StorageMeta.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"StorageMeta.d.ts","sourceRoot":"","sources":["../../src/StorageMeta.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAEzC,eAAO,MAAM,qBAAqB,EAAE,cAAc,CAAC,WAAW,CASpD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitness.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAMvE,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,5 @@
|
|
|
1
|
-
import type { WithStorageMeta } from '@xyo-network/payload-model';
|
|
2
1
|
import type { SchemaPayload } from '@xyo-network/schema-payload-plugin';
|
|
2
|
+
import type { WithStorageMeta } from '@xyo-network/sdk-js';
|
|
3
3
|
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol';
|
|
4
4
|
import type { JSONSchemaType } from 'ajv';
|
|
5
5
|
export declare const BlockBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<WithStorageMeta<BlockBoundWitness>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/BlockBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAEvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAK1D,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitness.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAMvE,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransactionBoundWitnessWithStorageMeta.d.ts","sourceRoot":"","sources":["../../../src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAMvE,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,10 +1,10 @@
|
|
|
1
1
|
// src/boundwitness/BlockBoundWitness.ts
|
|
2
2
|
import { AddressRegEx, HashRegEx } from "@xylabs/sdk-js";
|
|
3
|
-
import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
4
3
|
import { SchemaSchema } from "@xyo-network/schema-payload-plugin";
|
|
5
4
|
import {
|
|
6
5
|
boundWitnessJsonSchema,
|
|
7
6
|
boundWitnessProperties,
|
|
7
|
+
BoundWitnessSchema,
|
|
8
8
|
PayloadBuilder
|
|
9
9
|
} from "@xyo-network/sdk-js";
|
|
10
10
|
var BlockBoundWitnessJsonSchema = {
|
|
@@ -32,11 +32,11 @@ var BlockBoundWitnessJsonSchema = {
|
|
|
32
32
|
var BlockBoundWitnessSchemaPayload = new PayloadBuilder({ schema: SchemaSchema }).fields({ definition: BlockBoundWitnessJsonSchema }).build();
|
|
33
33
|
|
|
34
34
|
// src/boundwitness/BlockBoundWitnessWithStorageMeta.ts
|
|
35
|
-
import { BoundWitnessSchema as BoundWitnessSchema2 } from "@xyo-network/boundwitness-model";
|
|
36
35
|
import { SchemaSchema as SchemaSchema2 } from "@xyo-network/schema-payload-plugin";
|
|
37
36
|
import {
|
|
38
37
|
boundWitnessJsonSchema as boundWitnessJsonSchema2,
|
|
39
38
|
boundWitnessProperties as boundWitnessProperties2,
|
|
39
|
+
BoundWitnessSchema as BoundWitnessSchema2,
|
|
40
40
|
PayloadBuilder as PayloadBuilder2
|
|
41
41
|
} from "@xyo-network/sdk-js";
|
|
42
42
|
|
|
@@ -69,10 +69,10 @@ 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 { BoundWitnessSchema as BoundWitnessSchema3 } from "@xyo-network/boundwitness-model";
|
|
73
72
|
import { SchemaSchema as SchemaSchema3 } from "@xyo-network/schema-payload-plugin";
|
|
74
73
|
import {
|
|
75
74
|
boundWitnessJsonSchema as boundWitnessJsonSchema3,
|
|
75
|
+
BoundWitnessSchema as BoundWitnessSchema3,
|
|
76
76
|
PayloadBuilder as PayloadBuilder3,
|
|
77
77
|
Uint256RegEx
|
|
78
78
|
} from "@xyo-network/sdk-js";
|
|
@@ -118,10 +118,10 @@ 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 { BoundWitnessSchema as BoundWitnessSchema4 } from "@xyo-network/boundwitness-model";
|
|
122
121
|
import { SchemaSchema as SchemaSchema4 } from "@xyo-network/schema-payload-plugin";
|
|
123
122
|
import {
|
|
124
123
|
boundWitnessJsonSchema as boundWitnessJsonSchema4,
|
|
124
|
+
BoundWitnessSchema as BoundWitnessSchema4,
|
|
125
125
|
PayloadBuilder as PayloadBuilder4,
|
|
126
126
|
Uint256RegEx as Uint256RegEx2
|
|
127
127
|
} from "@xyo-network/sdk-js";
|
|
@@ -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 { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport {\n boundWitnessJsonSchema, boundWitnessProperties, 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 { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport type { WithStorageMeta } from '@xyo-network/payload-model'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport {\n boundWitnessJsonSchema, boundWitnessProperties, 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/payload-model'\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 { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport {\n boundWitnessJsonSchema, 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 { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport {\n boundWitnessJsonSchema, 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;AACxC,SAAS,0BAA0B;AAEnC,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EAAwB;AAAA,EAAw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AAG,qBAAoB;AAE7B,SAAS,gBAAAC,qBAAoB;AAC7B;AAAA,EACE,kBAAAC;AAAA,EAAgB,qBAAAC;AAAA,EAAmB,gBAAAC;AAAA,OAC9B;AAEP,SAAS,sBAAsB;AAGxB,IAAM,4BAAsD;AAAA,EACjE,GAAGD;AAAA,EACH,KAAK;AAAA,EACL,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,GAAGA,mBAAkB;AAAA,IACrB,MAAM,EAAE,MAAM,UAAU,SAASH,cAAa,OAAO;AAAA,IACrD,OAAO,EAAE,MAAM,SAAS;AAAA,IACxB,WAAW;AAAA,MACT,MAAM;AAAA,MACN,eAAe,EAAE,SAASA,cAAa,OAAO;AAAA,MAC9C,mBAAmB,EAAE,CAACA,cAAa,MAAM,GAAG,EAAE,MAAM,UAAU,SAASI,cAAa,OAAO,EAAE;AAAA,IAC/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":["BoundWitnessSchema","SchemaSchema","boundWitnessJsonSchema","boundWitnessProperties","PayloadBuilder","HashRegEx","boundWitnessProperties","BoundWitnessSchema","boundWitnessJsonSchema","PayloadBuilder","SchemaSchema","AddressRegEx","BoundWitnessSchema","SchemaSchema","boundWitnessJsonSchema","PayloadBuilder","boundWitnessJsonSchema","AddressRegEx","BoundWitnessSchema","PayloadBuilder","SchemaSchema","AddressRegEx","BoundWitnessSchema","SchemaSchema","boundWitnessJsonSchema","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/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,GAAG,uBAAuB,UAAU,SAAS,SAAS,eAAe,YAAY,QAAQ;AAAA,EACpG,MAAM;AACR;AAEO,IAAM,iCAAiC,IAAI,eAA8B,EAAE,QAAQ,aAAa,CAAC,EACrG,OAAO,EAAE,YAAY,4BAA4B,CAAC,EAAE,MAAM;;;AC/B7D,SAAS,gBAAAA,qBAAoB;AAE7B;AAAA,EACE,0BAAAC;AAAA,EAAwB,0BAAAC;AAAA,EAAwB,sBAAAC;AAAA,EAChD,kBAAAC;AAAA,OACK;;;ACNP,SAAS,aAAAC,YAAW,gBAAgB;AAI7B,IAAM,wBAAqD;AAAA,EAChE,KAAK;AAAA,EACL,YAAY;AAAA,IACV,WAAW,EAAE,MAAM,UAAU,SAAS,SAAS,OAAO;AAAA,IACtD,OAAO,E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ChD;AAAA,EACA,UAAU,CAAC,GAAGG,mBAAkB,UAAU,MAAM;AAAA,EAChD,MAAM;AACR;AAEO,IAAM,+BAA+B,IAAID,gBAA8B,EAAE,QAAQD,cAAa,CAAC,EACnG,OAAO,EAAE,YAAY,sBAAsB,CAAC,EAAE,MAAM;;;ACtBvD,SAAS,gBAAAG,qBAAoB;AAE7B,SAAS,gBAAAC,qBAAoB;AAC7B;AAAA,EACE,kBAAAC;AAAA,EAAgB,qBAAAC;AAAA,EAAmB,gBAAAC;AAAA,OAC9B;AAEP,SAAS,sBAAsB;AAGxB,IAAM,4BAAsD;AAAA,EACjE,GAAGD;AAAA,EACH,KAAK;AAAA,EACL,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,GAAGA,mBAAkB;AAAA,IACrB,MAAM,EAAE,MAAM,UAAU,SAASH,cAAa,OAAO;AAAA,IACrD,OAAO,EAAE,MAAM,SAAS;AAAA,IACxB,WAAW;AAAA,MACT,MAAM;AAAA,MACN,eAAe,EAAE,SAASA,cAAa,OAAO;AAAA,MAC9C,mBAAmB,EAAE,CAACA,cAAa,MAAM,GAAG,EAAE,MAAM,UAAU,SAASI,cAAa,OAAO,EAAE;AAAA,IAC/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"]}
|
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.23",
|
|
5
5
|
"description": "XYO Layer One SDK Schema",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -39,20 +39,19 @@
|
|
|
39
39
|
"!**/*.test.*"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@
|
|
43
|
-
"@xyo-network/
|
|
44
|
-
"@xyo-network/payload-model": "~5.3.6",
|
|
45
|
-
"@xyo-network/schema-payload-plugin": "~5.3.6",
|
|
46
|
-
"@xyo-network/sdk-js": "~5.3.6",
|
|
47
|
-
"@xyo-network/xl1-protocol": "~1.24.21"
|
|
42
|
+
"@xyo-network/schema-payload-plugin": "~5.3.7",
|
|
43
|
+
"@xyo-network/xl1-protocol": "~1.24.23"
|
|
48
44
|
},
|
|
49
45
|
"devDependencies": {
|
|
50
|
-
"@types/node": "~25.
|
|
46
|
+
"@types/node": "~25.3.0",
|
|
47
|
+
"@xylabs/sdk-js": "^5.0.80",
|
|
51
48
|
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
52
49
|
"@xylabs/tsconfig": "~7.3.2",
|
|
53
|
-
"@xyo-network/account": "~5.3.
|
|
50
|
+
"@xyo-network/account": "~5.3.7",
|
|
51
|
+
"@xyo-network/sdk-js": "^5.3.7",
|
|
54
52
|
"ajv": "~8.18.0",
|
|
55
53
|
"eslint": "^9.39.2",
|
|
54
|
+
"ethers": "^6.16.0",
|
|
56
55
|
"typescript": "~5.9.3",
|
|
57
56
|
"vitest": "~4.0.18",
|
|
58
57
|
"zod": "~4.3.6"
|
package/src/StorageMeta.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HashRegEx, HexRegEx } from '@xylabs/sdk-js'
|
|
2
|
-
import type { StorageMeta } from '@xyo-network/
|
|
2
|
+
import type { StorageMeta } from '@xyo-network/sdk-js'
|
|
3
3
|
import type { JSONSchemaType } from 'ajv'
|
|
4
4
|
|
|
5
5
|
export const StorageMetaJsonSchema: JSONSchemaType<StorageMeta> = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AddressRegEx, HashRegEx } from '@xylabs/sdk-js'
|
|
2
|
-
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
3
2
|
import type { SchemaPayload } from '@xyo-network/schema-payload-plugin'
|
|
4
3
|
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
5
4
|
import {
|
|
6
|
-
boundWitnessJsonSchema, boundWitnessProperties,
|
|
5
|
+
boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,
|
|
6
|
+
PayloadBuilder,
|
|
7
7
|
} from '@xyo-network/sdk-js'
|
|
8
8
|
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol'
|
|
9
9
|
import type { JSONSchemaType } from 'ajv'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
2
|
-
import type { WithStorageMeta } from '@xyo-network/payload-model'
|
|
3
1
|
import type { SchemaPayload } from '@xyo-network/schema-payload-plugin'
|
|
4
2
|
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
3
|
+
import type { WithStorageMeta } from '@xyo-network/sdk-js'
|
|
5
4
|
import {
|
|
6
|
-
boundWitnessJsonSchema, boundWitnessProperties,
|
|
5
|
+
boundWitnessJsonSchema, boundWitnessProperties, BoundWitnessSchema,
|
|
6
|
+
PayloadBuilder,
|
|
7
7
|
} from '@xyo-network/sdk-js'
|
|
8
8
|
import type { BlockBoundWitness } 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 { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
3
2
|
import type { SchemaPayload } from '@xyo-network/schema-payload-plugin'
|
|
4
3
|
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
5
4
|
import {
|
|
6
|
-
boundWitnessJsonSchema,
|
|
5
|
+
boundWitnessJsonSchema, BoundWitnessSchema,
|
|
6
|
+
PayloadBuilder, 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 { BoundWitnessSchema } from '@xyo-network/boundwitness-model'
|
|
3
2
|
import type { SchemaPayload } from '@xyo-network/schema-payload-plugin'
|
|
4
3
|
import { SchemaSchema } from '@xyo-network/schema-payload-plugin'
|
|
5
4
|
import {
|
|
6
|
-
boundWitnessJsonSchema,
|
|
5
|
+
boundWitnessJsonSchema, BoundWitnessSchema,
|
|
6
|
+
PayloadBuilder, 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'
|