@xyo-network/diviner-hash-lease 2.99.1 → 2.99.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.
Files changed (47) hide show
  1. package/dist/neutral/Config.d.cts +5 -0
  2. package/dist/neutral/Config.d.cts.map +1 -0
  3. package/dist/neutral/Config.d.mts +5 -0
  4. package/dist/neutral/Config.d.mts.map +1 -0
  5. package/dist/neutral/Config.d.ts +5 -0
  6. package/dist/neutral/Config.d.ts.map +1 -0
  7. package/dist/neutral/Diviner.d.cts +12 -0
  8. package/dist/neutral/Diviner.d.cts.map +1 -0
  9. package/dist/neutral/Diviner.d.mts +12 -0
  10. package/dist/neutral/Diviner.d.mts.map +1 -0
  11. package/dist/neutral/Diviner.d.ts +12 -0
  12. package/dist/neutral/Diviner.d.ts.map +1 -0
  13. package/dist/neutral/Params.d.cts +5 -0
  14. package/dist/neutral/Params.d.cts.map +1 -0
  15. package/dist/neutral/Params.d.mts +5 -0
  16. package/dist/neutral/Params.d.mts.map +1 -0
  17. package/dist/neutral/Params.d.ts +5 -0
  18. package/dist/neutral/Params.d.ts.map +1 -0
  19. package/dist/neutral/Payload/HashLease.d.cts +10 -0
  20. package/dist/neutral/Payload/HashLease.d.cts.map +1 -0
  21. package/dist/neutral/Payload/HashLease.d.mts +10 -0
  22. package/dist/neutral/Payload/HashLease.d.mts.map +1 -0
  23. package/dist/neutral/Payload/HashLease.d.ts +10 -0
  24. package/dist/neutral/Payload/HashLease.d.ts.map +1 -0
  25. package/dist/neutral/Payload/HashLeaseEstimate.d.cts +41 -0
  26. package/dist/neutral/Payload/HashLeaseEstimate.d.cts.map +1 -0
  27. package/dist/neutral/Payload/HashLeaseEstimate.d.mts +41 -0
  28. package/dist/neutral/Payload/HashLeaseEstimate.d.mts.map +1 -0
  29. package/dist/neutral/Payload/HashLeaseEstimate.d.ts +41 -0
  30. package/dist/neutral/Payload/HashLeaseEstimate.d.ts.map +1 -0
  31. package/dist/neutral/Payload/index.d.cts +3 -0
  32. package/dist/neutral/Payload/index.d.cts.map +1 -0
  33. package/dist/neutral/Payload/index.d.mts +3 -0
  34. package/dist/neutral/Payload/index.d.mts.map +1 -0
  35. package/dist/neutral/Payload/index.d.ts +3 -0
  36. package/dist/neutral/Payload/index.d.ts.map +1 -0
  37. package/dist/neutral/index.cjs +80 -0
  38. package/dist/neutral/index.cjs.map +1 -0
  39. package/dist/neutral/index.d.cts +5 -0
  40. package/dist/neutral/index.d.cts.map +1 -0
  41. package/dist/neutral/index.d.mts +5 -0
  42. package/dist/neutral/index.d.mts.map +1 -0
  43. package/dist/neutral/index.d.ts +5 -0
  44. package/dist/neutral/index.d.ts.map +1 -0
  45. package/dist/neutral/index.js +59 -0
  46. package/dist/neutral/index.js.map +1 -0
  47. package/package.json +7 -7
@@ -0,0 +1,5 @@
1
+ import { DivinerConfig } from '@xyo-network/diviner-model';
2
+ export declare const HashLeaseEstimateDivinerConfigSchema = "network.xyo.diviner.hash.lease.estimate.config";
3
+ export type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
4
+ export type HashLeaseEstimateDivinerConfig = DivinerConfig<{}, HashLeaseEstimateDivinerConfigSchema>;
5
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,eAAO,MAAM,oCAAoC,mDAAmD,CAAA;AACpG,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,MAAM,MAAM,8BAA8B,GAAG,aAAa,CACxD,EAEC,EACD,oCAAoC,CACrC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { DivinerConfig } from '@xyo-network/diviner-model';
2
+ export declare const HashLeaseEstimateDivinerConfigSchema = "network.xyo.diviner.hash.lease.estimate.config";
3
+ export type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
4
+ export type HashLeaseEstimateDivinerConfig = DivinerConfig<{}, HashLeaseEstimateDivinerConfigSchema>;
5
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,eAAO,MAAM,oCAAoC,mDAAmD,CAAA;AACpG,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,MAAM,MAAM,8BAA8B,GAAG,aAAa,CACxD,EAEC,EACD,oCAAoC,CACrC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { DivinerConfig } from '@xyo-network/diviner-model';
2
+ export declare const HashLeaseEstimateDivinerConfigSchema = "network.xyo.diviner.hash.lease.estimate.config";
3
+ export type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
4
+ export type HashLeaseEstimateDivinerConfig = DivinerConfig<{}, HashLeaseEstimateDivinerConfigSchema>;
5
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,eAAO,MAAM,oCAAoC,mDAAmD,CAAA;AACpG,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,MAAM,MAAM,8BAA8B,GAAG,aAAa,CACxD,EAEC,EACD,oCAAoC,CACrC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model';
3
+ import { Payload, Schema } from '@xyo-network/payload-model';
4
+ import { HashLeaseEstimateDivinerParams } from './Params';
5
+ import { HashLeaseEstimate } from './Payload';
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
+ static readonly configSchemas: Schema[];
8
+ static readonly defaultConfigSchema: Schema;
9
+ static targetSchema: string;
10
+ protected divineHandler(_payloads?: TIn[]): Promise<TOut[]>;
11
+ }
12
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +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,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEpF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAG5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,WAAW,CAAA;AAEtE,qBACa,wBAAwB,CACnC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,EAC/E,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,iBAAiB,GAAG,OAAO,GAAG,iBAAiB,GAAG,OAAO,EACtE,UAAU,SAAS,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,OAAgB,YAAY,SAA0B;cAE7B,aAAa,CAAC,SAAS,GAAE,GAAG,EAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CAG/E"}
@@ -0,0 +1,12 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model';
3
+ import { Payload, Schema } from '@xyo-network/payload-model';
4
+ import { HashLeaseEstimateDivinerParams } from './Params';
5
+ import { HashLeaseEstimate } from './Payload';
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
+ static readonly configSchemas: Schema[];
8
+ static readonly defaultConfigSchema: Schema;
9
+ static targetSchema: string;
10
+ protected divineHandler(_payloads?: TIn[]): Promise<TOut[]>;
11
+ }
12
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +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,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEpF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAG5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,WAAW,CAAA;AAEtE,qBACa,wBAAwB,CACnC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,EAC/E,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,iBAAiB,GAAG,OAAO,GAAG,iBAAiB,GAAG,OAAO,EACtE,UAAU,SAAS,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,OAAgB,YAAY,SAA0B;cAE7B,aAAa,CAAC,SAAS,GAAE,GAAG,EAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CAG/E"}
@@ -0,0 +1,12 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model';
3
+ import { Payload, Schema } from '@xyo-network/payload-model';
4
+ import { HashLeaseEstimateDivinerParams } from './Params';
5
+ import { HashLeaseEstimate } from './Payload';
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
+ static readonly configSchemas: Schema[];
8
+ static readonly defaultConfigSchema: Schema;
9
+ static targetSchema: string;
10
+ protected divineHandler(_payloads?: TIn[]): Promise<TOut[]>;
11
+ }
12
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +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,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEpF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAG5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,WAAW,CAAA;AAEtE,qBACa,wBAAwB,CACnC,OAAO,SAAS,8BAA8B,GAAG,8BAA8B,EAC/E,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,iBAAiB,GAAG,OAAO,GAAG,iBAAiB,GAAG,OAAO,EACtE,UAAU,SAAS,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,OAAgB,YAAY,SAA0B;cAE7B,aAAa,CAAC,SAAS,GAAE,GAAG,EAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CAG/E"}
@@ -0,0 +1,5 @@
1
+ import { DivinerParams } from '@xyo-network/diviner-model';
2
+ import { AnyConfigSchema } from '@xyo-network/module-model';
3
+ import { HashLeaseEstimateDivinerConfig } from './Config';
4
+ export type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = DivinerParams<TConfig>;
5
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAEzD,MAAM,MAAM,8BAA8B,CACxC,OAAO,SAAS,eAAe,CAAC,8BAA8B,CAAC,GAAG,eAAe,CAAC,8BAA8B,CAAC,IAC/G,aAAa,CAAC,OAAO,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { DivinerParams } from '@xyo-network/diviner-model';
2
+ import { AnyConfigSchema } from '@xyo-network/module-model';
3
+ import { HashLeaseEstimateDivinerConfig } from './Config';
4
+ export type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = DivinerParams<TConfig>;
5
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAEzD,MAAM,MAAM,8BAA8B,CACxC,OAAO,SAAS,eAAe,CAAC,8BAA8B,CAAC,GAAG,eAAe,CAAC,8BAA8B,CAAC,IAC/G,aAAa,CAAC,OAAO,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { DivinerParams } from '@xyo-network/diviner-model';
2
+ import { AnyConfigSchema } from '@xyo-network/module-model';
3
+ import { HashLeaseEstimateDivinerConfig } from './Config';
4
+ export type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = DivinerParams<TConfig>;
5
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAA;AAEzD,MAAM,MAAM,8BAA8B,CACxC,OAAO,SAAS,eAAe,CAAC,8BAA8B,CAAC,GAAG,eAAe,CAAC,8BAA8B,CAAC,IAC/G,aAAa,CAAC,OAAO,CAAC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export declare const HashLeaseSchema = "network.xyo.hash.lease";
3
+ export type HashLeaseSchema = typeof HashLeaseSchema;
4
+ export type HashLease = Payload<{
5
+ /**
6
+ * The desired duration of the lease
7
+ */
8
+ duration: number;
9
+ }, HashLeaseSchema>;
10
+ //# sourceMappingURL=HashLease.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HashLease.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLease.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,eAAe,2BAA2B,CAAA;AACvD,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"}
@@ -0,0 +1,10 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export declare const HashLeaseSchema = "network.xyo.hash.lease";
3
+ export type HashLeaseSchema = typeof HashLeaseSchema;
4
+ export type HashLease = Payload<{
5
+ /**
6
+ * The desired duration of the lease
7
+ */
8
+ duration: number;
9
+ }, HashLeaseSchema>;
10
+ //# sourceMappingURL=HashLease.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HashLease.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLease.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,eAAe,2BAA2B,CAAA;AACvD,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"}
@@ -0,0 +1,10 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export declare const HashLeaseSchema = "network.xyo.hash.lease";
3
+ export type HashLeaseSchema = typeof HashLeaseSchema;
4
+ export type HashLease = Payload<{
5
+ /**
6
+ * The desired duration of the lease
7
+ */
8
+ duration: number;
9
+ }, HashLeaseSchema>;
10
+ //# sourceMappingURL=HashLease.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HashLease.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLease.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,eAAe,2BAA2B,CAAA;AACvD,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"}
@@ -0,0 +1,41 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
3
+ export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
4
+ export interface HashLeaseEstimateFields {
5
+ /**
6
+ * The currency of the price
7
+ */
8
+ currency: string;
9
+ /**
10
+ * When the lease ends
11
+ */
12
+ exp: number;
13
+ /**
14
+ * When the lease begins
15
+ */
16
+ nbf: number;
17
+ /**
18
+ * The estimated price of the lease
19
+ */
20
+ price: number;
21
+ }
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 import("@xyo-network/payload-model").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 import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
39
+ schema: "network.xyo.hash.lease.estimate";
40
+ }>;
41
+ //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0F,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE5I,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;;EAA4E,CAAA;AAEpH;;GAEG;AACH,eAAO,MAAM,8BAA8B;;EAA+E,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
3
+ export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
4
+ export interface HashLeaseEstimateFields {
5
+ /**
6
+ * The currency of the price
7
+ */
8
+ currency: string;
9
+ /**
10
+ * When the lease ends
11
+ */
12
+ exp: number;
13
+ /**
14
+ * When the lease begins
15
+ */
16
+ nbf: number;
17
+ /**
18
+ * The estimated price of the lease
19
+ */
20
+ price: number;
21
+ }
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 import("@xyo-network/payload-model").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 import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
39
+ schema: "network.xyo.hash.lease.estimate";
40
+ }>;
41
+ //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0F,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE5I,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;;EAA4E,CAAA;AAEpH;;GAEG;AACH,eAAO,MAAM,8BAA8B;;EAA+E,CAAA"}
@@ -0,0 +1,41 @@
1
+ import { Payload } from '@xyo-network/payload-model';
2
+ export declare const HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
3
+ export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
4
+ export interface HashLeaseEstimateFields {
5
+ /**
6
+ * The currency of the price
7
+ */
8
+ currency: string;
9
+ /**
10
+ * When the lease ends
11
+ */
12
+ exp: number;
13
+ /**
14
+ * When the lease begins
15
+ */
16
+ nbf: number;
17
+ /**
18
+ * The estimated price of the lease
19
+ */
20
+ price: number;
21
+ }
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 import("@xyo-network/payload-model").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 import("@xyo-network/payload-model").WithSources<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & HashLeaseEstimateFields & {
39
+ schema: "network.xyo.hash.lease.estimate";
40
+ }>;
41
+ //# sourceMappingURL=HashLeaseEstimate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0F,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE5I,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;;EAA4E,CAAA;AAEpH;;GAEG;AACH,eAAO,MAAM,8BAA8B;;EAA+E,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './HashLease';
2
+ export * from './HashLeaseEstimate';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './HashLease';
2
+ export * from './HashLeaseEstimate';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './HashLease';
2
+ export * from './HashLeaseEstimate';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ HashLeaseEstimateDiviner: () => HashLeaseEstimateDiviner,
25
+ HashLeaseEstimateDivinerConfigSchema: () => HashLeaseEstimateDivinerConfigSchema,
26
+ HashLeaseEstimateSchema: () => HashLeaseEstimateSchema,
27
+ HashLeaseSchema: () => HashLeaseSchema,
28
+ isHashLeaseEstimate: () => isHashLeaseEstimate,
29
+ isHashLeaseEstimateWithMeta: () => isHashLeaseEstimateWithMeta,
30
+ isHashLeaseEstimateWithSources: () => isHashLeaseEstimateWithSources
31
+ });
32
+ module.exports = __toCommonJS(src_exports);
33
+
34
+ // src/Config.ts
35
+ var HashLeaseEstimateDivinerConfigSchema = "network.xyo.diviner.hash.lease.estimate.config";
36
+
37
+ // src/Diviner.ts
38
+ var import_diviner_abstract = require("@xyo-network/diviner-abstract");
39
+ var import_module_model = require("@xyo-network/module-model");
40
+
41
+ // src/Payload/HashLease.ts
42
+ var HashLeaseSchema = "network.xyo.hash.lease";
43
+
44
+ // src/Payload/HashLeaseEstimate.ts
45
+ var import_payload_model = require("@xyo-network/payload-model");
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);
50
+
51
+ // src/Diviner.ts
52
+ function _ts_decorate(decorators, target, key, desc) {
53
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
54
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
55
+ r = Reflect.decorate(decorators, target, key, desc);
56
+ else
57
+ for (var i = decorators.length - 1; i >= 0; i--)
58
+ if (d = decorators[i])
59
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
60
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
61
+ }
62
+ __name(_ts_decorate, "_ts_decorate");
63
+ var HashLeaseEstimateDiviner = class extends import_diviner_abstract.AbstractDiviner {
64
+ static {
65
+ __name(this, "HashLeaseEstimateDiviner");
66
+ }
67
+ static configSchemas = [
68
+ ...super.configSchemas,
69
+ HashLeaseEstimateDivinerConfigSchema
70
+ ];
71
+ static defaultConfigSchema = HashLeaseEstimateDivinerConfigSchema;
72
+ static targetSchema = HashLeaseEstimateSchema;
73
+ async divineHandler(_payloads = []) {
74
+ return await Promise.resolve([]);
75
+ }
76
+ };
77
+ HashLeaseEstimateDiviner = _ts_decorate([
78
+ (0, import_module_model.creatableModule)()
79
+ ], HashLeaseEstimateDiviner);
80
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +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, Schema } 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 readonly configSchemas: Schema[] = [...super.configSchemas, HashLeaseEstimateDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = 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 { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources, 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\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<HashLeaseEstimate>(HashLeaseEstimateSchema)\n\n/**\n * Identity function for HashLeaseEstimate payload with sources\n */\nexport const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<HashLeaseEstimate>(HashLeaseEstimateSchema)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACEO,IAAMA,uCAAuC;;;ACFpD,8BAAgC;AAEhC,0BAAgC;;;ACAzB,IAAMC,kBAAkB;;;ACF/B,2BAAgH;AAEzG,IAAMC,0BAA0B;AA2BhC,IAAMC,0BAAsBC,4CAAyCF,uBAAAA;AAKrE,IAAMG,kCAA8BC,oDAAiDJ,uBAAAA;AAKrF,IAAMK,qCAAiCC,uDAAoDN,uBAAAA;;;;;;;;;;;;;;AF7B3F,IAAMO,2BAAN,cASGC,wCAAAA;SAAAA;;;EACR,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeC;;EAC5E,OAAyBC,sBAA8BD;EACvD,OAAgBE,eAAeC;EAE/B,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAjBaV,2BAAAA,aAAAA;MADZW,qCAAAA;GACYX,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","HashLeaseSchema","HashLeaseEstimateSchema","isHashLeaseEstimate","isPayloadOfSchemaType","isHashLeaseEstimateWithMeta","isPayloadOfSchemaTypeWithMeta","isHashLeaseEstimateWithSources","isPayloadOfSchemaTypeWithSources","HashLeaseEstimateDiviner","AbstractDiviner","configSchemas","HashLeaseEstimateDivinerConfigSchema","defaultConfigSchema","targetSchema","HashLeaseEstimateSchema","divineHandler","_payloads","Promise","resolve","creatableModule"]}
@@ -0,0 +1,5 @@
1
+ export * from './Config';
2
+ export * from './Diviner';
3
+ export * from './Params';
4
+ export * from './Payload';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './Config';
2
+ export * from './Diviner';
3
+ export * from './Params';
4
+ export * from './Payload';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -0,0 +1,5 @@
1
+ export * from './Config';
2
+ export * from './Diviner';
3
+ export * from './Params';
4
+ export * from './Payload';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -0,0 +1,59 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/Config.ts
5
+ var HashLeaseEstimateDivinerConfigSchema = "network.xyo.diviner.hash.lease.estimate.config";
6
+
7
+ // src/Diviner.ts
8
+ import { AbstractDiviner } from "@xyo-network/diviner-abstract";
9
+ import { creatableModule } from "@xyo-network/module-model";
10
+
11
+ // src/Payload/HashLease.ts
12
+ var HashLeaseSchema = "network.xyo.hash.lease";
13
+
14
+ // src/Payload/HashLeaseEstimate.ts
15
+ import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
16
+ var HashLeaseEstimateSchema = "network.xyo.hash.lease.estimate";
17
+ var isHashLeaseEstimate = isPayloadOfSchemaType(HashLeaseEstimateSchema);
18
+ var isHashLeaseEstimateWithMeta = isPayloadOfSchemaTypeWithMeta(HashLeaseEstimateSchema);
19
+ var isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources(HashLeaseEstimateSchema);
20
+
21
+ // src/Diviner.ts
22
+ function _ts_decorate(decorators, target, key, desc) {
23
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
25
+ r = Reflect.decorate(decorators, target, key, desc);
26
+ else
27
+ for (var i = decorators.length - 1; i >= 0; i--)
28
+ if (d = decorators[i])
29
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
31
+ }
32
+ __name(_ts_decorate, "_ts_decorate");
33
+ var HashLeaseEstimateDiviner = class extends AbstractDiviner {
34
+ static {
35
+ __name(this, "HashLeaseEstimateDiviner");
36
+ }
37
+ static configSchemas = [
38
+ ...super.configSchemas,
39
+ HashLeaseEstimateDivinerConfigSchema
40
+ ];
41
+ static defaultConfigSchema = HashLeaseEstimateDivinerConfigSchema;
42
+ static targetSchema = HashLeaseEstimateSchema;
43
+ async divineHandler(_payloads = []) {
44
+ return await Promise.resolve([]);
45
+ }
46
+ };
47
+ HashLeaseEstimateDiviner = _ts_decorate([
48
+ creatableModule()
49
+ ], HashLeaseEstimateDiviner);
50
+ export {
51
+ HashLeaseEstimateDiviner,
52
+ HashLeaseEstimateDivinerConfigSchema,
53
+ HashLeaseEstimateSchema,
54
+ HashLeaseSchema,
55
+ isHashLeaseEstimate,
56
+ isHashLeaseEstimateWithMeta,
57
+ isHashLeaseEstimateWithSources
58
+ };
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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, Schema } 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 readonly configSchemas: Schema[] = [...super.configSchemas, HashLeaseEstimateDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = 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 { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources, 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\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<HashLeaseEstimate>(HashLeaseEstimateSchema)\n\n/**\n * Identity function for HashLeaseEstimate payload with sources\n */\nexport const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<HashLeaseEstimate>(HashLeaseEstimateSchema)\n"],"mappings":";;;;AAEO,IAAMA,uCAAuC;;;ACFpD,SAASC,uBAAuB;AAEhC,SAASC,uBAAuB;;;ACAzB,IAAMC,kBAAkB;;;ACF/B,SAASC,uBAAuBC,+BAA+BC,wCAAiD;AAEzG,IAAMC,0BAA0B;AA2BhC,IAAMC,sBAAsBJ,sBAAyCG,uBAAAA;AAKrE,IAAME,8BAA8BJ,8BAAiDE,uBAAAA;AAKrF,IAAMG,iCAAiCJ,iCAAoDC,uBAAAA;;;;;;;;;;;;;;AF7B3F,IAAMI,2BAAN,cASGC,gBAAAA;SAAAA;;;EACR,OAAyBC,gBAA0B;OAAI,MAAMA;IAAeC;;EAC5E,OAAyBC,sBAA8BD;EACvD,OAAgBE,eAAeC;EAE/B,MAAyBC,cAAcC,YAAmB,CAAA,GAAqB;AAC7E,WAAO,MAAMC,QAAQC,QAAQ,CAAA,CAAE;EACjC;AACF;AAjBaV,2BAAAA,aAAAA;EADZW,gBAAAA;GACYX,wBAAAA;","names":["HashLeaseEstimateDivinerConfigSchema","AbstractDiviner","creatableModule","HashLeaseSchema","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","HashLeaseEstimateSchema","isHashLeaseEstimate","isHashLeaseEstimateWithMeta","isHashLeaseEstimateWithSources","HashLeaseEstimateDiviner","AbstractDiviner","configSchemas","HashLeaseEstimateDivinerConfigSchema","defaultConfigSchema","targetSchema","HashLeaseEstimateSchema","divineHandler","_payloads","Promise","resolve","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.99.1",
14
- "@xyo-network/diviner-model": "~2.99.1",
15
- "@xyo-network/module-model": "~2.99.1",
16
- "@xyo-network/payload-model": "~2.99.1"
13
+ "@xyo-network/diviner-abstract": "~2.99.3",
14
+ "@xyo-network/diviner-model": "~2.99.3",
15
+ "@xyo-network/module-model": "~2.99.3",
16
+ "@xyo-network/payload-model": "~2.99.3"
17
17
  },
18
18
  "devDependencies": {
19
- "@xylabs/ts-scripts-yarn3": "^3.9.1",
20
- "@xylabs/tsconfig": "^3.9.1",
19
+ "@xylabs/ts-scripts-yarn3": "^3.10.0",
20
+ "@xylabs/tsconfig": "^3.10.0",
21
21
  "typescript": "^5.4.5"
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.99.1",
62
+ "version": "2.99.3",
63
63
  "type": "module"
64
64
  }