@xyo-network/diviner-range-model 5.3.20 → 5.3.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-range-model",
3
- "version": "5.3.20",
3
+ "version": "5.3.24",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,22 +30,29 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src",
34
33
  "!**/*.bench.*",
35
34
  "!**/*.spec.*",
36
- "!**/*.test.*"
35
+ "!**/*.test.*",
36
+ "README.md"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/diviner-model": "~5.3.20",
40
- "@xyo-network/payload-model": "~5.3.20"
39
+ "@xyo-network/diviner-model": "~5.3.24",
40
+ "@xyo-network/payload-model": "~5.3.24"
41
41
  },
42
42
  "devDependencies": {
43
- "@xylabs/sdk-js": "^5.0.90",
44
- "@xylabs/ts-scripts-common": "~7.5.6",
45
- "@xylabs/ts-scripts-yarn3": "~7.5.6",
46
- "@xylabs/tsconfig": "~7.5.6",
43
+ "@opentelemetry/api": "^1.9.1",
44
+ "@types/node": "^25.5.0",
45
+ "@xylabs/sdk-js": "^5.0.93",
46
+ "@xylabs/ts-scripts-common": "~7.6.16",
47
+ "@xylabs/ts-scripts-pnpm": "~7.6.16",
48
+ "@xylabs/tsconfig": "~7.6.16",
49
+ "acorn": "^8.16.0",
50
+ "axios": "^1.14.0",
51
+ "esbuild": "^0.28.0",
47
52
  "typescript": "~5.9.3",
48
- "zod": "^4.3.6"
53
+ "zod": "^4.3.6",
54
+ "@xyo-network/diviner-model": "~5.3.24",
55
+ "@xyo-network/payload-model": "~5.3.24"
49
56
  },
50
57
  "peerDependencies": {
51
58
  "@xylabs/sdk-js": "^5",
@@ -54,4 +61,4 @@
54
61
  "publishConfig": {
55
62
  "access": "public"
56
63
  }
57
- }
64
+ }
@@ -1,16 +0,0 @@
1
- import type { DivinerConfig } from '@xyo-network/diviner-model'
2
- import { asSchema, isPayloadOfSchemaType } from '@xyo-network/payload-model'
3
-
4
- export const RangeDivinerConfigSchema = asSchema('network.xyo.diviner.range.config', true)
5
- export type RangeDivinerConfigSchema = typeof RangeDivinerConfigSchema
6
-
7
- import type { RangePayload } from '../Payload/index.ts'
8
-
9
- export type RangeDivinerConfig = DivinerConfig<
10
- {
11
- ranges?: RangePayload[]
12
- },
13
- RangeDivinerConfigSchema
14
- >
15
-
16
- export const isRangeDivinerConfig = isPayloadOfSchemaType<RangeDivinerConfig>(RangeDivinerConfigSchema)
@@ -1 +0,0 @@
1
- export * from './Config.ts'
@@ -1,7 +0,0 @@
1
- import type { Hex } from '@xylabs/sdk-js'
2
- import { asSchema, type Payload } from '@xyo-network/payload-model'
3
-
4
- export const BigIntSchema = asSchema('network.xyo.bigint', true)
5
- export type BigIntSchema = typeof BigIntSchema
6
-
7
- export type BigIntPayload = Payload<{ value: Hex }, BigIntSchema>
@@ -1,6 +0,0 @@
1
- import { asSchema, type Payload } from '@xyo-network/payload-model'
2
-
3
- export const NumberSchema = asSchema('network.xyo.number', true)
4
- export type NumberSchema = typeof NumberSchema
5
-
6
- export type NumberPayload = Payload<{ value: number }, NumberSchema>
@@ -1,29 +0,0 @@
1
- import type { Hex } from '@xylabs/sdk-js'
2
- import { isHex } from '@xylabs/sdk-js'
3
- import type { Payload } from '@xyo-network/payload-model'
4
- import { asSchema, isPayloadOfSchemaType } from '@xyo-network/payload-model'
5
-
6
- /* We decorate these names with Payload since Range is a system type */
7
-
8
- export const RangeSchema = asSchema('network.xyo.range', true)
9
- export type RangeSchema = typeof RangeSchema
10
-
11
- export type RangePayloadBase<T> = Payload<
12
- {
13
- count: number
14
- start: T
15
- },
16
- RangeSchema
17
- >
18
-
19
- export type NumberRangePayload = RangePayloadBase<number>
20
- export type BigIntRangePayload = RangePayloadBase<Hex>
21
-
22
- export type RangePayload = NumberRangePayload | BigIntRangePayload
23
-
24
- export const isRangePayload = isPayloadOfSchemaType<RangePayload>(RangeSchema)
25
-
26
- export const isBigIntRangePayload = (payload?: unknown): payload is BigIntRangePayload =>
27
- isRangePayload(payload) && isHex(payload.start, { prefix: true })
28
-
29
- export const isNumberRangePayload = (payload?: unknown): payload is NumberRangePayload => isRangePayload(payload) && typeof payload.start === 'number'
@@ -1,3 +0,0 @@
1
- export * from './BigInt.ts'
2
- export * from './Number.ts'
3
- export * from './Range.ts'
package/src/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './Config/index.ts'
2
- export * from './Payload/index.ts'