@xyo-network/diviner-address-chain-model 3.6.9 → 3.6.11

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.
@@ -1,7 +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;
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
7
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +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
+ {"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"}
@@ -1,16 +1,15 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/Schema.ts
5
2
  var AddressChainSchema = "network.xyo.diviner.address.chain";
6
3
  var AddressChainDivinerConfigSchema = `${AddressChainSchema}.config`;
7
4
  var AddressChainQuerySchema = `${AddressChainSchema}.query`;
8
5
 
9
6
  // src/Payload.ts
10
- var isAddressChainPayload = /* @__PURE__ */ __name((x) => x?.schema === AddressChainSchema, "isAddressChainPayload");
7
+ var isAddressChainPayload = (x) => x?.schema === AddressChainSchema;
11
8
 
12
9
  // src/Query.ts
13
- import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
10
+ import {
11
+ isPayloadOfSchemaType
12
+ } from "@xyo-network/payload-model";
14
13
  var isAddressChainQueryPayload = isPayloadOfSchemaType(AddressChainQuerySchema);
15
14
  export {
16
15
  AddressChainDivinerConfigSchema,
@@ -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 {\n isPayloadOfSchemaType,\n type PayloadFindFilter, type Query,\n} 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":";;;;AACO,IAAMA,qBAAyC;AAG/C,IAAMC,kCAAmE,GAAGD,kBAAAA;AAG5E,IAAME,0BAAmD,GAAGF,kBAAAA;;;ACF5D,IAAMG,wBAAwB,wBAACC,MAAiDA,GAAGC,WAAWC,oBAAhE;;;ACLrC,SACEC,6BAEK;AAKA,IAAMC,6BAA6BC,sBAAgDC,uBAAAA;","names":["AddressChainSchema","AddressChainDivinerConfigSchema","AddressChainQuerySchema","isAddressChainPayload","x","schema","AddressChainSchema","isPayloadOfSchemaType","isAddressChainQueryPayload","isPayloadOfSchemaType","AddressChainQuerySchema"]}
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 {\n isPayloadOfSchemaType,\n type PayloadFindFilter, type Query,\n} 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;;;ACLrG;AAAA,EACE;AAAA,OAEK;AAKA,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.6.9",
3
+ "version": "3.6.11",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,15 +29,15 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/hex": "^4.4.34",
33
- "@xyo-network/diviner-model": "^3.6.9",
34
- "@xyo-network/module-model": "^3.6.9",
35
- "@xyo-network/payload-model": "^3.6.9"
32
+ "@xylabs/hex": "^4.5.1",
33
+ "@xyo-network/diviner-model": "^3.6.11",
34
+ "@xyo-network/module-model": "^3.6.11",
35
+ "@xyo-network/payload-model": "^3.6.11"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@xylabs/ts-scripts-yarn3": "^4.2.6",
39
39
  "@xylabs/tsconfig": "^4.2.6",
40
- "typescript": "^5.7.2"
40
+ "typescript": "^5.7.3"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
package/src/Schema.ts CHANGED
@@ -1,8 +1,8 @@
1
- export type AddressChainSchema = 'network.xyo.diviner.address.chain'
2
- export const AddressChainSchema: AddressChainSchema = 'network.xyo.diviner.address.chain'
1
+ export const AddressChainSchema = 'network.xyo.diviner.address.chain' as const
2
+ export type AddressChainSchema = typeof AddressChainSchema
3
3
 
4
- export type AddressChainDivinerConfigSchema = `${AddressChainSchema}.config`
5
- export const AddressChainDivinerConfigSchema: AddressChainDivinerConfigSchema = `${AddressChainSchema}.config`
4
+ export const AddressChainDivinerConfigSchema = `${AddressChainSchema}.config` as const
5
+ export type AddressChainDivinerConfigSchema = typeof AddressChainDivinerConfigSchema
6
6
 
7
- export type AddressChainQuerySchema = `${AddressChainSchema}.query`
8
- export const AddressChainQuerySchema: AddressChainQuerySchema = `${AddressChainSchema}.query`
7
+ export const AddressChainQuerySchema = `${AddressChainSchema}.query` as const
8
+ export type AddressChainQuerySchema = typeof AddressChainQuerySchema