@xyo-network/diviner-payload-model 3.0.1 → 3.0.3
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/neutral/index.mjs.map +1 -1
- package/package.json +10 -10
- package/src/Config.ts +3 -3
- package/src/Params.ts +3 -3
- package/src/Predicate.ts +4 -4
- package/src/Query.ts +3 -3
- package/xy.config.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Query.ts"],"sourcesContent":["export type PayloadDivinerSchema = 'network.xyo.diviner.payload'\nexport const PayloadDivinerSchema: PayloadDivinerSchema = 'network.xyo.diviner.payload'\n","import { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { DivinerConfig } from '@xyo-network/diviner-model'\nimport { Schema } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport type PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\nexport const PayloadDivinerConfigSchema: PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\n\nexport type PayloadDivinerConfig<TAdditional extends EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<\n WithAdditional<\n {\n indexBatchSize?: number\n maxIndexSize?: number\n },\n TAdditional\n >,\n TSchema extends void ? PayloadDivinerConfigSchema : TSchema\n>\n","import { EmptyObject } from '@xylabs/object'\nimport { Payload, Query } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerPredicate } from './Predicate.ts'\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport type PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\nexport const PayloadDivinerQuerySchema: PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\n\nexport type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject, O = number> = Query<\n { schema: PayloadDivinerQuerySchema } & PayloadDivinerPredicate<T, O>\n>\nexport const isPayloadDivinerQueryPayload = <T extends EmptyObject = EmptyObject>(x?: Payload | null): x is PayloadDivinerQueryPayload<T> =>\n x?.schema === PayloadDivinerQuerySchema\n"],"mappings":";;;;AACO,IAAMA,uBAA6C;;;ACMnD,IAAMC,6BAAyD,GAAGC,oBAAAA;;;ACAlE,IAAMC,4BAAuD,GAAGC,oBAAAA;AAKhE,IAAMC,+BAA+B,wBAAsCC,MAChFA,GAAGC,WAAWJ,2BAD4B;","names":["PayloadDivinerSchema","PayloadDivinerConfigSchema","PayloadDivinerSchema","PayloadDivinerQuerySchema","PayloadDivinerSchema","isPayloadDivinerQueryPayload","x","schema"]}
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Query.ts"],"sourcesContent":["export type PayloadDivinerSchema = 'network.xyo.diviner.payload'\nexport const PayloadDivinerSchema: PayloadDivinerSchema = 'network.xyo.diviner.payload'\n","import type { EmptyObject, WithAdditional } from '@xylabs/object'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/payload-model'\n\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport type PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\nexport const PayloadDivinerConfigSchema: PayloadDivinerConfigSchema = `${PayloadDivinerSchema}.config`\n\nexport type PayloadDivinerConfig<TAdditional extends EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<\n WithAdditional<\n {\n indexBatchSize?: number\n maxIndexSize?: number\n },\n TAdditional\n >,\n TSchema extends void ? PayloadDivinerConfigSchema : TSchema\n>\n","import type { EmptyObject } from '@xylabs/object'\nimport type { Payload, Query } from '@xyo-network/payload-model'\n\nimport type { PayloadDivinerPredicate } from './Predicate.ts'\nimport { PayloadDivinerSchema } from './Schema.ts'\n\nexport type PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\nexport const PayloadDivinerQuerySchema: PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`\n\nexport type PayloadDivinerQueryPayload<T extends EmptyObject = EmptyObject, O = number> = Query<\n { schema: PayloadDivinerQuerySchema } & PayloadDivinerPredicate<T, O>\n>\nexport const isPayloadDivinerQueryPayload = <T extends EmptyObject = EmptyObject>(x?: Payload | null): x is PayloadDivinerQueryPayload<T> =>\n x?.schema === PayloadDivinerQuerySchema\n"],"mappings":";;;;AACO,IAAMA,uBAA6C;;;ACMnD,IAAMC,6BAAyD,GAAGC,oBAAAA;;;ACAlE,IAAMC,4BAAuD,GAAGC,oBAAAA;AAKhE,IAAMC,+BAA+B,wBAAsCC,MAChFA,GAAGC,WAAWJ,2BAD4B;","names":["PayloadDivinerSchema","PayloadDivinerConfigSchema","PayloadDivinerSchema","PayloadDivinerQuerySchema","PayloadDivinerSchema","isPayloadDivinerQueryPayload","x","schema"]}
|
package/package.json
CHANGED
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
},
|
|
8
8
|
"bugs": {
|
|
9
9
|
"email": "support@xyo.network",
|
|
10
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
10
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/hex": "^4.0.
|
|
14
|
-
"@xylabs/object": "^4.0.
|
|
15
|
-
"@xyo-network/diviner-model": "^3.0.
|
|
16
|
-
"@xyo-network/module-model": "^3.0.
|
|
17
|
-
"@xyo-network/payload-model": "^3.0.
|
|
13
|
+
"@xylabs/hex": "^4.0.2",
|
|
14
|
+
"@xylabs/object": "^4.0.2",
|
|
15
|
+
"@xyo-network/diviner-model": "^3.0.3",
|
|
16
|
+
"@xyo-network/module-model": "^3.0.3",
|
|
17
|
+
"@xyo-network/payload-model": "^3.0.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.
|
|
21
|
-
"@xylabs/tsconfig": "^4.0.0-rc.
|
|
20
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
|
|
21
|
+
"@xylabs/tsconfig": "^4.0.0-rc.20",
|
|
22
22
|
"typescript": "^5.5.4"
|
|
23
23
|
},
|
|
24
24
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
|
41
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
41
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
|
-
"version": "3.0.
|
|
44
|
+
"version": "3.0.3",
|
|
45
45
|
"type": "module"
|
|
46
46
|
}
|
package/src/Config.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EmptyObject, WithAdditional } from '@xylabs/object'
|
|
2
|
-
import { DivinerConfig } from '@xyo-network/diviner-model'
|
|
3
|
-
import { Schema } from '@xyo-network/payload-model'
|
|
1
|
+
import type { EmptyObject, WithAdditional } from '@xylabs/object'
|
|
2
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
3
|
+
import type { Schema } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
5
|
import { PayloadDivinerSchema } from './Schema.ts'
|
|
6
6
|
|
package/src/Params.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
-
import { AnyConfigSchema } from '@xyo-network/module-model'
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { PayloadDivinerConfig } from './Config.ts'
|
|
4
|
+
import type { PayloadDivinerConfig } from './Config.ts'
|
|
5
5
|
|
|
6
6
|
export type PayloadDivinerParams<T extends AnyConfigSchema<PayloadDivinerConfig> | void = void> = DivinerParams<
|
|
7
7
|
T extends AnyConfigSchema<PayloadDivinerConfig> ? T : AnyConfigSchema<PayloadDivinerConfig>
|
package/src/Predicate.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Address, Hash } from '@xylabs/hex'
|
|
2
|
-
import { EmptyObject } from '@xylabs/object'
|
|
3
|
-
import { Schema } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Address, Hash } from '@xylabs/hex'
|
|
2
|
+
import type { EmptyObject } from '@xylabs/object'
|
|
3
|
+
import type { Schema } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
|
-
import { Order } from './Order.ts'
|
|
5
|
+
import type { Order } from './Order.ts'
|
|
6
6
|
|
|
7
7
|
/* Note: Added Omit to PayloadFindDiviner for offset until we support hash based offsets */
|
|
8
8
|
|
package/src/Query.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EmptyObject } from '@xylabs/object'
|
|
2
|
-
import { Payload, Query } from '@xyo-network/payload-model'
|
|
1
|
+
import type { EmptyObject } from '@xylabs/object'
|
|
2
|
+
import type { Payload, Query } from '@xyo-network/payload-model'
|
|
3
3
|
|
|
4
|
-
import { PayloadDivinerPredicate } from './Predicate.ts'
|
|
4
|
+
import type { PayloadDivinerPredicate } from './Predicate.ts'
|
|
5
5
|
import { PayloadDivinerSchema } from './Schema.ts'
|
|
6
6
|
|
|
7
7
|
export type PayloadDivinerQuerySchema = `${PayloadDivinerSchema}.query`
|
package/xy.config.ts
CHANGED