@xyo-network/diviner-hash-lease 3.9.2 → 3.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/index.d.ts +17 -107
- package/package.json +5 -5
package/dist/neutral/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { DivinerConfig, DivinerParams, DivinerModuleEventData, DivinerInstance }
|
|
|
2
2
|
import { AbstractDiviner } from '@xyo-network/diviner-abstract';
|
|
3
3
|
import { Payload, WithSources, Schema } from '@xyo-network/payload-model';
|
|
4
4
|
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
5
|
-
import * as _xylabs_promise from '@xylabs/promise';
|
|
6
5
|
import * as _xylabs_object from '@xylabs/object';
|
|
6
|
+
import * as _xylabs_promise from '@xylabs/promise';
|
|
7
7
|
|
|
8
8
|
declare const HashLeaseEstimateDivinerConfigSchema: "network.xyo.diviner.hash.lease.estimate.config";
|
|
9
9
|
type HashLeaseEstimateDivinerConfigSchema = typeof HashLeaseEstimateDivinerConfigSchema;
|
|
@@ -16,48 +16,18 @@ type HashLeaseSchema = typeof HashLeaseSchema;
|
|
|
16
16
|
type HashLease = Payload<{
|
|
17
17
|
duration: number;
|
|
18
18
|
}, HashLeaseSchema>;
|
|
19
|
-
declare const isHashLease: (x?: unknown | null) => x is
|
|
20
|
-
schema: "network.xyo.hash.lease";
|
|
21
|
-
duration: number;
|
|
22
|
-
}>;
|
|
19
|
+
declare const isHashLease: (x?: unknown | null) => x is HashLease;
|
|
23
20
|
declare const asHashLease: {
|
|
24
|
-
<TType extends _xylabs_object.
|
|
25
|
-
|
|
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;
|
|
21
|
+
<TType extends HashLease>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
22
|
+
<TType extends HashLease>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<HashLease>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
35
23
|
};
|
|
36
|
-
declare const asOptionalHashLease: <TType extends
|
|
37
|
-
|
|
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
|
-
}>>>;
|
|
24
|
+
declare const asOptionalHashLease: <TType extends HashLease>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
25
|
+
declare const isHashLeaseWithSources: (x?: unknown | null) => x is WithSources<WithSources<HashLease>>;
|
|
44
26
|
declare const asHashLeaseWithSources: {
|
|
45
|
-
<TType extends WithSources<_xylabs_object.
|
|
46
|
-
|
|
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;
|
|
27
|
+
<TType extends WithSources<HashLease>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
28
|
+
<TType extends WithSources<HashLease>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<HashLease>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
56
29
|
};
|
|
57
|
-
declare const asOptionalHashLeaseWithSources: <TType extends WithSources<
|
|
58
|
-
schema: "network.xyo.hash.lease";
|
|
59
|
-
duration: number;
|
|
60
|
-
}>>>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
30
|
+
declare const asOptionalHashLeaseWithSources: <TType extends WithSources<HashLease>>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
61
31
|
|
|
62
32
|
declare const HashLeaseEstimateSchema: "network.xyo.hash.lease.estimate";
|
|
63
33
|
type HashLeaseEstimateSchema = typeof HashLeaseEstimateSchema;
|
|
@@ -68,78 +38,18 @@ interface HashLeaseEstimateFields {
|
|
|
68
38
|
price: number;
|
|
69
39
|
}
|
|
70
40
|
type HashLeaseEstimate = Payload<HashLeaseEstimateFields, HashLeaseEstimateSchema>;
|
|
71
|
-
declare const isHashLeaseEstimate: (x?: unknown | null) => x is
|
|
72
|
-
schema: "network.xyo.hash.lease.estimate";
|
|
73
|
-
currency: string;
|
|
74
|
-
exp: number;
|
|
75
|
-
nbf: number;
|
|
76
|
-
price: number;
|
|
77
|
-
}>;
|
|
41
|
+
declare const isHashLeaseEstimate: (x?: unknown | null) => x is HashLeaseEstimate;
|
|
78
42
|
declare const asHashLeaseEstimate: {
|
|
79
|
-
<TType extends _xylabs_object.
|
|
80
|
-
|
|
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;
|
|
43
|
+
<TType extends HashLeaseEstimate>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
44
|
+
<TType extends HashLeaseEstimate>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<HashLeaseEstimate>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
99
45
|
};
|
|
100
|
-
declare const asOptionalHashLeaseEstimate: <TType extends
|
|
101
|
-
|
|
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
|
-
}>>>;
|
|
46
|
+
declare const asOptionalHashLeaseEstimate: <TType extends HashLeaseEstimate>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
47
|
+
declare const isHashLeaseEstimateWithSources: (x?: unknown | null) => x is WithSources<WithSources<HashLeaseEstimate>>;
|
|
114
48
|
declare const asHashLeaseEstimateWithSources: {
|
|
115
|
-
<TType extends WithSources<_xylabs_object.
|
|
116
|
-
|
|
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;
|
|
49
|
+
<TType extends WithSources<HashLeaseEstimate>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
50
|
+
<TType extends WithSources<HashLeaseEstimate>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WithSources<HashLeaseEstimate>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
135
51
|
};
|
|
136
|
-
declare const asOptionalHashLeaseEstimateWithSources: <TType extends WithSources<
|
|
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;
|
|
52
|
+
declare const asOptionalHashLeaseEstimateWithSources: <TType extends WithSources<HashLeaseEstimate>>(value: _xylabs_promise.AnyNonPromise) => TType | undefined;
|
|
143
53
|
|
|
144
54
|
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
55
|
static readonly configSchemas: Schema[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-hash-lease",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.3",
|
|
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.5.1",
|
|
33
|
-
"@xyo-network/diviner-abstract": "^3.9.
|
|
34
|
-
"@xyo-network/diviner-model": "^3.9.
|
|
35
|
-
"@xyo-network/module-model": "^3.9.
|
|
36
|
-
"@xyo-network/payload-model": "^3.9.
|
|
33
|
+
"@xyo-network/diviner-abstract": "^3.9.3",
|
|
34
|
+
"@xyo-network/diviner-model": "^3.9.3",
|
|
35
|
+
"@xyo-network/module-model": "^3.9.3",
|
|
36
|
+
"@xyo-network/payload-model": "^3.9.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@xylabs/ts-scripts-yarn3": "^5.0.24",
|