@xyo-network/diviner-range-model 5.3.22 → 5.3.25
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 +12 -16
- package/src/Config/Config.ts +0 -16
- package/src/Config/index.ts +0 -1
- package/src/Payload/BigInt.ts +0 -7
- package/src/Payload/Number.ts +0 -6
- package/src/Payload/Range.ts +0 -29
- package/src/Payload/index.ts +0 -3
- package/src/index.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-range-model",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.25",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,33 +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
35
|
"!**/*.test.*",
|
|
37
36
|
"README.md"
|
|
38
37
|
],
|
|
39
38
|
"dependencies": {
|
|
40
|
-
"@xyo-network/
|
|
41
|
-
"@xyo-network/
|
|
39
|
+
"@xyo-network/payload-model": "~5.3.25",
|
|
40
|
+
"@xyo-network/diviner-model": "~5.3.25"
|
|
42
41
|
},
|
|
43
42
|
"devDependencies": {
|
|
44
43
|
"@opentelemetry/api": "^1.9.1",
|
|
45
44
|
"@types/node": "^25.5.0",
|
|
46
|
-
"@xylabs/sdk-js": "^5.0.
|
|
47
|
-
"@xylabs/ts-scripts-common": "~7.6.
|
|
48
|
-
"@xylabs/ts-scripts-
|
|
49
|
-
"@xylabs/tsconfig": "~7.6.
|
|
50
|
-
"@xyo-network/diviner-model": "~5.3.22",
|
|
51
|
-
"@xyo-network/payload-model": "~5.3.22",
|
|
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",
|
|
52
49
|
"acorn": "^8.16.0",
|
|
53
50
|
"axios": "^1.14.0",
|
|
54
|
-
"
|
|
55
|
-
"esbuild": "^0.27.4",
|
|
56
|
-
"eslint": "^10.1.0",
|
|
57
|
-
"rollup": "^4.60.1",
|
|
51
|
+
"esbuild": "^0.28.0",
|
|
58
52
|
"typescript": "~5.9.3",
|
|
59
|
-
"zod": "^4.3.6"
|
|
53
|
+
"zod": "^4.3.6",
|
|
54
|
+
"@xyo-network/diviner-model": "~5.3.25",
|
|
55
|
+
"@xyo-network/payload-model": "~5.3.25"
|
|
60
56
|
},
|
|
61
57
|
"peerDependencies": {
|
|
62
58
|
"@xylabs/sdk-js": "^5",
|
|
@@ -65,4 +61,4 @@
|
|
|
65
61
|
"publishConfig": {
|
|
66
62
|
"access": "public"
|
|
67
63
|
}
|
|
68
|
-
}
|
|
64
|
+
}
|
package/src/Config/Config.ts
DELETED
|
@@ -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)
|
package/src/Config/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Config.ts'
|
package/src/Payload/BigInt.ts
DELETED
|
@@ -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>
|
package/src/Payload/Number.ts
DELETED
package/src/Payload/Range.ts
DELETED
|
@@ -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'
|
package/src/Payload/index.ts
DELETED
package/src/index.ts
DELETED