@xyo-network/diviner-hash-lease 3.6.0-rc.18 → 3.6.0-rc.19

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 type { Payload } from '@xyo-network/payload-model';
1
+ import type { Payload, 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 {
@@ -50,7 +50,9 @@ export declare const asHashLeaseEstimate: {
50
50
  exp: number;
51
51
  nbf: number;
52
52
  price: number;
53
- }>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
53
+ }>>, config?: import("@xylabs/object" /**
54
+ * When the lease begins
55
+ */).TypeCheckConfig): TType;
54
56
  };
55
57
  export declare const asOptionalHashLeaseEstimate: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
56
58
  schema: "network.xyo.hash.lease.estimate";
@@ -62,40 +64,42 @@ export declare const asOptionalHashLeaseEstimate: <TType extends import("@xylabs
62
64
  /**
63
65
  * Identity function for HashLeaseEstimate payload with sources
64
66
  */
65
- export declare const isHashLeaseEstimateWithSources: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
67
+ export declare const isHashLeaseEstimateWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
66
68
  schema: "network.xyo.hash.lease.estimate";
67
69
  currency: string;
68
70
  exp: number;
69
71
  nbf: number;
70
72
  price: number;
71
- }>>;
73
+ }>>>;
72
74
  export declare const asHashLeaseEstimateWithSources: {
73
- <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
75
+ <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
74
76
  schema: "network.xyo.hash.lease.estimate";
75
77
  currency: string;
76
78
  exp: number;
77
79
  nbf: number;
78
80
  price: number;
79
- }>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
80
- <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
81
+ }>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
82
+ <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
81
83
  schema: "network.xyo.hash.lease.estimate";
82
84
  currency: string;
83
85
  exp: number;
84
86
  nbf: number;
85
87
  price: number;
86
- }>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
88
+ }>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
87
89
  schema: "network.xyo.hash.lease.estimate";
88
90
  currency: string;
89
91
  exp: number;
90
92
  nbf: number;
91
93
  price: number;
92
- }>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
94
+ }>>>, config?: import("@xylabs/object" /**
95
+ * When the lease begins
96
+ */).TypeCheckConfig): TType;
93
97
  };
94
- export declare const asOptionalHashLeaseEstimateWithSources: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
98
+ export declare const asOptionalHashLeaseEstimateWithSources: <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
95
99
  schema: "network.xyo.hash.lease.estimate";
96
100
  currency: string;
97
101
  exp: number;
98
102
  nbf: number;
99
103
  price: number;
100
- }>>(value: import("@xylabs/promise").AnyNonPromise) => TType | undefined;
104
+ }>>>(value: import("@xylabs/promise").AnyNonPromise) => TType | undefined;
101
105
  //# 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,OAA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IX,MAAM;SAIN,MAAM;WAIJ,MAAM;IAewH,CAAA;AACvI,eAAO,MAAM,8BAA8B;;;kBA5B/B,MAAM;aAIX,MAAM;aAIN,MAAM;eAIJ,MAAM;uBAnBa,iBAAiB,iCAAiC,gBAC9D;;;kBAMJ,MAAM;aAIX,MAAM;aAIN,MAAM;eAIJ,MAAM;uBAhBU,iBAAiB;;kBAI9B,MAAM;aAIX,MAAM;aAIN,MAAM;eAIJ,MAAM;0BATZ,gBAED,CAAA;;OAEG;CAqB+H,CAAA;AACpI,eAAO,MAAM,sCAAsC;;cA7BvC,MAAM;SAIX,MAAM;SAIN,MAAM;WAIJ,MAAM;mBAGG,iBAAiB,qCAciH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config' as const\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 { 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.ts'\nimport { HashLeaseEstimateDivinerParams } from './Params.ts'\nimport { HashLeaseEstimate, 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 targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import type { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease' as const\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 { AsObjectFactory } from '@xylabs/object'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate' as const\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<HashLeaseEstimate>(HashLeaseEstimateSchema)\nexport const asHashLeaseEstimateWithSources = AsObjectFactory.create<HashLeaseEstimate>(isHashLeaseEstimateWithSources)\nexport const asOptionalHashLeaseEstimateWithSources = AsObjectFactory.createOptional<HashLeaseEstimate>(isHashLeaseEstimateWithSources)\n"],"mappings":";;;;AAEO,IAAMA,uCAAuC;;;ACFpD,SAASC,uBAAuB;AAEhC,SAASC,uBAAuB;;;ACAzB,IAAMC,kBAAkB;;;ACF/B,SAASC,uBAAuB;AAEhC,SAASC,uBAAuBC,wCAAwC;AAEjE,IAAMC,0BAA0B;AA2BhC,IAAMC,sBAAsBH,sBAAyCE,uBAAAA;AACrE,IAAME,sBAAsBL,gBAAgBM,OAA0BF,mBAAAA;AACtE,IAAMG,8BAA8BP,gBAAgBQ,eAAkCJ,mBAAAA;AAKtF,IAAMK,iCAAiCP,iCAAoDC,uBAAAA;AAC3F,IAAMO,iCAAiCV,gBAAgBM,OAA0BG,8BAAAA;AACjF,IAAME,yCAAyCX,gBAAgBQ,eAAkCC,8BAAAA;;;;;;;;;;AF9BjG,IAAMG,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;;;;","names":["HashLeaseEstimateDivinerConfigSchema","AbstractDiviner","creatableModule","HashLeaseSchema","AsObjectFactory","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithSources","HashLeaseEstimateSchema","isHashLeaseEstimate","asHashLeaseEstimate","create","asOptionalHashLeaseEstimate","createOptional","isHashLeaseEstimateWithSources","asHashLeaseEstimateWithSources","asOptionalHashLeaseEstimateWithSources","HashLeaseEstimateDiviner","AbstractDiviner","configSchemas","HashLeaseEstimateDivinerConfigSchema","defaultConfigSchema","targetSchema","HashLeaseEstimateSchema","divineHandler","_payloads","Promise","resolve"]}
1
+ {"version":3,"sources":["../../src/Config.ts","../../src/Diviner.ts","../../src/Payload/HashLease.ts","../../src/Payload/HashLeaseEstimate.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\n\nexport const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config' as const\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 { 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.ts'\nimport { HashLeaseEstimateDivinerParams } from './Params.ts'\nimport { HashLeaseEstimate, 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 targetSchema = HashLeaseEstimateSchema\n\n protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {\n return await Promise.resolve([])\n }\n}\n","import type { Payload } from '@xyo-network/payload-model'\n\nexport const HashLeaseSchema = 'network.xyo.hash.lease' as const\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 { AsObjectFactory } from '@xylabs/object'\nimport type { Payload, WithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'\n\nexport const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate' as const\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"],"mappings":";;;;AAEO,IAAMA,uCAAuC;;;ACFpD,SAASC,uBAAuB;AAEhC,SAASC,uBAAuB;;;ACAzB,IAAMC,kBAAkB;;;ACF/B,SAASC,uBAAuB;AAEhC,SAASC,uBAAuBC,wCAAwC;AAEjE,IAAMC,0BAA0B;AA2BhC,IAAMC,sBAAsBH,sBAAyCE,uBAAAA;AACrE,IAAME,sBAAsBL,gBAAgBM,OAA0BF,mBAAAA;AACtE,IAAMG,8BAA8BP,gBAAgBQ,eAAkCJ,mBAAAA;AAKtF,IAAMK,iCAAiCP,iCAAiEC,uBAAAA;AACxG,IAAMO,iCAAiCV,gBAAgBM,OAAuCG,8BAAAA;AAC9F,IAAME,yCAAyCX,gBAAgBQ,eAA+CC,8BAAAA;;;;;;;;;;AF9B9G,IAAMG,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;;;;","names":["HashLeaseEstimateDivinerConfigSchema","AbstractDiviner","creatableModule","HashLeaseSchema","AsObjectFactory","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithSources","HashLeaseEstimateSchema","isHashLeaseEstimate","asHashLeaseEstimate","create","asOptionalHashLeaseEstimate","createOptional","isHashLeaseEstimateWithSources","asHashLeaseEstimateWithSources","asOptionalHashLeaseEstimateWithSources","HashLeaseEstimateDiviner","AbstractDiviner","configSchemas","HashLeaseEstimateDivinerConfigSchema","defaultConfigSchema","targetSchema","HashLeaseEstimateSchema","divineHandler","_payloads","Promise","resolve"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-hash-lease",
3
- "version": "3.6.0-rc.18",
3
+ "version": "3.6.0-rc.19",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,10 +30,10 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
32
  "@xylabs/object": "^4.4.25",
33
- "@xyo-network/diviner-abstract": "^3.6.0-rc.18",
34
- "@xyo-network/diviner-model": "^3.6.0-rc.18",
35
- "@xyo-network/module-model": "^3.6.0-rc.18",
36
- "@xyo-network/payload-model": "^3.6.0-rc.18"
33
+ "@xyo-network/diviner-abstract": "^3.6.0-rc.19",
34
+ "@xyo-network/diviner-model": "^3.6.0-rc.19",
35
+ "@xyo-network/module-model": "^3.6.0-rc.19",
36
+ "@xyo-network/payload-model": "^3.6.0-rc.19"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@xylabs/ts-scripts-yarn3": "^4.2.6",
@@ -1,5 +1,5 @@
1
1
  import { AsObjectFactory } from '@xylabs/object'
2
- import type { Payload } from '@xyo-network/payload-model'
2
+ import type { Payload, WithSources } from '@xyo-network/payload-model'
3
3
  import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources } from '@xyo-network/payload-model'
4
4
 
5
5
  export const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate' as const
@@ -36,6 +36,6 @@ export const asOptionalHashLeaseEstimate = AsObjectFactory.createOptional<HashLe
36
36
  /**
37
37
  * Identity function for HashLeaseEstimate payload with sources
38
38
  */
39
- export const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<HashLeaseEstimate>(HashLeaseEstimateSchema)
40
- export const asHashLeaseEstimateWithSources = AsObjectFactory.create<HashLeaseEstimate>(isHashLeaseEstimateWithSources)
41
- export const asOptionalHashLeaseEstimateWithSources = AsObjectFactory.createOptional<HashLeaseEstimate>(isHashLeaseEstimateWithSources)
39
+ export const isHashLeaseEstimateWithSources = isPayloadOfSchemaTypeWithSources<WithSources<HashLeaseEstimate>>(HashLeaseEstimateSchema)
40
+ export const asHashLeaseEstimateWithSources = AsObjectFactory.create<WithSources<HashLeaseEstimate>>(isHashLeaseEstimateWithSources)
41
+ export const asOptionalHashLeaseEstimateWithSources = AsObjectFactory.createOptional<WithSources<HashLeaseEstimate>>(isHashLeaseEstimateWithSources)