@xyo-network/diviner-hash-lease 2.94.7 → 2.94.9

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,4 +1,4 @@
1
- import { Payload } from '@xyo-network/payload-model';
1
+ import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
2
  export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
3
3
  export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
4
4
  export interface HashLeaseEstimateFields {
@@ -20,4 +20,22 @@ export interface HashLeaseEstimateFields {
20
20
  price: number;
21
21
  }
22
22
  export type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>;
23
+ /**
24
+ * Identity function for HashLeaseEstimate payload
25
+ */
26
+ export declare const isHashLeaseEstimate: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
27
+ schema: "network.xyo.hash.lease.estimate";
28
+ };
29
+ /**
30
+ * Identity function for HashLeaseEstimate payload with meta
31
+ */
32
+ export declare const isHashLeaseEstimateWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
33
+ schema: "network.xyo.hash.lease.estimate";
34
+ }>>;
35
+ /**
36
+ * Identity function for HashLeaseEstimate payload with sources
37
+ */
38
+ export declare const isHashLeaseEstimateWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
39
+ schema: "network.xyo.hash.lease.estimate";
40
+ }>>;
23
41
  //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA"}
1
+ {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;CAAoE,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,2BAA2B;;GAAsF,CAAA;AAC9H;;GAEG;AACH,eAAO,MAAM,8BAA8B;;GAA4F,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Payload } from '@xyo-network/payload-model';
1
+ import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
2
  export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
3
3
  export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
4
4
  export interface HashLeaseEstimateFields {
@@ -20,4 +20,22 @@ export interface HashLeaseEstimateFields {
20
20
  price: number;
21
21
  }
22
22
  export type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>;
23
+ /**
24
+ * Identity function for HashLeaseEstimate payload
25
+ */
26
+ export declare const isHashLeaseEstimate: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
27
+ schema: "network.xyo.hash.lease.estimate";
28
+ };
29
+ /**
30
+ * Identity function for HashLeaseEstimate payload with meta
31
+ */
32
+ export declare const isHashLeaseEstimateWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
33
+ schema: "network.xyo.hash.lease.estimate";
34
+ }>>;
35
+ /**
36
+ * Identity function for HashLeaseEstimate payload with sources
37
+ */
38
+ export declare const isHashLeaseEstimateWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
39
+ schema: "network.xyo.hash.lease.estimate";
40
+ }>>;
23
41
  //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA"}
1
+ {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;CAAoE,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,2BAA2B;;GAAsF,CAAA;AAC9H;;GAEG;AACH,eAAO,MAAM,8BAA8B;;GAA4F,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Payload } from '@xyo-network/payload-model';
1
+ import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
2
  export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
3
3
  export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
4
4
  export interface HashLeaseEstimateFields {
@@ -20,4 +20,22 @@ export interface HashLeaseEstimateFields {
20
20
  price: number;
21
21
  }
22
22
  export type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>;
23
+ /**
24
+ * Identity function for HashLeaseEstimate payload
25
+ */
26
+ export declare const isHashLeaseEstimate: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
27
+ schema: "network.xyo.hash.lease.estimate";
28
+ };
29
+ /**
30
+ * Identity function for HashLeaseEstimate payload with meta
31
+ */
32
+ export declare const isHashLeaseEstimateWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
33
+ schema: "network.xyo.hash.lease.estimate";
34
+ }>>;
35
+ /**
36
+ * Identity function for HashLeaseEstimate payload with sources
37
+ */
38
+ export declare const isHashLeaseEstimateWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
39
+ schema: "network.xyo.hash.lease.estimate";
40
+ }>>;
23
41
  //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA"}
1
+ {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;CAAoE,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,2BAA2B;;GAAsF,CAAA;AAC9H;;GAEG;AACH,eAAO,MAAM,8BAA8B;;GAA4F,CAAA"}
@@ -24,7 +24,10 @@ __export(src_exports, {
24
24
  HashLeaseEstimateDiviner: () => HashLeaseEstimateDiviner,
25
25
  HashLeaseEstimateDivinerConfigSchema: () => HashLeaseEstimateDivinerConfigSchema,
26
26
  HashLeaseEstimateSchema: () => HashLeaseEstimateSchema,
27
- HashLeaseSchema: () => HashLeaseSchema
27
+ HashLeaseSchema: () => HashLeaseSchema,
28
+ isHashLeaseEstimate: () => isHashLeaseEstimate,
29
+ isHashLeaseEstimateWithMeta: () => isHashLeaseEstimateWithMeta,
30
+ isHashLeaseEstimateWithSources: () => isHashLeaseEstimateWithSources
28
31
  });
29
32
  module.exports = __toCommonJS(src_exports);
30
33
 
@@ -39,7 +42,11 @@ var import_module_model = require("@xyo-network/module-model");
39
42
  var HashLeaseSchema = "network.xyo.hash.lease";
40
43
 
41
44
  // src/Payload/HashLeaseEstimate.ts
45
+ var import_payload_model = require("@xyo-network/payload-model");
42
46
  var HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
47
+ var isHashLeaseEstimate = (0, import_payload_model.isPayloadOfSchemaType)(HashLeaseEstimateSchema);
48
+ var isHashLeaseEstimateWithMeta = (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(HashLeaseEstimateSchema);
49
+ var isHashLeaseEstimateWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)(HashLeaseEstimateSchema);
43
50
 
44
51
  // src/Diviner.ts
45
52
  function _ts_decorate(decorators, target, key, desc) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["export * from './Config'\nexport * from './Diviner'\nexport * from './Params'\nexport * from './Payload'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config'\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config'\nimport { HashLeaseEstimateDivinerParams } from './Params'\nimport { HashLeaseEstimate, HashLeaseEstimateSchema } from './Payload'\n\n@creatableModule()\nexport class HashLeaseEstimateDiviner<\n TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams,\n TIn extends Payload = Payload,\n TOut extends HashLeaseEstimate | Payload = HashLeaseEstimate | Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override configSchemas = [HashLeaseEstimateDivinerConfigSchema]\n static override targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease'\nexport type HashLeaseSchema = typeof HashLeaseSchema\n\nexport type HashLease = Payload<\n {\n /**\n * The desired duration of the lease\n */\n duration: number\n },\n HashLeaseSchema\n>\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'\nexport type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema\n\nexport interface HashLeaseEstimateFields {\n /**\n * The currency of the price\n */\n currency: string\n /**\n * When the lease ends\n */\n exp: number\n /**\n * When the lease begins\n */\n nbf: number\n /**\n * The estimated price of the lease\n */\n price: number\n}\n\nexport type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACEO,IAAMA,uCAAuC;;;ACFpD,8BAAgC;AAEhC,0BAAgC;;;ACAzB,IAAMC,kBAAkB;;;ACAxB,IAAMC,0BAA0B;;;;;;;;;;;;;;AFQhC,IAAMC,2BAAN,cASGC,wCAAAA;SAAAA;;;EACR,OAAgBC,gBAAgB;IAACC;;EACjC,OAAgBC,eAAeC;EAE/B,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAhBaT,2BAAAA,aAAAA;MADZU,qCAAAA;GACYV,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","HashLeaseSchema","HashLeaseEstimateSchema","HashLeaseEstimateDiviner","AbstractDiviner","configSchemas","HashLeaseEstimateDivinerConfigSchema","targetSchema","HashLeaseEstimateSchema","divineHandler","_payloads","Promise","resolve","creatableModule"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["export * from './Config'\nexport * from './Diviner'\nexport * from './Params'\nexport * from './Payload'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config'\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config'\nimport { HashLeaseEstimateDivinerParams } from './Params'\nimport { HashLeaseEstimate, HashLeaseEstimateSchema } from './Payload'\n\n@creatableModule()\nexport class HashLeaseEstimateDiviner<\n TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams,\n TIn extends Payload = Payload,\n TOut extends HashLeaseEstimate | Payload = HashLeaseEstimate | Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override configSchemas = [HashLeaseEstimateDivinerConfigSchema]\n static override targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease'\nexport type HashLeaseSchema = typeof HashLeaseSchema\n\nexport type HashLease = Payload<\n {\n /**\n * The desired duration of the lease\n */\n duration: number\n },\n HashLeaseSchema\n>\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'\nexport type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema\n\nexport interface HashLeaseEstimateFields {\n /**\n * The currency of the price\n */\n currency: string\n /**\n * When the lease ends\n */\n exp: number\n /**\n * When the lease begins\n */\n nbf: number\n /**\n * The estimated price of the lease\n */\n price: number\n}\n\nexport type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>\n\n/**\n * Identity function for HashLeaseEstimate payload\n */\nexport const isHashLeaseEstimate = isPayloadOfSchemaType<HashLeaseEstimate>(HashLeaseEstimateSchema)\n\n/**\n * Identity function for HashLeaseEstimate payload with meta\n */\nexport const isHashLeaseEstimateWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<HashLeaseEstimate>>(HashLeaseEstimateSchema)\n/**\n * Identity function for HashLeaseEstimate payload with sources\n */\nexport const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<WithSources<HashLeaseEstimate>>(HashLeaseEstimateSchema)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACEO,IAAMA,uCAAuC;;;ACFpD,8BAAgC;AAEhC,0BAAgC;;;ACAzB,IAAMC,kBAAkB;;;ACF/B,2BAOO;AAEA,IAAMC,0BAA0B;AA2BhC,IAAMC,0BAAsBC,4CAAyCF,uBAAAA;AAKrE,IAAMG,kCAA8BC,oDAA2DJ,uBAAAA;AAI/F,IAAMK,qCAAiCC,uDAAiEN,uBAAAA;;;;;;;;;;;;;;AFnCxG,IAAMO,2BAAN,cASGC,wCAAAA;SAAAA;;;EACR,OAAgBC,gBAAgB;IAACC;;EACjC,OAAgBC,eAAeC;EAE/B,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAhBaT,2BAAAA,aAAAA;MADZU,qCAAAA;GACYV,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","HashLeaseSchema","HashLeaseEstimateSchema","isHashLeaseEstimate","isPayloadOfSchemaType","isHashLeaseEstimateWithMeta","isPayloadOfSchemaTypeWithMeta","isHashLeaseEstimateWithSources","isPayloadOfSchemaTypeWithSources","HashLeaseEstimateDiviner","AbstractDiviner","configSchemas","HashLeaseEstimateDivinerConfigSchema","targetSchema","HashLeaseEstimateSchema","divineHandler","_payloads","Promise","resolve","creatableModule"]}
@@ -12,7 +12,11 @@ import { creatableModule } from "@xyo-network/module-model";
12
12
  var HashLeaseSchema = "network.xyo.hash.lease";
13
13
 
14
14
  // src/Payload/HashLeaseEstimate.ts
15
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
15
16
  var HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
17
+ var isHashLeaseEstimate = isPayloadOfSchemaType(HashLeaseEstimateSchema);
18
+ var isHashLeaseEstimateWithMeta = isPayloadOfSchemaTypeWithMeta(HashLeaseEstimateSchema);
19
+ var isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources(HashLeaseEstimateSchema);
16
20
 
17
21
  // src/Diviner.ts
18
22
  function _ts_decorate(decorators, target, key, desc) {
@@ -45,6 +49,9 @@ export {
45
49
  HashLeaseEstimateDiviner,
46
50
  HashLeaseEstimateDivinerConfigSchema,
47
51
  HashLeaseEstimateSchema,
48
- HashLeaseSchema
52
+ HashLeaseSchema,
53
+ isHashLeaseEstimate,
54
+ isHashLeaseEstimateWithMeta,
55
+ isHashLeaseEstimateWithSources
49
56
  };
50
57
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["import { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config'\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config'\nimport { HashLeaseEstimateDivinerParams } from './Params'\nimport { HashLeaseEstimate, HashLeaseEstimateSchema } from './Payload'\n\n@creatableModule()\nexport class HashLeaseEstimateDiviner<\n TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams,\n TIn extends Payload = Payload,\n TOut extends HashLeaseEstimate | Payload = HashLeaseEstimate | Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override configSchemas = [HashLeaseEstimateDivinerConfigSchema]\n static override targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease'\nexport type HashLeaseSchema = typeof HashLeaseSchema\n\nexport type HashLease = Payload<\n {\n /**\n * The desired duration of the lease\n */\n duration: number\n },\n HashLeaseSchema\n>\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'\nexport type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema\n\nexport interface HashLeaseEstimateFields {\n /**\n * The currency of the price\n */\n currency: string\n /**\n * When the lease ends\n */\n exp: number\n /**\n * When the lease begins\n */\n nbf: number\n /**\n * The estimated price of the lease\n */\n price: number\n}\n\nexport type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>\n"],"mappings":";;;;AAEO,IAAMA,uCAAuC;;;ACFpD,SAASC,uBAAuB;AAEhC,SAASC,uBAAuB;;;ACAzB,IAAMC,kBAAkB;;;ACAxB,IAAMC,0BAA0B;;;;;;;;;;;;;;AFQhC,IAAMC,2BAAN,cASGC,gBAAAA;SAAAA;;;EACR,OAAgBC,gBAAgB;IAACC;;EACjC,OAAgBC,eAAeC;EAE/B,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAhBaT,2BAAAA,aAAAA;EADZU,gBAAAA;GACYV,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","AbstractDiviner","creatableModule","HashLeaseSchema","HashLeaseEstimateSchema","HashLeaseEstimateDiviner","AbstractDiviner","configSchemas","HashLeaseEstimateDivinerConfigSchema","targetSchema","HashLeaseEstimateSchema","divineHandler","_payloads","Promise","resolve","creatableModule"]}
1
+ {"version":3,"sources":["../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["import { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config'\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config'\nimport { HashLeaseEstimateDivinerParams } from './Params'\nimport { HashLeaseEstimate, HashLeaseEstimateSchema } from './Payload'\n\n@creatableModule()\nexport class HashLeaseEstimateDiviner<\n TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams,\n TIn extends Payload = Payload,\n TOut extends HashLeaseEstimate | Payload = HashLeaseEstimate | Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override configSchemas = [HashLeaseEstimateDivinerConfigSchema]\n static override targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease'\nexport type HashLeaseSchema = typeof HashLeaseSchema\n\nexport type HashLease = Payload<\n {\n /**\n * The desired duration of the lease\n */\n duration: number\n },\n HashLeaseSchema\n>\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'\nexport type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema\n\nexport interface HashLeaseEstimateFields {\n /**\n * The currency of the price\n */\n currency: string\n /**\n * When the lease ends\n */\n exp: number\n /**\n * When the lease begins\n */\n nbf: number\n /**\n * The estimated price of the lease\n */\n price: number\n}\n\nexport type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>\n\n/**\n * Identity function for HashLeaseEstimate payload\n */\nexport const isHashLeaseEstimate = isPayloadOfSchemaType<HashLeaseEstimate>(HashLeaseEstimateSchema)\n\n/**\n * Identity function for HashLeaseEstimate payload with meta\n */\nexport const isHashLeaseEstimateWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<HashLeaseEstimate>>(HashLeaseEstimateSchema)\n/**\n * Identity function for HashLeaseEstimate payload with sources\n */\nexport const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<WithSources<HashLeaseEstimate>>(HashLeaseEstimateSchema)\n"],"mappings":";;;;AAEO,IAAMA,uCAAuC;;;ACFpD,SAASC,uBAAuB;AAEhC,SAASC,uBAAuB;;;ACAzB,IAAMC,kBAAkB;;;ACF/B,SACEC,uBACAC,+BACAC,wCAIK;AAEA,IAAMC,0BAA0B;AA2BhC,IAAMC,sBAAsBJ,sBAAyCG,uBAAAA;AAKrE,IAAME,8BAA8BJ,8BAA2DE,uBAAAA;AAI/F,IAAMG,iCAAiCJ,iCAAiEC,uBAAAA;;;;;;;;;;;;;;AFnCxG,IAAMI,2BAAN,cASGC,gBAAAA;SAAAA;;;EACR,OAAgBC,gBAAgB;IAACC;;EACjC,OAAgBC,eAAeC;EAE/B,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAhBaT,2BAAAA,aAAAA;EADZU,gBAAAA;GACYV,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","AbstractDiviner","creatableModule","HashLeaseSchema","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","HashLeaseEstimateSchema","isHashLeaseEstimate","isHashLeaseEstimateWithMeta","isHashLeaseEstimateWithSources","HashLeaseEstimateDiviner","AbstractDiviner","configSchemas","HashLeaseEstimateDivinerConfigSchema","targetSchema","HashLeaseEstimateSchema","divineHandler","_payloads","Promise","resolve","creatableModule"]}
@@ -1,4 +1,4 @@
1
- import { Payload } from '@xyo-network/payload-model';
1
+ import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
2
  export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
3
3
  export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
4
4
  export interface HashLeaseEstimateFields {
@@ -20,4 +20,22 @@ export interface HashLeaseEstimateFields {
20
20
  price: number;
21
21
  }
22
22
  export type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>;
23
+ /**
24
+ * Identity function for HashLeaseEstimate payload
25
+ */
26
+ export declare const isHashLeaseEstimate: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
27
+ schema: "network.xyo.hash.lease.estimate";
28
+ };
29
+ /**
30
+ * Identity function for HashLeaseEstimate payload with meta
31
+ */
32
+ export declare const isHashLeaseEstimateWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
33
+ schema: "network.xyo.hash.lease.estimate";
34
+ }>>;
35
+ /**
36
+ * Identity function for HashLeaseEstimate payload with sources
37
+ */
38
+ export declare const isHashLeaseEstimateWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
39
+ schema: "network.xyo.hash.lease.estimate";
40
+ }>>;
23
41
  //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA"}
1
+ {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;CAAoE,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,2BAA2B;;GAAsF,CAAA;AAC9H;;GAEG;AACH,eAAO,MAAM,8BAA8B;;GAA4F,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Payload } from '@xyo-network/payload-model';
1
+ import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
2
  export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
3
3
  export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
4
4
  export interface HashLeaseEstimateFields {
@@ -20,4 +20,22 @@ export interface HashLeaseEstimateFields {
20
20
  price: number;
21
21
  }
22
22
  export type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>;
23
+ /**
24
+ * Identity function for HashLeaseEstimate payload
25
+ */
26
+ export declare const isHashLeaseEstimate: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
27
+ schema: "network.xyo.hash.lease.estimate";
28
+ };
29
+ /**
30
+ * Identity function for HashLeaseEstimate payload with meta
31
+ */
32
+ export declare const isHashLeaseEstimateWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
33
+ schema: "network.xyo.hash.lease.estimate";
34
+ }>>;
35
+ /**
36
+ * Identity function for HashLeaseEstimate payload with sources
37
+ */
38
+ export declare const isHashLeaseEstimateWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
39
+ schema: "network.xyo.hash.lease.estimate";
40
+ }>>;
23
41
  //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA"}
1
+ {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;CAAoE,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,2BAA2B;;GAAsF,CAAA;AAC9H;;GAEG;AACH,eAAO,MAAM,8BAA8B;;GAA4F,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Payload } from '@xyo-network/payload-model';
1
+ import { Payload, WithMeta, WithSources } from '@xyo-network/payload-model';
2
2
  export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
3
3
  export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
4
4
  export interface HashLeaseEstimateFields {
@@ -20,4 +20,22 @@ export interface HashLeaseEstimateFields {
20
20
  price: number;
21
21
  }
22
22
  export type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>;
23
+ /**
24
+ * Identity function for HashLeaseEstimate payload
25
+ */
26
+ export declare const isHashLeaseEstimate: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
27
+ schema: "network.xyo.hash.lease.estimate";
28
+ };
29
+ /**
30
+ * Identity function for HashLeaseEstimate payload with meta
31
+ */
32
+ export declare const isHashLeaseEstimateWithMeta: (x?: unknown) => x is WithMeta<WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
33
+ schema: "network.xyo.hash.lease.estimate";
34
+ }>>;
35
+ /**
36
+ * Identity function for HashLeaseEstimate payload with sources
37
+ */
38
+ export declare const isHashLeaseEstimateWithSources: (x?: unknown) => x is WithSources<WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
39
+ schema: "network.xyo.hash.lease.estimate";
40
+ }>>;
23
41
  //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA"}
1
+ {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,OAAO,EACP,QAAQ,EACR,WAAW,EACZ,MAAM,4BAA4B,CAAA;AAEnC,eAAO,MAAM,uBAAuB,oCAAoC,CAAA;AACxE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,mBAAmB;;CAAoE,CAAA;AAEpG;;GAEG;AACH,eAAO,MAAM,2BAA2B;;GAAsF,CAAA;AAC9H;;GAEG;AACH,eAAO,MAAM,8BAA8B;;GAA4F,CAAA"}
@@ -29,7 +29,10 @@ __export(src_exports, {
29
29
  HashLeaseEstimateDiviner: () => HashLeaseEstimateDiviner,
30
30
  HashLeaseEstimateDivinerConfigSchema: () => HashLeaseEstimateDivinerConfigSchema,
31
31
  HashLeaseEstimateSchema: () => HashLeaseEstimateSchema,
32
- HashLeaseSchema: () => HashLeaseSchema
32
+ HashLeaseSchema: () => HashLeaseSchema,
33
+ isHashLeaseEstimate: () => isHashLeaseEstimate,
34
+ isHashLeaseEstimateWithMeta: () => isHashLeaseEstimateWithMeta,
35
+ isHashLeaseEstimateWithSources: () => isHashLeaseEstimateWithSources
33
36
  });
34
37
  module.exports = __toCommonJS(src_exports);
35
38
 
@@ -44,7 +47,11 @@ var import_module_model = require("@xyo-network/module-model");
44
47
  var HashLeaseSchema = "network.xyo.hash.lease";
45
48
 
46
49
  // src/Payload/HashLeaseEstimate.ts
50
+ var import_payload_model = require("@xyo-network/payload-model");
47
51
  var HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
52
+ var isHashLeaseEstimate = (0, import_payload_model.isPayloadOfSchemaType)(HashLeaseEstimateSchema);
53
+ var isHashLeaseEstimateWithMeta = (0, import_payload_model.isPayloadOfSchemaTypeWithMeta)(HashLeaseEstimateSchema);
54
+ var isHashLeaseEstimateWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)(HashLeaseEstimateSchema);
48
55
 
49
56
  // src/Diviner.ts
50
57
  function _ts_decorate(decorators, target, key, desc) {
@@ -77,6 +84,9 @@ HashLeaseEstimateDiviner = _ts_decorate([
77
84
  HashLeaseEstimateDiviner,
78
85
  HashLeaseEstimateDivinerConfigSchema,
79
86
  HashLeaseEstimateSchema,
80
- HashLeaseSchema
87
+ HashLeaseSchema,
88
+ isHashLeaseEstimate,
89
+ isHashLeaseEstimateWithMeta,
90
+ isHashLeaseEstimateWithSources
81
91
  });
82
92
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["export * from './Config'\nexport * from './Diviner'\nexport * from './Params'\nexport * from './Payload'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config'\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config'\nimport { HashLeaseEstimateDivinerParams } from './Params'\nimport { HashLeaseEstimate, HashLeaseEstimateSchema } from './Payload'\n\n@creatableModule()\nexport class HashLeaseEstimateDiviner<\n TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams,\n TIn extends Payload = Payload,\n TOut extends HashLeaseEstimate | Payload = HashLeaseEstimate | Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override configSchemas = [HashLeaseEstimateDivinerConfigSchema]\n static override targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease'\nexport type HashLeaseSchema = typeof HashLeaseSchema\n\nexport type HashLease = Payload<\n {\n /**\n * The desired duration of the lease\n */\n duration: number\n },\n HashLeaseSchema\n>\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'\nexport type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema\n\nexport interface HashLeaseEstimateFields {\n /**\n * The currency of the price\n */\n currency: string\n /**\n * When the lease ends\n */\n exp: number\n /**\n * When the lease begins\n */\n nbf: number\n /**\n * The estimated price of the lease\n */\n price: number\n}\n\nexport type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACEO,IAAMA,uCAAuC;;;ACFpD,8BAAgC;AAEhC,0BAAgC;;;ACAzB,IAAMC,kBAAkB;;;ACAxB,IAAMC,0BAA0B;;;;;;;;;;;;;;AFQhC,IAAMC,4BAAN,MAAMA,kCASHC,wCAAAA;EAIR,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAPUJ;AACR,cAVWD,2BAUKM,iBAAgB;EAACC;;AACjC,cAXWP,2BAWKQ,gBAAeC;AAX1B,IAAMT,2BAAN;AAAMA,2BAAAA,aAAAA;MADZU,qCAAAA;GACYV,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","HashLeaseSchema","HashLeaseEstimateSchema","HashLeaseEstimateDiviner","AbstractDiviner","divineHandler","_payloads","Promise","resolve","configSchemas","HashLeaseEstimateDivinerConfigSchema","targetSchema","HashLeaseEstimateSchema","creatableModule"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["export * from './Config'\nexport * from './Diviner'\nexport * from './Params'\nexport * from './Payload'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config'\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config'\nimport { HashLeaseEstimateDivinerParams } from './Params'\nimport { HashLeaseEstimate, HashLeaseEstimateSchema } from './Payload'\n\n@creatableModule()\nexport class HashLeaseEstimateDiviner<\n TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams,\n TIn extends Payload = Payload,\n TOut extends HashLeaseEstimate | Payload = HashLeaseEstimate | Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override configSchemas = [HashLeaseEstimateDivinerConfigSchema]\n static override targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease'\nexport type HashLeaseSchema = typeof HashLeaseSchema\n\nexport type HashLease = Payload<\n {\n /**\n * The desired duration of the lease\n */\n duration: number\n },\n HashLeaseSchema\n>\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'\nexport type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema\n\nexport interface HashLeaseEstimateFields {\n /**\n * The currency of the price\n */\n currency: string\n /**\n * When the lease ends\n */\n exp: number\n /**\n * When the lease begins\n */\n nbf: number\n /**\n * The estimated price of the lease\n */\n price: number\n}\n\nexport type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>\n\n/**\n * Identity function for HashLeaseEstimate payload\n */\nexport const isHashLeaseEstimate = isPayloadOfSchemaType<HashLeaseEstimate>(HashLeaseEstimateSchema)\n\n/**\n * Identity function for HashLeaseEstimate payload with meta\n */\nexport const isHashLeaseEstimateWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<HashLeaseEstimate>>(HashLeaseEstimateSchema)\n/**\n * Identity function for HashLeaseEstimate payload with sources\n */\nexport const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<WithSources<HashLeaseEstimate>>(HashLeaseEstimateSchema)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACEO,IAAMA,uCAAuC;;;ACFpD,8BAAgC;AAEhC,0BAAgC;;;ACAzB,IAAMC,kBAAkB;;;ACF/B,2BAOO;AAEA,IAAMC,0BAA0B;AA2BhC,IAAMC,0BAAsBC,4CAAyCF,uBAAAA;AAKrE,IAAMG,kCAA8BC,oDAA2DJ,uBAAAA;AAI/F,IAAMK,qCAAiCC,uDAAiEN,uBAAAA;;;;;;;;;;;;;;AFnCxG,IAAMO,4BAAN,MAAMA,kCASHC,wCAAAA;EAIR,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAPUJ;AACR,cAVWD,2BAUKM,iBAAgB;EAACC;;AACjC,cAXWP,2BAWKQ,gBAAeC;AAX1B,IAAMT,2BAAN;AAAMA,2BAAAA,aAAAA;MADZU,qCAAAA;GACYV,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","HashLeaseSchema","HashLeaseEstimateSchema","isHashLeaseEstimate","isPayloadOfSchemaType","isHashLeaseEstimateWithMeta","isPayloadOfSchemaTypeWithMeta","isHashLeaseEstimateWithSources","isPayloadOfSchemaTypeWithSources","HashLeaseEstimateDiviner","AbstractDiviner","divineHandler","_payloads","Promise","resolve","configSchemas","HashLeaseEstimateDivinerConfigSchema","targetSchema","HashLeaseEstimateSchema","creatableModule"]}
@@ -17,7 +17,11 @@ import { creatableModule } from "@xyo-network/module-model";
17
17
  var HashLeaseSchema = "network.xyo.hash.lease";
18
18
 
19
19
  // src/Payload/HashLeaseEstimate.ts
20
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
20
21
  var HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
22
+ var isHashLeaseEstimate = isPayloadOfSchemaType(HashLeaseEstimateSchema);
23
+ var isHashLeaseEstimateWithMeta = isPayloadOfSchemaTypeWithMeta(HashLeaseEstimateSchema);
24
+ var isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources(HashLeaseEstimateSchema);
21
25
 
22
26
  // src/Diviner.ts
23
27
  function _ts_decorate(decorators, target, key, desc) {
@@ -49,6 +53,9 @@ export {
49
53
  HashLeaseEstimateDiviner,
50
54
  HashLeaseEstimateDivinerConfigSchema,
51
55
  HashLeaseEstimateSchema,
52
- HashLeaseSchema
56
+ HashLeaseSchema,
57
+ isHashLeaseEstimate,
58
+ isHashLeaseEstimateWithMeta,
59
+ isHashLeaseEstimateWithSources
53
60
  };
54
61
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["import { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config'\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config'\nimport { HashLeaseEstimateDivinerParams } from './Params'\nimport { HashLeaseEstimate, HashLeaseEstimateSchema } from './Payload'\n\n@creatableModule()\nexport class HashLeaseEstimateDiviner<\n TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams,\n TIn extends Payload = Payload,\n TOut extends HashLeaseEstimate | Payload = HashLeaseEstimate | Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override configSchemas = [HashLeaseEstimateDivinerConfigSchema]\n static override targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease'\nexport type HashLeaseSchema = typeof HashLeaseSchema\n\nexport type HashLease = Payload<\n {\n /**\n * The desired duration of the lease\n */\n duration: number\n },\n HashLeaseSchema\n>\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'\nexport type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema\n\nexport interface HashLeaseEstimateFields {\n /**\n * The currency of the price\n */\n currency: string\n /**\n * When the lease ends\n */\n exp: number\n /**\n * When the lease begins\n */\n nbf: number\n /**\n * The estimated price of the lease\n */\n price: number\n}\n\nexport type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>\n"],"mappings":";;;;;;;;;AAEO,IAAMA,uCAAuC;;;ACFpD,SAASC,uBAAuB;AAEhC,SAASC,uBAAuB;;;ACAzB,IAAMC,kBAAkB;;;ACAxB,IAAMC,0BAA0B;;;;;;;;;;;;;;AFQhC,IAAMC,4BAAN,MAAMA,kCASHC,gBAAAA;EAIR,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAPUJ;AACR,cAVWD,2BAUKM,iBAAgB;EAACC;;AACjC,cAXWP,2BAWKQ,gBAAeC;AAX1B,IAAMT,2BAAN;AAAMA,2BAAAA,aAAAA;EADZU,gBAAAA;GACYV,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","AbstractDiviner","creatableModule","HashLeaseSchema","HashLeaseEstimateSchema","HashLeaseEstimateDiviner","AbstractDiviner","divineHandler","_payloads","Promise","resolve","configSchemas","HashLeaseEstimateDivinerConfigSchema","targetSchema","HashLeaseEstimateSchema","creatableModule"]}
1
+ {"version":3,"sources":["../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["import { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config'\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n","import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config'\nimport { HashLeaseEstimateDivinerParams } from './Params'\nimport { HashLeaseEstimate, HashLeaseEstimateSchema } from './Payload'\n\n@creatableModule()\nexport class HashLeaseEstimateDiviner<\n TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams,\n TIn extends Payload = Payload,\n TOut extends HashLeaseEstimate | Payload = HashLeaseEstimate | Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override configSchemas = [HashLeaseEstimateDivinerConfigSchema]\n static override targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease'\nexport type HashLeaseSchema = typeof HashLeaseSchema\n\nexport type HashLease = Payload<\n {\n /**\n * The desired duration of the lease\n */\n duration: number\n },\n HashLeaseSchema\n>\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'\nexport type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema\n\nexport interface HashLeaseEstimateFields {\n /**\n * The currency of the price\n */\n currency: string\n /**\n * When the lease ends\n */\n exp: number\n /**\n * When the lease begins\n */\n nbf: number\n /**\n * The estimated price of the lease\n */\n price: number\n}\n\nexport type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>\n\n/**\n * Identity function for HashLeaseEstimate payload\n */\nexport const isHashLeaseEstimate = isPayloadOfSchemaType<HashLeaseEstimate>(HashLeaseEstimateSchema)\n\n/**\n * Identity function for HashLeaseEstimate payload with meta\n */\nexport const isHashLeaseEstimateWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<HashLeaseEstimate>>(HashLeaseEstimateSchema)\n/**\n * Identity function for HashLeaseEstimate payload with sources\n */\nexport const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<WithSources<HashLeaseEstimate>>(HashLeaseEstimateSchema)\n"],"mappings":";;;;;;;;;AAEO,IAAMA,uCAAuC;;;ACFpD,SAASC,uBAAuB;AAEhC,SAASC,uBAAuB;;;ACAzB,IAAMC,kBAAkB;;;ACF/B,SACEC,uBACAC,+BACAC,wCAIK;AAEA,IAAMC,0BAA0B;AA2BhC,IAAMC,sBAAsBJ,sBAAyCG,uBAAAA;AAKrE,IAAME,8BAA8BJ,8BAA2DE,uBAAAA;AAI/F,IAAMG,iCAAiCJ,iCAAiEC,uBAAAA;;;;;;;;;;;;;;AFnCxG,IAAMI,4BAAN,MAAMA,kCASHC,gBAAAA;EAIR,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAPUJ;AACR,cAVWD,2BAUKM,iBAAgB;EAACC;;AACjC,cAXWP,2BAWKQ,gBAAeC;AAX1B,IAAMT,2BAAN;AAAMA,2BAAAA,aAAAA;EADZU,gBAAAA;GACYV,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","AbstractDiviner","creatableModule","HashLeaseSchema","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","HashLeaseEstimateSchema","isHashLeaseEstimate","isHashLeaseEstimateWithMeta","isHashLeaseEstimateWithSources","HashLeaseEstimateDiviner","AbstractDiviner","divineHandler","_payloads","Promise","resolve","configSchemas","HashLeaseEstimateDivinerConfigSchema","targetSchema","HashLeaseEstimateSchema","creatableModule"]}
package/package.json CHANGED
@@ -10,14 +10,14 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/diviner-abstract": "~2.94.7",
14
- "@xyo-network/diviner-model": "~2.94.7",
15
- "@xyo-network/module-model": "~2.94.7",
16
- "@xyo-network/payload-model": "~2.94.7"
13
+ "@xyo-network/diviner-abstract": "~2.94.9",
14
+ "@xyo-network/diviner-model": "~2.94.9",
15
+ "@xyo-network/module-model": "~2.94.9",
16
+ "@xyo-network/payload-model": "~2.94.9"
17
17
  },
18
18
  "devDependencies": {
19
- "@xylabs/ts-scripts-yarn3": "^3.5.2",
20
- "@xylabs/tsconfig": "^3.5.2",
19
+ "@xylabs/ts-scripts-yarn3": "^3.9.0",
20
+ "@xylabs/tsconfig": "^3.9.0",
21
21
  "typescript": "^5.4.3"
22
22
  },
23
23
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -59,6 +59,6 @@
59
59
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
60
60
  },
61
61
  "sideEffects": false,
62
- "version": "2.94.7",
62
+ "version": "2.94.9",
63
63
  "type": "module"
64
64
  }
@@ -1,4 +1,11 @@
1
- import { Payload } from '@xyo-network/payload-model'
1
+ import {
2
+ isPayloadOfSchemaType,
3
+ isPayloadOfSchemaTypeWithMeta,
4
+ isPayloadOfSchemaTypeWithSources,
5
+ Payload,
6
+ WithMeta,
7
+ WithSources,
8
+ } from '@xyo-network/payload-model'
2
9
 
3
10
  export const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'
4
11
  export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema
@@ -23,3 +30,17 @@ export interface HashLeaseEstimateFields {
23
30
  }
24
31
 
25
32
  export type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>
33
+
34
+ /**
35
+ * Identity function for HashLeaseEstimate payload
36
+ */
37
+ export const isHashLeaseEstimate = isPayloadOfSchemaType<HashLeaseEstimate>(HashLeaseEstimateSchema)
38
+
39
+ /**
40
+ * Identity function for HashLeaseEstimate payload with meta
41
+ */
42
+ export const isHashLeaseEstimateWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<HashLeaseEstimate>>(HashLeaseEstimateSchema)
43
+ /**
44
+ * Identity function for HashLeaseEstimate payload with sources
45
+ */
46
+ export const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<WithSources<HashLeaseEstimate>>(HashLeaseEstimateSchema)