@xyo-network/react-standard-node 2.60.6 → 2.60.8
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/cjs/lib/Builders/StorageArchivistBuilder.js +1 -1
- package/dist/cjs/lib/Builders/StorageArchivistBuilder.js.map +1 -1
- package/dist/docs.json +100 -112
- package/dist/esm/lib/Builders/StorageArchivistBuilder.js +2 -2
- package/dist/esm/lib/Builders/StorageArchivistBuilder.js.map +1 -1
- package/dist/types/lib/Builders/MemoryNodeBuilder.d.ts +10 -3
- package/dist/types/lib/Builders/MemoryNodeBuilder.d.ts.map +1 -1
- package/dist/types/lib/Builders/SentinelBuilder.d.ts +16 -4
- package/dist/types/lib/Builders/SentinelBuilder.d.ts.map +1 -1
- package/dist/types/lib/Builders/StorageArchivistBuilder.d.ts +11 -7
- package/dist/types/lib/Builders/StorageArchivistBuilder.d.ts.map +1 -1
- package/package.json +22 -22
- package/src/lib/Builders/StorageArchivistBuilder.ts +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StorageArchivist, StorageArchivistConfigSchema } from '@xyo-network/archivist';
|
|
1
|
+
import { asArchivistInstance, StorageArchivist, StorageArchivistConfigSchema } from '@xyo-network/archivist';
|
|
2
2
|
import { asNodeInstance } from '@xyo-network/node-model';
|
|
3
3
|
import { assertDefinedEx } from '@xyo-network/react-shared';
|
|
4
4
|
export class StorageArchivistBuilder {
|
|
@@ -44,7 +44,7 @@ export class StorageArchivistBuilder {
|
|
|
44
44
|
if (bridge) {
|
|
45
45
|
try {
|
|
46
46
|
const [archivist] = (await bridge.resolve({ name: ['Archivist'] })) ?? [];
|
|
47
|
-
return archivist;
|
|
47
|
+
return asArchivistInstance(archivist);
|
|
48
48
|
}
|
|
49
49
|
catch (e) {
|
|
50
50
|
console.error('Error Resolving Parent Archivist', this.node?.config.name, this.config);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageArchivistBuilder.js","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,gBAAgB,EAA0B,4BAA4B,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"StorageArchivistBuilder.js","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,mBAAmB,EAAE,gBAAgB,EAA0B,4BAA4B,EAAE,MAAM,wBAAwB,CAAA;AAErJ,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAM3D,MAAM,OAAO,uBAAuB;IAKxB;IACA;IACA;IANF,UAAU,CAA8B;IACxC,eAAe,CAA6B;IAEpD,YACU,MAA8B,EAC9B,OAAwB,EACxB,IAAiB;QAFjB,WAAM,GAAN,MAAM,CAAwB;QAC9B,YAAO,GAAP,OAAO,CAAiB;QACxB,SAAI,GAAJ,IAAI,CAAa;IACxB,CAAC;IAEJ,IAAI,SAAS;QACX,OAAO,eAAe,CAAC,IAAI,CAAC,UAAU,EAAE,uCAAuC,CAAC,CAAA;IAClF,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAA8B,EAAE,OAAwB,EAAE,IAAgB;QAC5F,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;QAChD,QAAQ,CAAC,eAAe,GAAG,MAAM,QAAQ,CAAC,mBAAmB,EAAE,CAAA;QAC/D,QAAQ,CAAC,UAAU,GAAG,MAAM,QAAQ,CAAC,cAAc,EAAE,CAAA;QACrD,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,KAAK,CAAC,cAAc;QAClB,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;QACjC,OAAO,CAAC,MAAM,gBAAgB,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,CAAqB,CAAA;IAC/F,CAAC;IAED,WAAW;QACT,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;YACtB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS;YAChC,OAAO,EAAE;gBACP,MAAM,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;gBAC1E,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;aACzE;YACD,MAAM,EAAE,4BAA4B;YACpC,gBAAgB,EAAE,IAAI;YACtB,IAAI,EAAE,OAAO;SACd,CAAA;IACH,CAAC;IAED,KAAK,CAAC,mBAAmB;QACvB,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAA;QAC1D,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;QAC3E,IAAI,MAAM,EAAE;YACV,IAAI;gBACF,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;gBACzE,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAA;aACtC;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,KAAK,CAAC,kCAAkC,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;aACvF;SACF;IACH,CAAC;CACF"}
|
|
@@ -12,8 +12,8 @@ export declare class MemoryNodeBuilder {
|
|
|
12
12
|
private _node;
|
|
13
13
|
get node(): MemoryNode<import("@xyo-network/core").BaseParamsFields & {
|
|
14
14
|
account?: AccountInstance | "random" | undefined;
|
|
15
|
-
accountDerivationPath?: string | undefined;
|
|
16
15
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
16
|
+
accountDerivationPath?: string | undefined;
|
|
17
17
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
18
18
|
readonly name?: string | undefined;
|
|
19
19
|
readonly paging?: Record<string, {
|
|
@@ -28,6 +28,7 @@ export declare class MemoryNodeBuilder {
|
|
|
28
28
|
readonly sign?: boolean | undefined;
|
|
29
29
|
readonly storeQueries?: boolean | undefined;
|
|
30
30
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
31
|
+
accountDerivationPath?: string | undefined;
|
|
31
32
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
32
33
|
readonly name?: string | undefined;
|
|
33
34
|
readonly paging?: Record<string, {
|
|
@@ -62,8 +63,8 @@ export declare class MemoryNodeBuilder {
|
|
|
62
63
|
addBridge(apiDomain: string, moduleName?: string, account?: AccountInstance): Promise<void>;
|
|
63
64
|
addSentinel(config: SentinelConfig, account: AccountInstance): Promise<import("@xyo-network/sentinel").MemorySentinel<import("@xyo-network/core").BaseParamsFields & {
|
|
64
65
|
account?: AccountInstance | "random" | undefined;
|
|
65
|
-
accountDerivationPath?: string | undefined;
|
|
66
66
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
67
|
+
accountDerivationPath?: string | undefined;
|
|
67
68
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
68
69
|
readonly name?: string | undefined;
|
|
69
70
|
readonly paging?: Record<string, {
|
|
@@ -78,6 +79,7 @@ export declare class MemoryNodeBuilder {
|
|
|
78
79
|
readonly sign?: boolean | undefined;
|
|
79
80
|
readonly storeQueries?: boolean | undefined;
|
|
80
81
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
82
|
+
accountDerivationPath?: string | undefined;
|
|
81
83
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
82
84
|
readonly name?: string | undefined;
|
|
83
85
|
readonly paging?: Record<string, {
|
|
@@ -92,6 +94,7 @@ export declare class MemoryNodeBuilder {
|
|
|
92
94
|
readonly sign?: boolean | undefined;
|
|
93
95
|
readonly storeQueries?: boolean | undefined;
|
|
94
96
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
97
|
+
accountDerivationPath?: string | undefined;
|
|
95
98
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
96
99
|
readonly name?: string | undefined;
|
|
97
100
|
readonly paging?: Record<string, {
|
|
@@ -106,6 +109,7 @@ export declare class MemoryNodeBuilder {
|
|
|
106
109
|
readonly sign?: boolean | undefined;
|
|
107
110
|
readonly storeQueries?: boolean | undefined;
|
|
108
111
|
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
112
|
+
accountDerivationPath?: string | undefined;
|
|
109
113
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
110
114
|
readonly name?: string | undefined;
|
|
111
115
|
readonly paging?: Record<string, {
|
|
@@ -144,8 +148,8 @@ export declare class MemoryNodeBuilder {
|
|
|
144
148
|
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
145
149
|
}, import("@xyo-network/sentinel").SentinelModuleEventData<import("@xyo-network/sentinel").SentinelInstance<import("@xyo-network/core").BaseParamsFields & {
|
|
146
150
|
account?: AccountInstance | "random" | undefined;
|
|
147
|
-
accountDerivationPath?: string | undefined;
|
|
148
151
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
152
|
+
accountDerivationPath?: string | undefined;
|
|
149
153
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
150
154
|
readonly name?: string | undefined;
|
|
151
155
|
readonly paging?: Record<string, {
|
|
@@ -160,6 +164,7 @@ export declare class MemoryNodeBuilder {
|
|
|
160
164
|
readonly sign?: boolean | undefined;
|
|
161
165
|
readonly storeQueries?: boolean | undefined;
|
|
162
166
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
167
|
+
accountDerivationPath?: string | undefined;
|
|
163
168
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
164
169
|
readonly name?: string | undefined;
|
|
165
170
|
readonly paging?: Record<string, {
|
|
@@ -174,6 +179,7 @@ export declare class MemoryNodeBuilder {
|
|
|
174
179
|
readonly sign?: boolean | undefined;
|
|
175
180
|
readonly storeQueries?: boolean | undefined;
|
|
176
181
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
182
|
+
accountDerivationPath?: string | undefined;
|
|
177
183
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
178
184
|
readonly name?: string | undefined;
|
|
179
185
|
readonly paging?: Record<string, {
|
|
@@ -188,6 +194,7 @@ export declare class MemoryNodeBuilder {
|
|
|
188
194
|
readonly sign?: boolean | undefined;
|
|
189
195
|
readonly storeQueries?: boolean | undefined;
|
|
190
196
|
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
197
|
+
accountDerivationPath?: string | undefined;
|
|
191
198
|
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
192
199
|
readonly name?: string | undefined;
|
|
193
200
|
readonly paging?: Record<string, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemoryNodeBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/MemoryNodeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAiB,MAAM,sBAAsB,CAAA;AAKrE,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
|
|
1
|
+
{"version":3,"file":"MemoryNodeBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/MemoryNodeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAiB,MAAM,sBAAsB,CAAA;AAKrE,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;IAQnH,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;IAYvF,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM5D,YAAY,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,SAAS,GAAE,CAAC,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC,EAAO;IAkB5G,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO;YAgB/D,cAAc;CAM7B"}
|
|
@@ -7,8 +7,8 @@ export declare class SentinelBuilder {
|
|
|
7
7
|
protected constructor(config: SentinelConfig, account: AccountInstance);
|
|
8
8
|
get sentinel(): MemorySentinel<import("@xyo-network/core").BaseParamsFields & {
|
|
9
9
|
account?: AccountInstance | "random" | undefined;
|
|
10
|
-
accountDerivationPath?: string | undefined;
|
|
11
10
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
11
|
+
accountDerivationPath?: string | undefined;
|
|
12
12
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
13
13
|
readonly name?: string | undefined;
|
|
14
14
|
readonly paging?: Record<string, {
|
|
@@ -23,6 +23,7 @@ export declare class SentinelBuilder {
|
|
|
23
23
|
readonly sign?: boolean | undefined;
|
|
24
24
|
readonly storeQueries?: boolean | undefined;
|
|
25
25
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
26
|
+
accountDerivationPath?: string | undefined;
|
|
26
27
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
27
28
|
readonly name?: string | undefined;
|
|
28
29
|
readonly paging?: Record<string, {
|
|
@@ -37,6 +38,7 @@ export declare class SentinelBuilder {
|
|
|
37
38
|
readonly sign?: boolean | undefined;
|
|
38
39
|
readonly storeQueries?: boolean | undefined;
|
|
39
40
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
41
|
+
accountDerivationPath?: string | undefined;
|
|
40
42
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
41
43
|
readonly name?: string | undefined;
|
|
42
44
|
readonly paging?: Record<string, {
|
|
@@ -51,6 +53,7 @@ export declare class SentinelBuilder {
|
|
|
51
53
|
readonly sign?: boolean | undefined;
|
|
52
54
|
readonly storeQueries?: boolean | undefined;
|
|
53
55
|
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
56
|
+
accountDerivationPath?: string | undefined;
|
|
54
57
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
55
58
|
readonly name?: string | undefined;
|
|
56
59
|
readonly paging?: Record<string, {
|
|
@@ -89,8 +92,8 @@ export declare class SentinelBuilder {
|
|
|
89
92
|
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
90
93
|
}, import("@xyo-network/sentinel").SentinelModuleEventData<import("@xyo-network/sentinel").SentinelInstance<import("@xyo-network/core").BaseParamsFields & {
|
|
91
94
|
account?: AccountInstance | "random" | undefined;
|
|
92
|
-
accountDerivationPath?: string | undefined;
|
|
93
95
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
96
|
+
accountDerivationPath?: string | undefined;
|
|
94
97
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
95
98
|
readonly name?: string | undefined;
|
|
96
99
|
readonly paging?: Record<string, {
|
|
@@ -105,6 +108,7 @@ export declare class SentinelBuilder {
|
|
|
105
108
|
readonly sign?: boolean | undefined;
|
|
106
109
|
readonly storeQueries?: boolean | undefined;
|
|
107
110
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
111
|
+
accountDerivationPath?: string | undefined;
|
|
108
112
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
109
113
|
readonly name?: string | undefined;
|
|
110
114
|
readonly paging?: Record<string, {
|
|
@@ -119,6 +123,7 @@ export declare class SentinelBuilder {
|
|
|
119
123
|
readonly sign?: boolean | undefined;
|
|
120
124
|
readonly storeQueries?: boolean | undefined;
|
|
121
125
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
126
|
+
accountDerivationPath?: string | undefined;
|
|
122
127
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
123
128
|
readonly name?: string | undefined;
|
|
124
129
|
readonly paging?: Record<string, {
|
|
@@ -133,6 +138,7 @@ export declare class SentinelBuilder {
|
|
|
133
138
|
readonly sign?: boolean | undefined;
|
|
134
139
|
readonly storeQueries?: boolean | undefined;
|
|
135
140
|
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
141
|
+
accountDerivationPath?: string | undefined;
|
|
136
142
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
137
143
|
readonly name?: string | undefined;
|
|
138
144
|
readonly paging?: Record<string, {
|
|
@@ -173,8 +179,8 @@ export declare class SentinelBuilder {
|
|
|
173
179
|
static create(config: SentinelConfig, account: AccountInstance): Promise<SentinelBuilder>;
|
|
174
180
|
buildSentinel(): Promise<MemorySentinel<import("@xyo-network/core").BaseParamsFields & {
|
|
175
181
|
account?: AccountInstance | "random" | undefined;
|
|
176
|
-
accountDerivationPath?: string | undefined;
|
|
177
182
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
183
|
+
accountDerivationPath?: string | undefined;
|
|
178
184
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
179
185
|
readonly name?: string | undefined;
|
|
180
186
|
readonly paging?: Record<string, {
|
|
@@ -189,6 +195,7 @@ export declare class SentinelBuilder {
|
|
|
189
195
|
readonly sign?: boolean | undefined;
|
|
190
196
|
readonly storeQueries?: boolean | undefined;
|
|
191
197
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
198
|
+
accountDerivationPath?: string | undefined;
|
|
192
199
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
193
200
|
readonly name?: string | undefined;
|
|
194
201
|
readonly paging?: Record<string, {
|
|
@@ -203,6 +210,7 @@ export declare class SentinelBuilder {
|
|
|
203
210
|
readonly sign?: boolean | undefined;
|
|
204
211
|
readonly storeQueries?: boolean | undefined;
|
|
205
212
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
213
|
+
accountDerivationPath?: string | undefined;
|
|
206
214
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
207
215
|
readonly name?: string | undefined;
|
|
208
216
|
readonly paging?: Record<string, {
|
|
@@ -217,6 +225,7 @@ export declare class SentinelBuilder {
|
|
|
217
225
|
readonly sign?: boolean | undefined;
|
|
218
226
|
readonly storeQueries?: boolean | undefined;
|
|
219
227
|
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
228
|
+
accountDerivationPath?: string | undefined;
|
|
220
229
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
221
230
|
readonly name?: string | undefined;
|
|
222
231
|
readonly paging?: Record<string, {
|
|
@@ -255,8 +264,8 @@ export declare class SentinelBuilder {
|
|
|
255
264
|
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
256
265
|
}, import("@xyo-network/sentinel").SentinelModuleEventData<import("@xyo-network/sentinel").SentinelInstance<import("@xyo-network/core").BaseParamsFields & {
|
|
257
266
|
account?: AccountInstance | "random" | undefined;
|
|
258
|
-
accountDerivationPath?: string | undefined;
|
|
259
267
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
268
|
+
accountDerivationPath?: string | undefined;
|
|
260
269
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
261
270
|
readonly name?: string | undefined;
|
|
262
271
|
readonly paging?: Record<string, {
|
|
@@ -271,6 +280,7 @@ export declare class SentinelBuilder {
|
|
|
271
280
|
readonly sign?: boolean | undefined;
|
|
272
281
|
readonly storeQueries?: boolean | undefined;
|
|
273
282
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
283
|
+
accountDerivationPath?: string | undefined;
|
|
274
284
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
275
285
|
readonly name?: string | undefined;
|
|
276
286
|
readonly paging?: Record<string, {
|
|
@@ -285,6 +295,7 @@ export declare class SentinelBuilder {
|
|
|
285
295
|
readonly sign?: boolean | undefined;
|
|
286
296
|
readonly storeQueries?: boolean | undefined;
|
|
287
297
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
298
|
+
accountDerivationPath?: string | undefined;
|
|
288
299
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
289
300
|
readonly name?: string | undefined;
|
|
290
301
|
readonly paging?: Record<string, {
|
|
@@ -299,6 +310,7 @@ export declare class SentinelBuilder {
|
|
|
299
310
|
readonly sign?: boolean | undefined;
|
|
300
311
|
readonly storeQueries?: boolean | undefined;
|
|
301
312
|
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
313
|
+
accountDerivationPath?: string | undefined;
|
|
302
314
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
303
315
|
readonly name?: string | undefined;
|
|
304
316
|
readonly paging?: Record<string, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SentinelBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/SentinelBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAkB,MAAM,uBAAuB,CAAA;AAEtF,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
|
|
1
|
+
{"version":3,"file":"SentinelBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/SentinelBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAkB,MAAM,uBAAuB,CAAA;AAEtF,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAEX;WAEY,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAMzF,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKnB,OAAO,CAAC,WAAW;CAMpB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
-
import {
|
|
2
|
+
import { StorageArchivist, StorageArchivistConfig } from '@xyo-network/archivist';
|
|
3
3
|
import { MemoryNode } from '@xyo-network/node-memory';
|
|
4
4
|
export interface ArchivistBuilderConfig {
|
|
5
5
|
name?: string;
|
|
@@ -13,8 +13,8 @@ export declare class StorageArchivistBuilder {
|
|
|
13
13
|
private remoteArchivist;
|
|
14
14
|
protected constructor(config: ArchivistBuilderConfig, account: AccountInstance, node?: MemoryNode<import("@xyo-network/core").BaseParamsFields & {
|
|
15
15
|
account?: AccountInstance | "random" | undefined;
|
|
16
|
-
accountDerivationPath?: string | undefined;
|
|
17
16
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
17
|
+
accountDerivationPath?: string | undefined;
|
|
18
18
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
19
19
|
readonly name?: string | undefined;
|
|
20
20
|
readonly paging?: Record<string, {
|
|
@@ -29,6 +29,7 @@ export declare class StorageArchivistBuilder {
|
|
|
29
29
|
readonly sign?: boolean | undefined;
|
|
30
30
|
readonly storeQueries?: boolean | undefined;
|
|
31
31
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
32
|
+
accountDerivationPath?: string | undefined;
|
|
32
33
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
33
34
|
readonly name?: string | undefined;
|
|
34
35
|
readonly paging?: Record<string, {
|
|
@@ -57,8 +58,8 @@ export declare class StorageArchivistBuilder {
|
|
|
57
58
|
}, import("@xyo-network/node-model").NodeModuleEventData> | undefined);
|
|
58
59
|
get archivist(): StorageArchivist<import("@xyo-network/core").BaseParamsFields & {
|
|
59
60
|
account?: AccountInstance | "random" | undefined;
|
|
60
|
-
accountDerivationPath?: string | undefined;
|
|
61
61
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
62
|
+
accountDerivationPath?: string | undefined;
|
|
62
63
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
63
64
|
readonly name?: string | undefined;
|
|
64
65
|
readonly paging?: Record<string, {
|
|
@@ -73,6 +74,7 @@ export declare class StorageArchivistBuilder {
|
|
|
73
74
|
readonly sign?: boolean | undefined;
|
|
74
75
|
readonly storeQueries?: boolean | undefined;
|
|
75
76
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
77
|
+
accountDerivationPath?: string | undefined;
|
|
76
78
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
77
79
|
readonly name?: string | undefined;
|
|
78
80
|
readonly paging?: Record<string, {
|
|
@@ -111,8 +113,8 @@ export declare class StorageArchivistBuilder {
|
|
|
111
113
|
static create(config: ArchivistBuilderConfig, account: AccountInstance, node: MemoryNode): Promise<StorageArchivistBuilder>;
|
|
112
114
|
buildArchivist(): Promise<StorageArchivist<import("@xyo-network/core").BaseParamsFields & {
|
|
113
115
|
account?: AccountInstance | "random" | undefined;
|
|
114
|
-
accountDerivationPath?: string | undefined;
|
|
115
116
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
117
|
+
accountDerivationPath?: string | undefined;
|
|
116
118
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
117
119
|
readonly name?: string | undefined;
|
|
118
120
|
readonly paging?: Record<string, {
|
|
@@ -127,6 +129,7 @@ export declare class StorageArchivistBuilder {
|
|
|
127
129
|
readonly sign?: boolean | undefined;
|
|
128
130
|
readonly storeQueries?: boolean | undefined;
|
|
129
131
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
132
|
+
accountDerivationPath?: string | undefined;
|
|
130
133
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
131
134
|
readonly name?: string | undefined;
|
|
132
135
|
readonly paging?: Record<string, {
|
|
@@ -163,10 +166,10 @@ export declare class StorageArchivistBuilder {
|
|
|
163
166
|
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
164
167
|
}, import("@xyo-network/archivist").ArchivistModuleEventData>>;
|
|
165
168
|
buildConfig(): StorageArchivistConfig;
|
|
166
|
-
findParentArchivist(): Promise<
|
|
169
|
+
findParentArchivist(): Promise<import("@xyo-network/archivist").ArchivistInstance<import("@xyo-network/core").BaseParamsFields & {
|
|
167
170
|
account?: AccountInstance | "random" | undefined;
|
|
168
|
-
accountDerivationPath?: string | undefined;
|
|
169
171
|
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
172
|
+
accountDerivationPath?: string | undefined;
|
|
170
173
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
171
174
|
readonly name?: string | undefined;
|
|
172
175
|
readonly paging?: Record<string, {
|
|
@@ -181,6 +184,7 @@ export declare class StorageArchivistBuilder {
|
|
|
181
184
|
readonly sign?: boolean | undefined;
|
|
182
185
|
readonly storeQueries?: boolean | undefined;
|
|
183
186
|
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
187
|
+
accountDerivationPath?: string | undefined;
|
|
184
188
|
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
185
189
|
readonly name?: string | undefined;
|
|
186
190
|
readonly paging?: Record<string, {
|
|
@@ -208,6 +212,6 @@ export declare class StorageArchivistBuilder {
|
|
|
208
212
|
};
|
|
209
213
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
210
214
|
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
211
|
-
}, import("@xyo-network/
|
|
215
|
+
}, import("@xyo-network/archivist").ArchivistModuleEventData> | undefined>;
|
|
212
216
|
}
|
|
213
217
|
//# sourceMappingURL=StorageArchivistBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageArchivistBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"StorageArchivistBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAwC,gBAAgB,EAAE,sBAAsB,EAAgC,MAAM,wBAAwB,CAAA;AACrJ,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAIrD,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,CAA6B;IAEpD,SAAS,aACC,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,eAAe,EACxB,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yEAAY;IAG3B,IAAI,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAEZ;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY1B"}
|
package/package.json
CHANGED
|
@@ -10,29 +10,29 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/react-async-effect": "~2.17.
|
|
14
|
-
"@xylabs/react-promise": "~2.17.
|
|
15
|
-
"@xylabs/react-shared": "~2.17.
|
|
16
|
-
"@xyo-network/account-model": "^2.
|
|
17
|
-
"@xyo-network/archivist": "^2.
|
|
18
|
-
"@xyo-network/http-bridge": "^2.
|
|
19
|
-
"@xyo-network/module": "^2.
|
|
20
|
-
"@xyo-network/node-memory": "^2.
|
|
21
|
-
"@xyo-network/node-model": "^2.
|
|
22
|
-
"@xyo-network/payloadset-plugin": "^2.
|
|
23
|
-
"@xyo-network/react-network": "~2.60.
|
|
24
|
-
"@xyo-network/react-node": "~2.60.
|
|
25
|
-
"@xyo-network/react-shared": "~2.60.
|
|
26
|
-
"@xyo-network/react-wallet": "~2.60.
|
|
27
|
-
"@xyo-network/sentinel": "^2.
|
|
28
|
-
"@xyo-network/wallet-model": "^2.
|
|
29
|
-
"@xyo-network/witness": "^2.
|
|
13
|
+
"@xylabs/react-async-effect": "~2.17.15",
|
|
14
|
+
"@xylabs/react-promise": "~2.17.15",
|
|
15
|
+
"@xylabs/react-shared": "~2.17.15",
|
|
16
|
+
"@xyo-network/account-model": "^2.72.5",
|
|
17
|
+
"@xyo-network/archivist": "^2.72.5",
|
|
18
|
+
"@xyo-network/http-bridge": "^2.72.5",
|
|
19
|
+
"@xyo-network/module": "^2.72.5",
|
|
20
|
+
"@xyo-network/node-memory": "^2.72.5",
|
|
21
|
+
"@xyo-network/node-model": "^2.72.5",
|
|
22
|
+
"@xyo-network/payloadset-plugin": "^2.72.5",
|
|
23
|
+
"@xyo-network/react-network": "~2.60.8",
|
|
24
|
+
"@xyo-network/react-node": "~2.60.8",
|
|
25
|
+
"@xyo-network/react-shared": "~2.60.8",
|
|
26
|
+
"@xyo-network/react-wallet": "~2.60.8",
|
|
27
|
+
"@xyo-network/sentinel": "^2.72.5",
|
|
28
|
+
"@xyo-network/wallet-model": "^2.72.5",
|
|
29
|
+
"@xyo-network/witness": "^2.72.5"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@storybook/react": "^7.
|
|
33
|
-
"@xylabs/ts-scripts-yarn3": "^2.19.
|
|
34
|
-
"@xylabs/tsconfig-react": "^2.19.
|
|
35
|
-
"typescript": "^5.
|
|
32
|
+
"@storybook/react": "^7.4.0",
|
|
33
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.3",
|
|
34
|
+
"@xylabs/tsconfig-react": "^2.19.3",
|
|
35
|
+
"typescript": "^5.2.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@mui/icons-material": "^5",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
},
|
|
87
87
|
"sideEffects": false,
|
|
88
88
|
"types": "dist/types/index.d.ts",
|
|
89
|
-
"version": "2.60.
|
|
89
|
+
"version": "2.60.8"
|
|
90
90
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountInstance } from '@xyo-network/account-model'
|
|
2
|
-
import { ArchivistModule, StorageArchivist, StorageArchivistConfig, StorageArchivistConfigSchema } from '@xyo-network/archivist'
|
|
2
|
+
import { ArchivistModule, asArchivistInstance, StorageArchivist, StorageArchivistConfig, StorageArchivistConfigSchema } from '@xyo-network/archivist'
|
|
3
3
|
import { MemoryNode } from '@xyo-network/node-memory'
|
|
4
4
|
import { asNodeInstance } from '@xyo-network/node-model'
|
|
5
5
|
import { assertDefinedEx } from '@xyo-network/react-shared'
|
|
@@ -54,7 +54,7 @@ export class StorageArchivistBuilder {
|
|
|
54
54
|
if (bridge) {
|
|
55
55
|
try {
|
|
56
56
|
const [archivist] = (await bridge.resolve({ name: ['Archivist'] })) ?? []
|
|
57
|
-
return archivist
|
|
57
|
+
return asArchivistInstance(archivist)
|
|
58
58
|
} catch (e) {
|
|
59
59
|
console.error('Error Resolving Parent Archivist', this.node?.config.name, this.config)
|
|
60
60
|
}
|