@xyo-network/diviner-wrapper 3.9.18 → 3.9.20
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.
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { RetryConfig } from '@xylabs/retry';
|
|
2
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
3
|
+
import type { DivinerInstance, DivinerModule, DivinerParams } from '@xyo-network/diviner-model';
|
|
4
|
+
import type { ModuleQueryResult } from '@xyo-network/module-model';
|
|
5
|
+
import { ModuleWrapper } from '@xyo-network/module-wrapper';
|
|
6
|
+
import type { Payload, WithoutPrivateStorageMeta, WithSources } from '@xyo-network/payload-model';
|
|
7
|
+
export declare class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>, TIn extends Payload = Payload, TOut extends Payload = Payload> extends ModuleWrapper<TWrappedModule> implements DivinerInstance<TWrappedModule['params'], TIn, TOut> {
|
|
8
|
+
static readonly instanceIdentityCheck: import("@xylabs/object").TypeCheck<DivinerInstance<import("@xylabs/object").BaseParamsFields & {
|
|
9
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
10
|
+
addToResolvers?: boolean;
|
|
11
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
12
|
+
allowNameResolution?: boolean;
|
|
13
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/diviner-model").DivinerConfig>;
|
|
14
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
15
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
16
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
17
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
18
|
+
}, Payload<void, void>, Payload<void, void>, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("@xylabs/object").BaseParamsFields & {
|
|
19
|
+
account?: AccountInstance | "random";
|
|
20
|
+
addToResolvers?: boolean;
|
|
21
|
+
additionalSigners?: AccountInstance[];
|
|
22
|
+
allowNameResolution?: boolean;
|
|
23
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
|
|
24
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
25
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
26
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
27
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
28
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>, Payload, Payload>>>;
|
|
29
|
+
static readonly moduleIdentityCheck: import("@xyo-network/module-model").ModuleTypeCheck<DivinerModule<import("@xylabs/object").BaseParamsFields & {
|
|
30
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
31
|
+
addToResolvers?: boolean;
|
|
32
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
33
|
+
allowNameResolution?: boolean;
|
|
34
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/diviner-model").DivinerConfig>;
|
|
35
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
36
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
37
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
38
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
39
|
+
}, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("@xylabs/object").BaseParamsFields & {
|
|
40
|
+
account?: AccountInstance | "random";
|
|
41
|
+
addToResolvers?: boolean;
|
|
42
|
+
additionalSigners?: AccountInstance[];
|
|
43
|
+
allowNameResolution?: boolean;
|
|
44
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
|
|
45
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
46
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
47
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
48
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
49
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>, Payload, Payload>>>;
|
|
50
|
+
static readonly requiredQueries: string[];
|
|
51
|
+
divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<WithoutPrivateStorageMeta<WithSources<TOut>>[]>;
|
|
52
|
+
divineQuery(payloads?: TIn[], account?: AccountInstance, _retryConfig?: RetryConfig): Promise<ModuleQueryResult<TOut>>;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=DivinerWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DivinerWrapper.d.ts","sourceRoot":"","sources":["../../src/DivinerWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACjE,OAAO,KAAK,EAEV,eAAe,EACf,aAAa,EACb,aAAa,EACd,MAAM,4BAA4B,CAAA;AAMnC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EAA8B,aAAa,EAAE,MAAM,6BAA6B,CAAA;AACvF,OAAO,KAAK,EACV,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAChD,MAAM,4BAA4B,CAAA;AAGnC,qBAAa,cAAc,CAAC,cAAc,SAAS,aAAa,CAAC,aAAa,CAAC,EAAE,GAAG,SAAS,OAAO,GAAG,OAAO,EAAE,IAAI,SAAS,OAAO,GAAG,OAAO,CAC5I,SAAQ,aAAa,CAAC,cAAc,CACpC,YAAW,eAAe,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC;IAC/D,gBAAyB,qBAAqB;yBAdnC,4BACA;;mCAGe,4BAA4B;;uBACQ,2BAC7D,yBACW,4BAAa;;8CAIb,2BAA2B;iCAA8D,2BAA2B;gCAChG,2BACb;;;;;;;;;;;yFAC+C;IAClE,gBAAyB,mBAAmB;yBAGW,4BAA4B;;mCAC7B,4BACtD;;uBAGc,2BAA2B,yBAAyB,4BAAa;;8CACzB,2BACvD;iCAA8D,2BAG/C;gCAAgD,2BAA2B;;;;;;;;;;;yFAb3B;IAC9D,gBAAyB,eAAe,WAAuD;IAEzF,MAAM,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,yBAAyB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;IAK7G,WAAW,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,eAAe,EAAE,YAAY,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC;CAI7H"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,59 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import * as _xyo_network_diviner_model from '@xyo-network/diviner-model';
|
|
4
|
-
import { DivinerModule, DivinerParams, DivinerInstance } from '@xyo-network/diviner-model';
|
|
5
|
-
import * as _xylabs_object from '@xylabs/object';
|
|
6
|
-
import { RetryConfig } from '@xylabs/retry';
|
|
7
|
-
import { AccountInstance } from '@xyo-network/account-model';
|
|
8
|
-
import { ModuleWrapper } from '@xyo-network/module-wrapper';
|
|
9
|
-
import { Payload, WithoutPrivateStorageMeta, WithSources } from '@xyo-network/payload-model';
|
|
10
|
-
|
|
11
|
-
declare class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>, TIn extends Payload = Payload, TOut extends Payload = Payload> extends ModuleWrapper<TWrappedModule> implements DivinerInstance<TWrappedModule['params'], TIn, TOut> {
|
|
12
|
-
static readonly instanceIdentityCheck: _xylabs_object.TypeCheck<DivinerInstance<_xylabs_object.BaseParamsFields & {
|
|
13
|
-
account?: AccountInstance | "random";
|
|
14
|
-
addToResolvers?: boolean;
|
|
15
|
-
additionalSigners?: AccountInstance[];
|
|
16
|
-
allowNameResolution?: boolean;
|
|
17
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_diviner_model.DivinerConfig>;
|
|
18
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
19
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
20
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
21
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
22
|
-
}, Payload, Payload, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xylabs_object.BaseParamsFields & {
|
|
23
|
-
account?: AccountInstance | "random";
|
|
24
|
-
addToResolvers?: boolean;
|
|
25
|
-
additionalSigners?: AccountInstance[];
|
|
26
|
-
allowNameResolution?: boolean;
|
|
27
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
|
|
28
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
29
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
30
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
31
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
32
|
-
}, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>>;
|
|
33
|
-
static readonly moduleIdentityCheck: _xyo_network_module_model.ModuleTypeCheck<DivinerModule<_xylabs_object.BaseParamsFields & {
|
|
34
|
-
account?: AccountInstance | "random";
|
|
35
|
-
addToResolvers?: boolean;
|
|
36
|
-
additionalSigners?: AccountInstance[];
|
|
37
|
-
allowNameResolution?: boolean;
|
|
38
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_diviner_model.DivinerConfig>;
|
|
39
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
40
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
41
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
42
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
43
|
-
}, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xylabs_object.BaseParamsFields & {
|
|
44
|
-
account?: AccountInstance | "random";
|
|
45
|
-
addToResolvers?: boolean;
|
|
46
|
-
additionalSigners?: AccountInstance[];
|
|
47
|
-
allowNameResolution?: boolean;
|
|
48
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
|
|
49
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
50
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
51
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
52
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
53
|
-
}, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>>;
|
|
54
|
-
static readonly requiredQueries: string[];
|
|
55
|
-
divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<WithoutPrivateStorageMeta<WithSources<TOut>>[]>;
|
|
56
|
-
divineQuery(payloads?: TIn[], account?: AccountInstance, _retryConfig?: RetryConfig): Promise<ModuleQueryResult<TOut>>;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export { DivinerWrapper };
|
|
1
|
+
export * from './DivinerWrapper.ts';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-wrapper",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.20",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@xylabs/retry": "^4.5.1",
|
|
33
|
-
"@xyo-network/account-model": "^3.9.
|
|
34
|
-
"@xyo-network/diviner-model": "^3.9.
|
|
35
|
-
"@xyo-network/module-model": "^3.9.
|
|
36
|
-
"@xyo-network/module-wrapper": "^3.9.
|
|
37
|
-
"@xyo-network/payload-model": "^3.9.
|
|
33
|
+
"@xyo-network/account-model": "^3.9.20",
|
|
34
|
+
"@xyo-network/diviner-model": "^3.9.20",
|
|
35
|
+
"@xyo-network/module-model": "^3.9.20",
|
|
36
|
+
"@xyo-network/module-wrapper": "^3.9.20",
|
|
37
|
+
"@xyo-network/payload-model": "^3.9.20"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
41
|
-
"@xylabs/tsconfig": "^5.0.
|
|
40
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
41
|
+
"@xylabs/tsconfig": "^5.0.39",
|
|
42
42
|
"@xylabs/vitest-extended": "^4.5.1",
|
|
43
|
-
"@xyo-network/diviner-identity": "^3.9.
|
|
44
|
-
"@xyo-network/payload-builder": "^3.9.
|
|
45
|
-
"typescript": "^5.
|
|
43
|
+
"@xyo-network/diviner-identity": "^3.9.20",
|
|
44
|
+
"@xyo-network/payload-builder": "^3.9.20",
|
|
45
|
+
"typescript": "^5.8.2",
|
|
46
46
|
"vitest": "^3.0.7"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|