@xyo-network/bridge-module-resolver 2.72.9 → 2.73.0

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.
@@ -1,183 +0,0 @@
1
- import { AddressSchema } from '@xyo-network/address-payload-plugin';
2
- import { isArchivistModule } from '@xyo-network/archivist-model';
3
- import { ArchivistWrapper } from '@xyo-network/archivist-wrapper';
4
- import { DivinerWrapper } from '@xyo-network/diviner';
5
- import { isDivinerModule } from '@xyo-network/diviner-model';
6
- import { handleError } from '@xyo-network/error';
7
- import { CompositeModuleResolver, ModuleWrapper } from '@xyo-network/module';
8
- import { isNodeModule } from '@xyo-network/node-model';
9
- import { NodeWrapper } from '@xyo-network/node-wrapper';
10
- import { isSentinelModule, SentinelWrapper } from '@xyo-network/sentinel';
11
- import { isWitnessModule } from '@xyo-network/witness-model';
12
- import { WitnessWrapper } from '@xyo-network/witness-wrapper';
13
- import compact from 'lodash/compact';
14
- import { ProxyModule, ProxyModuleConfigSchema } from './ProxyModule';
15
- export class BridgeModuleResolver extends CompositeModuleResolver {
16
- bridge;
17
- wrapperAccount;
18
- primed = undefined;
19
- remoteAddresses;
20
- resolvedModules = {};
21
- // TODO: Allow optional ctor param for supplying address for nested Nodes
22
- // protected readonly address?: string,
23
- constructor(bridge, wrapperAccount) {
24
- super();
25
- this.bridge = bridge;
26
- this.wrapperAccount = wrapperAccount;
27
- }
28
- get isModuleResolver() {
29
- return true;
30
- }
31
- add(_module) {
32
- throw new Error('Method not implemented.');
33
- }
34
- async currentResolvedModules() {
35
- const result = {};
36
- await Promise.all(Object.entries(this.resolvedModules).map(async ([key, value]) => {
37
- result[key] = (await value);
38
- }));
39
- return result;
40
- }
41
- async getRemoteAddresses() {
42
- this.remoteAddresses =
43
- this.remoteAddresses ??
44
- (async () => {
45
- const discover = await this.bridge.targetDiscover();
46
- return compact(discover?.map((payload) => {
47
- if (payload.schema === AddressSchema) {
48
- const schemaPayload = payload;
49
- return schemaPayload.address;
50
- }
51
- else {
52
- return null;
53
- }
54
- }));
55
- })();
56
- return await this.remoteAddresses;
57
- }
58
- prime() {
59
- this.primed =
60
- this.primed ??
61
- (async () => {
62
- await this.resolveRemoteModules();
63
- return true;
64
- })();
65
- return this.primed;
66
- }
67
- remove(_address) {
68
- throw new Error('Method not implemented.');
69
- }
70
- reset() {
71
- this.primed = undefined;
72
- this.remoteAddresses = undefined;
73
- this.resolvedModules = {};
74
- }
75
- async resolve(nameOrAddressOrFilter, options) {
76
- const unfiltered = await (async () => {
77
- const mutatedOptions = { ...options, maxDepth: (options?.maxDepth ?? BridgeModuleResolver.defaultMaxDepth) - 1 };
78
- await this.prime();
79
- await this.resolveRemoteModules();
80
- if (typeof nameOrAddressOrFilter === 'string') {
81
- if (mutatedOptions.maxDepth < 0) {
82
- return undefined;
83
- }
84
- const result = (await this.resolveByAddress(nameOrAddressOrFilter)) ?? (await this.resolveByName(nameOrAddressOrFilter));
85
- return result;
86
- }
87
- else {
88
- if (mutatedOptions.maxDepth < 0) {
89
- return [];
90
- }
91
- const result = await this.resolveRemoteModules(nameOrAddressOrFilter);
92
- return result;
93
- }
94
- })();
95
- const identity = options?.identity;
96
- if (identity) {
97
- return Array.isArray(unfiltered) ? unfiltered?.filter((module) => identity(module)) : identity(unfiltered) ? unfiltered : undefined;
98
- }
99
- else {
100
- return unfiltered;
101
- }
102
- }
103
- async resolveByAddress(targetAddress) {
104
- const remoteAddresses = await this.getRemoteAddresses();
105
- //check if it is even there
106
- if (!remoteAddresses.find((address) => address === targetAddress)) {
107
- //this.logger?.log(`Not in RA: ${targetAddress}`)
108
- return undefined;
109
- }
110
- const cached = this.resolvedModules[targetAddress];
111
- if (cached)
112
- return (await cached);
113
- this.resolvedModules[targetAddress] =
114
- this.resolvedModules[targetAddress] ??
115
- (async (address) => {
116
- //discover it to set the config in the bridge
117
- await this.bridge.targetDiscover(address);
118
- const mod = new ProxyModule({ address, bridge: this.bridge, config: { schema: ProxyModuleConfigSchema } });
119
- try {
120
- if (isArchivistModule(mod)) {
121
- return ArchivistWrapper.wrap(mod, this.wrapperAccount);
122
- }
123
- if (isDivinerModule(mod)) {
124
- return DivinerWrapper.wrap(mod, this.wrapperAccount);
125
- }
126
- if (isWitnessModule(mod)) {
127
- return WitnessWrapper.wrap(mod, this.wrapperAccount);
128
- }
129
- if (isNodeModule(mod)) {
130
- return NodeWrapper.wrap(mod, this.wrapperAccount);
131
- }
132
- if (isSentinelModule(mod)) {
133
- return SentinelWrapper.wrap(mod, this.wrapperAccount);
134
- }
135
- console.warn(`BridgeModuleResolver: Unknown Module Type: [${targetAddress}]`);
136
- return ModuleWrapper.wrap(mod, this.wrapperAccount);
137
- }
138
- catch (ex) {
139
- handleError(ex, (error) => {
140
- console.error(`BridgeModuleResolver.resolveByAddress: ${error.message} [${targetAddress}]`);
141
- });
142
- }
143
- })(targetAddress);
144
- return (await this.resolvedModules[targetAddress]);
145
- }
146
- async resolveByName(name) {
147
- const modules = await this.currentResolvedModules();
148
- return Object.values(modules)
149
- .filter((module) => module.config.name === name)
150
- .pop();
151
- }
152
- async resolveByQuery(queries) {
153
- return Object.values(await this.currentResolvedModules()).filter((module) => {
154
- //filter out the requested queries
155
- const found = module.queries.filter((query) => queries.find((q) => q === query));
156
- //did we find all the requested queries?
157
- return queries.length === found.length;
158
- });
159
- }
160
- async resolveRemoteModules(filter) {
161
- if (filter?.address) {
162
- return await this.resolveRemoteModulesByAddress(filter);
163
- }
164
- if (filter?.name) {
165
- return await this.resolveRemoteModulesByName(filter);
166
- }
167
- if (filter?.query) {
168
- return await this.resolveRemoteModulesByQuery(filter);
169
- }
170
- //get all of them
171
- return await this.resolveRemoteModulesByAddress({ address: await this.getRemoteAddresses() });
172
- }
173
- async resolveRemoteModulesByAddress(filter) {
174
- return compact(await Promise.all(filter.address.map((address) => this.resolveByAddress(address))));
175
- }
176
- async resolveRemoteModulesByName(filter) {
177
- return compact(await Promise.all(filter.name.map(async (name) => await this.resolveByName(name))));
178
- }
179
- async resolveRemoteModulesByQuery(filter) {
180
- return compact((await Promise.all(filter.query.map(async (query) => await this.resolveByQuery(query)))).flat());
181
- }
182
- }
183
- //# sourceMappingURL=ModuleResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModuleResolver.js","sourceRoot":"","sources":["../../src/ModuleResolver.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,aAAa,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAW5E,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,OAAO,MAAM,gBAAgB,CAAA;AAEpC,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAqB,MAAM,eAAe,CAAA;AAEvF,MAAM,OAAO,oBAAqB,SAAQ,uBAAuB;IAQ1C;IACT;IARJ,MAAM,GAAiC,SAAS,CAAA;IAChD,eAAe,CAAoB;IACnC,eAAe,GAA4C,EAAE,CAAA;IAErE,yEAAyE;IACzE,uCAAuC;IACvC,YACqB,MAAoB,EAC7B,cAA+B;QAEzC,KAAK,EAAE,CAAA;QAHY,WAAM,GAAN,MAAM,CAAc;QAC7B,mBAAc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C,CAAC,CAAC,CAAA;IACvG,CAAC;IAEO,KAAK,CAAC,0BAA0B,CAA4C,MAAwB;QAC1G,OAAO,OAAO,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,aAAa,CAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;IACvG,CAAC;IAEO,KAAK,CAAC,2BAA2B,CAA4C,MAAyB;QAC5G,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,IAAI,CAAC,cAAc,CAAI,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAA;IACpH,CAAC;CACF"}
@@ -1,106 +0,0 @@
1
- import { assertEx } from '@xylabs/assert';
2
- import { AddressSchema } from '@xyo-network/address-payload-plugin';
3
- import { ManifestPayloadSchema } from '@xyo-network/manifest-model';
4
- import { BaseEmitter, CompositeModuleResolver, } from '@xyo-network/module';
5
- import compact from 'lodash/compact';
6
- export const ProxyModuleConfigSchema = 'network.xyo.module.proxy.config';
7
- export class ProxyModule extends BaseEmitter {
8
- proxyParams;
9
- upResolver = new CompositeModuleResolver();
10
- _busyCount = 0;
11
- constructor(proxyParams) {
12
- super({ config: proxyParams.bridge.targetConfig(proxyParams.address) });
13
- this.proxyParams = proxyParams;
14
- }
15
- get address() {
16
- return this.proxyParams.address.toLowerCase();
17
- }
18
- get bridge() {
19
- return this.proxyParams.bridge;
20
- }
21
- get config() {
22
- const config = this.bridge.targetConfig(this.address);
23
- return config;
24
- }
25
- get downResolver() {
26
- return assertEx(this.bridge.targetDownResolver(this.address), 'Unable to get resolver');
27
- }
28
- get queries() {
29
- return this.bridge.targetQueries(this.address);
30
- }
31
- addressPreviousHash() {
32
- throw Error('Not Implemented');
33
- }
34
- async busy(closure) {
35
- if (this._busyCount <= 0) {
36
- this._busyCount = 0;
37
- const args = { busy: true, module: this };
38
- await this.emit('moduleBusy', args);
39
- }
40
- this._busyCount++;
41
- try {
42
- return await closure();
43
- }
44
- finally {
45
- this._busyCount--;
46
- if (this._busyCount <= 0) {
47
- this._busyCount = 0;
48
- const args = { busy: false, module: this };
49
- await this.emit('moduleBusy', args);
50
- }
51
- }
52
- }
53
- async describe() {
54
- return await this.busy(async () => {
55
- const description = {
56
- address: this.address,
57
- queries: this.queries,
58
- };
59
- if (this.config.name) {
60
- description.name = this.config.name;
61
- }
62
- const discover = await this.discover();
63
- description.children = compact(discover?.map((payload) => {
64
- const address = payload.schema === AddressSchema ? payload.address : undefined;
65
- return address != this.address ? address : undefined;
66
- }) ?? []);
67
- return description;
68
- });
69
- }
70
- async discover() {
71
- return await this.busy(async () => {
72
- return await this.bridge.targetDiscover();
73
- });
74
- }
75
- manifest() {
76
- const name = this.config.name ?? 'Anonymous';
77
- return { config: { name, ...this.config }, schema: ManifestPayloadSchema };
78
- }
79
- moduleAddress() {
80
- throw Error('Not Implemented');
81
- }
82
- previousHash() {
83
- throw Error('Not Implemented');
84
- }
85
- async query(query, payloads) {
86
- return await this.busy(async () => {
87
- const result = assertEx(await this.bridge.targetQuery(this.address, query, payloads), 'Remote Query Failed');
88
- await this.emit('moduleQueried', { module: this, payloads, query, result });
89
- return result;
90
- });
91
- }
92
- async queryable(query, payloads, queryConfig) {
93
- return await this.bridge.targetQueryable(this.address, query, payloads, queryConfig);
94
- }
95
- async resolve(nameOrAddressOrFilter, options) {
96
- return await this.busy(async () => {
97
- if (typeof nameOrAddressOrFilter === 'string') {
98
- return await this.bridge.targetResolve(this.address, nameOrAddressOrFilter, options);
99
- }
100
- else {
101
- return await this.bridge.targetResolve(this.address, nameOrAddressOrFilter, options);
102
- }
103
- });
104
- }
105
- }
106
- //# sourceMappingURL=ProxyModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file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EAAE,CAAC,CAAA;YAC3E,OAAO,MAAM,CAAA;QACf,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,KAAwB,EAAE,QAAoB,EAAE,WAA0B;QACxF,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAA;IACtF,CAAC;IAKD,KAAK,CAAC,OAAO,CACX,qBAA6C,EAC7C,OAA6B;QAE7B,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE;YAChC,IAAI,OAAO,qBAAqB,KAAK,QAAQ,EAAE;gBAC7C,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;aACrF;iBAAM;gBACL,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;aACrF;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CACF"}
package/dist/esm/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './ModuleResolver';
2
- export * from './ProxyModule';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA"}
@@ -1,30 +0,0 @@
1
- import { AccountInstance } from '@xyo-network/account-model';
2
- import { BridgeModule } from '@xyo-network/bridge-model';
3
- import { CompositeModuleResolver } from '@xyo-network/module';
4
- import { Module, ModuleFilter, ModuleFilterOptions, ModuleInstance, ModuleResolver } from '@xyo-network/module-model';
5
- export declare class BridgeModuleResolver extends CompositeModuleResolver implements ModuleResolver {
6
- protected readonly bridge: BridgeModule;
7
- protected wrapperAccount: AccountInstance;
8
- private primed;
9
- private remoteAddresses?;
10
- private resolvedModules;
11
- constructor(bridge: BridgeModule, wrapperAccount: AccountInstance);
12
- get isModuleResolver(): boolean;
13
- add(module: Module): this;
14
- add(module: Module[]): this;
15
- currentResolvedModules<T extends ModuleInstance = ModuleInstance>(): Promise<Record<string, T>>;
16
- getRemoteAddresses(): Promise<string[]>;
17
- prime(): Promise<boolean>;
18
- remove(_address: string | string[]): this;
19
- reset(): void;
20
- resolve<T extends ModuleInstance = ModuleInstance>(filter?: ModuleFilter<T>, options?: ModuleFilterOptions<T>): Promise<T[]>;
21
- resolve<T extends ModuleInstance = ModuleInstance>(nameOrAddress: string, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
22
- private resolveByAddress;
23
- private resolveByName;
24
- private resolveByQuery;
25
- private resolveRemoteModules;
26
- private resolveRemoteModulesByAddress;
27
- private resolveRemoteModulesByName;
28
- private resolveRemoteModulesByQuery;
29
- }
30
- //# sourceMappingURL=ModuleResolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModuleResolver.d.ts","sourceRoot":"","sources":["../../src/ModuleResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAI5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAIxD,OAAO,EAAE,uBAAuB,EAAiB,MAAM,qBAAqB,CAAA;AAC5E,OAAO,EAEL,MAAM,EACN,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,cAAc,EAGf,MAAM,2BAA2B,CAAA;AAUlC,qBAAa,oBAAqB,SAAQ,uBAAwB,YAAW,cAAc;IAQvF,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,YAAY;IACvC,SAAS,CAAC,cAAc,EAAE,eAAe;IAR3C,OAAO,CAAC,MAAM,CAA0C;IACxD,OAAO,CAAC,eAAe,CAAC,CAAmB;IAC3C,OAAO,CAAC,eAAe,CAA8C;gBAKhD,MAAM,EAAE,YAAY,EAC7B,cAAc,EAAE,eAAe;IAK3C,IAAa,gBAAgB,IAAI,OAAO,CAEvC;IAEQ,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IACzB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI;IAK9B,sBAAsB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAW/F,kBAAkB;IAmBxB,KAAK;IAUI,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI;IAIlD,KAAK;IAMU,OAAO,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAC5H,OAAO,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;YAgCpI,gBAAgB;YAoDhB,aAAa;YAOb,cAAc;YAUd,oBAAoB;YAiBpB,6BAA6B;YAI7B,0BAA0B;YAI1B,2BAA2B;CAG1C"}
@@ -1,84 +0,0 @@
1
- import { QueryBoundWitness } from '@xyo-network/boundwitness-builder';
2
- import { BridgeModule } from '@xyo-network/bridge-model';
3
- import { ModuleManifestPayload } from '@xyo-network/manifest-model';
4
- import { AddressPreviousHashPayload, BaseEmitter, CompositeModuleResolver, ModuleConfig, ModuleDescription, ModuleEventData, ModuleFilter, ModuleFilterOptions, ModuleInstance, ModuleParams, ModuleQueryResult } from '@xyo-network/module';
5
- import { Payload } from '@xyo-network/payload-model';
6
- import { Promisable } from '@xyo-network/promise';
7
- export type ProxyModuleConfigSchema = 'network.xyo.module.proxy.config';
8
- export declare const ProxyModuleConfigSchema: ProxyModuleConfigSchema;
9
- export type TProxyModuleConfig = ModuleConfig<{
10
- schema: ProxyModuleConfigSchema;
11
- }>;
12
- export type ProxyModuleParams = ModuleParams<TProxyModuleConfig, {
13
- address: string;
14
- bridge: BridgeModule;
15
- }>;
16
- export declare class ProxyModule extends BaseEmitter<ModuleParams, ModuleEventData> implements ModuleInstance<ModuleParams, ModuleEventData> {
17
- proxyParams: ProxyModuleParams;
18
- readonly upResolver: CompositeModuleResolver;
19
- private _busyCount;
20
- constructor(proxyParams: ProxyModuleParams);
21
- get address(): string;
22
- get bridge(): BridgeModule<import("@xyo-network/core").BaseParamsFields & {
23
- account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
24
- config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
25
- accountDerivationPath?: string | undefined;
26
- readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
27
- readonly name?: string | undefined;
28
- readonly paging?: Record<string, {
29
- size?: number | undefined;
30
- }> | undefined;
31
- readonly schema: string;
32
- readonly security?: {
33
- readonly allowAnonymous?: boolean | undefined;
34
- readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
35
- readonly disallowed?: Record<string, string[]> | undefined;
36
- } | undefined;
37
- readonly sign?: boolean | undefined;
38
- readonly storeQueries?: boolean | undefined;
39
- readonly timestamp?: boolean | undefined;
40
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
41
- accountDerivationPath?: string | undefined;
42
- readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
43
- readonly name?: string | undefined;
44
- readonly paging?: Record<string, {
45
- size?: number | undefined;
46
- }> | undefined;
47
- readonly schema: "network.xyo.bridge.config";
48
- readonly security?: {
49
- readonly allowAnonymous?: boolean | undefined;
50
- readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
51
- readonly disallowed?: Record<string, string[]> | undefined;
52
- } | undefined;
53
- readonly sign?: boolean | undefined;
54
- readonly storeQueries?: boolean | undefined;
55
- readonly timestamp?: boolean | undefined;
56
- } & Omit<{
57
- discoverCache?: true | import("@xyo-network/bridge-model").CacheConfig | undefined;
58
- schema: "network.xyo.bridge.config";
59
- }, "schema"> & {
60
- schema: "network.xyo.bridge.config";
61
- }, "schema"> & {
62
- schema: string;
63
- }, "schema"> & {
64
- schema: string;
65
- };
66
- ephemeralQueryAccountEnabled?: boolean | undefined;
67
- wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
68
- }, ModuleEventData<object>>;
69
- get config(): ModuleConfig;
70
- get downResolver(): import("@xyo-network/module").ModuleResolver;
71
- get queries(): string[];
72
- addressPreviousHash(): Promise<AddressPreviousHashPayload>;
73
- busy<R>(closure: () => Promise<R>): Promise<R>;
74
- describe(): Promise<ModuleDescription>;
75
- discover(): Promise<Payload[]>;
76
- manifest(): Promisable<ModuleManifestPayload>;
77
- moduleAddress(): Promise<AddressPreviousHashPayload[]>;
78
- previousHash(): Promise<string | undefined>;
79
- query<T extends QueryBoundWitness = QueryBoundWitness>(query: T, payloads?: Payload[]): Promise<ModuleQueryResult>;
80
- queryable(query: QueryBoundWitness, payloads?: Payload[], queryConfig?: ModuleConfig): Promise<boolean>;
81
- resolve(filter?: ModuleFilter, options?: ModuleFilterOptions): Promise<ModuleInstance[]>;
82
- resolve(nameOrAddress: string, options?: ModuleFilterOptions): Promise<ModuleInstance | undefined>;
83
- }
84
- //# sourceMappingURL=ProxyModule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProxyModule.d.ts","sourceRoot":"","sources":["../../src/ProxyModule.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAyB,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC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AC;IAMpC,QAAQ,IAAI,UAAU,CAAC,qBAAqB,CAAC;IAK7C,aAAa,IAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC;IAItD,YAAY,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAIrC,KAAK,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,EAAE,KAAK,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAQlH,SAAS,CAAC,KAAK,EAAE,iBAAiB,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,WAAW,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAK7G,OAAO,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IACxF,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;CAanG"}
@@ -1,3 +0,0 @@
1
- export * from './ModuleResolver';
2
- export * from './ProxyModule';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA"}