@xyo-network/diviner-hash-lease 7.0.8 → 7.0.10

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,6 +1,6 @@
1
1
  import { zodAsFactory, zodIsFactory, zodToFactory } from '@ariestools/sdk';
2
- import type { DivinerConfig } from '@xyo-network/diviner-model';
3
- import { DivinerConfigZod } from '@xyo-network/diviner-model';
2
+ import type { DivinerConfig } from '@xyo-network/sdk/diviner-model';
3
+ import { DivinerConfigZod } from '@xyo-network/sdk/diviner-model';
4
4
  import * as z from 'zod/mini';
5
5
  export declare const HashLeaseEstimateDivinerConfigSchema: 'network.xyo.diviner.hash.lease.estimate.config' & {
6
6
  readonly __schema: true;
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,eAAO,MAAM,oCAAoC,EAAE,gDAAgD,GAAG;IACpG,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC2C,CAAA;AACpE,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,aAAa,CAC7D,IAAI,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,GAAG;IACnD,MAAM,EAAE,CAAC,CAAC,cAAc,CAAC,oCAAoC,CAAC,CAAA;CAC/D,EACD,CAAC,CAAC,IAAI,CAAC,MAAM,CAC4E,CAAA;AAE3F,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,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O,YAAY,CAAC,kCAAkC,CAAC,CAAmD,CAAA;AACpK,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,kCAAkC,CAAC,CAAuF,CAAA;AACxM,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,kCAAkC,CAAC,CAAuF,CAAA;AAExM,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAExD,EAEC,EACD,oCAAoC,CACrC,CAAA"}
@@ -1,5 +1,5 @@
1
- import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
- import type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model';
1
+ import { AbstractDiviner } from '@xyo-network/sdk/diviner-abstract';
2
+ import type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/sdk/diviner-model';
3
3
  import type { Payload, Schema } from '@xyo-network/sdk-protocol';
4
4
  import type { HashLeaseEstimateDivinerParams } from './Params.ts';
5
5
  import type { HashLeaseEstimate } from './Payload/index.ts';
@@ -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,2BAA2B,CAAA;AAGhE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAG3D,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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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,5 @@
1
- import type { DivinerParams } from '@xyo-network/diviner-model';
2
- import type { AnyConfigSchema } from '@xyo-network/module-model';
1
+ import type { DivinerParams } from '@xyo-network/sdk/diviner-model';
2
+ import type { AnyConfigSchema } from '@xyo-network/sdk/module-model';
3
3
  import type { HashLeaseEstimateDivinerConfig } from './Config.ts';
4
4
  export type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = DivinerParams<TConfig>;
5
5
  //# sourceMappingURL=Params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,8BAA8B,CACxC,OAAO,SAAS,eAAe,CAAC,8BAA8B,CAAC,GAAG,eAAe,CAAC,8BAA8B,CAAC,IAC/G,aAAa,CAAC,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,8BAA8B,CACxC,OAAO,SAAS,eAAe,CAAC,8BAA8B,CAAC,GAAG,eAAe,CAAC,8BAA8B,CAAC,IAC/G,aAAa,CAAC,OAAO,CAAC,CAAA"}
@@ -20,7 +20,7 @@ import {
20
20
  zodIsFactory,
21
21
  zodToFactory
22
22
  } from "@ariestools/sdk";
23
- import { DivinerConfigZod } from "@xyo-network/diviner-model";
23
+ import { DivinerConfigZod } from "@xyo-network/sdk/diviner-model";
24
24
  import { asSchema } from "@xyo-network/sdk-protocol";
25
25
  import * as z from "zod/mini";
26
26
  var HashLeaseEstimateDivinerConfigSchema = asSchema("network.xyo.diviner.hash.lease.estimate.config", true);
@@ -30,8 +30,8 @@ var asHashLeaseEstimateDivinerConfig = zodAsFactory(HashLeaseEstimateDivinerConf
30
30
  var toHashLeaseEstimateDivinerConfig = zodToFactory(HashLeaseEstimateDivinerConfigZod, "toHashLeaseEstimateDivinerConfig");
31
31
 
32
32
  // src/Diviner.ts
33
- import { AbstractDiviner } from "@xyo-network/diviner-abstract";
34
- import { creatableModule } from "@xyo-network/module-model";
33
+ import { AbstractDiviner } from "@xyo-network/sdk/diviner-abstract";
34
+ import { creatableModule } from "@xyo-network/sdk/module-model";
35
35
 
36
36
  // src/Payload/HashLease.ts
37
37
  import {
@@ -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 {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\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 const HashLeaseEstimateDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n schema: z.ZodMiniLiteral<HashLeaseEstimateDivinerConfigSchema>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, { schema: z.literal(HashLeaseEstimateDivinerConfigSchema) })\n\nexport type HashLeaseEstimateDivinerConfigBase = z.infer<typeof HashLeaseEstimateDivinerConfigZod>\n\nexport const isHashLeaseEstimateDivinerConfig: ReturnType<typeof zodIsFactory<HashLeaseEstimateDivinerConfigBase>> = zodIsFactory(HashLeaseEstimateDivinerConfigZod)\nexport const asHashLeaseEstimateDivinerConfig: ReturnType<typeof zodAsFactory<HashLeaseEstimateDivinerConfigBase>> = zodAsFactory(HashLeaseEstimateDivinerConfigZod, 'asHashLeaseEstimateDivinerConfig')\nexport const toHashLeaseEstimateDivinerConfig: ReturnType<typeof zodToFactory<HashLeaseEstimateDivinerConfigBase>> = zodToFactory(HashLeaseEstimateDivinerConfigZod, 'toHashLeaseEstimateDivinerConfig')\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'\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 '@ariestools/sdk'\nimport {\n AsObjectFactory, zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { WithSources } from '@xyo-network/sdk-protocol'\nimport {\n asSchema, isPayloadOfSchemaTypeWithSources, PayloadZodOfSchema,\n} from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\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 const HashLeaseZod: z.ZodMiniObject<{\n duration: z.ZodMiniNumber<number>\n schema: z.ZodMiniLiteral<HashLeaseSchema>\n}, z.core.$strip> = z.extend(PayloadZodOfSchema(HashLeaseSchema), {\n /**\n * The desired duration of the lease\n */\n duration: z.number(),\n})\n\nexport type HashLease = z.infer<typeof HashLeaseZod>\n\n/**\n * Identity function for HashLease payload\n */\nexport const isHashLease: ReturnType<typeof zodIsFactory<HashLease>> = zodIsFactory(HashLeaseZod)\nexport const asHashLease: ReturnType<typeof zodAsFactory<HashLease>> = zodAsFactory(HashLeaseZod, 'asHashLease')\nexport const asOptionalHashLease: (value: AnyNonPromise) => HashLease | undefined = AsObjectFactory.createOptional<HashLease>(isHashLease)\nexport const toHashLease: ReturnType<typeof zodToFactory<HashLease>> = zodToFactory(HashLeaseZod, 'toHashLease')\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 '@ariestools/sdk'\nimport {\n AsObjectFactory, zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { WithSources } from '@xyo-network/sdk-protocol'\nimport {\n asSchema, isPayloadOfSchemaTypeWithSources, PayloadZodOfSchema,\n} from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\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 const HashLeaseEstimateZod: z.ZodMiniIntersection<\n z.ZodMiniObject<{ schema: z.ZodMiniLiteral<HashLeaseEstimateSchema> }, z.core.$strip>,\n z.ZodMiniCustom<HashLeaseEstimateFields, HashLeaseEstimateFields>\n> = z.intersection(PayloadZodOfSchema(HashLeaseEstimateSchema), z.custom<HashLeaseEstimateFields>())\n\nexport type HashLeaseEstimate = z.infer<typeof HashLeaseEstimateZod>\n\n/**\n * Identity function for HashLeaseEstimate payload\n */\nexport const isHashLeaseEstimate: ReturnType<typeof zodIsFactory<HashLeaseEstimate>> = zodIsFactory(HashLeaseEstimateZod)\nexport const asHashLeaseEstimate: ReturnType<typeof zodAsFactory<HashLeaseEstimate>> = zodAsFactory(HashLeaseEstimateZod, 'asHashLeaseEstimate')\nexport const asOptionalHashLeaseEstimate: (value: AnyNonPromise) => HashLeaseEstimate | undefined = AsObjectFactory.createOptional<HashLeaseEstimate>(isHashLeaseEstimate)\nexport const toHashLeaseEstimate: ReturnType<typeof zodToFactory<HashLeaseEstimate>> = zodToFactory(HashLeaseEstimateZod, 'toHashLeaseEstimate')\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"],
4
+ "sourcesContent": ["import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { DivinerConfig } from '@xyo-network/sdk/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/sdk/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\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 const HashLeaseEstimateDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n schema: z.ZodMiniLiteral<HashLeaseEstimateDivinerConfigSchema>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, { schema: z.literal(HashLeaseEstimateDivinerConfigSchema) })\n\nexport type HashLeaseEstimateDivinerConfigBase = z.infer<typeof HashLeaseEstimateDivinerConfigZod>\n\nexport const isHashLeaseEstimateDivinerConfig: ReturnType<typeof zodIsFactory<HashLeaseEstimateDivinerConfigBase>> = zodIsFactory(HashLeaseEstimateDivinerConfigZod)\nexport const asHashLeaseEstimateDivinerConfig: ReturnType<typeof zodAsFactory<HashLeaseEstimateDivinerConfigBase>> = zodAsFactory(HashLeaseEstimateDivinerConfigZod, 'asHashLeaseEstimateDivinerConfig')\nexport const toHashLeaseEstimateDivinerConfig: ReturnType<typeof zodToFactory<HashLeaseEstimateDivinerConfigBase>> = zodToFactory(HashLeaseEstimateDivinerConfigZod, 'toHashLeaseEstimateDivinerConfig')\n\nexport type HashLeaseEstimateDivinerConfig = DivinerConfig<\n\n {\n //\n },\n HashLeaseEstimateDivinerConfigSchema\n>\n", "import { AbstractDiviner } from '@xyo-network/sdk/diviner-abstract'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/sdk/diviner-model'\nimport { creatableModule } from '@xyo-network/sdk/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol'\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 '@ariestools/sdk'\nimport {\n AsObjectFactory, zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { WithSources } from '@xyo-network/sdk-protocol'\nimport {\n asSchema, isPayloadOfSchemaTypeWithSources, PayloadZodOfSchema,\n} from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\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 const HashLeaseZod: z.ZodMiniObject<{\n duration: z.ZodMiniNumber<number>\n schema: z.ZodMiniLiteral<HashLeaseSchema>\n}, z.core.$strip> = z.extend(PayloadZodOfSchema(HashLeaseSchema), {\n /**\n * The desired duration of the lease\n */\n duration: z.number(),\n})\n\nexport type HashLease = z.infer<typeof HashLeaseZod>\n\n/**\n * Identity function for HashLease payload\n */\nexport const isHashLease: ReturnType<typeof zodIsFactory<HashLease>> = zodIsFactory(HashLeaseZod)\nexport const asHashLease: ReturnType<typeof zodAsFactory<HashLease>> = zodAsFactory(HashLeaseZod, 'asHashLease')\nexport const asOptionalHashLease: (value: AnyNonPromise) => HashLease | undefined = AsObjectFactory.createOptional<HashLease>(isHashLease)\nexport const toHashLease: ReturnType<typeof zodToFactory<HashLease>> = zodToFactory(HashLeaseZod, 'toHashLease')\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 '@ariestools/sdk'\nimport {\n AsObjectFactory, zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { WithSources } from '@xyo-network/sdk-protocol'\nimport {\n asSchema, isPayloadOfSchemaTypeWithSources, PayloadZodOfSchema,\n} from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\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 const HashLeaseEstimateZod: z.ZodMiniIntersection<\n z.ZodMiniObject<{ schema: z.ZodMiniLiteral<HashLeaseEstimateSchema> }, z.core.$strip>,\n z.ZodMiniCustom<HashLeaseEstimateFields, HashLeaseEstimateFields>\n> = z.intersection(PayloadZodOfSchema(HashLeaseEstimateSchema), z.custom<HashLeaseEstimateFields>())\n\nexport type HashLeaseEstimate = z.infer<typeof HashLeaseEstimateZod>\n\n/**\n * Identity function for HashLeaseEstimate payload\n */\nexport const isHashLeaseEstimate: ReturnType<typeof zodIsFactory<HashLeaseEstimate>> = zodIsFactory(HashLeaseEstimateZod)\nexport const asHashLeaseEstimate: ReturnType<typeof zodAsFactory<HashLeaseEstimate>> = zodAsFactory(HashLeaseEstimateZod, 'asHashLeaseEstimate')\nexport const asOptionalHashLeaseEstimate: (value: AnyNonPromise) => HashLeaseEstimate | undefined = AsObjectFactory.createOptional<HashLeaseEstimate>(isHashLeaseEstimate)\nexport const toHashLeaseEstimate: ReturnType<typeof zodToFactory<HashLeaseEstimate>> = zodToFactory(HashLeaseEstimateZod, 'toHashLeaseEstimate')\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
5
  "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AAEP,SAAS,wBAAwB;AACjC,SAAS,gBAAgB;AACzB,YAAY,OAAO;AAEZ,IAAM,uCAET,SAAS,kDAAkD,IAAI;AAG5D,IAAM,oCAKP,SAAO,kBAAkB,EAAE,QAAU,UAAQ,oCAAoC,EAAE,CAAC;AAInF,IAAM,mCAAwG,aAAa,iCAAiC;AAC5J,IAAM,mCAAwG,aAAa,mCAAmC,kCAAkC;AAChM,IAAM,mCAAwG,aAAa,mCAAmC,kCAAkC;;;ACxBvM,SAAS,uBAAuB;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AF/CxI,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": ["zodAsFactory", "zodIsFactory", "zodToFactory", "asSchema", "z", "AsObjectFactory", "zodAsFactory", "zodIsFactory", "zodToFactory", "asSchema", "isPayloadOfSchemaTypeWithSources", "PayloadZodOfSchema", "z"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-hash-lease",
3
- "version": "7.0.8",
3
+ "version": "7.0.10",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,12 +34,11 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/diviner-abstract": "~7.0.8",
38
- "@xyo-network/module-model": "~7.0.8",
39
- "@xyo-network/diviner-model": "~7.0.8"
37
+ "@xyo-network/sdk": "~7.0.10"
40
38
  },
41
39
  "devDependencies": {
42
- "@ariestools/sdk": "~7.0.8",
40
+ "@ariestools/sdk": "~8.0.2",
41
+ "@ariestools/threads": "~8.0.2",
43
42
  "@bitauth/libauth": "~3.0.0",
44
43
  "@metamask/providers": "~22.1.1",
45
44
  "@noble/post-quantum": "~0.6.1",
@@ -47,14 +46,11 @@
47
46
  "@opentelemetry/sdk-trace-base": "~2.9.0",
48
47
  "@scure/base": "~2.2.0",
49
48
  "@scure/bip39": "~2.2.0",
50
- "@xylabs/geo": "~7.0.8",
51
- "@xylabs/threads": "~7.0.8",
52
- "@xylabs/toolchain": "~8.6.2",
53
- "@xylabs/tsconfig": "~8.6.2",
54
- "@xyo-network/sdk-protocol": "~7.0.13",
49
+ "@xylabs/toolchain": "~8.6.8",
50
+ "@xylabs/tsconfig": "~8.6.8",
51
+ "@xyo-network/sdk-protocol": "~7.0.15",
55
52
  "ajv": "~8.20.0",
56
53
  "async-mutex": "~0.5.0",
57
- "browserslist": "~4.28.4",
58
54
  "debug": "~4.4.3",
59
55
  "eslint": "~10.6.0",
60
56
  "eslint-import-resolver-typescript": "~4.4.5",
@@ -69,7 +65,8 @@
69
65
  "zod": "~4.4.3"
70
66
  },
71
67
  "peerDependencies": {
72
- "@ariestools/sdk": "^7.0.8",
68
+ "@ariestools/sdk": "^8.0.2",
69
+ "@ariestools/threads": "^8.0.2",
73
70
  "@bitauth/libauth": "^3.0.0",
74
71
  "@metamask/providers": "^22.1.1",
75
72
  "@noble/post-quantum": "^0.6.1",
@@ -77,9 +74,7 @@
77
74
  "@opentelemetry/sdk-trace-base": "^2.9.0",
78
75
  "@scure/base": "^2.2.0",
79
76
  "@scure/bip39": "^2.2.0",
80
- "@xylabs/geo": "^7.0.8",
81
- "@xylabs/threads": "^7.0.8",
82
- "@xyo-network/sdk-protocol": "^7.0.13",
77
+ "@xyo-network/sdk-protocol": "^7.0.15",
83
78
  "ajv": "^8.20.0",
84
79
  "async-mutex": "^0.5.0",
85
80
  "debug": "^4.4.3",