@xyo-network/diviner-hash-lease 5.2.27 → 5.3.1
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/dist/neutral/Config.d.ts +3 -1
- package/dist/neutral/Config.d.ts.map +1 -1
- package/dist/neutral/Diviner.d.ts +3 -1
- package/dist/neutral/Diviner.d.ts.map +1 -1
- package/dist/neutral/Payload/HashLease.d.ts +3 -1
- package/dist/neutral/Payload/HashLease.d.ts.map +1 -1
- package/dist/neutral/Payload/HashLeaseEstimate.d.ts +3 -1
- package/dist/neutral/Payload/HashLeaseEstimate.d.ts.map +1 -1
- package/dist/neutral/index.mjs +14 -5
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/Config.ts +2 -1
- package/src/Payload/HashLease.ts +4 -2
- package/src/Payload/HashLeaseEstimate.ts +4 -2
package/dist/neutral/Config.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
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
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
3
5
|
export type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
|
|
4
6
|
export type HashLeaseEstimateDivinerConfig = DivinerConfig<{}, HashLeaseEstimateDivinerConfigSchema>;
|
|
5
7
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -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;
|
|
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"}
|
|
@@ -6,7 +6,9 @@ import { 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
|
+
readonly __schema: true;
|
|
11
|
+
};
|
|
10
12
|
protected divineHandler(_payloads?: TIn[]): Promise<TOut[]>;
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=Diviner.d.ts.map
|
|
@@ -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,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEpF,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAG5D,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,EAA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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;;MAA0B;cAEtC,aAAa,CAAC,SAAS,GAAE,GAAG,EAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CAG/E"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
export declare const HashLeaseSchema: "network.xyo.hash.lease"
|
|
2
|
+
export declare const HashLeaseSchema: "network.xyo.hash.lease" & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
3
5
|
export type HashLeaseSchema = typeof HashLeaseSchema;
|
|
4
6
|
export type HashLease = Payload<{
|
|
5
7
|
/**
|
|
@@ -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,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"HashLease.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLease.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAKtE,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,wCAAoD,CAAA;AAC5E,eAAO,MAAM,WAAW,oDAAiD,CAAA;AACzE,eAAO,MAAM,mBAAmB,2EAAyD,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,sBAAsB,kEAA4E,CAAA;AAC/G,eAAO,MAAM,sBAAsB,iEAAyE,CAAA;AAC5G,eAAO,MAAM,8BAA8B,wFAAiF,CAAA"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Payload, WithSources } from '@xyo-network/payload-model';
|
|
2
|
-
export declare const HashLeaseEstimateSchema: "network.xyo.hash.lease.estimate"
|
|
2
|
+
export declare const HashLeaseEstimateSchema: "network.xyo.hash.lease.estimate" & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
3
5
|
export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
|
|
4
6
|
export interface HashLeaseEstimateFields {
|
|
5
7
|
/**
|
|
@@ -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,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"HashLeaseEstimate.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLeaseEstimate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAKtE,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;AAEzF;;GAEG;AACH,eAAO,MAAM,mBAAmB,gDAAoE,CAAA;AACpG,eAAO,MAAM,mBAAmB,4DAAiE,CAAA;AACjG,eAAO,MAAM,2BAA2B,mFAAyE,CAAA;AAEjH;;GAEG;AACH,eAAO,MAAM,8BAA8B,0EAA4F,CAAA;AACvI,eAAO,MAAM,8BAA8B,yEAAyF,CAAA;AACpI,eAAO,MAAM,sCAAsC,gGAAiG,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -15,7 +15,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
15
15
|
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
|
16
16
|
|
|
17
17
|
// src/Config.ts
|
|
18
|
-
|
|
18
|
+
import { asSchema } from "@xyo-network/payload-model";
|
|
19
|
+
var HashLeaseEstimateDivinerConfigSchema = asSchema("network.xyo.diviner.hash.lease.estimate.config", true);
|
|
19
20
|
|
|
20
21
|
// src/Diviner.ts
|
|
21
22
|
import { AbstractDiviner } from "@xyo-network/diviner-abstract";
|
|
@@ -23,8 +24,12 @@ import { creatableModule } from "@xyo-network/module-model";
|
|
|
23
24
|
|
|
24
25
|
// src/Payload/HashLease.ts
|
|
25
26
|
import { AsObjectFactory } from "@xylabs/sdk-js";
|
|
26
|
-
import {
|
|
27
|
-
|
|
27
|
+
import {
|
|
28
|
+
asSchema as asSchema2,
|
|
29
|
+
isPayloadOfSchemaType,
|
|
30
|
+
isPayloadOfSchemaTypeWithSources
|
|
31
|
+
} from "@xyo-network/payload-model";
|
|
32
|
+
var HashLeaseSchema = asSchema2("network.xyo.hash.lease", true);
|
|
28
33
|
var isHashLease = isPayloadOfSchemaType(HashLeaseSchema);
|
|
29
34
|
var asHashLease = AsObjectFactory.create(isHashLease);
|
|
30
35
|
var asOptionalHashLease = AsObjectFactory.createOptional(isHashLease);
|
|
@@ -34,8 +39,12 @@ var asOptionalHashLeaseWithSources = AsObjectFactory.createOptional(isHashLeaseW
|
|
|
34
39
|
|
|
35
40
|
// src/Payload/HashLeaseEstimate.ts
|
|
36
41
|
import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/sdk-js";
|
|
37
|
-
import {
|
|
38
|
-
|
|
42
|
+
import {
|
|
43
|
+
asSchema as asSchema3,
|
|
44
|
+
isPayloadOfSchemaType as isPayloadOfSchemaType2,
|
|
45
|
+
isPayloadOfSchemaTypeWithSources as isPayloadOfSchemaTypeWithSources2
|
|
46
|
+
} from "@xyo-network/payload-model";
|
|
47
|
+
var HashLeaseEstimateSchema = asSchema3("network.xyo.hash.lease.estimate", true);
|
|
39
48
|
var isHashLeaseEstimate = isPayloadOfSchemaType2(HashLeaseEstimateSchema);
|
|
40
49
|
var asHashLeaseEstimate = AsObjectFactory2.create(isHashLeaseEstimate);
|
|
41
50
|
var asOptionalHashLeaseEstimate = AsObjectFactory2.createOptional(isHashLeaseEstimate);
|
|
@@ -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'
|
|
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'\nimport { asSchema } from '@xyo-network/payload-model'\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 { 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 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/payload-model'\nimport {\n asSchema, isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources,\n} from '@xyo-network/payload-model'\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/payload-model'\nimport {\n asSchema, isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources,\n} from '@xyo-network/payload-model'\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"],"m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J;","names":["asSchema","AsObjectFactory","asSchema","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithSources"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-hash-lease",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@xylabs/sdk-js": "~5.0.64",
|
|
40
|
-
"@xyo-network/diviner-abstract": "~5.
|
|
41
|
-
"@xyo-network/diviner-model": "~5.
|
|
42
|
-
"@xyo-network/module-model": "~5.
|
|
43
|
-
"@xyo-network/payload-model": "~5.
|
|
40
|
+
"@xyo-network/diviner-abstract": "~5.3.1",
|
|
41
|
+
"@xyo-network/diviner-model": "~5.3.1",
|
|
42
|
+
"@xyo-network/module-model": "~5.3.1",
|
|
43
|
+
"@xyo-network/payload-model": "~5.3.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
package/src/Config.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
2
|
+
import { asSchema } from '@xyo-network/payload-model'
|
|
2
3
|
|
|
3
|
-
export const HashLeaseEstimateDivinerConfigSchema = 'network.xyo.diviner.hash.lease.estimate.config'
|
|
4
|
+
export const HashLeaseEstimateDivinerConfigSchema = asSchema('network.xyo.diviner.hash.lease.estimate.config', true)
|
|
4
5
|
export type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema
|
|
5
6
|
|
|
6
7
|
export type HashLeaseEstimateDivinerConfig = DivinerConfig<
|
package/src/Payload/HashLease.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/sdk-js'
|
|
2
2
|
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
asSchema, isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
} from '@xyo-network/payload-model'
|
|
4
6
|
|
|
5
|
-
export const HashLeaseSchema = 'network.xyo.hash.lease'
|
|
7
|
+
export const HashLeaseSchema = asSchema('network.xyo.hash.lease', true)
|
|
6
8
|
export type HashLeaseSchema = typeof HashLeaseSchema
|
|
7
9
|
|
|
8
10
|
export type HashLease = Payload<
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/sdk-js'
|
|
2
2
|
import type { Payload, WithSources } from '@xyo-network/payload-model'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
asSchema, isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources,
|
|
5
|
+
} from '@xyo-network/payload-model'
|
|
4
6
|
|
|
5
|
-
export const HashLeaseEstimateSchema = 'network.xyo.hash.lease.estimate'
|
|
7
|
+
export const HashLeaseEstimateSchema = asSchema('network.xyo.hash.lease.estimate', true)
|
|
6
8
|
export type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema
|
|
7
9
|
|
|
8
10
|
export interface HashLeaseEstimateFields {
|