@xyo-network/diviner-hash-lease 6.0.3 → 6.1.0

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/README.md CHANGED
@@ -38,10 +38,12 @@ bun add {{name}}
38
38
 
39
39
  See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
40
 
41
+ ## Credits
41
42
 
43
+ [Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
42
44
 
43
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
44
45
  [npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-hash-lease.svg
45
46
  [npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-hash-lease
46
47
  [license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-hash-lease.svg
47
48
  [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
49
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
@@ -1,5 +1,5 @@
1
1
  import type { DivinerConfig } from '@xyo-network/diviner-model';
2
- export declare const HashLeaseEstimateDivinerConfigSchema: "network.xyo.diviner.hash.lease.estimate.config" & {
2
+ export declare const HashLeaseEstimateDivinerConfigSchema: 'network.xyo.diviner.hash.lease.estimate.config' & {
3
3
  readonly __schema: true;
4
4
  };
5
5
  export type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAG/D,eAAO,MAAM,oCAAoC;;CAAmE,CAAA;AACpH,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAExD,EAEC,EACD,oCAAoC,CACrC,CAAA"}
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAG/D,eAAO,MAAM,oCAAoC,EAAE,gDAAgD,GAAG;IACpG,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC2C,CAAA;AACpE,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAExD,EAEC,EACD,oCAAoC,CACrC,CAAA"}
@@ -6,7 +6,7 @@ import type { HashLeaseEstimate } from './Payload/index.ts';
6
6
  export declare class HashLeaseEstimateDiviner<TParams extends HashLeaseEstimateDivinerParams = HashLeaseEstimateDivinerParams, TIn extends Payload = Payload, TOut extends HashLeaseEstimate | Payload = HashLeaseEstimate | Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {
7
7
  static readonly configSchemas: Schema[];
8
8
  static readonly defaultConfigSchema: Schema;
9
- static readonly targetSchema: "network.xyo.hash.lease.estimate" & {
9
+ static readonly targetSchema: 'network.xyo.hash.lease.estimate' & {
10
10
  readonly __schema: true;
11
11
  };
12
12
  protected divineHandler(_payloads?: TIn[]): Promise<TOut[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEzF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAGnE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM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S,sBAAsB,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,sBAAsB,CAChH,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EACnC,GAAG,EACH,IAAI,CACL,CACD,SAAQ,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,CAAC;IACvD,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAiE;IACjH,gBAAyB,mBAAmB,EAAE,MAAM,CAAuC;IAC3F,gBAAyB,YAAY,EAAE,iCAAiC,GAAG;QACzE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;KACxB,CAA0B;cAEF,aAAa,CAAC,SAAS,GAAE,GAAG,EAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CAG/E"}
@@ -1,5 +1,6 @@
1
+ import type { AnyNonPromise, AsTypeFunction } from '@xylabs/sdk-js';
1
2
  import type { Payload, WithSources } from '@xyo-network/sdk-protocol-js';
2
- export declare const HashLeaseSchema: "network.xyo.hash.lease" & {
3
+ export declare const HashLeaseSchema: 'network.xyo.hash.lease' & {
3
4
  readonly __schema: true;
4
5
  };
5
6
  export type HashLeaseSchema = typeof HashLeaseSchema;
@@ -13,12 +14,12 @@ export type HashLease = Payload<{
13
14
  * Identity function for HashLease payload
14
15
  */
15
16
  export declare const isHashLease: (x?: unknown) => x is HashLease;
16
- export declare const asHashLease: import("@xylabs/sdk-js").AsTypeFunction<HashLease>;
17
- export declare const asOptionalHashLease: (value: import("@xylabs/sdk-js").AnyNonPromise) => HashLease | undefined;
17
+ export declare const asHashLease: AsTypeFunction<HashLease>;
18
+ export declare const asOptionalHashLease: (value: AnyNonPromise) => HashLease | undefined;
18
19
  /**
19
20
  * Identity function for HashLease payload with sources
20
21
  */
21
22
  export declare const isHashLeaseWithSources: (x?: unknown) => x is WithSources<WithSources<HashLease>>;
22
- export declare const asHashLeaseWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<HashLease>>;
23
- export declare const asOptionalHashLeaseWithSources: (value: import("@xylabs/sdk-js").AnyNonPromise) => WithSources<HashLease> | undefined;
23
+ export declare const asHashLeaseWithSources: AsTypeFunction<WithSources<HashLease>>;
24
+ export declare const asOptionalHashLeaseWithSources: (value: AnyNonPromise) => WithSources<HashLease> | undefined;
24
25
  //# sourceMappingURL=HashLease.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HashLease.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLease.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAKxE,eAAO,MAAM,eAAe;;CAA2C,CAAA;AACvE,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA;AAEpD,MAAM,MAAM,SAAS,GAAG,OAAO,CAC7B;IACE;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB,EACD,eAAe,CAChB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,iCAAoD,CAAA;AAC5E,eAAO,MAAM,WAAW,oDAAiD,CAAA;AACzE,eAAO,MAAM,mBAAmB,0EAAyD,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,sBAAsB,2DAA4E,CAAA;AAC/G,eAAO,MAAM,sBAAsB,iEAAyE,CAAA;AAC5G,eAAO,MAAM,8BAA8B,uFAAiF,CAAA"}
1
+ {"version":3,"file":"HashLease.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLease.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEnE,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAKxE,eAAO,MAAM,eAAe,EAAE,wBAAwB,GAAG;IACvD,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CACmB,CAAA;AAC5C,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAA;AAEpD,MAAM,MAAM,SAAS,GAAG,OAAO,CAC7B;IACE;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB,EACD,eAAe,CAChB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,SAA6D,CAAA;AAC7G,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,SAAS,CAAkD,CAAA;AACpG,eAAO,MAAM,mBAAmB,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,SAAS,GAAG,SAAkE,CAAA;AAE1I;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,KAAK,CAAC,IAAI,WAAW,CAAC,WAAW,CAAC,SAAS,CAAC,CAA6E,CAAA;AAC1K,eAAO,MAAM,sBAAsB,EAAE,cAAc,CAAC,WAAW,CAAC,SAAS,CAAC,CAA0E,CAAA;AACpJ,eAAO,MAAM,8BAA8B,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,WAAW,CAAC,SAAS,CAAC,GAAG,SAA0F,CAAA"}
@@ -1,5 +1,6 @@
1
+ import type { AnyNonPromise, AsTypeFunction } from '@xylabs/sdk-js';
1
2
  import type { Payload, WithSources } from '@xyo-network/sdk-protocol-js';
2
- export declare const HashLeaseEstimateSchema: "network.xyo.hash.lease.estimate" & {
3
+ export declare const HashLeaseEstimateSchema: 'network.xyo.hash.lease.estimate' & {
3
4
  readonly __schema: true;
4
5
  };
5
6
  export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
@@ -26,12 +27,12 @@ export type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstima
26
27
  * Identity function for HashLeaseEstimate payload
27
28
  */
28
29
  export declare const isHashLeaseEstimate: (x?: unknown) => x is HashLeaseEstimate;
29
- export declare const asHashLeaseEstimate: import("@xylabs/sdk-js").AsTypeFunction<HashLeaseEstimate>;
30
- export declare const asOptionalHashLeaseEstimate: (value: import("@xylabs/sdk-js").AnyNonPromise) => HashLeaseEstimate | undefined;
30
+ export declare const asHashLeaseEstimate: AsTypeFunction<HashLeaseEstimate>;
31
+ export declare const asOptionalHashLeaseEstimate: (value: AnyNonPromise) => HashLeaseEstimate | undefined;
31
32
  /**
32
33
  * Identity function for HashLeaseEstimate payload with sources
33
34
  */
34
35
  export declare const isHashLeaseEstimateWithSources: (x?: unknown) => x is WithSources<WithSources<HashLeaseEstimate>>;
35
- export declare const asHashLeaseEstimateWithSources: import("@xylabs/sdk-js").AsTypeFunction<WithSources<HashLeaseEstimate>>;
36
- export declare const asOptionalHashLeaseEstimateWithSources: (value: import("@xylabs/sdk-js").AnyNonPromise) => WithSources<HashLeaseEstimate> | undefined;
36
+ export declare const asHashLeaseEstimateWithSources: AsTypeFunction<WithSources<HashLeaseEstimate>>;
37
+ export declare const asOptionalHashLeaseEstimateWithSources: (value: AnyNonPromise) => WithSources<HashLeaseEstimate> | undefined;
37
38
  //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAKxE,eAAO,MAAM,uBAAuB;;CAAoD,CAAA;AACxF,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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AO,MAAM,8BAA8B,EAAE,CAC3C,CAAC,CAAC,EAAE,OAAO,KACR,CAAC,IAAI,WAAW,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAA6F,CAAA;AACjJ,eAAO,MAAM,8BAA8B,EAAE,cAAc,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAA0F,CAAA;AACpL,eAAO,MAAM,sCAAsC,EAAE,CACnD,KAAK,EAAE,aAAa,KACjB,WAAW,CAAC,iBAAiB,CAAC,GAAG,SAA0G,CAAA"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Config.ts", "../../src/Diviner.ts", "../../src/Payload/HashLease.ts", "../../src/Payload/HashLeaseEstimate.ts"],
4
- "sourcesContent": ["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const HashLeaseEstimateDivinerConfigSchema = asSchema('network.xyo.diviner.hash.lease.estimate.config', true)\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n", "import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config.ts'\nimport type { HashLeaseEstimateDivinerParams } from './Params.ts'\nimport type { HashLeaseEstimate } from './Payload/index.ts'\nimport { HashLeaseEstimateSchema } from './Payload/index.ts'\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 readonly configSchemas: Schema[] = [...super.configSchemas, HashLeaseEstimateDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = HashLeaseEstimateDivinerConfigSchema\n static override readonly targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n", "import { AsObjectFactory } from '@xylabs/sdk-js'\nimport type { Payload, WithSources } from '@xyo-network/sdk-protocol-js'\nimport {\n asSchema, isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources,\n} from '@xyo-network/sdk-protocol-js'\n\nexport const HashLeaseSchema = asSchema('network.xyo.hash.lease', true)\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\n/**\n * Identity function for HashLease payload\n */\nexport const isHashLease = isPayloadOfSchemaType<HashLease>(HashLeaseSchema)\nexport const asHashLease = AsObjectFactory.create<HashLease>(isHashLease)\nexport const asOptionalHashLease = AsObjectFactory.createOptional<HashLease>(isHashLease)\n\n/**\n * Identity function for HashLease payload with sources\n */\nexport const isHashLeaseWithSources = isPayloadOfSchemaTypeWithSources<WithSources<HashLease>>(HashLeaseSchema)\nexport const asHashLeaseWithSources = AsObjectFactory.create<WithSources<HashLease>>(isHashLeaseWithSources)\nexport const asOptionalHashLeaseWithSources = AsObjectFactory.createOptional<WithSources<HashLease>>(isHashLeaseWithSources)\n", "import { AsObjectFactory } from '@xylabs/sdk-js'\nimport type { Payload, WithSources } from '@xyo-network/sdk-protocol-js'\nimport {\n asSchema, isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources,\n} from '@xyo-network/sdk-protocol-js'\n\nexport const HashLeaseEstimateSchema = asSchema('network.xyo.hash.lease.estimate', true)\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)\nexport const asHashLeaseEstimate = AsObjectFactory.create<HashLeaseEstimate>(isHashLeaseEstimate)\nexport const asOptionalHashLeaseEstimate = AsObjectFactory.createOptional<HashLeaseEstimate>(isHashLeaseEstimate)\n\n/**\n * Identity function for HashLeaseEstimate payload with sources\n */\nexport const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<WithSources<HashLeaseEstimate>>(HashLeaseEstimateSchema)\nexport const asHashLeaseEstimateWithSources = AsObjectFactory.create<WithSources<HashLeaseEstimate>>(isHashLeaseEstimateWithSources)\nexport const asOptionalHashLeaseEstimateWithSources = AsObjectFactory.createOptional<WithSources<HashLeaseEstimate>>(isHashLeaseEstimateWithSources)\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AAElB,IAAM,uCAAuC,SAAS,kDAAkD,IAAI;;;ACHnH,SAAS,uBAAuB;AAEhC,SAAS,uBAAuB;;;ACFhC,SAAS,uBAAuB;AAEhC;AAAA,EACE,YAAAA;AAAA,EAAU;AAAA,EAAuB;AAAA,OAC5B;AAEA,IAAM,kBAAkBA,UAAS,0BAA0B,IAAI;AAgB/D,IAAM,cAAc,sBAAiC,eAAe;AACpE,IAAM,cAAc,gBAAgB,OAAkB,WAAW;AACjE,IAAM,sBAAsB,gBAAgB,eAA0B,WAAW;AAKjF,IAAM,yBAAyB,iCAAyD,eAAe;AACvG,IAAM,yBAAyB,gBAAgB,OAA+B,sBAAsB;AACpG,IAAM,iCAAiC,gBAAgB,eAAuC,sBAAsB;;;AC/B3H,SAAS,mBAAAC,wBAAuB;AAEhC;AAAA,EACE,YAAAC;AAAA,EAAU,yBAAAC;AAAA,EAAuB,oCAAAC;AAAA,OAC5B;AAEA,IAAM,0BAA0BF,UAAS,mCAAmC,IAAI;AA2BhF,IAAM,sBAAsBC,uBAAyC,uBAAuB;AAC5F,IAAM,sBAAsBF,iBAAgB,OAA0B,mBAAmB;AACzF,IAAM,8BAA8BA,iBAAgB,eAAkC,mBAAmB;AAKzG,IAAM,iCAAiCG,kCAAiE,uBAAuB;AAC/H,IAAM,iCAAiCH,iBAAgB,OAAuC,8BAA8B;AAC5H,IAAM,yCAAyCA,iBAAgB,eAA+C,8BAA8B;;;AF/B5I,IAAM,2BAAN,cASG,gBAAgD;AAAA,EAKxD,MAAyB,cAAc,YAAmB,CAAC,GAAoB;AAC7E,WAAO,MAAM,QAAQ,QAAQ,CAAC,CAAC;AAAA,EACjC;AACF;AAPE,cAVW,0BAUc,iBAA0B,CAAC,GAAG,+DAAM,kBAAe,oCAAoC;AAChH,cAXW,0BAWc,uBAA8B;AACvD,cAZW,0BAYc,gBAAe;AAZ7B,2BAAN;AAAA,EADN,gBAAgB;AAAA,GACJ;",
4
+ "sourcesContent": ["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const HashLeaseEstimateDivinerConfigSchema: 'network.xyo.diviner.hash.lease.estimate.config' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.hash.lease.estimate.config', true)\nexport type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n", "import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport { creatableModule } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nimport { HashLeaseEstimateDivinerConfigSchema } from './Config.ts'\nimport type { HashLeaseEstimateDivinerParams } from './Params.ts'\nimport type { HashLeaseEstimate } from './Payload/index.ts'\nimport { HashLeaseEstimateSchema } from './Payload/index.ts'\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 readonly configSchemas: Schema[] = [...super.configSchemas, HashLeaseEstimateDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = HashLeaseEstimateDivinerConfigSchema\n static override readonly targetSchema: 'network.xyo.hash.lease.estimate' & {\n readonly __schema: true\n } = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n", "import type { AnyNonPromise, AsTypeFunction } from '@xylabs/sdk-js'\nimport { AsObjectFactory } from '@xylabs/sdk-js'\nimport type { Payload, WithSources } from '@xyo-network/sdk-protocol-js'\nimport {\n asSchema, isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources,\n} from '@xyo-network/sdk-protocol-js'\n\nexport const HashLeaseSchema: 'network.xyo.hash.lease' & {\n readonly __schema: true\n} = asSchema('network.xyo.hash.lease', true)\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\n/**\n * Identity function for HashLease payload\n */\nexport const isHashLease: (x?: unknown) => x is HashLease = isPayloadOfSchemaType<HashLease>(HashLeaseSchema)\nexport const asHashLease: AsTypeFunction<HashLease> = AsObjectFactory.create<HashLease>(isHashLease)\nexport const asOptionalHashLease: (value: AnyNonPromise) => HashLease | undefined = AsObjectFactory.createOptional<HashLease>(isHashLease)\n\n/**\n * Identity function for HashLease payload with sources\n */\nexport const isHashLeaseWithSources: (x?: unknown) => x is WithSources<WithSources<HashLease>> = isPayloadOfSchemaTypeWithSources<WithSources<HashLease>>(HashLeaseSchema)\nexport const asHashLeaseWithSources: AsTypeFunction<WithSources<HashLease>> = AsObjectFactory.create<WithSources<HashLease>>(isHashLeaseWithSources)\nexport const asOptionalHashLeaseWithSources: (value: AnyNonPromise) => WithSources<HashLease> | undefined = AsObjectFactory.createOptional<WithSources<HashLease>>(isHashLeaseWithSources)\n", "import type { AnyNonPromise, AsTypeFunction } from '@xylabs/sdk-js'\nimport { AsObjectFactory } from '@xylabs/sdk-js'\nimport type { Payload, WithSources } from '@xyo-network/sdk-protocol-js'\nimport {\n asSchema, isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources,\n} from '@xyo-network/sdk-protocol-js'\n\nexport const HashLeaseEstimateSchema: 'network.xyo.hash.lease.estimate' & {\n readonly __schema: true\n} = asSchema('network.xyo.hash.lease.estimate', true)\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: (x?: unknown) => x is HashLeaseEstimate = isPayloadOfSchemaType<HashLeaseEstimate>(HashLeaseEstimateSchema)\nexport const asHashLeaseEstimate: AsTypeFunction<HashLeaseEstimate> = AsObjectFactory.create<HashLeaseEstimate>(isHashLeaseEstimate)\nexport const asOptionalHashLeaseEstimate: (value: AnyNonPromise) => HashLeaseEstimate | undefined = AsObjectFactory.createOptional<HashLeaseEstimate>(isHashLeaseEstimate)\n\n/**\n * Identity function for HashLeaseEstimate payload with sources\n */\nexport const isHashLeaseEstimateWithSources: (\n x?: unknown,\n) => x is WithSources<WithSources<HashLeaseEstimate>> = isPayloadOfSchemaTypeWithSources<WithSources<HashLeaseEstimate>>(HashLeaseEstimateSchema)\nexport const asHashLeaseEstimateWithSources: AsTypeFunction<WithSources<HashLeaseEstimate>> = AsObjectFactory.create<WithSources<HashLeaseEstimate>>(isHashLeaseEstimateWithSources)\nexport const asOptionalHashLeaseEstimateWithSources: (\n value: AnyNonPromise,\n) => WithSources<HashLeaseEstimate> | undefined = AsObjectFactory.createOptional<WithSources<HashLeaseEstimate>>(isHashLeaseEstimateWithSources)\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AACA,SAAS,gBAAgB;AAElB,IAAM,uCAET,SAAS,kDAAkD,IAAI;;;ACLnE,SAAS,uBAAuB;AAEhC,SAAS,uBAAuB;;;ACDhC,SAAS,uBAAuB;AAEhC;AAAA,EACE,YAAAA;AAAA,EAAU;AAAA,EAAuB;AAAA,OAC5B;AAEA,IAAM,kBAETA,UAAS,0BAA0B,IAAI;AAgBpC,IAAM,cAA+C,sBAAiC,eAAe;AACrG,IAAM,cAAyC,gBAAgB,OAAkB,WAAW;AAC5F,IAAM,sBAAuE,gBAAgB,eAA0B,WAAW;AAKlI,IAAM,yBAAoF,iCAAyD,eAAe;AAClK,IAAM,yBAAiE,gBAAgB,OAA+B,sBAAsB;AAC5I,IAAM,iCAA+F,gBAAgB,eAAuC,sBAAsB;;;ACjCzL,SAAS,mBAAAC,wBAAuB;AAEhC;AAAA,EACE,YAAAC;AAAA,EAAU,yBAAAC;AAAA,EAAuB,oCAAAC;AAAA,OAC5B;AAEA,IAAM,0BAETF,UAAS,mCAAmC,IAAI;AA2B7C,IAAM,sBAA+DC,uBAAyC,uBAAuB;AACrI,IAAM,sBAAyDF,iBAAgB,OAA0B,mBAAmB;AAC5H,IAAM,8BAAuFA,iBAAgB,eAAkC,mBAAmB;AAKlK,IAAM,iCAE2CG,kCAAiE,uBAAuB;AACzI,IAAM,iCAAiFH,iBAAgB,OAAuC,8BAA8B;AAC5K,IAAM,yCAEqCA,iBAAgB,eAA+C,8BAA8B;;;AFtCxI,IAAM,2BAAN,cASG,gBAAgD;AAAA,EAOxD,MAAyB,cAAc,YAAmB,CAAC,GAAoB;AAC7E,WAAO,MAAM,QAAQ,QAAQ,CAAC,CAAC;AAAA,EACjC;AACF;AATE,cAVW,0BAUc,iBAA0B,CAAC,GAAG,+DAAM,kBAAe,oCAAoC;AAChH,cAXW,0BAWc,uBAA8B;AACvD,cAZW,0BAYc,gBAErB;AAdO,2BAAN;AAAA,EADN,gBAAgB;AAAA,GACJ;",
6
6
  "names": ["asSchema", "AsObjectFactory", "asSchema", "isPayloadOfSchemaType", "isPayloadOfSchemaTypeWithSources"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-hash-lease",
3
- "version": "6.0.3",
3
+ "version": "6.1.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,9 +34,9 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/module-model": "~6.0.3",
38
- "@xyo-network/diviner-abstract": "~6.0.3",
39
- "@xyo-network/diviner-model": "~6.0.3"
37
+ "@xyo-network/diviner-abstract": "~6.1.0",
38
+ "@xyo-network/diviner-model": "~6.1.0",
39
+ "@xyo-network/module-model": "~6.1.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@bitauth/libauth": "~3.0.0",
@@ -46,16 +46,14 @@
46
46
  "@opentelemetry/sdk-trace-base": "^2.7.1",
47
47
  "@scure/base": "~2.2.0",
48
48
  "@scure/bip39": "~2.2.0",
49
- "@xylabs/geo": "^6.0.7",
50
- "@xylabs/sdk-js": "^6.0.7",
51
- "@xylabs/threads": "^6.0.7",
52
- "@xylabs/toolchain": "~8.1.15",
53
- "@xylabs/tsconfig": "~8.1.15",
54
- "@xyo-network/sdk-protocol-js": "~6.0.8",
49
+ "@xylabs/geo": "^6.1.0",
50
+ "@xylabs/sdk-js": "^6.1.0",
51
+ "@xylabs/threads": "^6.1.0",
52
+ "@xylabs/toolchain": "^8.1.20",
53
+ "@xylabs/tsconfig": "^8.1.20",
54
+ "@xyo-network/sdk-protocol-js": "^6.1.0",
55
55
  "ajv": "^8.20.0",
56
56
  "async-mutex": "^0.5.0",
57
- "bn.js": "^5.2.3",
58
- "buffer": "^6.0.3",
59
57
  "debug": "~4.4.3",
60
58
  "eslint": "^10.4.1",
61
59
  "ethers": "^6.16.0",
@@ -63,7 +61,6 @@
63
61
  "idb": "^8.0.3",
64
62
  "lru-cache": "^11.5.1",
65
63
  "observable-fns": "~0.6.1",
66
- "pako": "~2.1.0",
67
64
  "tslib": "^2.8.1",
68
65
  "typescript": "~6.0.3",
69
66
  "webextension-polyfill": "^0.12.0",
@@ -80,21 +77,21 @@
80
77
  "@xylabs/geo": "^6.0",
81
78
  "@xylabs/sdk-js": "^6.0",
82
79
  "@xylabs/threads": "^6.0",
83
- "@xyo-network/sdk-protocol-js": "~6.0",
80
+ "@xyo-network/sdk-protocol-js": "^6.1",
84
81
  "ajv": "^8.20",
85
82
  "async-mutex": "^0.5",
86
- "bn.js": "^5.2",
87
- "buffer": "^6.0",
88
83
  "debug": "~4.4",
89
84
  "ethers": "^6.16",
90
85
  "hash-wasm": "~4.12",
91
86
  "idb": "^8.0",
92
87
  "lru-cache": "^11.3",
93
88
  "observable-fns": "~0.6",
94
- "pako": "~2.1",
95
89
  "webextension-polyfill": "^0.12",
96
90
  "zod": "^4.4"
97
91
  },
92
+ "engines": {
93
+ "node": "^24"
94
+ },
98
95
  "publishConfig": {
99
96
  "access": "public"
100
97
  }