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

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.
@@ -25,4 +25,4 @@ export {
25
25
  isSnapshot,
26
26
  isSnapshotWithSources
27
27
  };
28
- //# sourceMappingURL=index.mjs.map
28
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/Payload/PriceHistory/Schema.ts","../../src/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"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"],"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;","names":["asSchema","asSchema","asSchema","asSchema"]}
1
+ {
2
+ "version": 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"],
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
+ "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
+ }
@@ -25,4 +25,4 @@ export {
25
25
  isSnapshot,
26
26
  isSnapshotWithSources
27
27
  };
28
- //# sourceMappingURL=index.mjs.map
28
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/Payload/PriceHistory/Schema.ts","../../src/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"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"],"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;","names":["asSchema","asSchema","asSchema","asSchema"]}
1
+ {
2
+ "version": 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"],
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
+ "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
+ }
@@ -25,4 +25,4 @@ export {
25
25
  isSnapshot,
26
26
  isSnapshotWithSources
27
27
  };
28
- //# sourceMappingURL=index.mjs.map
28
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["../../src/Payload/PriceHistory/Schema.ts","../../src/Schema.ts","../../src/Payload/Snapshot/Payload.ts","../../src/Payload/Snapshot/Schema.ts"],"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"],"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;","names":["asSchema","asSchema","asSchema","asSchema"]}
1
+ {
2
+ "version": 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"],
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
+ "names": ["asSchema", "asSchema", "asSchema", "asSchema"]
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/tzero-stock-market-payload-plugin",
3
- "version": "5.5.1",
3
+ "version": "6.0.0",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -33,32 +33,32 @@
33
33
  "devDependencies": {
34
34
  "@opentelemetry/api": "^1.9.1",
35
35
  "@opentelemetry/sdk-trace-base": "^2.7.1",
36
- "@xylabs/sdk-js": "^5.1.1",
37
- "@xylabs/toolchain": "~7.13.4",
38
- "@xylabs/tsconfig": "~7.13.4",
39
- "@xyo-network/payload-model": "^5.6.2",
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",
40
40
  "async-mutex": "^0.5.0",
41
41
  "bn.js": "^5.2.3",
42
42
  "buffer": "^6.0.3",
43
43
  "chalk": "^5.6.2",
44
- "eslint": "^10.3.0",
44
+ "eslint": "^10.4.0",
45
45
  "ethers": "^6.16.0",
46
46
  "pako": "~2.1.0",
47
- "typescript": "~5.9.3",
47
+ "typescript": "~6.0.3",
48
48
  "zod": "^4.4.3"
49
49
  },
50
50
  "peerDependencies": {
51
- "@opentelemetry/api": ">=1.9.1 <2",
52
- "@opentelemetry/sdk-trace-base": ">=2.7.1 <3",
53
- "@xylabs/sdk-js": ">=5.1.1 <6",
54
- "@xyo-network/payload-model": ">=5.6.2 <6",
55
- "async-mutex": ">=0.5.0 <1",
56
- "bn.js": ">=5.2.3 <6",
57
- "buffer": ">=6.0.3 <7",
58
- "chalk": ">=5.6.2 <6",
59
- "ethers": ">=6.16.0 <7",
60
- "pako": ">=2.1.0 <2.2",
61
- "zod": ">=4.4.3 <5"
51
+ "@opentelemetry/api": "^1.9",
52
+ "@opentelemetry/sdk-trace-base": "^2.7",
53
+ "@xylabs/sdk-js": "^6.0",
54
+ "@xyo-network/payload-model": "^6.0",
55
+ "async-mutex": "^0.5",
56
+ "bn.js": "^5.2",
57
+ "buffer": "^6.0",
58
+ "chalk": "^5.6",
59
+ "ethers": "^6.16",
60
+ "pako": "~2.1",
61
+ "zod": "^4.4"
62
62
  },
63
63
  "publishConfig": {
64
64
  "access": "public"