@xyo-network/bridge-module-resolver 2.73.4 → 2.74.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/ModuleResolver.d.mts +30 -0
- package/dist/ModuleResolver.d.mts.map +1 -0
- package/dist/ModuleResolver.d.ts +30 -0
- package/dist/ModuleResolver.d.ts.map +1 -0
- package/dist/ProxyModule.d.mts +84 -0
- package/dist/ProxyModule.d.mts.map +1 -0
- package/dist/ProxyModule.d.ts +84 -0
- package/dist/ProxyModule.d.ts.map +1 -0
- package/dist/index.d.mts +3 -120
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +3 -120
- package/dist/index.d.ts.map +1 -0
- package/package.json +24 -30
- package/dist/docs.json +0 -29475
- package/tsup.config.ts +0 -16
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleResolver.d.ts","sourceRoot":"","sources":["../src/ModuleResolver.ts"],"names":[],"mappings":"AACA,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;AASlC,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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleResolver.d.ts","sourceRoot":"","sources":["../src/ModuleResolver.ts"],"names":[],"mappings":"AACA,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;AASlC,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"}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 & Omit<{
|
|
25
|
+
accountDerivationPath?: string | undefined;
|
|
26
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
27
|
+
readonly labels?: import("@xyo-network/module").Labels | undefined;
|
|
28
|
+
readonly name?: string | undefined;
|
|
29
|
+
readonly paging?: Record<string, {
|
|
30
|
+
size?: number | undefined;
|
|
31
|
+
}> | undefined;
|
|
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<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
41
|
+
accountDerivationPath?: string | undefined;
|
|
42
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
43
|
+
readonly labels?: import("@xyo-network/module").Labels | undefined;
|
|
44
|
+
readonly name?: string | undefined;
|
|
45
|
+
readonly paging?: Record<string, {
|
|
46
|
+
size?: number | undefined;
|
|
47
|
+
}> | undefined;
|
|
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
|
+
} & {
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProxyModule.d.ts","sourceRoot":"","sources":["../src/ProxyModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAyB,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC1F,OAAO,EACL,0BAA0B,EAC1B,WAAW,EACX,uBAAuB,EAEvB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,MAAM,uBAAuB,GAAG,iCAAiC,CAAA;AACvE,eAAO,MAAM,uBAAuB,EAAE,uBAA2D,CAAA;AAEjG,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;IAAE,MAAM,EAAE,uBAAuB,CAAA;CAAE,CAAC,CAAA;AAElF,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAC1C,kBAAkB,EAClB;IACE,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,YAAY,CAAA;CACrB,CACF,CAAA;AAED,qBAAa,WAAY,SAAQ,WAAW,CAAC,YAAY,EAAE,eAAe,CAAE,YAAW,cAAc,CAAC,YAAY,EAAE,eAAe,CAAC;IAK/G,WAAW,EAAE,iBAAiB;IAJjD,QAAQ,CAAC,UAAU,0BAAgC;IAEnD,OAAO,CAAC,UAAU,CAAI;gBAEH,WAAW,EAAE,iBAAiB;IAIjD,IAAI,OAAO,WAEV;IAED,IAAI,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAET;IAED,IAAI,MAAM,IAAI,YAAY,CAGzB;IAED,IAAI,YAAY,iDAEf;IAED,IAAI,OAAO,aAEV;IAED,mBAAmB,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAIpD,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;IAmBjC,QAAQ,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAuBtC,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;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"}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 & Omit<{
|
|
25
|
+
accountDerivationPath?: string | undefined;
|
|
26
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
27
|
+
readonly labels?: import("@xyo-network/module").Labels | undefined;
|
|
28
|
+
readonly name?: string | undefined;
|
|
29
|
+
readonly paging?: Record<string, {
|
|
30
|
+
size?: number | undefined;
|
|
31
|
+
}> | undefined;
|
|
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<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<{
|
|
41
|
+
accountDerivationPath?: string | undefined;
|
|
42
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
43
|
+
readonly labels?: import("@xyo-network/module").Labels | undefined;
|
|
44
|
+
readonly name?: string | undefined;
|
|
45
|
+
readonly paging?: Record<string, {
|
|
46
|
+
size?: number | undefined;
|
|
47
|
+
}> | undefined;
|
|
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
|
+
} & {
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProxyModule.d.ts","sourceRoot":"","sources":["../src/ProxyModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAyB,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC1F,OAAO,EACL,0BAA0B,EAC1B,WAAW,EACX,uBAAuB,EAEvB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,MAAM,uBAAuB,GAAG,iCAAiC,CAAA;AACvE,eAAO,MAAM,uBAAuB,EAAE,uBAA2D,CAAA;AAEjG,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;IAAE,MAAM,EAAE,uBAAuB,CAAA;CAAE,CAAC,CAAA;AAElF,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAC1C,kBAAkB,EAClB;IACE,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,YAAY,CAAA;CACrB,CACF,CAAA;AAED,qBAAa,WAAY,SAAQ,WAAW,CAAC,YAAY,EAAE,eAAe,CAAE,YAAW,cAAc,CAAC,YAAY,EAAE,eAAe,CAAC;IAK/G,WAAW,EAAE,iBAAiB;IAJjD,QAAQ,CAAC,UAAU,0BAAgC;IAEnD,OAAO,CAAC,UAAU,CAAI;gBAEH,WAAW,EAAE,iBAAiB;IAIjD,IAAI,OAAO,WAEV;IAED,IAAI,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAET;IAED,IAAI,MAAM,IAAI,YAAY,CAGzB;IAED,IAAI,YAAY,iDAEf;IAED,IAAI,OAAO,aAEV;IAED,mBAAmB,IAAI,OAAO,CAAC,0BAA0B,CAAC;IAIpD,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;IAmBjC,QAAQ,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAuBtC,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;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"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,120 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { BridgeModule } from '@xyo-network/bridge-model';
|
|
5
|
-
import { CompositeModuleResolver, ModuleConfig, ModuleParams, BaseEmitter, ModuleEventData, ModuleInstance as ModuleInstance$1, AddressPreviousHashPayload, ModuleDescription, ModuleQueryResult, ModuleFilter as ModuleFilter$1, ModuleFilterOptions as ModuleFilterOptions$1 } from '@xyo-network/module';
|
|
6
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
7
|
-
import { ModuleResolver, Module, ModuleInstance, ModuleFilter, ModuleFilterOptions } from '@xyo-network/module-model';
|
|
8
|
-
import * as _xyo_network_wallet_model from '@xyo-network/wallet-model';
|
|
9
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
10
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
11
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
12
|
-
import { QueryBoundWitness } from '@xyo-network/boundwitness-builder';
|
|
13
|
-
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
14
|
-
import { Promisable } from '@xyo-network/promise';
|
|
15
|
-
|
|
16
|
-
declare class BridgeModuleResolver extends CompositeModuleResolver implements ModuleResolver {
|
|
17
|
-
protected readonly bridge: BridgeModule;
|
|
18
|
-
protected wrapperAccount: AccountInstance;
|
|
19
|
-
private primed;
|
|
20
|
-
private remoteAddresses?;
|
|
21
|
-
private resolvedModules;
|
|
22
|
-
constructor(bridge: BridgeModule, wrapperAccount: AccountInstance);
|
|
23
|
-
get isModuleResolver(): boolean;
|
|
24
|
-
add(module: Module): this;
|
|
25
|
-
add(module: Module[]): this;
|
|
26
|
-
currentResolvedModules<T extends ModuleInstance = ModuleInstance>(): Promise<Record<string, T>>;
|
|
27
|
-
getRemoteAddresses(): Promise<string[]>;
|
|
28
|
-
prime(): Promise<boolean>;
|
|
29
|
-
remove(_address: string | string[]): this;
|
|
30
|
-
reset(): void;
|
|
31
|
-
resolve<T extends ModuleInstance = ModuleInstance>(filter?: ModuleFilter<T>, options?: ModuleFilterOptions<T>): Promise<T[]>;
|
|
32
|
-
resolve<T extends ModuleInstance = ModuleInstance>(nameOrAddress: string, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
|
|
33
|
-
private resolveByAddress;
|
|
34
|
-
private resolveByName;
|
|
35
|
-
private resolveByQuery;
|
|
36
|
-
private resolveRemoteModules;
|
|
37
|
-
private resolveRemoteModulesByAddress;
|
|
38
|
-
private resolveRemoteModulesByName;
|
|
39
|
-
private resolveRemoteModulesByQuery;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
type ProxyModuleConfigSchema = 'network.xyo.module.proxy.config';
|
|
43
|
-
declare const ProxyModuleConfigSchema: ProxyModuleConfigSchema;
|
|
44
|
-
type TProxyModuleConfig = ModuleConfig<{
|
|
45
|
-
schema: ProxyModuleConfigSchema;
|
|
46
|
-
}>;
|
|
47
|
-
type ProxyModuleParams = ModuleParams<TProxyModuleConfig, {
|
|
48
|
-
address: string;
|
|
49
|
-
bridge: BridgeModule;
|
|
50
|
-
}>;
|
|
51
|
-
declare class ProxyModule extends BaseEmitter<ModuleParams, ModuleEventData> implements ModuleInstance$1<ModuleParams, ModuleEventData> {
|
|
52
|
-
proxyParams: ProxyModuleParams;
|
|
53
|
-
readonly upResolver: CompositeModuleResolver;
|
|
54
|
-
private _busyCount;
|
|
55
|
-
constructor(proxyParams: ProxyModuleParams);
|
|
56
|
-
get address(): string;
|
|
57
|
-
get bridge(): BridgeModule<_xyo_network_core.BaseParamsFields & {
|
|
58
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
59
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
60
|
-
accountDerivationPath?: string | undefined;
|
|
61
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
62
|
-
readonly name?: string | undefined;
|
|
63
|
-
readonly paging?: Record<string, {
|
|
64
|
-
size?: number | undefined;
|
|
65
|
-
}> | undefined;
|
|
66
|
-
readonly schema: string;
|
|
67
|
-
readonly security?: {
|
|
68
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
69
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
70
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
71
|
-
} | undefined;
|
|
72
|
-
readonly sign?: boolean | undefined;
|
|
73
|
-
readonly storeQueries?: boolean | undefined;
|
|
74
|
-
readonly timestamp?: boolean | undefined;
|
|
75
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
76
|
-
accountDerivationPath?: string | undefined;
|
|
77
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
78
|
-
readonly name?: string | undefined;
|
|
79
|
-
readonly paging?: Record<string, {
|
|
80
|
-
size?: number | undefined;
|
|
81
|
-
}> | undefined;
|
|
82
|
-
readonly schema: "network.xyo.bridge.config";
|
|
83
|
-
readonly security?: {
|
|
84
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
85
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
86
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
readonly sign?: boolean | undefined;
|
|
89
|
-
readonly storeQueries?: boolean | undefined;
|
|
90
|
-
readonly timestamp?: boolean | undefined;
|
|
91
|
-
} & Omit<{
|
|
92
|
-
discoverCache?: true | _xyo_network_bridge_model.CacheConfig | undefined;
|
|
93
|
-
schema: "network.xyo.bridge.config";
|
|
94
|
-
}, "schema"> & {
|
|
95
|
-
schema: "network.xyo.bridge.config";
|
|
96
|
-
}, "schema"> & {
|
|
97
|
-
schema: string;
|
|
98
|
-
}, "schema"> & {
|
|
99
|
-
schema: string;
|
|
100
|
-
};
|
|
101
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
102
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
103
|
-
}, ModuleEventData<object>>;
|
|
104
|
-
get config(): ModuleConfig;
|
|
105
|
-
get downResolver(): _xyo_network_module_model.ModuleResolver;
|
|
106
|
-
get queries(): string[];
|
|
107
|
-
addressPreviousHash(): Promise<AddressPreviousHashPayload>;
|
|
108
|
-
busy<R>(closure: () => Promise<R>): Promise<R>;
|
|
109
|
-
describe(): Promise<ModuleDescription>;
|
|
110
|
-
discover(): Promise<Payload[]>;
|
|
111
|
-
manifest(): Promisable<ModuleManifestPayload>;
|
|
112
|
-
moduleAddress(): Promise<AddressPreviousHashPayload[]>;
|
|
113
|
-
previousHash(): Promise<string | undefined>;
|
|
114
|
-
query<T extends QueryBoundWitness = QueryBoundWitness>(query: T, payloads?: Payload[]): Promise<ModuleQueryResult>;
|
|
115
|
-
queryable(query: QueryBoundWitness, payloads?: Payload[], queryConfig?: ModuleConfig): Promise<boolean>;
|
|
116
|
-
resolve(filter?: ModuleFilter$1, options?: ModuleFilterOptions$1): Promise<ModuleInstance$1[]>;
|
|
117
|
-
resolve(nameOrAddress: string, options?: ModuleFilterOptions$1): Promise<ModuleInstance$1 | undefined>;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export { BridgeModuleResolver, ProxyModule, ProxyModuleConfigSchema, ProxyModuleParams, TProxyModuleConfig };
|
|
1
|
+
export * from './ModuleResolver';
|
|
2
|
+
export * from './ProxyModule';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,120 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { BridgeModule } from '@xyo-network/bridge-model';
|
|
5
|
-
import { CompositeModuleResolver, ModuleConfig, ModuleParams, BaseEmitter, ModuleEventData, ModuleInstance as ModuleInstance$1, AddressPreviousHashPayload, ModuleDescription, ModuleQueryResult, ModuleFilter as ModuleFilter$1, ModuleFilterOptions as ModuleFilterOptions$1 } from '@xyo-network/module';
|
|
6
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
7
|
-
import { ModuleResolver, Module, ModuleInstance, ModuleFilter, ModuleFilterOptions } from '@xyo-network/module-model';
|
|
8
|
-
import * as _xyo_network_wallet_model from '@xyo-network/wallet-model';
|
|
9
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
10
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
11
|
-
import * as _xyo_network_core from '@xyo-network/core';
|
|
12
|
-
import { QueryBoundWitness } from '@xyo-network/boundwitness-builder';
|
|
13
|
-
import { ModuleManifestPayload } from '@xyo-network/manifest-model';
|
|
14
|
-
import { Promisable } from '@xyo-network/promise';
|
|
15
|
-
|
|
16
|
-
declare class BridgeModuleResolver extends CompositeModuleResolver implements ModuleResolver {
|
|
17
|
-
protected readonly bridge: BridgeModule;
|
|
18
|
-
protected wrapperAccount: AccountInstance;
|
|
19
|
-
private primed;
|
|
20
|
-
private remoteAddresses?;
|
|
21
|
-
private resolvedModules;
|
|
22
|
-
constructor(bridge: BridgeModule, wrapperAccount: AccountInstance);
|
|
23
|
-
get isModuleResolver(): boolean;
|
|
24
|
-
add(module: Module): this;
|
|
25
|
-
add(module: Module[]): this;
|
|
26
|
-
currentResolvedModules<T extends ModuleInstance = ModuleInstance>(): Promise<Record<string, T>>;
|
|
27
|
-
getRemoteAddresses(): Promise<string[]>;
|
|
28
|
-
prime(): Promise<boolean>;
|
|
29
|
-
remove(_address: string | string[]): this;
|
|
30
|
-
reset(): void;
|
|
31
|
-
resolve<T extends ModuleInstance = ModuleInstance>(filter?: ModuleFilter<T>, options?: ModuleFilterOptions<T>): Promise<T[]>;
|
|
32
|
-
resolve<T extends ModuleInstance = ModuleInstance>(nameOrAddress: string, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
|
|
33
|
-
private resolveByAddress;
|
|
34
|
-
private resolveByName;
|
|
35
|
-
private resolveByQuery;
|
|
36
|
-
private resolveRemoteModules;
|
|
37
|
-
private resolveRemoteModulesByAddress;
|
|
38
|
-
private resolveRemoteModulesByName;
|
|
39
|
-
private resolveRemoteModulesByQuery;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
type ProxyModuleConfigSchema = 'network.xyo.module.proxy.config';
|
|
43
|
-
declare const ProxyModuleConfigSchema: ProxyModuleConfigSchema;
|
|
44
|
-
type TProxyModuleConfig = ModuleConfig<{
|
|
45
|
-
schema: ProxyModuleConfigSchema;
|
|
46
|
-
}>;
|
|
47
|
-
type ProxyModuleParams = ModuleParams<TProxyModuleConfig, {
|
|
48
|
-
address: string;
|
|
49
|
-
bridge: BridgeModule;
|
|
50
|
-
}>;
|
|
51
|
-
declare class ProxyModule extends BaseEmitter<ModuleParams, ModuleEventData> implements ModuleInstance$1<ModuleParams, ModuleEventData> {
|
|
52
|
-
proxyParams: ProxyModuleParams;
|
|
53
|
-
readonly upResolver: CompositeModuleResolver;
|
|
54
|
-
private _busyCount;
|
|
55
|
-
constructor(proxyParams: ProxyModuleParams);
|
|
56
|
-
get address(): string;
|
|
57
|
-
get bridge(): BridgeModule<_xyo_network_core.BaseParamsFields & {
|
|
58
|
-
account?: _xyo_network_account_model.AccountInstance | "random" | undefined;
|
|
59
|
-
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
60
|
-
accountDerivationPath?: string | undefined;
|
|
61
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
62
|
-
readonly name?: string | undefined;
|
|
63
|
-
readonly paging?: Record<string, {
|
|
64
|
-
size?: number | undefined;
|
|
65
|
-
}> | undefined;
|
|
66
|
-
readonly schema: string;
|
|
67
|
-
readonly security?: {
|
|
68
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
69
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
70
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
71
|
-
} | undefined;
|
|
72
|
-
readonly sign?: boolean | undefined;
|
|
73
|
-
readonly storeQueries?: boolean | undefined;
|
|
74
|
-
readonly timestamp?: boolean | undefined;
|
|
75
|
-
} & Omit<Omit<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
76
|
-
accountDerivationPath?: string | undefined;
|
|
77
|
-
readonly archivist?: _xyo_network_module_model.ArchivistModuleConfig | undefined;
|
|
78
|
-
readonly name?: string | undefined;
|
|
79
|
-
readonly paging?: Record<string, {
|
|
80
|
-
size?: number | undefined;
|
|
81
|
-
}> | undefined;
|
|
82
|
-
readonly schema: "network.xyo.bridge.config";
|
|
83
|
-
readonly security?: {
|
|
84
|
-
readonly allowAnonymous?: boolean | undefined;
|
|
85
|
-
readonly allowed?: Record<string, (string | _xyo_network_module_model.CosigningAddressSet)[]> | undefined;
|
|
86
|
-
readonly disallowed?: Record<string, string[]> | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
readonly sign?: boolean | undefined;
|
|
89
|
-
readonly storeQueries?: boolean | undefined;
|
|
90
|
-
readonly timestamp?: boolean | undefined;
|
|
91
|
-
} & Omit<{
|
|
92
|
-
discoverCache?: true | _xyo_network_bridge_model.CacheConfig | undefined;
|
|
93
|
-
schema: "network.xyo.bridge.config";
|
|
94
|
-
}, "schema"> & {
|
|
95
|
-
schema: "network.xyo.bridge.config";
|
|
96
|
-
}, "schema"> & {
|
|
97
|
-
schema: string;
|
|
98
|
-
}, "schema"> & {
|
|
99
|
-
schema: string;
|
|
100
|
-
};
|
|
101
|
-
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
102
|
-
wallet?: _xyo_network_wallet_model.WalletInstance | undefined;
|
|
103
|
-
}, ModuleEventData<object>>;
|
|
104
|
-
get config(): ModuleConfig;
|
|
105
|
-
get downResolver(): _xyo_network_module_model.ModuleResolver;
|
|
106
|
-
get queries(): string[];
|
|
107
|
-
addressPreviousHash(): Promise<AddressPreviousHashPayload>;
|
|
108
|
-
busy<R>(closure: () => Promise<R>): Promise<R>;
|
|
109
|
-
describe(): Promise<ModuleDescription>;
|
|
110
|
-
discover(): Promise<Payload[]>;
|
|
111
|
-
manifest(): Promisable<ModuleManifestPayload>;
|
|
112
|
-
moduleAddress(): Promise<AddressPreviousHashPayload[]>;
|
|
113
|
-
previousHash(): Promise<string | undefined>;
|
|
114
|
-
query<T extends QueryBoundWitness = QueryBoundWitness>(query: T, payloads?: Payload[]): Promise<ModuleQueryResult>;
|
|
115
|
-
queryable(query: QueryBoundWitness, payloads?: Payload[], queryConfig?: ModuleConfig): Promise<boolean>;
|
|
116
|
-
resolve(filter?: ModuleFilter$1, options?: ModuleFilterOptions$1): Promise<ModuleInstance$1[]>;
|
|
117
|
-
resolve(nameOrAddress: string, options?: ModuleFilterOptions$1): Promise<ModuleInstance$1 | undefined>;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export { BridgeModuleResolver, ProxyModule, ProxyModuleConfigSchema, ProxyModuleParams, TProxyModuleConfig };
|
|
1
|
+
export * from './ModuleResolver';
|
|
2
|
+
export * from './ProxyModule';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -10,39 +10,33 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/assert": "^2.
|
|
14
|
-
"@xylabs/lodash": "^2.
|
|
15
|
-
"@xyo-network/account-model": "~2.
|
|
16
|
-
"@xyo-network/address-payload-plugin": "~2.
|
|
17
|
-
"@xyo-network/archivist-model": "~2.
|
|
18
|
-
"@xyo-network/archivist-wrapper": "~2.
|
|
19
|
-
"@xyo-network/boundwitness-builder": "~2.
|
|
20
|
-
"@xyo-network/bridge-model": "~2.
|
|
21
|
-
"@xyo-network/diviner": "~2.
|
|
22
|
-
"@xyo-network/diviner-model": "~2.
|
|
23
|
-
"@xyo-network/error": "~2.
|
|
24
|
-
"@xyo-network/manifest-model": "~2.
|
|
25
|
-
"@xyo-network/module": "~2.
|
|
26
|
-
"@xyo-network/module-model": "~2.
|
|
27
|
-
"@xyo-network/node-model": "~2.
|
|
28
|
-
"@xyo-network/node-wrapper": "~2.
|
|
29
|
-
"@xyo-network/payload-model": "~2.
|
|
30
|
-
"@xyo-network/promise": "~2.
|
|
31
|
-
"@xyo-network/sentinel": "~2.
|
|
32
|
-
"@xyo-network/witness-model": "~2.
|
|
33
|
-
"@xyo-network/witness-wrapper": "~2.
|
|
13
|
+
"@xylabs/assert": "^2.11.5",
|
|
14
|
+
"@xylabs/lodash": "^2.11.5",
|
|
15
|
+
"@xyo-network/account-model": "~2.74.0",
|
|
16
|
+
"@xyo-network/address-payload-plugin": "~2.74.0",
|
|
17
|
+
"@xyo-network/archivist-model": "~2.74.0",
|
|
18
|
+
"@xyo-network/archivist-wrapper": "~2.74.0",
|
|
19
|
+
"@xyo-network/boundwitness-builder": "~2.74.0",
|
|
20
|
+
"@xyo-network/bridge-model": "~2.74.0",
|
|
21
|
+
"@xyo-network/diviner": "~2.74.0",
|
|
22
|
+
"@xyo-network/diviner-model": "~2.74.0",
|
|
23
|
+
"@xyo-network/error": "~2.74.0",
|
|
24
|
+
"@xyo-network/manifest-model": "~2.74.0",
|
|
25
|
+
"@xyo-network/module": "~2.74.0",
|
|
26
|
+
"@xyo-network/module-model": "~2.74.0",
|
|
27
|
+
"@xyo-network/node-model": "~2.74.0",
|
|
28
|
+
"@xyo-network/node-wrapper": "~2.74.0",
|
|
29
|
+
"@xyo-network/payload-model": "~2.74.0",
|
|
30
|
+
"@xyo-network/promise": "~2.74.0",
|
|
31
|
+
"@xyo-network/sentinel": "~2.74.0",
|
|
32
|
+
"@xyo-network/witness-model": "~2.74.0",
|
|
33
|
+
"@xyo-network/witness-wrapper": "~2.74.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
37
|
-
"@xylabs/tsconfig": "^
|
|
38
|
-
"publint": "^0.2.2",
|
|
39
|
-
"tsup": "^7.2.0",
|
|
36
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.27",
|
|
37
|
+
"@xylabs/tsconfig": "^3.0.27",
|
|
40
38
|
"typescript": "^5.2.2"
|
|
41
39
|
},
|
|
42
|
-
"scripts": {
|
|
43
|
-
"package-compile": "tsup && publint",
|
|
44
|
-
"package-recompile": "tsup && publint"
|
|
45
|
-
},
|
|
46
40
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
47
41
|
"docs": "dist/docs.json",
|
|
48
42
|
"types": "dist/index.d.ts",
|
|
@@ -83,5 +77,5 @@
|
|
|
83
77
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
84
78
|
},
|
|
85
79
|
"sideEffects": false,
|
|
86
|
-
"version": "2.
|
|
80
|
+
"version": "2.74.0"
|
|
87
81
|
}
|