@xyo-network/diviner-hash-lease 4.1.2 → 4.1.3

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,77 +1,5 @@
1
- import { DivinerConfig, DivinerParams, DivinerModuleEventData, DivinerInstance } from '@xyo-network/diviner-model';
2
- import { AbstractDiviner } from '@xyo-network/diviner-abstract';
3
- import { Payload, WithSources, Schema } from '@xyo-network/payload-model';
4
- import { AnyConfigSchema } from '@xyo-network/module-model';
5
- import * as _xylabs_promise from '@xylabs/promise';
6
- import * as _xylabs_object from '@xylabs/object';
7
-
8
- declare const HashLeaseEstimateDivinerConfigSchema: "network.xyo.diviner.hash.lease.estimate.config";
9
- type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
10
- type HashLeaseEstimateDivinerConfig = DivinerConfig<{}, HashLeaseEstimateDivinerConfigSchema>;
11
-
12
- type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = DivinerParams<TConfig>;
13
-
14
- declare const HashLeaseSchema: "network.xyo.hash.lease";
15
- type HashLeaseSchema = typeof HashLeaseSchema;
16
- type HashLease = Payload<{
17
- /**
18
- * The desired duration of the lease
19
- */
20
- duration: number;
21
- }, HashLeaseSchema>;
22
- /**
23
- * Identity function for HashLease payload
24
- */
25
- declare const isHashLease: (x?: unknown | null) => x is HashLease;
26
- declare const asHashLease: _xylabs_object.AsTypeFunction<HashLease>;
27
- declare const asOptionalHashLease: (value: _xylabs_promise.AnyNonPromise) => HashLease | undefined;
28
- /**
29
- * Identity function for HashLease payload with sources
30
- */
31
- declare const isHashLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<HashLease>>;
32
- declare const asHashLeaseWithSources: _xylabs_object.AsTypeFunction<WithSources<HashLease>>;
33
- declare const asOptionalHashLeaseWithSources: (value: _xylabs_promise.AnyNonPromise) => WithSources<HashLease> | undefined;
34
-
35
- declare const HashLeaseEstimateSchema: "network.xyo.hash.lease.estimate";
36
- type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
37
- interface HashLeaseEstimateFields {
38
- /**
39
- * The currency of the price
40
- */
41
- currency: string;
42
- /**
43
- * When the lease ends
44
- */
45
- exp: number;
46
- /**
47
- * When the lease begins
48
- */
49
- nbf: number;
50
- /**
51
- * The estimated price of the lease
52
- */
53
- price: number;
54
- }
55
- type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>;
56
- /**
57
- * Identity function for HashLeaseEstimate payload
58
- */
59
- declare const isHashLeaseEstimate: (x?: unknown | null) => x is HashLeaseEstimate;
60
- declare const asHashLeaseEstimate: _xylabs_object.AsTypeFunction<HashLeaseEstimate>;
61
- declare const asOptionalHashLeaseEstimate: (value: _xylabs_promise.AnyNonPromise) => HashLeaseEstimate | undefined;
62
- /**
63
- * Identity function for HashLeaseEstimate payload with sources
64
- */
65
- declare const isHashLeaseEstimateWithSources: (x?: unknown | null) => x is WithSources<WithSources<HashLeaseEstimate>>;
66
- declare const asHashLeaseEstimateWithSources: _xylabs_object.AsTypeFunction<WithSources<HashLeaseEstimate>>;
67
- declare const asOptionalHashLeaseEstimateWithSources: (value: _xylabs_promise.AnyNonPromise) => WithSources<HashLeaseEstimate> | undefined;
68
-
69
- 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> {
70
- static readonly configSchemas: Schema[];
71
- static readonly defaultConfigSchema: Schema;
72
- static readonly targetSchema: "network.xyo.hash.lease.estimate";
73
- protected divineHandler(_payloads?: TIn[]): Promise<TOut[]>;
74
- }
75
-
76
- export { HashLeaseEstimateDiviner, HashLeaseEstimateDivinerConfigSchema, HashLeaseEstimateSchema, HashLeaseSchema, asHashLease, asHashLeaseEstimate, asHashLeaseEstimateWithSources, asHashLeaseWithSources, asOptionalHashLease, asOptionalHashLeaseEstimate, asOptionalHashLeaseEstimateWithSources, asOptionalHashLeaseWithSources, isHashLease, isHashLeaseEstimate, isHashLeaseEstimateWithSources, isHashLeaseWithSources };
77
- export type { HashLease, HashLeaseEstimate, HashLeaseEstimateDivinerConfig, HashLeaseEstimateDivinerParams, HashLeaseEstimateFields };
1
+ export * from './Config.ts';
2
+ export * from './Diviner.ts';
3
+ export * from './Params.ts';
4
+ export * from './Payload/index.ts';
5
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-hash-lease",
3
- "version": "4.1.2",
3
+ "version": "4.1.3",
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/object": "^4.13.15",
33
- "@xyo-network/diviner-abstract": "^4.1.2",
34
- "@xyo-network/diviner-model": "^4.1.2",
35
- "@xyo-network/module-model": "^4.1.2",
36
- "@xyo-network/payload-model": "^4.1.2"
32
+ "@xylabs/object": "^4.13.16",
33
+ "@xyo-network/diviner-abstract": "^4.1.3",
34
+ "@xyo-network/diviner-model": "^4.1.3",
35
+ "@xyo-network/module-model": "^4.1.3",
36
+ "@xyo-network/payload-model": "^4.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
40
- "@xylabs/tsconfig": "^7.0.0-rc.23",
39
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
40
+ "@xylabs/tsconfig": "^7.0.0-rc.27",
41
41
  "typescript": "^5.8.3"
42
42
  },
43
43
  "publishConfig": {