@xyo-network/diviner-address-chain-model 3.9.17 → 3.9.19
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/Config.d.ts +10 -0
- package/dist/neutral/Config.d.ts.map +1 -0
- package/dist/neutral/Params.d.ts +5 -0
- package/dist/neutral/Params.d.ts.map +1 -0
- package/dist/neutral/Payload.d.ts +7 -0
- package/dist/neutral/Payload.d.ts.map +1 -0
- package/dist/neutral/Query.d.ts +7 -0
- package/dist/neutral/Query.d.ts.map +1 -0
- package/dist/neutral/Schema.d.ts +7 -0
- package/dist/neutral/Schema.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +6 -32
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/neutral/index.mjs +1 -3
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/Query.ts +2 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Address, Hash } from '@xylabs/hex';
|
|
2
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
+
import type { AddressChainDivinerConfigSchema } from './Schema.ts';
|
|
4
|
+
export type AddressChainDivinerConfig = DivinerConfig<{
|
|
5
|
+
address?: Address;
|
|
6
|
+
maxResults?: number;
|
|
7
|
+
schema: AddressChainDivinerConfigSchema;
|
|
8
|
+
startHash?: Hash;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,aAAa,CAAA;AAElE,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC;IACpD,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,+BAA+B,CAAA;IACvC,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
+
import type { AddressChainDivinerConfig } from './Config.ts';
|
|
4
|
+
export type AddressChainDivinerParams = DivinerParams<AnyConfigSchema<AddressChainDivinerConfig>>;
|
|
5
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAE5D,MAAM,MAAM,yBAAyB,GAAG,aAAa,CAAC,eAAe,CAAC,yBAAyB,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { AddressChainSchema } from './Schema.ts';
|
|
3
|
+
export type AddressChainPayload = Payload<{
|
|
4
|
+
schema: AddressChainSchema;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const isAddressChainPayload: (x?: Payload | null) => x is AddressChainPayload;
|
|
7
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC;IAAE,MAAM,EAAE,kBAAkB,CAAA;CAAE,CAAC,CAAA;AACzE,eAAO,MAAM,qBAAqB,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,mBAAuD,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayloadFindFilter, Query } from '@xyo-network/payload-model';
|
|
2
|
+
import { AddressChainQuerySchema } from './Schema.ts';
|
|
3
|
+
export type AddressChainQueryPayload = Query<{
|
|
4
|
+
schema: AddressChainQuerySchema;
|
|
5
|
+
} & Omit<PayloadFindFilter, 'schema'>>;
|
|
6
|
+
export declare const isAddressChainQueryPayload: (x?: unknown | null) => x is AddressChainQueryPayload;
|
|
7
|
+
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAG1E,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,uBAAuB,CAAA;CAAE,GAAG,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAA;AACrH,eAAO,MAAM,0BAA0B,uDAA2E,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const AddressChainSchema: "network.xyo.diviner.address.chain";
|
|
2
|
+
export type AddressChainSchema = typeof AddressChainSchema;
|
|
3
|
+
export declare const AddressChainDivinerConfigSchema: "network.xyo.diviner.address.chain.config";
|
|
4
|
+
export type AddressChainDivinerConfigSchema = typeof AddressChainDivinerConfigSchema;
|
|
5
|
+
export declare const AddressChainQuerySchema: "network.xyo.diviner.address.chain.query";
|
|
6
|
+
export type AddressChainQuerySchema = typeof AddressChainQuerySchema;
|
|
7
|
+
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAG,mCAA4C,CAAA;AAC9E,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA;AAE1D,eAAO,MAAM,+BAA+B,4CAA0C,CAAA;AACtF,MAAM,MAAM,+BAA+B,GAAG,OAAO,+BAA+B,CAAA;AAEpF,eAAO,MAAM,uBAAuB,2CAAyC,CAAA;AAC7E,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type AddressChainSchema = typeof AddressChainSchema;
|
|
8
|
-
declare const AddressChainDivinerConfigSchema: "network.xyo.diviner.address.chain.config";
|
|
9
|
-
type AddressChainDivinerConfigSchema = typeof AddressChainDivinerConfigSchema;
|
|
10
|
-
declare const AddressChainQuerySchema: "network.xyo.diviner.address.chain.query";
|
|
11
|
-
type AddressChainQuerySchema = typeof AddressChainQuerySchema;
|
|
12
|
-
|
|
13
|
-
type AddressChainDivinerConfig = DivinerConfig<{
|
|
14
|
-
address?: Address;
|
|
15
|
-
maxResults?: number;
|
|
16
|
-
schema: AddressChainDivinerConfigSchema;
|
|
17
|
-
startHash?: Hash;
|
|
18
|
-
}>;
|
|
19
|
-
|
|
20
|
-
type AddressChainDivinerParams = DivinerParams<AnyConfigSchema<AddressChainDivinerConfig>>;
|
|
21
|
-
|
|
22
|
-
type AddressChainPayload = Payload<{
|
|
23
|
-
schema: AddressChainSchema;
|
|
24
|
-
}>;
|
|
25
|
-
declare const isAddressChainPayload: (x?: Payload | null) => x is AddressChainPayload;
|
|
26
|
-
|
|
27
|
-
type AddressChainQueryPayload = Query<{
|
|
28
|
-
schema: AddressChainQuerySchema;
|
|
29
|
-
} & Omit<PayloadFindFilter, 'schema'>>;
|
|
30
|
-
declare const isAddressChainQueryPayload: (x?: unknown | null) => x is AddressChainQueryPayload;
|
|
31
|
-
|
|
32
|
-
export { type AddressChainDivinerConfig, AddressChainDivinerConfigSchema, type AddressChainDivinerParams, type AddressChainPayload, type AddressChainQueryPayload, AddressChainQuerySchema, AddressChainSchema, isAddressChainPayload, isAddressChainQueryPayload };
|
|
1
|
+
export * from './Config.ts';
|
|
2
|
+
export * from './Params.ts';
|
|
3
|
+
export * from './Payload.ts';
|
|
4
|
+
export * from './Query.ts';
|
|
5
|
+
export * from './Schema.ts';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -7,9 +7,7 @@ var AddressChainQuerySchema = `${AddressChainSchema}.query`;
|
|
|
7
7
|
var isAddressChainPayload = (x) => x?.schema === AddressChainSchema;
|
|
8
8
|
|
|
9
9
|
// src/Query.ts
|
|
10
|
-
import {
|
|
11
|
-
isPayloadOfSchemaType
|
|
12
|
-
} from "@xyo-network/payload-model";
|
|
10
|
+
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
13
11
|
var isAddressChainQueryPayload = isPayloadOfSchemaType(AddressChainQuerySchema);
|
|
14
12
|
export {
|
|
15
13
|
AddressChainDivinerConfigSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Schema.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["export const AddressChainSchema = 'network.xyo.diviner.address.chain' as const\nexport type AddressChainSchema = typeof AddressChainSchema\n\nexport const AddressChainDivinerConfigSchema = `${AddressChainSchema}.config` as const\nexport type AddressChainDivinerConfigSchema = typeof AddressChainDivinerConfigSchema\n\nexport const AddressChainQuerySchema = `${AddressChainSchema}.query` as const\nexport type AddressChainQuerySchema = typeof AddressChainQuerySchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { AddressChainSchema } from './Schema.ts'\n\nexport type AddressChainPayload = Payload<{ schema: AddressChainSchema }>\nexport const isAddressChainPayload = (x?: Payload | null): x is AddressChainPayload => x?.schema === AddressChainSchema\n","import
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["export const AddressChainSchema = 'network.xyo.diviner.address.chain' as const\nexport type AddressChainSchema = typeof AddressChainSchema\n\nexport const AddressChainDivinerConfigSchema = `${AddressChainSchema}.config` as const\nexport type AddressChainDivinerConfigSchema = typeof AddressChainDivinerConfigSchema\n\nexport const AddressChainQuerySchema = `${AddressChainSchema}.query` as const\nexport type AddressChainQuerySchema = typeof AddressChainQuerySchema\n","import type { Payload } from '@xyo-network/payload-model'\n\nimport { AddressChainSchema } from './Schema.ts'\n\nexport type AddressChainPayload = Payload<{ schema: AddressChainSchema }>\nexport const isAddressChainPayload = (x?: Payload | null): x is AddressChainPayload => x?.schema === AddressChainSchema\n","import type { PayloadFindFilter, Query } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { AddressChainQuerySchema } from './Schema.ts'\n\nexport type AddressChainQueryPayload = Query<{ schema: AddressChainQuerySchema } & Omit<PayloadFindFilter, 'schema'>>\nexport const isAddressChainQueryPayload = isPayloadOfSchemaType<AddressChainQueryPayload>(AddressChainQuerySchema)\n"],"mappings":";AAAO,IAAM,qBAAqB;AAG3B,IAAM,kCAAkC,GAAG,kBAAkB;AAG7D,IAAM,0BAA0B,GAAG,kBAAkB;;;ACDrD,IAAM,wBAAwB,CAAC,MAAiD,GAAG,WAAW;;;ACJrG,SAAS,6BAA6B;AAK/B,IAAM,6BAA6B,sBAAgD,uBAAuB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-address-chain-model",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.19",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@xylabs/hex": "^4.5.1",
|
|
33
|
-
"@xyo-network/diviner-model": "^3.9.
|
|
34
|
-
"@xyo-network/module-model": "^3.9.
|
|
35
|
-
"@xyo-network/payload-model": "^3.9.
|
|
33
|
+
"@xyo-network/diviner-model": "^3.9.19",
|
|
34
|
+
"@xyo-network/module-model": "^3.9.19",
|
|
35
|
+
"@xyo-network/payload-model": "^3.9.19"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
39
|
-
"@xylabs/tsconfig": "^5.0.
|
|
40
|
-
"typescript": "^5.
|
|
38
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
39
|
+
"@xylabs/tsconfig": "^5.0.39",
|
|
40
|
+
"typescript": "^5.8.2"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
package/src/Query.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type PayloadFindFilter, type Query,
|
|
4
|
-
} from '@xyo-network/payload-model'
|
|
1
|
+
import type { PayloadFindFilter, Query } from '@xyo-network/payload-model'
|
|
2
|
+
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
5
3
|
|
|
6
4
|
import { AddressChainQuerySchema } from './Schema.ts'
|
|
7
5
|
|