@xyo-network/diviner-address-chain-model 3.0.7 → 3.0.8

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.
@@ -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,OAAQ,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,mBAAuD,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { Payload, PayloadFindFilter, Query } from '@xyo-network/payload-model';
2
+ import { AddressChainQuerySchema } from './Schema.ts';
3
+ export type AddressChainQueryPayload = Query<{
4
+ schema: AddressChainQuerySchema;
5
+ } & PayloadFindFilter>;
6
+ export declare const isAddressChainQueryPayload: (x?: Payload | 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,EACV,OAAO,EAAE,iBAAiB,EAAE,KAAK,EAClC,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,uBAAuB,CAAA;CAAE,GAAG,iBAAiB,CAAC,CAAA;AACrG,eAAO,MAAM,0BAA0B,OAAQ,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,wBAAiE,CAAA"}
@@ -0,0 +1,7 @@
1
+ export type AddressChainSchema = 'network.xyo.diviner.address.chain';
2
+ export declare const AddressChainSchema: AddressChainSchema;
3
+ export type AddressChainDivinerConfigSchema = `${AddressChainSchema}.config`;
4
+ export declare const AddressChainDivinerConfigSchema: AddressChainDivinerConfigSchema;
5
+ export type AddressChainQuerySchema = `${AddressChainSchema}.query`;
6
+ export declare const AddressChainQuerySchema: 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,MAAM,MAAM,kBAAkB,GAAG,mCAAmC,CAAA;AACpE,eAAO,MAAM,kBAAkB,EAAE,kBAAwD,CAAA;AAEzF,MAAM,MAAM,+BAA+B,GAAG,GAAG,kBAAkB,SAAS,CAAA;AAC5E,eAAO,MAAM,+BAA+B,EAAE,+BAAgE,CAAA;AAE9G,MAAM,MAAM,uBAAuB,GAAG,GAAG,kBAAkB,QAAQ,CAAA;AACnE,eAAO,MAAM,uBAAuB,EAAE,uBAAuD,CAAA"}
@@ -1,32 +1,6 @@
1
- import { Address, Hash } from '@xylabs/hex';
2
- import { DivinerConfig, DivinerParams } from '@xyo-network/diviner-model';
3
- import { AnyConfigSchema } from '@xyo-network/module-model';
4
- import { Payload, Query, PayloadFindFilter } from '@xyo-network/payload-model';
5
-
6
- type AddressChainSchema = 'network.xyo.diviner.address.chain';
7
- declare const AddressChainSchema: AddressChainSchema;
8
- type AddressChainDivinerConfigSchema = `${AddressChainSchema}.config`;
9
- declare const AddressChainDivinerConfigSchema: AddressChainDivinerConfigSchema;
10
- type AddressChainQuerySchema = `${AddressChainSchema}.query`;
11
- declare const AddressChainQuerySchema: 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
- } & PayloadFindFilter>;
30
- declare const isAddressChainQueryPayload: (x?: Payload | 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"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["export type AddressChainSchema = 'network.xyo.diviner.address.chain'\nexport const AddressChainSchema: AddressChainSchema = 'network.xyo.diviner.address.chain'\n\nexport type AddressChainDivinerConfigSchema = `${AddressChainSchema}.config`\nexport const AddressChainDivinerConfigSchema: AddressChainDivinerConfigSchema = `${AddressChainSchema}.config`\n\nexport type AddressChainQuerySchema = `${AddressChainSchema}.query`\nexport const AddressChainQuerySchema: AddressChainQuerySchema = `${AddressChainSchema}.query`\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 { Payload, PayloadFindFilter, Query } from '@xyo-network/payload-model'\n\nimport { AddressChainQuerySchema } from './Schema.ts'\n\nexport type AddressChainQueryPayload = Query<{ schema: AddressChainQuerySchema } & PayloadFindFilter>\nexport const isAddressChainQueryPayload = (x?: Payload | null): x is AddressChainQueryPayload => x?.schema === AddressChainQuerySchema\n"],"mappings":";;;;AACO,IAAMA,qBAAyC;AAG/C,IAAMC,kCAAmE,GAAGD,kBAAAA;AAG5E,IAAME,0BAAmD,GAAGF,kBAAAA;;;ACF5D,IAAMG,wBAAwB,wBAACC,MAAiDA,GAAGC,WAAWC,oBAAhE;;;ACA9B,IAAMC,6BAA6B,wBAACC,MAAsDA,GAAGC,WAAWC,yBAArE;","names":["AddressChainSchema","AddressChainDivinerConfigSchema","AddressChainQuerySchema","isAddressChainPayload","x","schema","AddressChainSchema","isAddressChainQueryPayload","x","schema","AddressChainQuerySchema"]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Payload.ts","../../src/Query.ts"],"sourcesContent":["export type AddressChainSchema = 'network.xyo.diviner.address.chain'\nexport const AddressChainSchema: AddressChainSchema = 'network.xyo.diviner.address.chain'\n\nexport type AddressChainDivinerConfigSchema = `${AddressChainSchema}.config`\nexport const AddressChainDivinerConfigSchema: AddressChainDivinerConfigSchema = `${AddressChainSchema}.config`\n\nexport type AddressChainQuerySchema = `${AddressChainSchema}.query`\nexport const AddressChainQuerySchema: AddressChainQuerySchema = `${AddressChainSchema}.query`\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 {\n Payload, PayloadFindFilter, Query,\n} from '@xyo-network/payload-model'\n\nimport { AddressChainQuerySchema } from './Schema.ts'\n\nexport type AddressChainQueryPayload = Query<{ schema: AddressChainQuerySchema } & PayloadFindFilter>\nexport const isAddressChainQueryPayload = (x?: Payload | null): x is AddressChainQueryPayload => x?.schema === AddressChainQuerySchema\n"],"mappings":";;;;AACO,IAAMA,qBAAyC;AAG/C,IAAMC,kCAAmE,GAAGD,kBAAAA;AAG5E,IAAME,0BAAmD,GAAGF,kBAAAA;;;ACF5D,IAAMG,wBAAwB,wBAACC,MAAiDA,GAAGC,WAAWC,oBAAhE;;;ACE9B,IAAMC,6BAA6B,wBAACC,MAAsDA,GAAGC,WAAWC,yBAArE;","names":["AddressChainSchema","AddressChainDivinerConfigSchema","AddressChainQuerySchema","isAddressChainPayload","x","schema","AddressChainSchema","isAddressChainQueryPayload","x","schema","AddressChainQuerySchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-address-chain-model",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,14 +29,14 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/hex": "^4.0.2",
33
- "@xyo-network/diviner-model": "^3.0.7",
34
- "@xyo-network/module-model": "^3.0.7",
35
- "@xyo-network/payload-model": "^3.0.7"
32
+ "@xylabs/hex": "^4.0.3",
33
+ "@xyo-network/diviner-model": "^3.0.8",
34
+ "@xyo-network/module-model": "^3.0.8",
35
+ "@xyo-network/payload-model": "^3.0.8"
36
36
  },
37
37
  "devDependencies": {
38
- "@xylabs/ts-scripts-yarn3": "^4.0.0",
39
- "@xylabs/tsconfig": "^4.0.0",
38
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
39
+ "@xylabs/tsconfig": "^4.0.7",
40
40
  "typescript": "^5.5.4"
41
41
  },
42
42
  "publishConfig": {
package/src/Query.ts CHANGED
@@ -1,4 +1,6 @@
1
- import type { Payload, PayloadFindFilter, Query } from '@xyo-network/payload-model'
1
+ import type {
2
+ Payload, PayloadFindFilter, Query,
3
+ } from '@xyo-network/payload-model'
2
4
 
3
5
  import { AddressChainQuerySchema } from './Schema.ts'
4
6
 
package/xy.config.ts CHANGED
@@ -2,9 +2,7 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},
5
- neutral: {
6
- src: true,
7
- },
5
+ neutral: { src: true },
8
6
  node: {},
9
7
  },
10
8
  }