@xyo-network/bridge-abstract 4.0.2 → 4.1.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.
- package/{dist/types → build/neutral}/AbstractModuleProxy/AbstractModuleProxy.d.ts +1 -1
- package/{dist/types → build/neutral}/AbstractModuleProxy/ModuleProxyResolver.d.ts +3 -3
- package/{dist/types → build/neutral}/AbstractModuleProxy/ModuleProxyResolver.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +139 -0
- package/package.json +36 -36
- /package/{dist/types → build/neutral}/AbstractBridge.d.ts +0 -0
- /package/{dist/types → build/neutral}/AbstractBridge.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/AbstractBridgeModuleResolver.d.ts +0 -0
- /package/{dist/types → build/neutral}/AbstractBridgeModuleResolver.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/AbstractModuleProxy/AbstractModuleProxy.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/AbstractModuleProxy/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/AbstractModuleProxy/index.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/index.d.ts +0 -0
- /package/{dist/types → build/neutral}/index.d.ts.map +0 -0
- /package/{dist/types → build/neutral}/wrapModuleWithType.d.ts +0 -0
- /package/{dist/types → build/neutral}/wrapModuleWithType.d.ts.map +0 -0
|
@@ -43,7 +43,7 @@ export declare abstract class AbstractModuleProxy<TWrappedModule extends ModuleI
|
|
|
43
43
|
manifest(maxDepth?: number): Promise<ModuleManifestPayload>;
|
|
44
44
|
moduleAddress(): Promise<AddressPreviousHashPayload[]>;
|
|
45
45
|
previousHash(): Promise<string | undefined>;
|
|
46
|
-
publicChildren(): Promise<ModuleInstance<ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig
|
|
46
|
+
publicChildren(): Promise<ModuleInstance<ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig<object, void>>>, ModuleEventData<object>>[]>;
|
|
47
47
|
query<T extends QueryBoundWitness = QueryBoundWitness>(query: T, payloads?: Payload[]): Promise<ModuleQueryResult>;
|
|
48
48
|
queryHandler<T extends QueryBoundWitness = QueryBoundWitness>(_query: T, _payloads?: Payload[], _queryConfig?: TWrappedModule['params']['config']): Promise<ModuleQueryHandlerResult>;
|
|
49
49
|
queryable<T extends QueryBoundWitness = QueryBoundWitness>(_query: T, _payloads?: Payload[], _queryConfig?: TWrappedModule['params']['config']): Promise<boolean>;
|
|
@@ -15,10 +15,10 @@ export declare class ModuleProxyResolver<T extends ModuleProxyResolverOptions =
|
|
|
15
15
|
private downResolver;
|
|
16
16
|
constructor(options: T);
|
|
17
17
|
get priority(): 0;
|
|
18
|
-
get root(): ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig
|
|
18
|
+
get root(): ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig<object, void>>>, import("@xyo-network/module-model").ModuleEventData<object>>;
|
|
19
19
|
protected get childAddressMap(): Record<Lowercase<string>, string | null>;
|
|
20
|
-
protected get host(): ModuleResolver<ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig
|
|
21
|
-
protected get mod(): ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig
|
|
20
|
+
protected get host(): ModuleResolver<ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig<object, void>>>, import("@xyo-network/module-model").ModuleEventData<object>>>;
|
|
21
|
+
protected get mod(): ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig<object, void>>>, import("@xyo-network/module-model").ModuleEventData<object>>;
|
|
22
22
|
addResolver(_resolver: ModuleResolver): this;
|
|
23
23
|
childManifest(address: Address): ModuleManifestPayload | undefined;
|
|
24
24
|
childState(address: Address): ModuleManifestPayload | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModuleProxyResolver.d.ts","sourceRoot":"","sources":["../../../src/AbstractModuleProxy/ModuleProxyResolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,cAAc,EACd,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAMlC,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC,CAAA;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAA;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAA;IACpD,IAAI,EAAE,cAAc,CAAA;IACpB,GAAG,EAAE,cAAc,CAAA;IACnB,4BAA4B,CAAC,EAAE,2BAA2B,EAAE,CAAA;CAC7D;AAED,qBAAa,mBAAmB,CAAC,CAAC,SAAS,0BAA0B,GAAG,0BAA0B,CAAE,YAAW,sBAAsB;IAGvH,OAAO,CAAC,OAAO;IAF3B,OAAO,CAAC,YAAY,CAAyB;gBAEzB,OAAO,EAAE,CAAC;IAI9B,IAAI,QAAQ,MAEX;IAED,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"ModuleProxyResolver.d.ts","sourceRoot":"","sources":["../../../src/AbstractModuleProxy/ModuleProxyResolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,cAAc,EACd,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAMlC,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC,CAAA;IACnD,cAAc,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAA;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAA;IACpD,IAAI,EAAE,cAAc,CAAA;IACpB,GAAG,EAAE,cAAc,CAAA;IACnB,4BAA4B,CAAC,EAAE,2BAA2B,EAAE,CAAA;CAC7D;AAED,qBAAa,mBAAmB,CAAC,CAAC,SAAS,0BAA0B,GAAG,0BAA0B,CAAE,YAAW,sBAAsB;IAGvH,OAAO,CAAC,OAAO;IAF3B,OAAO,CAAC,YAAY,CAAyB;gBAEzB,OAAO,EAAE,CAAC;IAI9B,IAAI,QAAQ,MAEX;IAED,IAAI,IAAI,uPAEP;IAED,SAAS,KAAK,eAAe,6CAE5B;IAED,SAAS,KAAK,IAAI,uQAEjB;IAED,SAAS,KAAK,GAAG,uPAEhB;IAED,WAAW,CAAC,SAAS,EAAE,cAAc,GAAG,IAAI;IAI5C,aAAa,CAAC,OAAO,EAAE,OAAO;IAI9B,UAAU,CAAC,OAAO,EAAE,OAAO;IAI3B,cAAc,CAAC,SAAS,EAAE,cAAc,GAAG,IAAI;IAI/C,yEAAyE;IACnE,OAAO,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IACpC,OAAO,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAC5G,OAAO,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,EAAE,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAkDxI,iBAAiB,CAAC,EAAE,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,mBAAmB,GAAG,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC;IAqBlG,cAAc,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IACnH,cAAc,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,EAAE,EAAE,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;CAOhJ"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Address } from '@xylabs/hex';
|
|
2
|
+
import { Promisable } from '@xylabs/promise';
|
|
3
|
+
import { ArchivistInstance } from '@xyo-network/archivist-model';
|
|
4
|
+
import { QueryBoundWitness } from '@xyo-network/boundwitness-model';
|
|
5
|
+
import { BridgeParams, BridgeModuleEventData, AttachableBridgeInstance, BridgeExposeOptions, BridgeUnexposeOptions, QuerySendFinishedEventArgs, QuerySendStartedEventArgs, BridgeInstance } from '@xyo-network/bridge-model';
|
|
6
|
+
import { AbstractModuleInstance } from '@xyo-network/module-abstract';
|
|
7
|
+
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
8
|
+
import { ModuleInstance, ModuleResolverInstance, ModuleIdentifier, ModuleFilterOptions, ModuleQueryHandlerResult, ModuleParams, ArchivingModuleConfig, ModuleResolver, Module, AttachableModuleInstance, ModuleEventData, AddressPreviousHashPayload, ModuleName, ModuleQueryResult, ModuleIdentifierTransformer, ObjectFilterOptions, CacheConfig } from '@xyo-network/module-model';
|
|
9
|
+
import { Schema, Payload, ModuleError } from '@xyo-network/payload-model';
|
|
10
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
11
|
+
import { ModuleResolverParams, CompositeModuleResolver } from '@xyo-network/module-resolver';
|
|
12
|
+
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
13
|
+
import { ModuleWrapper } from '@xyo-network/module-wrapper';
|
|
14
|
+
|
|
15
|
+
declare abstract class AbstractBridge<TParams extends BridgeParams = BridgeParams> extends AbstractModuleInstance<TParams, BridgeModuleEventData> implements AttachableBridgeInstance<TParams, BridgeModuleEventData> {
|
|
16
|
+
static readonly configSchemas: Schema[];
|
|
17
|
+
static readonly defaultConfigSchema: Schema;
|
|
18
|
+
static readonly uniqueName: string;
|
|
19
|
+
protected _roots?: ModuleInstance[];
|
|
20
|
+
get allowNameResolution(): boolean;
|
|
21
|
+
get discoverRoots(): false | "start" | "lazy";
|
|
22
|
+
get queries(): string[];
|
|
23
|
+
get resolver(): Promisable<ModuleResolverInstance>;
|
|
24
|
+
expose(id: ModuleIdentifier, options?: BridgeExposeOptions | undefined): Promise<ModuleInstance[]>;
|
|
25
|
+
exposed(): Promise<Address[]>;
|
|
26
|
+
/** @deprecated do not pass undefined. If trying to get all, pass '*' */
|
|
27
|
+
resolve(): Promise<ModuleInstance[]>;
|
|
28
|
+
resolve<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ModuleFilterOptions<T>): Promise<T[]>;
|
|
29
|
+
resolve<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
|
|
30
|
+
startHandler(): Promise<void>;
|
|
31
|
+
unexpose(id: ModuleIdentifier, options?: BridgeUnexposeOptions | undefined): Promise<Address[]>;
|
|
32
|
+
protected queryHandler<T extends QueryBoundWitness = QueryBoundWitness>(query: T, payloads?: Payload[]): Promise<ModuleQueryHandlerResult>;
|
|
33
|
+
protected resolveArchivingArchivists(): Promise<ArchivistInstance[]>;
|
|
34
|
+
abstract exposeHandler(address: Address, options?: BridgeExposeOptions | undefined): Promisable<ModuleInstance[]>;
|
|
35
|
+
abstract exposedHandler(): Promisable<Address[]>;
|
|
36
|
+
abstract getRoots(force?: boolean): Promise<ModuleInstance[]>;
|
|
37
|
+
abstract unexposeHandler(address: Address, options?: BridgeUnexposeOptions | undefined): Promisable<ModuleInstance[]>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
interface ModuleProxyParams extends ModuleParams {
|
|
41
|
+
account: AccountInstance;
|
|
42
|
+
archiving?: ArchivingModuleConfig['archiving'] & {
|
|
43
|
+
resolveArchivists: () => Promise<ArchivistInstance[]>;
|
|
44
|
+
};
|
|
45
|
+
host: ModuleResolver;
|
|
46
|
+
manifest?: ModuleManifestPayload;
|
|
47
|
+
moduleAddress: Address;
|
|
48
|
+
onQuerySendFinished?: (args: Omit<QuerySendFinishedEventArgs, 'mod'>) => void;
|
|
49
|
+
onQuerySendStarted?: (args: Omit<QuerySendStartedEventArgs, 'mod'>) => void;
|
|
50
|
+
state?: Payload[];
|
|
51
|
+
}
|
|
52
|
+
declare abstract class AbstractModuleProxy<TWrappedModule extends ModuleInstance = ModuleInstance, TParams extends ModuleProxyParams = ModuleProxyParams> extends AbstractModuleInstance<TParams, TWrappedModule['eventData']> implements ModuleInstance<TParams, TWrappedModule['eventData']> {
|
|
53
|
+
static readonly requiredQueries: string[];
|
|
54
|
+
protected _config?: TWrappedModule['config'];
|
|
55
|
+
protected _publicChildren?: ModuleInstance[];
|
|
56
|
+
protected _state: Payload[] | undefined;
|
|
57
|
+
protected _stateInProcess: boolean;
|
|
58
|
+
private _spamTrap;
|
|
59
|
+
get address(): Lowercase<string>;
|
|
60
|
+
get archiving(): ArchivingModuleConfig['archiving'] | undefined;
|
|
61
|
+
get config(): TWrappedModule['config'] & {
|
|
62
|
+
schema: Schema;
|
|
63
|
+
};
|
|
64
|
+
get queries(): string[];
|
|
65
|
+
static hasRequiredQueries(mod: Module): boolean;
|
|
66
|
+
static isAllowedSchema(schema: Schema): boolean;
|
|
67
|
+
static missingRequiredQueries(mod: Module): string[];
|
|
68
|
+
static paramsHandler<T extends AttachableModuleInstance<ModuleParams, ModuleEventData>>(inParams?: Partial<T['params']>): Promise<T['params']>;
|
|
69
|
+
addressPreviousHash(): Promise<AddressPreviousHashPayload>;
|
|
70
|
+
childAddressByName(name: ModuleName): Address | undefined;
|
|
71
|
+
childAddressMap(): Promise<Record<Address, ModuleName | null>>;
|
|
72
|
+
createHandler(): Promise<void>;
|
|
73
|
+
manifest(maxDepth?: number): Promise<ModuleManifestPayload>;
|
|
74
|
+
moduleAddress(): Promise<AddressPreviousHashPayload[]>;
|
|
75
|
+
previousHash(): Promise<string | undefined>;
|
|
76
|
+
publicChildren(): Promise<ModuleInstance<ModuleParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<object, void>>>, ModuleEventData<object>>[]>;
|
|
77
|
+
query<T extends QueryBoundWitness = QueryBoundWitness>(query: T, payloads?: Payload[]): Promise<ModuleQueryResult>;
|
|
78
|
+
queryHandler<T extends QueryBoundWitness = QueryBoundWitness>(_query: T, _payloads?: Payload[], _queryConfig?: TWrappedModule['params']['config']): Promise<ModuleQueryHandlerResult>;
|
|
79
|
+
queryable<T extends QueryBoundWitness = QueryBoundWitness>(_query: T, _payloads?: Payload[], _queryConfig?: TWrappedModule['params']['config']): Promise<boolean>;
|
|
80
|
+
resolveArchivingArchivists(): Promise<ArchivistInstance[]>;
|
|
81
|
+
setConfig(config: TWrappedModule['params']['config']): void;
|
|
82
|
+
setState(state: Payload[]): void;
|
|
83
|
+
state(): Promise<Payload[]>;
|
|
84
|
+
protected filterErrors(result: ModuleQueryResult): ModuleError[];
|
|
85
|
+
protected startHandler(): Promise<void>;
|
|
86
|
+
private checkSpam;
|
|
87
|
+
abstract proxyQueryHandler<T extends QueryBoundWitness = QueryBoundWitness>(_query: T, _payloads?: Payload[]): Promise<ModuleQueryResult>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface ModuleProxyResolverOptions {
|
|
91
|
+
childAddressMap: Record<Address, ModuleName | null>;
|
|
92
|
+
childManifests?: Record<Address, ModuleManifestPayload>;
|
|
93
|
+
childStates?: Record<Address, ModuleManifestPayload>;
|
|
94
|
+
host: ModuleResolver;
|
|
95
|
+
mod: ModuleInstance;
|
|
96
|
+
moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
|
|
97
|
+
}
|
|
98
|
+
declare class ModuleProxyResolver<T extends ModuleProxyResolverOptions = ModuleProxyResolverOptions> implements ModuleResolverInstance {
|
|
99
|
+
private options;
|
|
100
|
+
private downResolver;
|
|
101
|
+
constructor(options: T);
|
|
102
|
+
get priority(): 0;
|
|
103
|
+
get root(): ModuleInstance<_xyo_network_module_model.ModuleParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<object, void>>>, _xyo_network_module_model.ModuleEventData<object>>;
|
|
104
|
+
protected get childAddressMap(): Record<Lowercase<string>, string | null>;
|
|
105
|
+
protected get host(): ModuleResolver<ModuleInstance<_xyo_network_module_model.ModuleParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<object, void>>>, _xyo_network_module_model.ModuleEventData<object>>>;
|
|
106
|
+
protected get mod(): ModuleInstance<_xyo_network_module_model.ModuleParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<object, void>>>, _xyo_network_module_model.ModuleEventData<object>>;
|
|
107
|
+
addResolver(_resolver: ModuleResolver): this;
|
|
108
|
+
childManifest(address: Address): ModuleManifestPayload | undefined;
|
|
109
|
+
childState(address: Address): ModuleManifestPayload | undefined;
|
|
110
|
+
removeResolver(_resolver: ModuleResolver): this;
|
|
111
|
+
/** @deprecated do not pass undefined. If trying to get all, pass '*' */
|
|
112
|
+
resolve(): Promise<ModuleInstance[]>;
|
|
113
|
+
resolve<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ModuleFilterOptions<T>): Promise<T[]>;
|
|
114
|
+
resolve<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
|
|
115
|
+
resolveIdentifier(id: ModuleIdentifier, _options?: ObjectFilterOptions): Promisable<Address | undefined>;
|
|
116
|
+
resolvePrivate<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ObjectFilterOptions<T>): Promise<T[]>;
|
|
117
|
+
resolvePrivate<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ObjectFilterOptions<T>): Promise<T | undefined>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
interface BridgeModuleResolverParams extends ModuleResolverParams {
|
|
121
|
+
additionalSigners?: AccountInstance[];
|
|
122
|
+
archiving?: ArchivingModuleConfig['archiving'] & {
|
|
123
|
+
resolveArchivists: () => Promise<ArchivistInstance[]>;
|
|
124
|
+
};
|
|
125
|
+
bridge: BridgeInstance;
|
|
126
|
+
cacheConfig?: CacheConfig;
|
|
127
|
+
onQuerySendFinished?: (args: Omit<QuerySendFinishedEventArgs, 'mod'>) => void;
|
|
128
|
+
onQuerySendStarted?: (args: Omit<QuerySendStartedEventArgs, 'mod'>) => void;
|
|
129
|
+
wrapperAccount: AccountInstance;
|
|
130
|
+
}
|
|
131
|
+
declare abstract class AbstractBridgeModuleResolver<TParams extends BridgeModuleResolverParams = BridgeModuleResolverParams, TProxyParams extends ModuleProxyParams = ModuleProxyParams> extends CompositeModuleResolver<TParams> {
|
|
132
|
+
get priority(): 0;
|
|
133
|
+
resolveHandler<T extends ModuleInstance = ModuleInstance>(id: ModuleIdentifier, options?: ModuleFilterOptions<T>, _params?: Partial<TProxyParams>): Promise<T[]>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare const wrapModuleWithType: (mod: Module, account: AccountInstance) => ModuleWrapper;
|
|
137
|
+
|
|
138
|
+
export { AbstractBridge, AbstractBridgeModuleResolver, AbstractModuleProxy, ModuleProxyResolver, wrapModuleWithType };
|
|
139
|
+
export type { BridgeModuleResolverParams, ModuleProxyParams, ModuleProxyResolverOptions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/bridge-abstract",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,50 +21,50 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.
|
|
33
|
-
"@xylabs/base": "^4.
|
|
34
|
-
"@xylabs/
|
|
35
|
-
"@xylabs/
|
|
36
|
-
"@xylabs/
|
|
37
|
-
"@xylabs/
|
|
38
|
-
"@xylabs/
|
|
39
|
-
"@
|
|
40
|
-
"@xyo-network/account": "^4.0
|
|
41
|
-
"@xyo-network/
|
|
42
|
-
"@xyo-network/archivist-
|
|
43
|
-
"@xyo-network/
|
|
44
|
-
"@xyo-network/boundwitness-
|
|
45
|
-
"@xyo-network/
|
|
46
|
-
"@xyo-network/
|
|
47
|
-
"@xyo-network/diviner-
|
|
48
|
-
"@xyo-network/
|
|
49
|
-
"@xyo-network/
|
|
50
|
-
"@xyo-network/module-
|
|
51
|
-
"@xyo-network/module-
|
|
52
|
-
"@xyo-network/module-
|
|
53
|
-
"@xyo-network/
|
|
54
|
-
"@xyo-network/node-
|
|
55
|
-
"@xyo-network/
|
|
56
|
-
"@xyo-network/payload-
|
|
57
|
-
"@xyo-network/payload-
|
|
58
|
-
"@xyo-network/
|
|
59
|
-
"@xyo-network/sentinel-
|
|
60
|
-
"@xyo-network/
|
|
61
|
-
"@xyo-network/witness-
|
|
62
|
-
"@xyo-network/witness-wrapper": "^4.0.2",
|
|
32
|
+
"@xylabs/assert": "^4.13.15",
|
|
33
|
+
"@xylabs/base": "^4.13.15",
|
|
34
|
+
"@xylabs/exists": "^4.13.15",
|
|
35
|
+
"@xylabs/forget": "^4.13.15",
|
|
36
|
+
"@xylabs/hex": "^4.13.15",
|
|
37
|
+
"@xylabs/object": "^4.13.15",
|
|
38
|
+
"@xylabs/promise": "^4.13.15",
|
|
39
|
+
"@xyo-network/account": "^4.1.0",
|
|
40
|
+
"@xyo-network/account-model": "^4.1.0",
|
|
41
|
+
"@xyo-network/archivist-model": "^4.1.0",
|
|
42
|
+
"@xyo-network/archivist-wrapper": "^4.1.0",
|
|
43
|
+
"@xyo-network/boundwitness-model": "^4.1.0",
|
|
44
|
+
"@xyo-network/boundwitness-wrapper": "^4.1.0",
|
|
45
|
+
"@xyo-network/bridge-model": "^4.1.0",
|
|
46
|
+
"@xyo-network/diviner-model": "^4.1.0",
|
|
47
|
+
"@xyo-network/diviner-wrapper": "^4.1.0",
|
|
48
|
+
"@xyo-network/manifest-model": "^4.1.0",
|
|
49
|
+
"@xyo-network/module-abstract": "^4.1.0",
|
|
50
|
+
"@xyo-network/module-model": "^4.1.0",
|
|
51
|
+
"@xyo-network/module-resolver": "^4.1.0",
|
|
52
|
+
"@xyo-network/module-wrapper": "^4.1.0",
|
|
53
|
+
"@xyo-network/node-model": "^4.1.0",
|
|
54
|
+
"@xyo-network/node-wrapper": "^4.1.0",
|
|
55
|
+
"@xyo-network/payload-builder": "^4.1.0",
|
|
56
|
+
"@xyo-network/payload-model": "^4.1.0",
|
|
57
|
+
"@xyo-network/query-payload-plugin": "^4.1.0",
|
|
58
|
+
"@xyo-network/sentinel-model": "^4.1.0",
|
|
59
|
+
"@xyo-network/sentinel-wrapper": "^4.1.0",
|
|
60
|
+
"@xyo-network/witness-model": "^4.1.0",
|
|
61
|
+
"@xyo-network/witness-wrapper": "^4.1.0",
|
|
63
62
|
"lru-cache": "^11.1.0"
|
|
64
63
|
},
|
|
65
64
|
"devDependencies": {
|
|
66
|
-
"@xylabs/
|
|
67
|
-
"@xylabs/
|
|
65
|
+
"@xylabs/creatable": "^4.13.15",
|
|
66
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
|
|
67
|
+
"@xylabs/tsconfig": "^7.0.0-rc.20",
|
|
68
68
|
"typescript": "^5.8.3"
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|