@xyo-network/react-standard-node 4.4.10 → 4.4.11
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/browser/components/ActiveStandardNode.d.ts +7 -0
- package/dist/browser/components/ActiveStandardNode.d.ts.map +1 -0
- package/dist/browser/components/index.d.ts +2 -0
- package/dist/browser/components/index.d.ts.map +1 -0
- package/dist/browser/contexts/StandardRemoteNodes/Context.d.ts +3 -0
- package/dist/browser/contexts/StandardRemoteNodes/Context.d.ts.map +1 -0
- package/dist/browser/contexts/StandardRemoteNodes/Providers.d.ts +11 -0
- package/dist/browser/contexts/StandardRemoteNodes/Providers.d.ts.map +1 -0
- package/dist/browser/contexts/StandardRemoteNodes/State.d.ts +8 -0
- package/dist/browser/contexts/StandardRemoteNodes/State.d.ts.map +1 -0
- package/dist/browser/contexts/StandardRemoteNodes/index.d.ts +5 -0
- package/dist/browser/contexts/StandardRemoteNodes/index.d.ts.map +1 -0
- package/dist/browser/contexts/StandardRemoteNodes/use.d.ts +2 -0
- package/dist/browser/contexts/StandardRemoteNodes/use.d.ts.map +1 -0
- package/dist/browser/contexts/index.d.ts +2 -0
- package/dist/browser/contexts/index.d.ts.map +1 -0
- package/dist/browser/hooks/index.d.ts +2 -0
- package/dist/browser/hooks/index.d.ts.map +1 -0
- package/dist/browser/hooks/useActiveNodeAddress.d.ts +2 -0
- package/dist/browser/hooks/useActiveNodeAddress.d.ts.map +1 -0
- package/dist/browser/index.d.ts +5 -233
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/lib/Builders/MemoryNodeBuilder.d.ts +65 -0
- package/dist/browser/lib/Builders/MemoryNodeBuilder.d.ts.map +1 -0
- package/dist/browser/lib/Builders/SentinelBuilder.d.ts +74 -0
- package/dist/browser/lib/Builders/SentinelBuilder.d.ts.map +1 -0
- package/dist/browser/lib/Builders/StorageArchivistBuilder.d.ts +52 -0
- package/dist/browser/lib/Builders/StorageArchivistBuilder.d.ts.map +1 -0
- package/dist/browser/lib/Builders/index.d.ts +4 -0
- package/dist/browser/lib/Builders/index.d.ts.map +1 -0
- package/dist/browser/lib/ModuleAccountPaths.d.ts +4 -0
- package/dist/browser/lib/ModuleAccountPaths.d.ts.map +1 -0
- package/dist/browser/lib/ModuleNames.d.ts +3 -0
- package/dist/browser/lib/ModuleNames.d.ts.map +1 -0
- package/dist/browser/lib/buildNodes.d.ts +4 -0
- package/dist/browser/lib/buildNodes.d.ts.map +1 -0
- package/dist/browser/lib/index.d.ts +5 -0
- package/dist/browser/lib/index.d.ts.map +1 -0
- package/package.json +29 -29
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ActiveStandardNodeProps extends PropsWithChildren {
|
|
4
|
+
nodeNameOrAddress?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ActiveStandardNode: React.FC<ActiveStandardNodeProps>;
|
|
7
|
+
//# sourceMappingURL=ActiveStandardNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActiveStandardNode.d.ts","sourceRoot":"","sources":["../../../src/components/ActiveStandardNode.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAmB,MAAM,OAAO,CAAA;AAKvC,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAmChE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/contexts/StandardRemoteNodes/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,eAAO,MAAM,oBAAoB,kGAAwC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WithChildren } from '@xylabs/react-shared';
|
|
2
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { StandardNodesState } from './State.ts';
|
|
5
|
+
export interface StandardNodesProviderProps extends WithChildren {
|
|
6
|
+
defaultRemoteNodes?: StandardNodesState['nodes'];
|
|
7
|
+
wallet?: WalletInstance | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const StandardNodesProvider: React.FC<StandardNodesProviderProps>;
|
|
10
|
+
export declare const StandardNodesProviderWithWallet: React.FC<Omit<StandardNodesProviderProps, 'wallet'>>;
|
|
11
|
+
//# sourceMappingURL=Providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Providers.d.ts","sourceRoot":"","sources":["../../../../src/contexts/StandardRemoteNodes/Providers.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAkB,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,MAAM,WAAW,0BAA2B,SAAQ,YAAY;IAC9D,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAA;IAChD,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CAC/B;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAqCtE,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAGhG,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Address } from '@xylabs/hex';
|
|
2
|
+
import type { MemoryNode } from '@xyo-network/node-memory';
|
|
3
|
+
import type { ContextExState } from '@xyo-network/react-shared';
|
|
4
|
+
export interface StandardNodesState extends ContextExState {
|
|
5
|
+
findAddressByName?: (name?: string) => Address | undefined;
|
|
6
|
+
nodes?: MemoryNode[];
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=State.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/contexts/StandardRemoteNodes/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE/D,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,iBAAiB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,OAAO,GAAG,SAAS,CAAA;IAC1D,KAAK,CAAC,EAAE,UAAU,EAAE,CAAA;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/contexts/StandardRemoteNodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/contexts/StandardRemoteNodes/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,GAAI,kBAAgB,mHAAkE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useActiveNodeAddress.d.ts","sourceRoot":"","sources":["../../../src/hooks/useActiveNodeAddress.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,GAAI,cAAc,MAAM,kCAWxD,CAAA"}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,233 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { MemoryNode } from '@xyo-network/node-memory';
|
|
7
|
-
import { WithChildren } from '@xylabs/react-shared';
|
|
8
|
-
import { WalletInstance } from '@xyo-network/wallet-model';
|
|
9
|
-
import * as _xyo_network_sentinel_memory from '@xyo-network/sentinel-memory';
|
|
10
|
-
import { MemorySentinel } from '@xyo-network/sentinel-memory';
|
|
11
|
-
import * as _xyo_network_sentinel_model from '@xyo-network/sentinel-model';
|
|
12
|
-
import { SentinelConfig } from '@xyo-network/sentinel-model';
|
|
13
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
14
|
-
import { AttachableModuleInstance } from '@xyo-network/module-model';
|
|
15
|
-
import * as _xyo_network_node_model from '@xyo-network/node-model';
|
|
16
|
-
import * as _xylabs_object from '@xylabs/object';
|
|
17
|
-
import { AccountInstance } from '@xyo-network/account-model';
|
|
18
|
-
import { PayloadSetPluginResolver } from '@xyo-network/payloadset-plugin';
|
|
19
|
-
import { AttachableWitnessInstance } from '@xyo-network/witness-model';
|
|
20
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
21
|
-
import * as _xyo_network_archivist_model from '@xyo-network/archivist-model';
|
|
22
|
-
import { StorageArchivist, StorageArchivistConfig } from '@xyo-network/archivist-storage';
|
|
23
|
-
|
|
24
|
-
interface ActiveStandardNodeProps extends PropsWithChildren {
|
|
25
|
-
nodeNameOrAddress?: string;
|
|
26
|
-
}
|
|
27
|
-
declare const ActiveStandardNode: React__default.FC<ActiveStandardNodeProps>;
|
|
28
|
-
|
|
29
|
-
interface StandardNodesState extends ContextExState {
|
|
30
|
-
findAddressByName?: (name?: string) => Address | undefined;
|
|
31
|
-
nodes?: MemoryNode[];
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare const StandardNodesContext: React.Context<StandardNodesState & _xyo_network_react_shared.ContextExState>;
|
|
35
|
-
|
|
36
|
-
interface StandardNodesProviderProps extends WithChildren {
|
|
37
|
-
defaultRemoteNodes?: StandardNodesState['nodes'];
|
|
38
|
-
wallet?: WalletInstance | null;
|
|
39
|
-
}
|
|
40
|
-
declare const StandardNodesProvider: React__default.FC<StandardNodesProviderProps>;
|
|
41
|
-
declare const StandardNodesProviderWithWallet: React__default.FC<Omit<StandardNodesProviderProps, 'wallet'>>;
|
|
42
|
-
|
|
43
|
-
declare const useStandardNodes: (required?: boolean) => Omit<StandardNodesState & _xyo_network_react_shared.ContextExState, "provided">;
|
|
44
|
-
|
|
45
|
-
declare const useActiveNodeAddress: (networkName?: string) => Lowercase<string> | undefined;
|
|
46
|
-
|
|
47
|
-
interface MemoryNodeBuilderConfig {
|
|
48
|
-
name?: string;
|
|
49
|
-
node?: MemoryNode;
|
|
50
|
-
}
|
|
51
|
-
declare class MemoryNodeBuilder {
|
|
52
|
-
private _node;
|
|
53
|
-
get node(): MemoryNode<_xylabs_object.BaseParamsFields & {
|
|
54
|
-
account?: AccountInstance | "random";
|
|
55
|
-
addToResolvers?: boolean;
|
|
56
|
-
additionalSigners?: AccountInstance[];
|
|
57
|
-
allowNameResolution?: boolean;
|
|
58
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_node_model.NodeConfig>;
|
|
59
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
60
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
61
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
62
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
63
|
-
}, _xyo_network_node_model.NodeModuleEventData>;
|
|
64
|
-
static create({ name, node }: MemoryNodeBuilderConfig, account?: AccountInstance): Promise<MemoryNodeBuilder>;
|
|
65
|
-
addArchivist(account: AccountInstance, moduleName?: string, namespace?: string): Promise<void>;
|
|
66
|
-
addArchivistMemory(moduleName?: string, account?: AccountInstance): Promise<void>;
|
|
67
|
-
addArchivistStorage(account: AccountInstance, moduleName?: string, namespace?: string): Promise<void>;
|
|
68
|
-
addBridge(apiDomain: string, moduleName?: string, account?: AccountInstance): Promise<void>;
|
|
69
|
-
addSentinel(config: SentinelConfig, account: AccountInstance): Promise<_xyo_network_sentinel_memory.MemorySentinel<_xylabs_object.BaseParamsFields & {
|
|
70
|
-
account?: AccountInstance | "random";
|
|
71
|
-
addToResolvers?: boolean;
|
|
72
|
-
additionalSigners?: AccountInstance[];
|
|
73
|
-
allowNameResolution?: boolean;
|
|
74
|
-
config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
|
|
75
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
76
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
77
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
78
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
79
|
-
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_sentinel_model.SentinelInstance<_xylabs_object.BaseParamsFields & {
|
|
80
|
-
account?: AccountInstance | "random";
|
|
81
|
-
addToResolvers?: boolean;
|
|
82
|
-
additionalSigners?: AccountInstance[];
|
|
83
|
-
allowNameResolution?: boolean;
|
|
84
|
-
config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
|
|
85
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
86
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
87
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
88
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
89
|
-
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
|
|
90
|
-
account?: AccountInstance | "random";
|
|
91
|
-
addToResolvers?: boolean;
|
|
92
|
-
additionalSigners?: AccountInstance[];
|
|
93
|
-
allowNameResolution?: boolean;
|
|
94
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
|
|
95
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
96
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
97
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
98
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
99
|
-
}, _xyo_network_module_model.ModuleEventData<object>>>>>>>;
|
|
100
|
-
addWitnesses(pluginSetResolver: PayloadSetPluginResolver, witnesses?: (() => Promise<AttachableWitnessInstance>)[]): Promise<void>;
|
|
101
|
-
attach(mod: AttachableModuleInstance, external?: boolean, safeAttach?: boolean): Promise<void>;
|
|
102
|
-
private witnessCleanup;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
declare class SentinelBuilder {
|
|
106
|
-
private config;
|
|
107
|
-
private account;
|
|
108
|
-
private _sentinel;
|
|
109
|
-
protected constructor(config: SentinelConfig, account: AccountInstance);
|
|
110
|
-
get sentinel(): MemorySentinel<_xylabs_object.BaseParamsFields & {
|
|
111
|
-
account?: AccountInstance | "random";
|
|
112
|
-
addToResolvers?: boolean;
|
|
113
|
-
additionalSigners?: AccountInstance[];
|
|
114
|
-
allowNameResolution?: boolean;
|
|
115
|
-
config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
|
|
116
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
117
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
118
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
119
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
120
|
-
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_sentinel_model.SentinelInstance<_xylabs_object.BaseParamsFields & {
|
|
121
|
-
account?: AccountInstance | "random";
|
|
122
|
-
addToResolvers?: boolean;
|
|
123
|
-
additionalSigners?: AccountInstance[];
|
|
124
|
-
allowNameResolution?: boolean;
|
|
125
|
-
config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
|
|
126
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
127
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
128
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
129
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
130
|
-
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
|
|
131
|
-
account?: AccountInstance | "random";
|
|
132
|
-
addToResolvers?: boolean;
|
|
133
|
-
additionalSigners?: AccountInstance[];
|
|
134
|
-
allowNameResolution?: boolean;
|
|
135
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
|
|
136
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
137
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
138
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
139
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
140
|
-
}, _xyo_network_module_model.ModuleEventData<object>>>>>>;
|
|
141
|
-
static create(config: SentinelConfig, account: AccountInstance): Promise<SentinelBuilder>;
|
|
142
|
-
buildSentinel(): Promise<MemorySentinel<_xylabs_object.BaseParamsFields & {
|
|
143
|
-
account?: AccountInstance | "random";
|
|
144
|
-
addToResolvers?: boolean;
|
|
145
|
-
additionalSigners?: AccountInstance[];
|
|
146
|
-
allowNameResolution?: boolean;
|
|
147
|
-
config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
|
|
148
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
149
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
150
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
151
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
152
|
-
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_sentinel_model.SentinelInstance<_xylabs_object.BaseParamsFields & {
|
|
153
|
-
account?: AccountInstance | "random";
|
|
154
|
-
addToResolvers?: boolean;
|
|
155
|
-
additionalSigners?: AccountInstance[];
|
|
156
|
-
allowNameResolution?: boolean;
|
|
157
|
-
config: _xyo_network_module_model.AnyConfigSchema<SentinelConfig>;
|
|
158
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
159
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
160
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
161
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
162
|
-
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
|
|
163
|
-
account?: AccountInstance | "random";
|
|
164
|
-
addToResolvers?: boolean;
|
|
165
|
-
additionalSigners?: AccountInstance[];
|
|
166
|
-
allowNameResolution?: boolean;
|
|
167
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
|
|
168
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
169
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
170
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
171
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
172
|
-
}, _xyo_network_module_model.ModuleEventData<object>>>>>>>;
|
|
173
|
-
private buildParams;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
interface ArchivistBuilderConfig {
|
|
177
|
-
name?: string;
|
|
178
|
-
namespace?: string;
|
|
179
|
-
}
|
|
180
|
-
declare class StorageArchivistBuilder {
|
|
181
|
-
private config;
|
|
182
|
-
private account;
|
|
183
|
-
private node?;
|
|
184
|
-
private _archivist;
|
|
185
|
-
private remoteArchivist;
|
|
186
|
-
protected constructor(config: ArchivistBuilderConfig, account: AccountInstance, node?: MemoryNode | undefined);
|
|
187
|
-
get archivist(): StorageArchivist<_xylabs_object.BaseParamsFields & {
|
|
188
|
-
account?: AccountInstance | "random";
|
|
189
|
-
addToResolvers?: boolean;
|
|
190
|
-
additionalSigners?: AccountInstance[];
|
|
191
|
-
allowNameResolution?: boolean;
|
|
192
|
-
config: _xyo_network_module_model.AnyConfigSchema<StorageArchivistConfig>;
|
|
193
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
194
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
195
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
196
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
197
|
-
} & _xyo_network_archivist_model.ArchivistParamFields & object, _xyo_network_archivist_model.ArchivistModuleEventData>;
|
|
198
|
-
static create(config: ArchivistBuilderConfig, account: AccountInstance, node: MemoryNode): Promise<StorageArchivistBuilder>;
|
|
199
|
-
buildArchivist(): Promise<StorageArchivist<_xylabs_object.BaseParamsFields & {
|
|
200
|
-
account?: AccountInstance | "random";
|
|
201
|
-
addToResolvers?: boolean;
|
|
202
|
-
additionalSigners?: AccountInstance[];
|
|
203
|
-
allowNameResolution?: boolean;
|
|
204
|
-
config: _xyo_network_module_model.AnyConfigSchema<StorageArchivistConfig>;
|
|
205
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
206
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
207
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
208
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
209
|
-
} & _xyo_network_archivist_model.ArchivistParamFields & object, _xyo_network_archivist_model.ArchivistModuleEventData>>;
|
|
210
|
-
buildConfig(): StorageArchivistConfig;
|
|
211
|
-
findParentArchivist(): Promise<_xyo_network_archivist_model.ArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
212
|
-
account?: AccountInstance | "random";
|
|
213
|
-
addToResolvers?: boolean;
|
|
214
|
-
additionalSigners?: AccountInstance[];
|
|
215
|
-
allowNameResolution?: boolean;
|
|
216
|
-
config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_archivist_model.ArchivistConfig>;
|
|
217
|
-
ephemeralQueryAccountEnabled?: boolean;
|
|
218
|
-
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
219
|
-
privateChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
220
|
-
publicChildren?: _xyo_network_module_model.ModuleInstance[];
|
|
221
|
-
} & _xyo_network_archivist_model.ArchivistParamFields & object, _xyo_network_archivist_model.ArchivistModuleEventData, _xyo_network_payload_model.Payload> | undefined>;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
declare const BuildStandardNodes: (wallet: WalletInstance, onNodeBuilt?: (node: MemoryNode) => void) => Promise<MemoryNode[]>;
|
|
225
|
-
|
|
226
|
-
declare const GlobalNodeOffsetPath = "15";
|
|
227
|
-
declare const RemoteNodeOffsetPaths: Record<string, string>;
|
|
228
|
-
declare const RemoteNodeArchivistOffsetPaths: Record<string, Record<string, string>>;
|
|
229
|
-
|
|
230
|
-
declare const GlobalNode = "GlobalNode";
|
|
231
|
-
declare const RootStorageArchivist = "RootStorageArchivist";
|
|
232
|
-
|
|
233
|
-
export { ActiveStandardNode, type ActiveStandardNodeProps, type ArchivistBuilderConfig, BuildStandardNodes, GlobalNode, GlobalNodeOffsetPath, MemoryNodeBuilder, type MemoryNodeBuilderConfig, RemoteNodeArchivistOffsetPaths, RemoteNodeOffsetPaths, RootStorageArchivist, SentinelBuilder, StandardNodesContext, StandardNodesProvider, type StandardNodesProviderProps, StandardNodesProviderWithWallet, type StandardNodesState, StorageArchivistBuilder, useActiveNodeAddress, useStandardNodes };
|
|
1
|
+
export * from './components/index.ts';
|
|
2
|
+
export * from './contexts/index.ts';
|
|
3
|
+
export * from './hooks/index.ts';
|
|
4
|
+
export * from './lib/index.ts';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
+
import type { AttachableModuleInstance } from '@xyo-network/module-model';
|
|
3
|
+
import { MemoryNode } from '@xyo-network/node-memory';
|
|
4
|
+
import type { PayloadSetPluginResolver } from '@xyo-network/payloadset-plugin';
|
|
5
|
+
import type { SentinelConfig } from '@xyo-network/sentinel-model';
|
|
6
|
+
import type { AttachableWitnessInstance } from '@xyo-network/witness-model';
|
|
7
|
+
export interface MemoryNodeBuilderConfig {
|
|
8
|
+
name?: string;
|
|
9
|
+
node?: MemoryNode;
|
|
10
|
+
}
|
|
11
|
+
export declare class MemoryNodeBuilder {
|
|
12
|
+
private _node;
|
|
13
|
+
get node(): MemoryNode<import("@xylabs/object").BaseParamsFields & {
|
|
14
|
+
account?: AccountInstance | "random";
|
|
15
|
+
addToResolvers?: boolean;
|
|
16
|
+
additionalSigners?: AccountInstance[];
|
|
17
|
+
allowNameResolution?: boolean;
|
|
18
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/node-model").NodeConfig>;
|
|
19
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
20
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
21
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
22
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
23
|
+
}, import("@xyo-network/node-model").NodeModuleEventData>;
|
|
24
|
+
static create({ name, node }: MemoryNodeBuilderConfig, account?: AccountInstance): Promise<MemoryNodeBuilder>;
|
|
25
|
+
/** @deprecated - call specific method that corresponds to a type of archivist (i.e. addArchivistStorage) */
|
|
26
|
+
addArchivist(account: AccountInstance, moduleName?: string, namespace?: string): Promise<void>;
|
|
27
|
+
addArchivistMemory(moduleName?: string, account?: AccountInstance): Promise<void>;
|
|
28
|
+
addArchivistStorage(account: AccountInstance, moduleName?: string, namespace?: string): Promise<void>;
|
|
29
|
+
addBridge(apiDomain: string, moduleName?: string, account?: AccountInstance): Promise<void>;
|
|
30
|
+
addSentinel(config: SentinelConfig, account: AccountInstance): Promise<import("@xyo-network/sentinel-memory").MemorySentinel<import("@xylabs/object").BaseParamsFields & {
|
|
31
|
+
account?: AccountInstance | "random";
|
|
32
|
+
addToResolvers?: boolean;
|
|
33
|
+
additionalSigners?: AccountInstance[];
|
|
34
|
+
allowNameResolution?: boolean;
|
|
35
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<SentinelConfig>;
|
|
36
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
37
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
38
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
39
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
40
|
+
}, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/sentinel-model").SentinelInstance<import("@xylabs/object").BaseParamsFields & {
|
|
41
|
+
account?: AccountInstance | "random";
|
|
42
|
+
addToResolvers?: boolean;
|
|
43
|
+
additionalSigners?: AccountInstance[];
|
|
44
|
+
allowNameResolution?: boolean;
|
|
45
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<SentinelConfig>;
|
|
46
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
47
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
48
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
49
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
50
|
+
}, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
51
|
+
account?: AccountInstance | "random";
|
|
52
|
+
addToResolvers?: boolean;
|
|
53
|
+
additionalSigners?: AccountInstance[];
|
|
54
|
+
allowNameResolution?: boolean;
|
|
55
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
|
|
56
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
57
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
58
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
59
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
60
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>>>;
|
|
61
|
+
addWitnesses(pluginSetResolver: PayloadSetPluginResolver, witnesses?: (() => Promise<AttachableWitnessInstance>)[]): Promise<void>;
|
|
62
|
+
attach(mod: AttachableModuleInstance, external?: boolean, safeAttach?: boolean): Promise<void>;
|
|
63
|
+
private witnessCleanup;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=MemoryNodeBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemoryNodeBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/MemoryNodeBuilder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAIjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAiB,MAAM,4BAA4B,CAAA;AAK1F,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,KAAK,CAAwB;IAErC,IAAI,IAAI;;;;;;;;;;8DAEP;WAEY,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAWnH,4GAA4G;IACtG,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAI9E,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe;IAOjE,mBAAmB,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAOrF,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,SAAqB,EAAE,OAAO,CAAC,EAAE,eAAe;IAcvF,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM5D,YAAY,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,SAAS,GAAE,CAAC,MAAM,OAAO,CAAC,yBAAyB,CAAC,CAAC,EAAO;IAkBtH,MAAM,CAAC,GAAG,EAAE,wBAAwB,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO;YAgBtE,cAAc;CAQ7B"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
+
import { MemorySentinel } from '@xyo-network/sentinel-memory';
|
|
3
|
+
import type { SentinelConfig } from '@xyo-network/sentinel-model';
|
|
4
|
+
export declare class SentinelBuilder {
|
|
5
|
+
private config;
|
|
6
|
+
private account;
|
|
7
|
+
private _sentinel;
|
|
8
|
+
protected constructor(config: SentinelConfig, account: AccountInstance);
|
|
9
|
+
get sentinel(): MemorySentinel<import("@xylabs/object").BaseParamsFields & {
|
|
10
|
+
account?: AccountInstance | "random";
|
|
11
|
+
addToResolvers?: boolean;
|
|
12
|
+
additionalSigners?: AccountInstance[];
|
|
13
|
+
allowNameResolution?: boolean;
|
|
14
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<SentinelConfig>;
|
|
15
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
16
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
17
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
18
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
19
|
+
}, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/sentinel-model").SentinelInstance<import("@xylabs/object").BaseParamsFields & {
|
|
20
|
+
account?: AccountInstance | "random";
|
|
21
|
+
addToResolvers?: boolean;
|
|
22
|
+
additionalSigners?: AccountInstance[];
|
|
23
|
+
allowNameResolution?: boolean;
|
|
24
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<SentinelConfig>;
|
|
25
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
26
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
27
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
28
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
29
|
+
}, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
30
|
+
account?: AccountInstance | "random";
|
|
31
|
+
addToResolvers?: boolean;
|
|
32
|
+
additionalSigners?: AccountInstance[];
|
|
33
|
+
allowNameResolution?: boolean;
|
|
34
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
|
|
35
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
36
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
37
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
38
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
39
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>>;
|
|
40
|
+
static create(config: SentinelConfig, account: AccountInstance): Promise<SentinelBuilder>;
|
|
41
|
+
buildSentinel(): Promise<MemorySentinel<import("@xylabs/object").BaseParamsFields & {
|
|
42
|
+
account?: AccountInstance | "random";
|
|
43
|
+
addToResolvers?: boolean;
|
|
44
|
+
additionalSigners?: AccountInstance[];
|
|
45
|
+
allowNameResolution?: boolean;
|
|
46
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<SentinelConfig>;
|
|
47
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
48
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
49
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
50
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
51
|
+
}, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/sentinel-model").SentinelInstance<import("@xylabs/object").BaseParamsFields & {
|
|
52
|
+
account?: AccountInstance | "random";
|
|
53
|
+
addToResolvers?: boolean;
|
|
54
|
+
additionalSigners?: AccountInstance[];
|
|
55
|
+
allowNameResolution?: boolean;
|
|
56
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<SentinelConfig>;
|
|
57
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
58
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
59
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
60
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
61
|
+
}, import("@xyo-network/sentinel-model").SentinelModuleEventData<import("@xyo-network/module-model").Module<import("@xylabs/object").BaseParamsFields & {
|
|
62
|
+
account?: AccountInstance | "random";
|
|
63
|
+
addToResolvers?: boolean;
|
|
64
|
+
additionalSigners?: AccountInstance[];
|
|
65
|
+
allowNameResolution?: boolean;
|
|
66
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig>;
|
|
67
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
68
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
69
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
70
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
71
|
+
}, import("@xyo-network/module-model").ModuleEventData<object>>>>>>>;
|
|
72
|
+
private buildParams;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=SentinelBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SentinelBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/SentinelBuilder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,qBAAa,eAAe;IAIxB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IAJjB,OAAO,CAAC,SAAS,CAA4B;IAE7C,SAAS,aACC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,eAAe;IAKlC,IAAI,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAEX;WAEY,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAMzF,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKnB,OAAO,CAAC,WAAW;CAMpB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
+
import type { StorageArchivistConfig } from '@xyo-network/archivist-storage';
|
|
3
|
+
import { StorageArchivist } from '@xyo-network/archivist-storage';
|
|
4
|
+
import type { MemoryNode } from '@xyo-network/node-memory';
|
|
5
|
+
export interface ArchivistBuilderConfig {
|
|
6
|
+
name?: string;
|
|
7
|
+
namespace?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class StorageArchivistBuilder {
|
|
10
|
+
private config;
|
|
11
|
+
private account;
|
|
12
|
+
private node?;
|
|
13
|
+
private _archivist;
|
|
14
|
+
private remoteArchivist;
|
|
15
|
+
protected constructor(config: ArchivistBuilderConfig, account: AccountInstance, node?: MemoryNode | undefined);
|
|
16
|
+
get archivist(): StorageArchivist<import("@xylabs/object").BaseParamsFields & {
|
|
17
|
+
account?: AccountInstance | "random";
|
|
18
|
+
addToResolvers?: boolean;
|
|
19
|
+
additionalSigners?: AccountInstance[];
|
|
20
|
+
allowNameResolution?: boolean;
|
|
21
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<StorageArchivistConfig>;
|
|
22
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
23
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
24
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
25
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
26
|
+
} & import("@xyo-network/archivist-model").ArchivistParamFields & object, import("@xyo-network/archivist-model").ArchivistModuleEventData>;
|
|
27
|
+
static create(config: ArchivistBuilderConfig, account: AccountInstance, node: MemoryNode): Promise<StorageArchivistBuilder>;
|
|
28
|
+
buildArchivist(): Promise<StorageArchivist<import("@xylabs/object").BaseParamsFields & {
|
|
29
|
+
account?: AccountInstance | "random";
|
|
30
|
+
addToResolvers?: boolean;
|
|
31
|
+
additionalSigners?: AccountInstance[];
|
|
32
|
+
allowNameResolution?: boolean;
|
|
33
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<StorageArchivistConfig>;
|
|
34
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
35
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
36
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
37
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
38
|
+
} & import("@xyo-network/archivist-model").ArchivistParamFields & object, import("@xyo-network/archivist-model").ArchivistModuleEventData>>;
|
|
39
|
+
buildConfig(): StorageArchivistConfig;
|
|
40
|
+
findParentArchivist(): Promise<import("@xyo-network/archivist-model").ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
41
|
+
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
42
|
+
addToResolvers?: boolean;
|
|
43
|
+
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
44
|
+
allowNameResolution?: boolean;
|
|
45
|
+
config: import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>;
|
|
46
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
47
|
+
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
48
|
+
privateChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
49
|
+
publicChildren?: import("@xyo-network/module-model").ModuleInstance[];
|
|
50
|
+
} & import("@xyo-network/archivist-model").ArchivistParamFields & object, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload<void, void>> | undefined>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=StorageArchivistBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageArchivistBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAGjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAC5E,OAAO,EAAE,gBAAgB,EAAgC,MAAM,gCAAgC,CAAA;AAC/F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAG1D,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AACD,qBAAa,uBAAuB;IAKhC,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,IAAI,CAAC;IANf,OAAO,CAAC,UAAU,CAA8B;IAChD,OAAO,CAAC,eAAe,CAAqC;IAE5D,SAAS,aACC,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,eAAe,EACxB,IAAI,CAAC,EAAE,UAAU,YAAA;IAG3B,IAAI,SAAS;;;;;;;;;;+IAEZ;WAEY,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAO3H,cAAc;;;;;;;;;;;IAKpB,WAAW,IAAI,sBAAsB;IAc/B,mBAAmB;yBAa+yE,4BAA4B;;mCAAmG,4BAA4B;;uBAAmF,2BAA2B,yBAAyB,8BAAa;;8CAAkH,2BAA2B;iCAAkE,2BAA2B;gCAAoD,2BAA2B;;CADj7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleAccountPaths.d.ts","sourceRoot":"","sources":["../../../src/lib/ModuleAccountPaths.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,OAAO,CAAA;AAExC,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIxD,CAAA;AAED,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAajF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleNames.d.ts","sourceRoot":"","sources":["../../../src/lib/ModuleNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,eAAe,CAAA;AAEtC,eAAO,MAAM,oBAAoB,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MemoryNode } from '@xyo-network/node-memory';
|
|
2
|
+
import type { WalletInstance } from '@xyo-network/wallet-model';
|
|
3
|
+
export declare const BuildStandardNodes: (wallet: WalletInstance, onNodeBuilt?: (node: MemoryNode) => void) => Promise<MemoryNode[]>;
|
|
4
|
+
//# sourceMappingURL=buildNodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildNodes.d.ts","sourceRoot":"","sources":["../../../src/lib/buildNodes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAmB/D,eAAO,MAAM,kBAAkB,GAAU,QAAQ,cAAc,EAAE,cAAc,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,KAAG,OAAO,CAAC,UAAU,EAAE,CAwB/H,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-standard-node",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.11",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -43,42 +43,42 @@
|
|
|
43
43
|
"lint-pkg": "npmPkgJsonLint ."
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@xylabs/assert": "^4.5.
|
|
47
|
-
"@xylabs/hex": "^4.5.
|
|
48
|
-
"@xylabs/react-async-effect": "^5.3.
|
|
49
|
-
"@xylabs/react-hooks": "^5.3.
|
|
50
|
-
"@xylabs/react-promise": "^5.3.
|
|
51
|
-
"@xylabs/react-shared": "^5.3.
|
|
52
|
-
"@xyo-network/account-model": "^3.9.
|
|
53
|
-
"@xyo-network/archivist-memory": "^3.9.
|
|
54
|
-
"@xyo-network/archivist-model": "^3.9.
|
|
55
|
-
"@xyo-network/archivist-storage": "^3.9.
|
|
56
|
-
"@xyo-network/bridge-http": "^3.9.
|
|
57
|
-
"@xyo-network/module-model": "^3.9.
|
|
58
|
-
"@xyo-network/node-memory": "^3.9.
|
|
59
|
-
"@xyo-network/node-model": "^3.9.
|
|
60
|
-
"@xyo-network/payloadset-plugin": "^3.9.
|
|
61
|
-
"@xyo-network/react-network": "^4.4.
|
|
62
|
-
"@xyo-network/react-node": "^4.4.
|
|
63
|
-
"@xyo-network/react-shared": "^4.4.
|
|
64
|
-
"@xyo-network/react-wallet": "^4.4.
|
|
65
|
-
"@xyo-network/sentinel-memory": "^3.9.
|
|
66
|
-
"@xyo-network/sentinel-model": "^3.9.
|
|
67
|
-
"@xyo-network/wallet-model": "^3.9.
|
|
68
|
-
"@xyo-network/witness-model": "^3.9.
|
|
46
|
+
"@xylabs/assert": "^4.5.6",
|
|
47
|
+
"@xylabs/hex": "^4.5.6",
|
|
48
|
+
"@xylabs/react-async-effect": "^5.3.25",
|
|
49
|
+
"@xylabs/react-hooks": "^5.3.25",
|
|
50
|
+
"@xylabs/react-promise": "^5.3.25",
|
|
51
|
+
"@xylabs/react-shared": "^5.3.25",
|
|
52
|
+
"@xyo-network/account-model": "^3.9.25",
|
|
53
|
+
"@xyo-network/archivist-memory": "^3.9.25",
|
|
54
|
+
"@xyo-network/archivist-model": "^3.9.25",
|
|
55
|
+
"@xyo-network/archivist-storage": "^3.9.25",
|
|
56
|
+
"@xyo-network/bridge-http": "^3.9.25",
|
|
57
|
+
"@xyo-network/module-model": "^3.9.25",
|
|
58
|
+
"@xyo-network/node-memory": "^3.9.25",
|
|
59
|
+
"@xyo-network/node-model": "^3.9.25",
|
|
60
|
+
"@xyo-network/payloadset-plugin": "^3.9.25",
|
|
61
|
+
"@xyo-network/react-network": "^4.4.11",
|
|
62
|
+
"@xyo-network/react-node": "^4.4.11",
|
|
63
|
+
"@xyo-network/react-shared": "^4.4.11",
|
|
64
|
+
"@xyo-network/react-wallet": "^4.4.11",
|
|
65
|
+
"@xyo-network/sentinel-memory": "^3.9.25",
|
|
66
|
+
"@xyo-network/sentinel-model": "^3.9.25",
|
|
67
|
+
"@xyo-network/wallet-model": "^3.9.25",
|
|
68
|
+
"@xyo-network/witness-model": "^3.9.25"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@mui/icons-material": "^6.4.6",
|
|
72
72
|
"@mui/material": "^6.4.6",
|
|
73
73
|
"@mui/styles": "^6.4.6",
|
|
74
|
-
"@storybook/react": "^8.6.
|
|
75
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
76
|
-
"@xylabs/tsconfig-react": "^5.0.
|
|
74
|
+
"@storybook/react": "^8.6.3",
|
|
75
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
76
|
+
"@xylabs/tsconfig-react": "^5.0.39",
|
|
77
77
|
"react": "^18.3.1",
|
|
78
78
|
"react-dom": "^18.3.1",
|
|
79
79
|
"react-router-dom": "^7.2.0",
|
|
80
|
-
"storybook": "^8.6.
|
|
81
|
-
"typescript": "^5.
|
|
80
|
+
"storybook": "^8.6.3",
|
|
81
|
+
"typescript": "^5.8.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@mui/icons-material": "^6",
|