@xyo-network/tzero-stock-market-payload-plugin 6.0.0 → 6.0.1
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/browser/Payload/Snapshot/Payload.d.ts +2 -2
- package/dist/browser/Payload/Snapshot/Payload.d.ts.map +1 -1
- package/dist/browser/index.mjs +4 -4
- package/dist/browser/index.mjs.map +1 -1
- package/dist/neutral/Payload/Snapshot/Payload.d.ts +2 -2
- package/dist/neutral/Payload/Snapshot/Payload.d.ts.map +1 -1
- package/dist/neutral/index.mjs +4 -4
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/Payload/Snapshot/Payload.d.ts +2 -2
- package/dist/node/Payload/Snapshot/Payload.d.ts.map +1 -1
- package/dist/node/index.mjs +4 -4
- package/dist/node/index.mjs.map +1 -1
- package/package.json +75 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Payload } from '@xyo-network/
|
|
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
|
|
@@ -33,5 +33,5 @@ export declare const isSnapshot: (x?: unknown | null) => 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/
|
|
36
|
+
export declare const isSnapshotWithSources: (x?: unknown | null) => 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,
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,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,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,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,kFAA6D,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// src/Payload/PriceHistory/Schema.ts
|
|
2
|
-
import { asSchema as asSchema2 } from "@xyo-network/
|
|
2
|
+
import { asSchema as asSchema2 } from "@xyo-network/sdk-js";
|
|
3
3
|
|
|
4
4
|
// src/Schema.ts
|
|
5
|
-
import { asSchema } from "@xyo-network/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
|
@@ -33,5 +33,5 @@ export declare const isSnapshot: (x?: unknown | null) => 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/
|
|
36
|
+
export declare const isSnapshotWithSources: (x?: unknown | null) => 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,
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,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,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,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,kFAA6D,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// src/Payload/PriceHistory/Schema.ts
|
|
2
|
-
import { asSchema as asSchema2 } from "@xyo-network/
|
|
2
|
+
import { asSchema as asSchema2 } from "@xyo-network/sdk-js";
|
|
3
3
|
|
|
4
4
|
// src/Schema.ts
|
|
5
|
-
import { asSchema } from "@xyo-network/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
|
@@ -33,5 +33,5 @@ export declare const isSnapshot: (x?: unknown | null) => 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/
|
|
36
|
+
export declare const isSnapshotWithSources: (x?: unknown | null) => 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,
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Payload/Snapshot/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD,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,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,uCAAkD,CAAA;AAEzE;;GAEG;AACH,eAAO,MAAM,qBAAqB,kFAA6D,CAAA"}
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// src/Payload/PriceHistory/Schema.ts
|
|
2
|
-
import { asSchema as asSchema2 } from "@xyo-network/
|
|
2
|
+
import { asSchema as asSchema2 } from "@xyo-network/sdk-js";
|
|
3
3
|
|
|
4
4
|
// src/Schema.ts
|
|
5
|
-
import { asSchema } from "@xyo-network/
|
|
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/
|
|
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/
|
|
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
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -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/
|
|
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.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -31,33 +31,103 @@
|
|
|
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
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@xylabs/
|
|
39
|
-
"@
|
|
39
|
+
"@scure/base": "^2.2.0",
|
|
40
|
+
"@scure/bip39": "~2.2.0",
|
|
41
|
+
"@xylabs/geo": "^6.0.2",
|
|
42
|
+
"@xylabs/sdk-js": "^6.0.2",
|
|
43
|
+
"@xylabs/threads": "^6.0.2",
|
|
44
|
+
"@xylabs/toolchain": "~8.1.4",
|
|
45
|
+
"@xylabs/tsconfig": "~8.1.4",
|
|
46
|
+
"@xyo-network/account": "~6.0.4",
|
|
47
|
+
"@xyo-network/account-model": "^6.0.4",
|
|
48
|
+
"@xyo-network/api": "~6.0.4",
|
|
49
|
+
"@xyo-network/api-models": "~6.0.4",
|
|
50
|
+
"@xyo-network/boundwitness-builder": "~6.0.4",
|
|
51
|
+
"@xyo-network/boundwitness-model": "^6.0.4",
|
|
52
|
+
"@xyo-network/boundwitness-wrapper": "~6.0.4",
|
|
53
|
+
"@xyo-network/config-payload-plugin": "~6.0.4",
|
|
54
|
+
"@xyo-network/huri": "~6.0.4",
|
|
55
|
+
"@xyo-network/manifest-model": "~6.0.4",
|
|
56
|
+
"@xyo-network/payload-builder": "~6.0.4",
|
|
57
|
+
"@xyo-network/payload-model": "^6.0.4",
|
|
58
|
+
"@xyo-network/payload-plugin": "~6.0.4",
|
|
59
|
+
"@xyo-network/payload-wrapper": "~6.0.4",
|
|
60
|
+
"@xyo-network/query-payload-plugin": "~6.0.4",
|
|
61
|
+
"@xyo-network/sdk-js": "^6.0.0",
|
|
62
|
+
"@xyo-network/sdk-protocol-js": "~6.0.4",
|
|
63
|
+
"@xyo-network/wallet": "~6.0.4",
|
|
64
|
+
"@xyo-network/wallet-model": "~6.0.4",
|
|
65
|
+
"ajv": "^8.20.0",
|
|
40
66
|
"async-mutex": "^0.5.0",
|
|
41
67
|
"bn.js": "^5.2.3",
|
|
42
68
|
"buffer": "^6.0.3",
|
|
43
69
|
"chalk": "^5.6.2",
|
|
70
|
+
"debug": "~4.4.3",
|
|
44
71
|
"eslint": "^10.4.0",
|
|
45
72
|
"ethers": "^6.16.0",
|
|
73
|
+
"hash-wasm": "^4.12.0",
|
|
74
|
+
"idb": "^8.0.3",
|
|
75
|
+
"lru-cache": "^11.3.6",
|
|
76
|
+
"mapbox-gl": "^3.23.1",
|
|
77
|
+
"observable-fns": "~0.6.1",
|
|
46
78
|
"pako": "~2.1.0",
|
|
79
|
+
"store2": "~2.14.4",
|
|
47
80
|
"typescript": "~6.0.3",
|
|
81
|
+
"wasm-feature-detect": "~1.8.0",
|
|
82
|
+
"webextension-polyfill": "^0.12.0",
|
|
48
83
|
"zod": "^4.4.3"
|
|
49
84
|
},
|
|
50
85
|
"peerDependencies": {
|
|
86
|
+
"@bitauth/libauth": "~3.0",
|
|
87
|
+
"@metamask/providers": "^22.1",
|
|
88
|
+
"@noble/post-quantum": "~0.6.1",
|
|
51
89
|
"@opentelemetry/api": "^1.9",
|
|
52
90
|
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
91
|
+
"@scure/base": "^2.2",
|
|
92
|
+
"@scure/bip39": "~2.2",
|
|
93
|
+
"@xylabs/geo": "^6.0",
|
|
53
94
|
"@xylabs/sdk-js": "^6.0",
|
|
95
|
+
"@xylabs/threads": "^6.0",
|
|
96
|
+
"@xyo-network/account": "~6.0",
|
|
97
|
+
"@xyo-network/account-model": "^6.0",
|
|
98
|
+
"@xyo-network/api": "~6.0",
|
|
99
|
+
"@xyo-network/api-models": "~6.0",
|
|
100
|
+
"@xyo-network/boundwitness-builder": "~6.0",
|
|
101
|
+
"@xyo-network/boundwitness-model": "^6.0",
|
|
102
|
+
"@xyo-network/boundwitness-wrapper": "~6.0",
|
|
103
|
+
"@xyo-network/config-payload-plugin": "~6.0",
|
|
104
|
+
"@xyo-network/huri": "~6.0",
|
|
105
|
+
"@xyo-network/manifest-model": "~6.0",
|
|
106
|
+
"@xyo-network/payload-builder": "~6.0",
|
|
54
107
|
"@xyo-network/payload-model": "^6.0",
|
|
108
|
+
"@xyo-network/payload-plugin": "~6.0",
|
|
109
|
+
"@xyo-network/payload-wrapper": "~6.0",
|
|
110
|
+
"@xyo-network/query-payload-plugin": "~6.0",
|
|
111
|
+
"@xyo-network/sdk-js": "^6.0",
|
|
112
|
+
"@xyo-network/sdk-protocol-js": "~6.0",
|
|
113
|
+
"@xyo-network/wallet": "~6.0",
|
|
114
|
+
"@xyo-network/wallet-model": "~6.0",
|
|
115
|
+
"ajv": "^8.20",
|
|
55
116
|
"async-mutex": "^0.5",
|
|
56
117
|
"bn.js": "^5.2",
|
|
57
118
|
"buffer": "^6.0",
|
|
58
119
|
"chalk": "^5.6",
|
|
120
|
+
"debug": "~4.4",
|
|
59
121
|
"ethers": "^6.16",
|
|
122
|
+
"hash-wasm": "^4.12",
|
|
123
|
+
"idb": "^8.0",
|
|
124
|
+
"lru-cache": "^11.3",
|
|
125
|
+
"mapbox-gl": "^3.23",
|
|
126
|
+
"observable-fns": "~0.6",
|
|
60
127
|
"pako": "~2.1",
|
|
128
|
+
"store2": "~2.14",
|
|
129
|
+
"wasm-feature-detect": "~1.8",
|
|
130
|
+
"webextension-polyfill": "^0.12",
|
|
61
131
|
"zod": "^4.4"
|
|
62
132
|
},
|
|
63
133
|
"publishConfig": {
|