@xyo-network/module-instance-plugin 2.73.4 → 2.74.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/Plugin.d.mts +56 -0
- package/dist/Plugin.d.mts.map +1 -0
- package/dist/Plugin.d.ts +56 -0
- package/dist/Plugin.d.ts.map +1 -0
- package/dist/Witness.d.mts +18 -0
- package/dist/Witness.d.mts.map +1 -0
- package/dist/Witness.d.ts +18 -0
- package/dist/Witness.d.ts.map +1 -0
- package/dist/docs.json +7541 -8221
- package/dist/index.d.mts +5 -81
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +5 -81
- package/dist/index.d.ts.map +1 -0
- package/package.json +10 -16
- package/tsup.config.ts +0 -16
package/dist/index.d.mts
CHANGED
|
@@ -1,81 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
7
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
8
|
-
import { AnyConfigSchema, Module } from '@xyo-network/module';
|
|
9
|
-
import { Promisable } from '@xyo-network/promise';
|
|
10
|
-
import { WitnessConfig, WitnessParams, AbstractWitness } from '@xyo-network/witness';
|
|
11
|
-
|
|
12
|
-
type AbstractModuleInstanceWitnessConfigSchema = 'network.xyo.module.instance.config';
|
|
13
|
-
declare const AbstractModuleInstanceWitnessConfigSchema: AbstractModuleInstanceWitnessConfigSchema;
|
|
14
|
-
type AbstractModuleInstanceWitnessConfig = WitnessConfig<{
|
|
15
|
-
schema: AbstractModuleInstanceWitnessConfigSchema;
|
|
16
|
-
}>;
|
|
17
|
-
type AbstractModuleInstanceWitnessParams = WitnessParams<AnyConfigSchema<AbstractModuleInstanceWitnessConfig>, {
|
|
18
|
-
module?: Module;
|
|
19
|
-
}>;
|
|
20
|
-
declare class AbstractModuleInstanceWitness<TParams extends AbstractModuleInstanceWitnessParams = AbstractModuleInstanceWitnessParams> extends AbstractWitness<TParams> {
|
|
21
|
-
static configSchemas: "network.xyo.module.instance.config"[];
|
|
22
|
-
protected get module(): Module | undefined;
|
|
23
|
-
protected observeHandler(payloads?: Partial<Payload>[]): Promisable<Payload[]>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare const AbstractModuleInstancePlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<AbstractModuleInstanceWitness<_xyo_network_core.BaseParamsFields & {
|
|
27
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
28
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
29
|
-
accountDerivationPath?: string | undefined;
|
|
30
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
31
|
-
readonly name?: string | undefined;
|
|
32
|
-
readonly paging?: Record<string, {
|
|
33
|
-
size?: number | undefined;
|
|
34
|
-
}> | undefined;
|
|
35
|
-
readonly schema: string;
|
|
36
|
-
readonly security?: {
|
|
37
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
38
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
39
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
40
|
-
} | undefined;
|
|
41
|
-
readonly sign?: boolean | undefined;
|
|
42
|
-
readonly storeQueries?: boolean | undefined;
|
|
43
|
-
readonly timestamp?: boolean | undefined;
|
|
44
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
45
|
-
accountDerivationPath?: string | undefined;
|
|
46
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
47
|
-
readonly name?: string | undefined;
|
|
48
|
-
readonly paging?: Record<string, {
|
|
49
|
-
size?: number | undefined;
|
|
50
|
-
}> | undefined;
|
|
51
|
-
readonly schema: "network.xyo.module.instance.config";
|
|
52
|
-
readonly security?: {
|
|
53
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
54
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
55
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
56
|
-
} | undefined;
|
|
57
|
-
readonly sign?: boolean | undefined;
|
|
58
|
-
readonly storeQueries?: boolean | undefined;
|
|
59
|
-
readonly timestamp?: boolean | undefined;
|
|
60
|
-
} & Omit<{
|
|
61
|
-
archivist?: string | undefined;
|
|
62
|
-
schema: "network.xyo.module.instance.config";
|
|
63
|
-
targetSet?: (_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xyo_network_payload_model.PayloadSet & {
|
|
64
|
-
schema: "network.xyo.payload.set";
|
|
65
|
-
}) | undefined;
|
|
66
|
-
} & {
|
|
67
|
-
schema: "network.xyo.module.instance.config";
|
|
68
|
-
}, "schema"> & {
|
|
69
|
-
schema: "network.xyo.module.instance.config";
|
|
70
|
-
}, "schema"> & {
|
|
71
|
-
schema: string;
|
|
72
|
-
}, "schema"> & {
|
|
73
|
-
schema: string;
|
|
74
|
-
};
|
|
75
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
76
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
77
|
-
} & {
|
|
78
|
-
module?: _xyo_network_module_model.Module | undefined;
|
|
79
|
-
}>>;
|
|
80
|
-
|
|
81
|
-
export { AbstractModuleInstancePlugin, AbstractModuleInstanceWitness, AbstractModuleInstanceWitnessConfig, AbstractModuleInstanceWitnessConfigSchema, AbstractModuleInstanceWitnessParams, AbstractModuleInstancePlugin as default };
|
|
1
|
+
import { AbstractModuleInstancePlugin } from './Plugin';
|
|
2
|
+
export * from './Witness';
|
|
3
|
+
export { AbstractModuleInstancePlugin };
|
|
4
|
+
export default AbstractModuleInstancePlugin;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAEvD,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,4BAA4B,EAAE,CAAA;AAGvC,eAAe,4BAA4B,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,81 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
7
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
8
|
-
import { AnyConfigSchema, Module } from '@xyo-network/module';
|
|
9
|
-
import { Promisable } from '@xyo-network/promise';
|
|
10
|
-
import { WitnessConfig, WitnessParams, AbstractWitness } from '@xyo-network/witness';
|
|
11
|
-
|
|
12
|
-
type AbstractModuleInstanceWitnessConfigSchema = 'network.xyo.module.instance.config';
|
|
13
|
-
declare const AbstractModuleInstanceWitnessConfigSchema: AbstractModuleInstanceWitnessConfigSchema;
|
|
14
|
-
type AbstractModuleInstanceWitnessConfig = WitnessConfig<{
|
|
15
|
-
schema: AbstractModuleInstanceWitnessConfigSchema;
|
|
16
|
-
}>;
|
|
17
|
-
type AbstractModuleInstanceWitnessParams = WitnessParams<AnyConfigSchema<AbstractModuleInstanceWitnessConfig>, {
|
|
18
|
-
module?: Module;
|
|
19
|
-
}>;
|
|
20
|
-
declare class AbstractModuleInstanceWitness<TParams extends AbstractModuleInstanceWitnessParams = AbstractModuleInstanceWitnessParams> extends AbstractWitness<TParams> {
|
|
21
|
-
static configSchemas: "network.xyo.module.instance.config"[];
|
|
22
|
-
protected get module(): Module | undefined;
|
|
23
|
-
protected observeHandler(payloads?: Partial<Payload>[]): Promisable<Payload[]>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
declare const AbstractModuleInstancePlugin: () => _xyo_network_payloadset_plugin.PayloadSetWitnessPlugin<AbstractModuleInstanceWitness<_xyo_network_core.BaseParamsFields & {
|
|
27
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
28
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
29
|
-
accountDerivationPath?: string | undefined;
|
|
30
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
31
|
-
readonly name?: string | undefined;
|
|
32
|
-
readonly paging?: Record<string, {
|
|
33
|
-
size?: number | undefined;
|
|
34
|
-
}> | undefined;
|
|
35
|
-
readonly schema: string;
|
|
36
|
-
readonly security?: {
|
|
37
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
38
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
39
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
40
|
-
} | undefined;
|
|
41
|
-
readonly sign?: boolean | undefined;
|
|
42
|
-
readonly storeQueries?: boolean | undefined;
|
|
43
|
-
readonly timestamp?: boolean | undefined;
|
|
44
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
45
|
-
accountDerivationPath?: string | undefined;
|
|
46
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
47
|
-
readonly name?: string | undefined;
|
|
48
|
-
readonly paging?: Record<string, {
|
|
49
|
-
size?: number | undefined;
|
|
50
|
-
}> | undefined;
|
|
51
|
-
readonly schema: "network.xyo.module.instance.config";
|
|
52
|
-
readonly security?: {
|
|
53
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
54
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
55
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
56
|
-
} | undefined;
|
|
57
|
-
readonly sign?: boolean | undefined;
|
|
58
|
-
readonly storeQueries?: boolean | undefined;
|
|
59
|
-
readonly timestamp?: boolean | undefined;
|
|
60
|
-
} & Omit<{
|
|
61
|
-
archivist?: string | undefined;
|
|
62
|
-
schema: "network.xyo.module.instance.config";
|
|
63
|
-
targetSet?: (_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xyo_network_payload_model.PayloadSet & {
|
|
64
|
-
schema: "network.xyo.payload.set";
|
|
65
|
-
}) | undefined;
|
|
66
|
-
} & {
|
|
67
|
-
schema: "network.xyo.module.instance.config";
|
|
68
|
-
}, "schema"> & {
|
|
69
|
-
schema: "network.xyo.module.instance.config";
|
|
70
|
-
}, "schema"> & {
|
|
71
|
-
schema: string;
|
|
72
|
-
}, "schema"> & {
|
|
73
|
-
schema: string;
|
|
74
|
-
};
|
|
75
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
76
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
77
|
-
} & {
|
|
78
|
-
module?: _xyo_network_module_model.Module | undefined;
|
|
79
|
-
}>>;
|
|
80
|
-
|
|
81
|
-
export { AbstractModuleInstancePlugin, AbstractModuleInstanceWitness, AbstractModuleInstanceWitnessConfig, AbstractModuleInstanceWitnessConfigSchema, AbstractModuleInstanceWitnessParams, AbstractModuleInstancePlugin as default };
|
|
1
|
+
import { AbstractModuleInstancePlugin } from './Plugin';
|
|
2
|
+
export * from './Witness';
|
|
3
|
+
export { AbstractModuleInstancePlugin };
|
|
4
|
+
export default AbstractModuleInstancePlugin;
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAA;AAEvD,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,4BAA4B,EAAE,CAAA;AAGvC,eAAe,4BAA4B,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,25 +10,19 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/lodash": "^2.
|
|
14
|
-
"@xyo-network/module": "~2.
|
|
15
|
-
"@xyo-network/module-instance-payload-plugin": "~2.
|
|
16
|
-
"@xyo-network/payload-model": "~2.
|
|
17
|
-
"@xyo-network/payloadset-plugin": "~2.
|
|
18
|
-
"@xyo-network/promise": "~2.
|
|
19
|
-
"@xyo-network/witness": "~2.
|
|
13
|
+
"@xylabs/lodash": "^2.11.6",
|
|
14
|
+
"@xyo-network/module": "~2.74.1",
|
|
15
|
+
"@xyo-network/module-instance-payload-plugin": "~2.74.1",
|
|
16
|
+
"@xyo-network/payload-model": "~2.74.1",
|
|
17
|
+
"@xyo-network/payloadset-plugin": "~2.74.1",
|
|
18
|
+
"@xyo-network/promise": "~2.74.1",
|
|
19
|
+
"@xyo-network/witness": "~2.74.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
23
|
-
"@xylabs/tsconfig": "^
|
|
24
|
-
"publint": "^0.2.2",
|
|
25
|
-
"tsup": "^7.2.0",
|
|
22
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.28",
|
|
23
|
+
"@xylabs/tsconfig": "^3.0.28",
|
|
26
24
|
"typescript": "^5.2.2"
|
|
27
25
|
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"package-compile": "tsup && publint",
|
|
30
|
-
"package-recompile": "tsup && publint"
|
|
31
|
-
},
|
|
32
26
|
"description": "Contains the information about a module instance",
|
|
33
27
|
"docs": "dist/docs.json",
|
|
34
28
|
"types": "dist/index.d.ts",
|
|
@@ -69,5 +63,5 @@
|
|
|
69
63
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
70
64
|
},
|
|
71
65
|
"sideEffects": false,
|
|
72
|
-
"version": "2.
|
|
66
|
+
"version": "2.74.1"
|
|
73
67
|
}
|
package/tsup.config.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'tsup'
|
|
2
|
-
|
|
3
|
-
// eslint-disable-next-line import/no-default-export
|
|
4
|
-
export default defineConfig({
|
|
5
|
-
bundle: true,
|
|
6
|
-
cjsInterop: true,
|
|
7
|
-
clean: false,
|
|
8
|
-
dts: {
|
|
9
|
-
entry: ['src/index.ts'],
|
|
10
|
-
},
|
|
11
|
-
entry: ['src/index.ts'],
|
|
12
|
-
format: ['cjs', 'esm'],
|
|
13
|
-
sourcemap: true,
|
|
14
|
-
splitting: false,
|
|
15
|
-
tsconfig: 'tsconfig.json',
|
|
16
|
-
})
|