@xyo-network/tzero-stock-market-payload-plugin 6.0.0 → 6.0.2

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.
@@ -1,4 +1,4 @@
1
- import type { Payload } from '@xyo-network/payload-model';
1
+ import type { Payload } from '@xyo-network/sdk-js';
2
2
  import { SnapshotSchema } from './Schema.ts';
3
3
  /**
4
4
  * The fields for a Snapshot
@@ -29,9 +29,9 @@ export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
29
29
  /**
30
30
  * Identity function for determine if an object is a Snapshot
31
31
  */
32
- export declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
32
+ export declare const isSnapshot: (x?: unknown) => x is Snapshot;
33
33
  /**
34
34
  * Identity function for determine if an object is a Snapshot with sources
35
35
  */
36
- export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Snapshot>;
36
+ export declare const isSnapshotWithSources: (x?: unknown) => x is import("@xyo-network/sdk-js").WithSources<Snapshot>;
37
37
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WA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AAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,gCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,2EAA6D,CAAA"}
@@ -1,18 +1,18 @@
1
1
  // src/Payload/PriceHistory/Schema.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/sdk-js";
3
3
 
4
4
  // src/Schema.ts
5
- import { asSchema } from "@xyo-network/payload-model";
5
+ import { asSchema } from "@xyo-network/sdk-js";
6
6
  var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
7
7
 
8
8
  // src/Payload/PriceHistory/Schema.ts
9
9
  var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
10
10
 
11
11
  // src/Payload/Snapshot/Payload.ts
12
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
12
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/sdk-js";
13
13
 
14
14
  // src/Payload/Snapshot/Schema.ts
15
- import { asSchema as asSchema3 } from "@xyo-network/payload-model";
15
+ import { asSchema as asSchema3 } from "@xyo-network/sdk-js";
16
16
  var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
17
17
 
18
18
  // src/Payload/Snapshot/Payload.ts
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Payload/PriceHistory/Schema.ts", "../../src/Schema.ts", "../../src/Payload/Snapshot/Payload.ts", "../../src/Payload/Snapshot/Schema.ts"],
4
- "sourcesContent": ["import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "import { asSchema } from '@xyo-network/payload-model'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
4
+ "sourcesContent": ["import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "import type { Payload } from '@xyo-network/sdk-js'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/sdk-js'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
5
5
  "mappings": ";AAAA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADC9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEHpF,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADgC1E,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;",
6
6
  "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
7
  }
@@ -1,4 +1,4 @@
1
- import type { Payload } from '@xyo-network/payload-model';
1
+ import type { Payload } from '@xyo-network/sdk-js';
2
2
  import { SnapshotSchema } from './Schema.ts';
3
3
  /**
4
4
  * The fields for a Snapshot
@@ -29,9 +29,9 @@ export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
29
29
  /**
30
30
  * Identity function for determine if an object is a Snapshot
31
31
  */
32
- export declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
32
+ export declare const isSnapshot: (x?: unknown) => x is Snapshot;
33
33
  /**
34
34
  * Identity function for determine if an object is a Snapshot with sources
35
35
  */
36
- export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Snapshot>;
36
+ export declare const isSnapshotWithSources: (x?: unknown) => x is import("@xyo-network/sdk-js").WithSources<Snapshot>;
37
37
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAA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AC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,gCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,2EAA6D,CAAA"}
@@ -1,18 +1,18 @@
1
1
  // src/Payload/PriceHistory/Schema.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/sdk-js";
3
3
 
4
4
  // src/Schema.ts
5
- import { asSchema } from "@xyo-network/payload-model";
5
+ import { asSchema } from "@xyo-network/sdk-js";
6
6
  var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
7
7
 
8
8
  // src/Payload/PriceHistory/Schema.ts
9
9
  var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
10
10
 
11
11
  // src/Payload/Snapshot/Payload.ts
12
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
12
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/sdk-js";
13
13
 
14
14
  // src/Payload/Snapshot/Schema.ts
15
- import { asSchema as asSchema3 } from "@xyo-network/payload-model";
15
+ import { asSchema as asSchema3 } from "@xyo-network/sdk-js";
16
16
  var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
17
17
 
18
18
  // src/Payload/Snapshot/Payload.ts
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Payload/PriceHistory/Schema.ts", "../../src/Schema.ts", "../../src/Payload/Snapshot/Payload.ts", "../../src/Payload/Snapshot/Schema.ts"],
4
- "sourcesContent": ["import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "import { asSchema } from '@xyo-network/payload-model'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
4
+ "sourcesContent": ["import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "import type { Payload } from '@xyo-network/sdk-js'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/sdk-js'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
5
5
  "mappings": ";AAAA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADC9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEHpF,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADgC1E,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;",
6
6
  "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
7
  }
@@ -1,4 +1,4 @@
1
- import type { Payload } from '@xyo-network/payload-model';
1
+ import type { Payload } from '@xyo-network/sdk-js';
2
2
  import { SnapshotSchema } from './Schema.ts';
3
3
  /**
4
4
  * The fields for a Snapshot
@@ -29,9 +29,9 @@ export type Snapshot = Payload<SnapshotFields, SnapshotSchema>;
29
29
  /**
30
30
  * Identity function for determine if an object is a Snapshot
31
31
  */
32
- export declare const isSnapshot: (x?: unknown | null) => x is Snapshot;
32
+ export declare const isSnapshot: (x?: unknown) => x is Snapshot;
33
33
  /**
34
34
  * Identity function for determine if an object is a Snapshot with sources
35
35
  */
36
- export declare const isSnapshotWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<Snapshot>;
36
+ export declare const isSnapshotWithSources: (x?: unknown) => x is import("@xyo-network/sdk-js").WithSources<Snapshot>;
37
37
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM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AAe,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,UAAU,gCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,2EAA6D,CAAA"}
@@ -1,18 +1,18 @@
1
1
  // src/Payload/PriceHistory/Schema.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/sdk-js";
3
3
 
4
4
  // src/Schema.ts
5
- import { asSchema } from "@xyo-network/payload-model";
5
+ import { asSchema } from "@xyo-network/sdk-js";
6
6
  var TZeroStockMarketSchema = asSchema("network.xyo.stock.market.tzero", true);
7
7
 
8
8
  // src/Payload/PriceHistory/Schema.ts
9
9
  var PriceHistorySchema = asSchema2(`${TZeroStockMarketSchema}.history`, true);
10
10
 
11
11
  // src/Payload/Snapshot/Payload.ts
12
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
12
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from "@xyo-network/sdk-js";
13
13
 
14
14
  // src/Payload/Snapshot/Schema.ts
15
- import { asSchema as asSchema3 } from "@xyo-network/payload-model";
15
+ import { asSchema as asSchema3 } from "@xyo-network/sdk-js";
16
16
  var SnapshotSchema = asSchema3(`${TZeroStockMarketSchema}.snapshot`, true);
17
17
 
18
18
  // src/Payload/Snapshot/Payload.ts
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Payload/PriceHistory/Schema.ts", "../../src/Schema.ts", "../../src/Payload/Snapshot/Payload.ts", "../../src/Payload/Snapshot/Schema.ts"],
4
- "sourcesContent": ["import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "import { asSchema } from '@xyo-network/payload-model'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
4
+ "sourcesContent": ["import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const PriceHistorySchema = asSchema(`${TZeroStockMarketSchema}.history`, true)\nexport type PriceHistorySchema = typeof PriceHistorySchema\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type TZeroStockMarketSchema = typeof TZeroStockMarketSchema\nexport const TZeroStockMarketSchema = asSchema('network.xyo.stock.market.tzero', true)\n", "import type { Payload } from '@xyo-network/sdk-js'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/sdk-js'\n\nimport { SnapshotSchema } from './Schema.ts'\n\n/**\n * The fields for a Snapshot\n */\nexport interface SnapshotFields {\n askPrice: number | null\n askPriceRate: number | null\n askQtyBookTotal: number | null\n askQuantity: number | null\n bidPrice: number | null\n bidPriceRate: number | null\n bidQtyBookTotal: number | null\n bidQuantity: number | null\n high: number | null\n lastPrice: number | null\n lastQuantity: number | null\n low: number | null\n open: number | null\n prevClosePx: number | null\n symbol: string\n timestamp: string\n volume: number\n}\n\n/**\n * The Snapshot payload\n */\nexport type Snapshot = Payload<SnapshotFields, SnapshotSchema>\n\n/**\n * Identity function for determine if an object is a Snapshot\n */\nexport const isSnapshot = isPayloadOfSchemaType<Snapshot>(SnapshotSchema)\n\n/**\n * Identity function for determine if an object is a Snapshot with sources\n */\nexport const isSnapshotWithSources = isPayloadOfSchemaTypeWithSources<Snapshot>(SnapshotSchema)\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nimport { TZeroStockMarketSchema } from '../../Schema.ts'\n\nexport const SnapshotSchema = asSchema(`${TZeroStockMarketSchema}.snapshot`, true)\nexport type SnapshotSchema = typeof SnapshotSchema\n"],
5
5
  "mappings": ";AAAA,SAAS,YAAAA,iBAAgB;;;ACAzB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADC9E,IAAM,qBAAqBC,UAAS,GAAG,sBAAsB,YAAY,IAAI;;;AEHpF,SAAS,uBAAuB,wCAAwC;;;ACDxE,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,iBAAiBC,UAAS,GAAG,sBAAsB,aAAa,IAAI;;;ADgC1E,IAAM,aAAa,sBAAgC,cAAc;AAKjE,IAAM,wBAAwB,iCAA2C,cAAc;",
6
6
  "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/tzero-stock-market-payload-plugin",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -31,33 +31,61 @@
31
31
  "README.md"
32
32
  ],
33
33
  "devDependencies": {
34
+ "@bitauth/libauth": "~3.0.0",
35
+ "@metamask/providers": "^22.1.1",
36
+ "@noble/post-quantum": "~0.6.1",
34
37
  "@opentelemetry/api": "^1.9.1",
35
38
  "@opentelemetry/sdk-trace-base": "^2.7.1",
36
- "@xylabs/sdk-js": "~6.0",
37
- "@xylabs/toolchain": "~8.1.1",
38
- "@xylabs/tsconfig": "~8.1.1",
39
- "@xyo-network/payload-model": "~6.0",
39
+ "@scure/base": "^2.2.0",
40
+ "@scure/bip39": "~2.2.0",
41
+ "@xylabs/geo": "^6.0.6",
42
+ "@xylabs/sdk-js": "^6.0.6",
43
+ "@xylabs/threads": "^6.0.6",
44
+ "@xylabs/toolchain": "~8.1.11",
45
+ "@xylabs/tsconfig": "~8.1.11",
46
+ "@xyo-network/sdk-js": "^6.0.2",
47
+ "@xyo-network/sdk-protocol-js": "~6.0.7",
48
+ "ajv": "^8.20.0",
40
49
  "async-mutex": "^0.5.0",
41
50
  "bn.js": "^5.2.3",
42
51
  "buffer": "^6.0.3",
43
- "chalk": "^5.6.2",
44
- "eslint": "^10.4.0",
52
+ "debug": "~4.4.3",
53
+ "eslint": "^10.4.1",
45
54
  "ethers": "^6.16.0",
55
+ "hash-wasm": "^4.12.0",
56
+ "idb": "^8.0.3",
57
+ "lru-cache": "^11.5.1",
58
+ "observable-fns": "~0.6.1",
46
59
  "pako": "~2.1.0",
47
60
  "typescript": "~6.0.3",
61
+ "webextension-polyfill": "^0.12.0",
48
62
  "zod": "^4.4.3"
49
63
  },
50
64
  "peerDependencies": {
65
+ "@bitauth/libauth": "~3.0",
66
+ "@metamask/providers": "^22.1",
67
+ "@noble/post-quantum": "~0.6.1",
51
68
  "@opentelemetry/api": "^1.9",
52
69
  "@opentelemetry/sdk-trace-base": "^2.7",
70
+ "@scure/base": "^2.2",
71
+ "@scure/bip39": "~2.2",
72
+ "@xylabs/geo": "^6.0",
53
73
  "@xylabs/sdk-js": "^6.0",
54
- "@xyo-network/payload-model": "^6.0",
74
+ "@xylabs/threads": "^6.0",
75
+ "@xyo-network/sdk-js": "^6.0",
76
+ "@xyo-network/sdk-protocol-js": "~6.0",
77
+ "ajv": "^8.20",
55
78
  "async-mutex": "^0.5",
56
79
  "bn.js": "^5.2",
57
80
  "buffer": "^6.0",
58
- "chalk": "^5.6",
81
+ "debug": "~4.4",
59
82
  "ethers": "^6.16",
83
+ "hash-wasm": "^4.12",
84
+ "idb": "^8.0",
85
+ "lru-cache": "^11.3",
86
+ "observable-fns": "~0.6",
60
87
  "pako": "~2.1",
88
+ "webextension-polyfill": "^0.12",
61
89
  "zod": "^4.4"
62
90
  },
63
91
  "publishConfig": {