@xyo-network/diviner-hash-lease 3.8.0 → 3.8.2
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/index.d.ts +151 -5
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/Diviner.ts +1 -1
- package/dist/neutral/Config.d.ts +0 -5
- package/dist/neutral/Config.d.ts.map +0 -1
- package/dist/neutral/Diviner.d.ts +0 -12
- package/dist/neutral/Diviner.d.ts.map +0 -1
- package/dist/neutral/Params.d.ts +0 -5
- package/dist/neutral/Params.d.ts.map +0 -1
- package/dist/neutral/Payload/HashLease.d.ts +0 -58
- package/dist/neutral/Payload/HashLease.d.ts.map +0 -1
- package/dist/neutral/Payload/HashLeaseEstimate.d.ts +0 -105
- package/dist/neutral/Payload/HashLeaseEstimate.d.ts.map +0 -1
- package/dist/neutral/Payload/index.d.ts +0 -3
- package/dist/neutral/Payload/index.d.ts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,5 +1,151 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { DivinerConfig, DivinerParams, DivinerModuleEventData, DivinerInstance } from '@xyo-network/diviner-model';
|
|
2
|
+
import { AbstractDiviner } from '@xyo-network/diviner-abstract';
|
|
3
|
+
import { Payload, WithSources, Schema } from '@xyo-network/payload-model';
|
|
4
|
+
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
5
|
+
import * as _xylabs_promise from '@xylabs/promise';
|
|
6
|
+
import * as _xylabs_object from '@xylabs/object';
|
|
7
|
+
|
|
8
|
+
declare const HashLeaseEstimateDivinerConfigSchema: "network.xyo.diviner.hash.lease.estimate.config";
|
|
9
|
+
type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
|
|
10
|
+
type HashLeaseEstimateDivinerConfig = DivinerConfig<{}, HashLeaseEstimateDivinerConfigSchema>;
|
|
11
|
+
|
|
12
|
+
type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = DivinerParams<TConfig>;
|
|
13
|
+
|
|
14
|
+
declare const HashLeaseSchema: "network.xyo.hash.lease";
|
|
15
|
+
type HashLeaseSchema = typeof HashLeaseSchema;
|
|
16
|
+
type HashLease = Payload<{
|
|
17
|
+
duration: number;
|
|
18
|
+
}, HashLeaseSchema>;
|
|
19
|
+
declare const isHashLease: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<{
|
|
20
|
+
schema: "network.xyo.hash.lease";
|
|
21
|
+
duration: number;
|
|
22
|
+
}>;
|
|
23
|
+
declare const asHashLease: {
|
|
24
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
25
|
+
schema: "network.xyo.hash.lease";
|
|
26
|
+
duration: number;
|
|
27
|
+
}>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
28
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
29
|
+
schema: "network.xyo.hash.lease";
|
|
30
|
+
duration: number;
|
|
31
|
+
}>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
32
|
+
schema: "network.xyo.hash.lease";
|
|
33
|
+
duration: number;
|
|
34
|
+
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
35
|
+
};
|
|
36
|
+
declare const asOptionalHashLease: <TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
37
|
+
schema: "network.xyo.hash.lease";
|
|
38
|
+
duration: number;
|
|
39
|
+
}>>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
40
|
+
declare const isHashLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
41
|
+
schema: "network.xyo.hash.lease";
|
|
42
|
+
duration: number;
|
|
43
|
+
}>>>;
|
|
44
|
+
declare const asHashLeaseWithSources: {
|
|
45
|
+
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
46
|
+
schema: "network.xyo.hash.lease";
|
|
47
|
+
duration: number;
|
|
48
|
+
}>>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
49
|
+
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
50
|
+
schema: "network.xyo.hash.lease";
|
|
51
|
+
duration: number;
|
|
52
|
+
}>>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
53
|
+
schema: "network.xyo.hash.lease";
|
|
54
|
+
duration: number;
|
|
55
|
+
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
56
|
+
};
|
|
57
|
+
declare const asOptionalHashLeaseWithSources: <TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
58
|
+
schema: "network.xyo.hash.lease";
|
|
59
|
+
duration: number;
|
|
60
|
+
}>>>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
61
|
+
|
|
62
|
+
declare const HashLeaseEstimateSchema: "network.xyo.hash.lease.estimate";
|
|
63
|
+
type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
|
|
64
|
+
interface HashLeaseEstimateFields {
|
|
65
|
+
currency: string;
|
|
66
|
+
exp: number;
|
|
67
|
+
nbf: number;
|
|
68
|
+
price: number;
|
|
69
|
+
}
|
|
70
|
+
type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>;
|
|
71
|
+
declare const isHashLeaseEstimate: (x?: unknown | null) => x is _xylabs_object.DeepRestrictToStringKeys<{
|
|
72
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
73
|
+
currency: string;
|
|
74
|
+
exp: number;
|
|
75
|
+
nbf: number;
|
|
76
|
+
price: number;
|
|
77
|
+
}>;
|
|
78
|
+
declare const asHashLeaseEstimate: {
|
|
79
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
80
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
81
|
+
currency: string;
|
|
82
|
+
exp: number;
|
|
83
|
+
nbf: number;
|
|
84
|
+
price: number;
|
|
85
|
+
}>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
86
|
+
<TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
87
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
88
|
+
currency: string;
|
|
89
|
+
exp: number;
|
|
90
|
+
nbf: number;
|
|
91
|
+
price: number;
|
|
92
|
+
}>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<_xylabs_object.DeepRestrictToStringKeys<{
|
|
93
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
94
|
+
currency: string;
|
|
95
|
+
exp: number;
|
|
96
|
+
nbf: number;
|
|
97
|
+
price: number;
|
|
98
|
+
}>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
99
|
+
};
|
|
100
|
+
declare const asOptionalHashLeaseEstimate: <TType extends _xylabs_object.DeepRestrictToStringKeys<{
|
|
101
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
102
|
+
currency: string;
|
|
103
|
+
exp: number;
|
|
104
|
+
nbf: number;
|
|
105
|
+
price: number;
|
|
106
|
+
}>>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
107
|
+
declare const isHashLeaseEstimateWithSources: (x?: unknown | null) => x is WithSources<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
108
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
109
|
+
currency: string;
|
|
110
|
+
exp: number;
|
|
111
|
+
nbf: number;
|
|
112
|
+
price: number;
|
|
113
|
+
}>>>;
|
|
114
|
+
declare const asHashLeaseEstimateWithSources: {
|
|
115
|
+
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
116
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
117
|
+
currency: string;
|
|
118
|
+
exp: number;
|
|
119
|
+
nbf: number;
|
|
120
|
+
price: number;
|
|
121
|
+
}>>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
122
|
+
<TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
123
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
124
|
+
currency: string;
|
|
125
|
+
exp: number;
|
|
126
|
+
nbf: number;
|
|
127
|
+
price: number;
|
|
128
|
+
}>>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
129
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
130
|
+
currency: string;
|
|
131
|
+
exp: number;
|
|
132
|
+
nbf: number;
|
|
133
|
+
price: number;
|
|
134
|
+
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
135
|
+
};
|
|
136
|
+
declare const asOptionalHashLeaseEstimateWithSources: <TType extends WithSources<_xylabs_object.DeepRestrictToStringKeys<{
|
|
137
|
+
schema: "network.xyo.hash.lease.estimate";
|
|
138
|
+
currency: string;
|
|
139
|
+
exp: number;
|
|
140
|
+
nbf: number;
|
|
141
|
+
price: number;
|
|
142
|
+
}>>>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
143
|
+
|
|
144
|
+
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> {
|
|
145
|
+
static readonly configSchemas: Schema[];
|
|
146
|
+
static readonly defaultConfigSchema: Schema;
|
|
147
|
+
static readonly targetSchema: "network.xyo.hash.lease.estimate";
|
|
148
|
+
protected divineHandler(_payloads?: TIn[]): Promise<TOut[]>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export { type HashLease, type HashLeaseEstimate, HashLeaseEstimateDiviner, type HashLeaseEstimateDivinerConfig, HashLeaseEstimateDivinerConfigSchema, type HashLeaseEstimateDivinerParams, type HashLeaseEstimateFields, HashLeaseEstimateSchema, HashLeaseSchema, asHashLease, asHashLeaseEstimate, asHashLeaseEstimateWithSources, asHashLeaseWithSources, asOptionalHashLease, asOptionalHashLeaseEstimate, asOptionalHashLeaseEstimateWithSources, asOptionalHashLeaseWithSources, isHashLease, isHashLeaseEstimate, isHashLeaseEstimateWithSources, isHashLeaseWithSources };
|
|
@@ -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 { AsObjectFactory } from '@xylabs/object'\nimport {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, type Payload, type WithSources,\n} 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\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/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,IAAM,uCAAuC;;;ACFpD,SAAS,uBAAuB;AAEhC,SAAS,uBAAuB;;;ACFhC,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;AAEA,IAAM,kBAAkB;AAgBxB,IAAM,cAAc,sBAAiC,eAAe;AACpE,IAAM,cAAc,gBAAgB,OAAkB,WAAW;AACjE,IAAM,sBAAsB,gBAAgB,eAA0B,WAAW;AAKjF,IAAM,yBAAyB,iCAAyD,eAAe;AACvG,IAAM,yBAAyB,gBAAgB,OAA+B,sBAAsB;AACpG,IAAM,iCAAiC,gBAAgB,eAAuC,sBAAsB;;;AC9B3H,SAAS,mBAAAA,wBAAuB;AAEhC,SAAS,yBAAAC,wBAAuB,oCAAAC,yCAAwC;AAEjE,IAAM,0BAA0B;AA2BhC,IAAM,sBAAsBD,uBAAyC,uBAAuB;AAC5F,IAAM,sBAAsBD,iBAAgB,OAA0B,mBAAmB;AACzF,IAAM,8BAA8BA,iBAAgB,eAAkC,mBAAmB;AAKzG,IAAM,iCAAiCE,kCAAiE,uBAAuB;AAC/H,IAAM,iCAAiCF,iBAAgB,OAAuC,8BAA8B;AAC5H,IAAM,yCAAyCA,iBAAgB,eAA+C,8BAA8B;;;AF9B5I,IAAM,2BAAN,cASG,gBAAgD;AAAA,EAKxD,MAAyB,cAAc,YAAmB,CAAC,GAAoB;AAC7E,WAAO,MAAM,QAAQ,QAAQ,CAAC,CAAC;AAAA,EACjC;AACF;AAPE,cAVW,0BAUc,iBAA0B,CAAC,GAAG,+DAAM,kBAAe,oCAAoC;AAChH,cAXW,0BAWc,uBAA8B;AACvD,cAZW,
|
|
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 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/object'\nimport {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, type Payload, type WithSources,\n} 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\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/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,IAAM,uCAAuC;;;ACFpD,SAAS,uBAAuB;AAEhC,SAAS,uBAAuB;;;ACFhC,SAAS,uBAAuB;AAChC;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;AAEA,IAAM,kBAAkB;AAgBxB,IAAM,cAAc,sBAAiC,eAAe;AACpE,IAAM,cAAc,gBAAgB,OAAkB,WAAW;AACjE,IAAM,sBAAsB,gBAAgB,eAA0B,WAAW;AAKjF,IAAM,yBAAyB,iCAAyD,eAAe;AACvG,IAAM,yBAAyB,gBAAgB,OAA+B,sBAAsB;AACpG,IAAM,iCAAiC,gBAAgB,eAAuC,sBAAsB;;;AC9B3H,SAAS,mBAAAA,wBAAuB;AAEhC,SAAS,yBAAAC,wBAAuB,oCAAAC,yCAAwC;AAEjE,IAAM,0BAA0B;AA2BhC,IAAM,sBAAsBD,uBAAyC,uBAAuB;AAC5F,IAAM,sBAAsBD,iBAAgB,OAA0B,mBAAmB;AACzF,IAAM,8BAA8BA,iBAAgB,eAAkC,mBAAmB;AAKzG,IAAM,iCAAiCE,kCAAiE,uBAAuB;AAC/H,IAAM,iCAAiCF,iBAAgB,OAAuC,8BAA8B;AAC5H,IAAM,yCAAyCA,iBAAgB,eAA+C,8BAA8B;;;AF9B5I,IAAM,2BAAN,cASG,gBAAgD;AAAA,EAKxD,MAAyB,cAAc,YAAmB,CAAC,GAAoB;AAC7E,WAAO,MAAM,QAAQ,QAAQ,CAAC,CAAC;AAAA,EACjC;AACF;AAPE,cAVW,0BAUc,iBAA0B,CAAC,GAAG,+DAAM,kBAAe,oCAAoC;AAChH,cAXW,0BAWc,uBAA8B;AACvD,cAZW,0BAYc,gBAAe;AAZ7B,2BAAN;AAAA,EADN,gBAAgB;AAAA,GACJ;","names":["AsObjectFactory","isPayloadOfSchemaType","isPayloadOfSchemaTypeWithSources"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-hash-lease",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.2",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@xylabs/object": "^4.5.1",
|
|
33
|
-
"@xyo-network/diviner-abstract": "^3.8.
|
|
34
|
-
"@xyo-network/diviner-model": "^3.8.
|
|
35
|
-
"@xyo-network/module-model": "^3.8.
|
|
36
|
-
"@xyo-network/payload-model": "^3.8.
|
|
33
|
+
"@xyo-network/diviner-abstract": "^3.8.2",
|
|
34
|
+
"@xyo-network/diviner-model": "^3.8.2",
|
|
35
|
+
"@xyo-network/module-model": "^3.8.2",
|
|
36
|
+
"@xyo-network/payload-model": "^3.8.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
40
|
-
"@xylabs/tsconfig": "^
|
|
39
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.22",
|
|
40
|
+
"@xylabs/tsconfig": "^5.0.22",
|
|
41
41
|
"typescript": "^5.7.3"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|
package/src/Diviner.ts
CHANGED
|
@@ -20,7 +20,7 @@ export class HashLeaseEstimateDiviner<
|
|
|
20
20
|
> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {
|
|
21
21
|
static override readonly configSchemas: Schema[] = [...super.configSchemas, HashLeaseEstimateDivinerConfigSchema]
|
|
22
22
|
static override readonly defaultConfigSchema: Schema = HashLeaseEstimateDivinerConfigSchema
|
|
23
|
-
static override targetSchema = HashLeaseEstimateSchema
|
|
23
|
+
static override readonly targetSchema = HashLeaseEstimateSchema
|
|
24
24
|
|
|
25
25
|
protected override async divineHandler(_payloads: TIn[] = []): Promise<TOut[]> {
|
|
26
26
|
return await Promise.resolve([])
|
package/dist/neutral/Config.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { 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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,eAAO,MAAM,oCAAoC,EAAG,gDAAyD,CAAA;AAC7G,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAExD,EAEC,EACD,oCAAoC,CACrC,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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.ts';
|
|
5
|
-
import { HashLeaseEstimate } from './Payload/index.ts';
|
|
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: "network.xyo.hash.lease.estimate";
|
|
10
|
-
protected divineHandler(_payloads?: TIn[]): Promise<TOut[]>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=Diviner.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAA;AAE/E,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,oCAA0B;cAE7B,aAAa,CAAC,SAAS,GAAE,GAAG,EAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CAG/E"}
|
package/dist/neutral/Params.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
-
import type { HashLeaseEstimateDivinerConfig } from './Config.ts';
|
|
4
|
-
export type HashLeaseEstimateDivinerParams<TConfig extends AnyConfigSchema<HashLeaseEstimateDivinerConfig> = AnyConfigSchema<HashLeaseEstimateDivinerConfig>> = DivinerParams<TConfig>;
|
|
5
|
-
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,58 +0,0 @@
|
|
|
1
|
-
import { type Payload, type WithSources } 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
|
-
/**
|
|
11
|
-
* Identity function for HashLease payload
|
|
12
|
-
*/
|
|
13
|
-
export declare const isHashLease: (x?: unknown | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
14
|
-
schema: "network.xyo.hash.lease";
|
|
15
|
-
duration: number;
|
|
16
|
-
}>;
|
|
17
|
-
export declare const asHashLease: {
|
|
18
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
19
|
-
schema: "network.xyo.hash.lease";
|
|
20
|
-
duration: number;
|
|
21
|
-
}>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
22
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
23
|
-
schema: "network.xyo.hash.lease";
|
|
24
|
-
duration: number;
|
|
25
|
-
}>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
26
|
-
schema: "network.xyo.hash.lease";
|
|
27
|
-
duration: number;
|
|
28
|
-
}>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
29
|
-
};
|
|
30
|
-
export declare const asOptionalHashLease: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
31
|
-
schema: "network.xyo.hash.lease";
|
|
32
|
-
duration: number;
|
|
33
|
-
}>>(value: import("@xylabs/promise").AnyNonPromise) => TType | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Identity function for HashLease payload with sources
|
|
36
|
-
*/
|
|
37
|
-
export declare const isHashLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
38
|
-
schema: "network.xyo.hash.lease";
|
|
39
|
-
duration: number;
|
|
40
|
-
}>>>;
|
|
41
|
-
export declare const asHashLeaseWithSources: {
|
|
42
|
-
<TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
43
|
-
schema: "network.xyo.hash.lease";
|
|
44
|
-
duration: number;
|
|
45
|
-
}>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
46
|
-
<TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
47
|
-
schema: "network.xyo.hash.lease";
|
|
48
|
-
duration: number;
|
|
49
|
-
}>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
50
|
-
schema: "network.xyo.hash.lease";
|
|
51
|
-
duration: number;
|
|
52
|
-
}>>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
53
|
-
};
|
|
54
|
-
export declare const asOptionalHashLeaseWithSources: <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
55
|
-
schema: "network.xyo.hash.lease";
|
|
56
|
-
duration: number;
|
|
57
|
-
}>>>(value: import("@xylabs/promise").AnyNonPromise) => TType | undefined;
|
|
58
|
-
//# sourceMappingURL=HashLease.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HashLease.d.ts","sourceRoot":"","sources":["../../../src/Payload/HashLease.ts"],"names":[],"mappings":"AACA,OAAO,EACoD,KAAK,OAAO,EAAE,KAAK,WAAW,EACxF,MAAM,4BAA4B,CAAA;AAEnC,eAAO,MAAM,eAAe,EAAG,wBAAiC,CAAA;AAChE,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;;cARV,MAAM;EAQwD,CAAA;AAC5E,eAAO,MAAM,WAAW;;;kBATV,MAAM;sBAPpB,iBAAgB,iCAAiC,gBAElC;;;kBAKD,MAAM;sBAAhB,iBAAa;;kBAAH,MAAM;yBAQL,gBAAoB;CACsC,CAAA;AACzE,eAAO,MAAM,mBAAmB;;cAVlB,MAAM;kBAUE,iBAAiB,qCAAkD,CAAA;AAEzF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;cAfrB,MAAM;IAe2F,CAAA;AAC/G,eAAO,MAAM,sBAAsB;;;kBAhBrB,MAAM;uBAPpB,iBAAgB,iCAAiC,gBAElC;;;kBAKD,MAAM;uBAAhB,iBAAa;;kBAAH,MAAM;0BAQL,gBAAoB;CAQyE,CAAA;AAC5G,eAAO,MAAM,8BAA8B;;cAjB7B,MAAM;mBAUE,iBAAiB,qCAOqF,CAAA"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { Payload, WithSources } 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 | null) => x is import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
27
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
28
|
-
currency: string;
|
|
29
|
-
exp: number;
|
|
30
|
-
nbf: number;
|
|
31
|
-
price: number;
|
|
32
|
-
}>;
|
|
33
|
-
export declare const asHashLeaseEstimate: {
|
|
34
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
35
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
36
|
-
currency: string;
|
|
37
|
-
exp: number;
|
|
38
|
-
nbf: number;
|
|
39
|
-
price: number;
|
|
40
|
-
}>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
41
|
-
<TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
42
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
43
|
-
currency: string;
|
|
44
|
-
exp: number;
|
|
45
|
-
nbf: number;
|
|
46
|
-
price: number;
|
|
47
|
-
}>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
48
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
49
|
-
currency: string;
|
|
50
|
-
exp: number;
|
|
51
|
-
nbf: number;
|
|
52
|
-
price: number;
|
|
53
|
-
}>>, config?: import("@xylabs/object" /**
|
|
54
|
-
* When the lease begins
|
|
55
|
-
*/).TypeCheckConfig): TType;
|
|
56
|
-
};
|
|
57
|
-
export declare const asOptionalHashLeaseEstimate: <TType extends import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
58
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
59
|
-
currency: string;
|
|
60
|
-
exp: number;
|
|
61
|
-
nbf: number;
|
|
62
|
-
price: number;
|
|
63
|
-
}>>(value: import("@xylabs/promise").AnyNonPromise) => TType | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* Identity function for HashLeaseEstimate payload with sources
|
|
66
|
-
*/
|
|
67
|
-
export declare const isHashLeaseEstimateWithSources: (x?: unknown | null) => x is WithSources<WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
68
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
69
|
-
currency: string;
|
|
70
|
-
exp: number;
|
|
71
|
-
nbf: number;
|
|
72
|
-
price: number;
|
|
73
|
-
}>>>;
|
|
74
|
-
export declare const asHashLeaseEstimateWithSources: {
|
|
75
|
-
<TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
76
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
77
|
-
currency: string;
|
|
78
|
-
exp: number;
|
|
79
|
-
nbf: number;
|
|
80
|
-
price: number;
|
|
81
|
-
}>>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
82
|
-
<TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
83
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
84
|
-
currency: string;
|
|
85
|
-
exp: number;
|
|
86
|
-
nbf: number;
|
|
87
|
-
price: number;
|
|
88
|
-
}>>>(value: import("@xylabs/promise").AnyNonPromise, assert: import("@xylabs/object").StringOrAlertFunction<WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
89
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
90
|
-
currency: string;
|
|
91
|
-
exp: number;
|
|
92
|
-
nbf: number;
|
|
93
|
-
price: number;
|
|
94
|
-
}>>>, config?: import("@xylabs/object" /**
|
|
95
|
-
* When the lease begins
|
|
96
|
-
*/).TypeCheckConfig): TType;
|
|
97
|
-
};
|
|
98
|
-
export declare const asOptionalHashLeaseEstimateWithSources: <TType extends WithSources<import("@xylabs/object").DeepRestrictToStringKeys<{
|
|
99
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
100
|
-
currency: string;
|
|
101
|
-
exp: number;
|
|
102
|
-
nbf: number;
|
|
103
|
-
price: number;
|
|
104
|
-
}>>>(value: import("@xylabs/promise").AnyNonPromise) => TType | undefined;
|
|
105
|
-
//# sourceMappingURL=HashLeaseEstimate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAGtE,eAAO,MAAM,uBAAuB,EAAG,iCAA0C,CAAA;AACjF,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;;cApBpB,MAAM;SAIX,MAAM;SAIN,MAAM;WAIJ,MAAM;EAQqF,CAAA;AACpG,eAAO,MAAM,mBAAmB;;;kBArBpB,MAAM;aAIX,MAAM;aAIN,MAAM;eAIJ,MAAM;sBAnBa,iBAAiB,iCAAiC,gBAC9D;;;kBAMJ,MAAM;aAIX,MAAM;aAIN,MAAM;eAIJ,MAAM;sBAhBU,iBAAiB;;kBAI9B,MAAM;aAIX,MAAM;aAIN,MAAM;eAIJ,MAAM;yBATZ,gBAED,CAAA;;OAEG;CAc4F,CAAA;AACjG,eAAO,MAAM,2BAA2B;;cAtB5B,MAAM;SAIX,MAAM;SAIN,MAAM;WAIJ,MAAM;kBAGG,iBAAiB,qCAO8E,CAAA;AAEjH;;GAEG;AACH,eAAO,MAAM,8BAA8B;;cA3B/B,MAAM;SAIX,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Payload/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA"}
|