@xyo-network/react-sentinel 2.57.0 → 2.57.1

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.
Files changed (61) hide show
  1. package/dist/cjs/hooks/index.js +0 -2
  2. package/dist/cjs/hooks/index.js.map +1 -1
  3. package/dist/cjs/hooks/node/index.js +0 -2
  4. package/dist/cjs/hooks/node/index.js.map +1 -1
  5. package/dist/cjs/hooks/node/useSentinelFromNode.js +9 -1
  6. package/dist/cjs/hooks/node/useSentinelFromNode.js.map +1 -1
  7. package/dist/cjs/hooks/node/useSentinelsFromNode.js +21 -1
  8. package/dist/cjs/hooks/node/useSentinelsFromNode.js.map +1 -1
  9. package/dist/docs.json +4423 -0
  10. package/dist/esm/hooks/index.js +0 -2
  11. package/dist/esm/hooks/index.js.map +1 -1
  12. package/dist/esm/hooks/node/index.js +0 -2
  13. package/dist/esm/hooks/node/index.js.map +1 -1
  14. package/dist/esm/hooks/node/useSentinelFromNode.js +9 -1
  15. package/dist/esm/hooks/node/useSentinelFromNode.js.map +1 -1
  16. package/dist/esm/hooks/node/useSentinelsFromNode.js +21 -1
  17. package/dist/esm/hooks/node/useSentinelsFromNode.js.map +1 -1
  18. package/dist/types/contexts/Provider.d.ts +2 -2
  19. package/dist/types/contexts/Provider.d.ts.map +1 -1
  20. package/dist/types/hooks/index.d.ts +0 -2
  21. package/dist/types/hooks/index.d.ts.map +1 -1
  22. package/dist/types/hooks/node/index.d.ts +0 -2
  23. package/dist/types/hooks/node/index.d.ts.map +1 -1
  24. package/dist/types/hooks/node/useSentinelFromNode.d.ts +3 -58
  25. package/dist/types/hooks/node/useSentinelFromNode.d.ts.map +1 -1
  26. package/dist/types/hooks/node/useSentinelsFromNode.d.ts +4 -59
  27. package/dist/types/hooks/node/useSentinelsFromNode.d.ts.map +1 -1
  28. package/package.json +15 -16
  29. package/src/contexts/Provider.tsx +2 -2
  30. package/src/hooks/index.ts +0 -2
  31. package/src/hooks/node/index.ts +0 -2
  32. package/src/hooks/node/useSentinelFromNode.tsx +13 -5
  33. package/src/hooks/node/useSentinelsFromNode.tsx +25 -5
  34. package/dist/cjs/hooks/node/useWrappedSentinelFromNode.js +0 -7
  35. package/dist/cjs/hooks/node/useWrappedSentinelFromNode.js.map +0 -1
  36. package/dist/cjs/hooks/node/useWrappedSentinelsFromNode.js +0 -7
  37. package/dist/cjs/hooks/node/useWrappedSentinelsFromNode.js.map +0 -1
  38. package/dist/cjs/hooks/useWrappedSentinel.js +0 -7
  39. package/dist/cjs/hooks/useWrappedSentinel.js.map +0 -1
  40. package/dist/cjs/hooks/useWrappedSentinels.js +0 -7
  41. package/dist/cjs/hooks/useWrappedSentinels.js.map +0 -1
  42. package/dist/esm/hooks/node/useWrappedSentinelFromNode.js +0 -4
  43. package/dist/esm/hooks/node/useWrappedSentinelFromNode.js.map +0 -1
  44. package/dist/esm/hooks/node/useWrappedSentinelsFromNode.js +0 -4
  45. package/dist/esm/hooks/node/useWrappedSentinelsFromNode.js.map +0 -1
  46. package/dist/esm/hooks/useWrappedSentinel.js +0 -4
  47. package/dist/esm/hooks/useWrappedSentinel.js.map +0 -1
  48. package/dist/esm/hooks/useWrappedSentinels.js +0 -4
  49. package/dist/esm/hooks/useWrappedSentinels.js.map +0 -1
  50. package/dist/types/hooks/node/useWrappedSentinelFromNode.d.ts +0 -58
  51. package/dist/types/hooks/node/useWrappedSentinelFromNode.d.ts.map +0 -1
  52. package/dist/types/hooks/node/useWrappedSentinelsFromNode.d.ts +0 -58
  53. package/dist/types/hooks/node/useWrappedSentinelsFromNode.d.ts.map +0 -1
  54. package/dist/types/hooks/useWrappedSentinel.d.ts +0 -113
  55. package/dist/types/hooks/useWrappedSentinel.d.ts.map +0 -1
  56. package/dist/types/hooks/useWrappedSentinels.d.ts +0 -113
  57. package/dist/types/hooks/useWrappedSentinels.d.ts.map +0 -1
  58. package/src/hooks/node/useWrappedSentinelFromNode.tsx +0 -4
  59. package/src/hooks/node/useWrappedSentinelsFromNode.tsx +0 -4
  60. package/src/hooks/useWrappedSentinel.tsx +0 -4
  61. package/src/hooks/useWrappedSentinels.tsx +0 -4
@@ -1,4 +1,2 @@
1
1
  export * from './node';
2
- export * from './useWrappedSentinel';
3
- export * from './useWrappedSentinels';
4
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -1,5 +1,3 @@
1
1
  export * from './useSentinelFromNode';
2
2
  export * from './useSentinelsFromNode';
3
- export * from './useWrappedSentinelFromNode';
4
- export * from './useWrappedSentinelsFromNode';
5
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA"}
@@ -1,3 +1,11 @@
1
1
  import { useModuleFromNode } from '@xyo-network/react-node';
2
- export const useSentinelFromNode = (nameOrAddress, up, logger) => useModuleFromNode(nameOrAddress, up, logger);
2
+ import { asSentinelInstance } from '@xyo-network/sentinel';
3
+ export const useSentinelFromNode = (nameOrAddress, config = {}) => {
4
+ const [module, error] = useModuleFromNode(nameOrAddress, config);
5
+ const instance = asSentinelInstance(module);
6
+ if (module && !instance) {
7
+ return [null, Error('Resolved mode is not a SentinelInstance')];
8
+ }
9
+ return [instance, error];
10
+ };
3
11
  //# sourceMappingURL=useSentinelFromNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAG3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,aAAsB,EAAE,EAAY,EAAE,MAAe,EAAE,EAAE,CAC3F,iBAAiB,CAAiB,aAAa,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"useSentinelFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACjF,OAAO,EAAE,kBAAkB,EAAoB,MAAM,uBAAuB,CAAA;AAE5E,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,aAAsB,EACtB,SAA+B,EAAE,EACyB,EAAE;IAC5D,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,iBAAiB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAChE,MAAM,QAAQ,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAA;IAC3C,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;QACvB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,yCAAyC,CAAC,CAAC,CAAA;KAChE;IACD,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC,CAAA"}
@@ -1,3 +1,23 @@
1
1
  import { useModulesFromNode } from '@xyo-network/react-node';
2
- export const useSentinelsFromNode = (filter, up, logger) => useModulesFromNode(filter, up, logger);
2
+ import { isSentinelInstance } from '@xyo-network/sentinel';
3
+ export const useSentinelsFromNode = (filter, config) => {
4
+ const [modules, error] = useModulesFromNode(filter, config);
5
+ if (error) {
6
+ return [null, error];
7
+ }
8
+ if (modules) {
9
+ return [
10
+ modules.reduce((prev, module) => {
11
+ if (isSentinelInstance(module)) {
12
+ prev.push(module);
13
+ }
14
+ return prev;
15
+ }, []),
16
+ undefined,
17
+ ];
18
+ }
19
+ else {
20
+ return [modules, error];
21
+ }
22
+ };
3
23
  //# sourceMappingURL=useSentinelsFromNode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelsFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAG5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAqB,EAAE,EAAY,EAAE,MAAe,EAAE,EAAE,CAAC,kBAAkB,CAAiB,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"useSentinelsFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAClF,OAAO,EAAE,kBAAkB,EAAoB,MAAM,uBAAuB,CAAA;AAE5E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,MAAqB,EACrB,MAA6B,EAC+B,EAAE;IAC9D,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC3D,IAAI,KAAK,EAAE;QACT,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;KACrB;IACD,IAAI,OAAO,EAAE;QACX,OAAO;YACL,OAAO,CAAC,MAAM,CAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE;gBAClD,IAAI,kBAAkB,CAAC,MAAM,CAAC,EAAE;oBAC9B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;iBAClB;gBACD,OAAO,IAAI,CAAA;YACb,CAAC,EAAE,EAAE,CAAC;YACN,SAAS;SACV,CAAA;KACF;SAAM;QACL,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;KACxB;AACH,CAAC,CAAA"}
@@ -2,7 +2,7 @@
2
2
  import { WithChildren } from '@xylabs/react-shared';
3
3
  import { AccountInstance } from '@xyo-network/account-model';
4
4
  import { ModuleFilter } from '@xyo-network/module';
5
- import { WitnessModule } from '@xyo-network/witness';
5
+ import { WitnessInstance } from '@xyo-network/witness';
6
6
  export interface SentinelProviderProps {
7
7
  /** Account used by the sentinel for signing */
8
8
  account: AccountInstance;
@@ -12,7 +12,7 @@ export interface SentinelProviderProps {
12
12
  filter?: ModuleFilter;
13
13
  name?: string;
14
14
  required?: boolean;
15
- witnesses?: WitnessModule[];
15
+ witnesses?: WitnessInstance[];
16
16
  }
17
17
  export declare const SentinelProvider: React.FC<WithChildren<SentinelProviderProps>>;
18
18
  //# sourceMappingURL=Provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAMpD,MAAM,WAAW,qBAAqB;IACpC,+CAA+C;IAC/C,OAAO,EAAE,eAAe,CAAA;IACxB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAA;CAC5B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,qBAAqB,CAAC,CA6F1E,CAAA"}
1
+ {"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAMtD,MAAM,WAAW,qBAAqB;IACpC,+CAA+C;IAC/C,OAAO,EAAE,eAAe,CAAA;IACxB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,eAAe,EAAE,CAAA;CAC9B;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,qBAAqB,CAAC,CA6F1E,CAAA"}
@@ -1,4 +1,2 @@
1
1
  export * from './node';
2
- export * from './useWrappedSentinel';
3
- export * from './useWrappedSentinels';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
@@ -1,5 +1,3 @@
1
1
  export * from './useSentinelFromNode';
2
2
  export * from './useSentinelsFromNode';
3
- export * from './useWrappedSentinelFromNode';
4
- export * from './useWrappedSentinelsFromNode';
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,+BAA+B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA"}
@@ -1,59 +1,4 @@
1
- import { Logger } from '@xyo-network/core';
2
- import { SentinelModule } from '@xyo-network/sentinel';
3
- export declare const useSentinelFromNode: (nameOrAddress?: string, up?: boolean, logger?: Logger) => [SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
4
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
5
- readonly name?: string | undefined;
6
- readonly paging?: Record<string, {
7
- size?: number | undefined;
8
- }> | undefined;
9
- readonly schema: string;
10
- readonly security?: {
11
- readonly allowAnonymous?: boolean | undefined;
12
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
13
- readonly disallowed?: Record<string, string[]> | undefined;
14
- } | undefined;
15
- readonly storeQueries?: boolean | undefined;
16
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
17
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
18
- readonly name?: string | undefined;
19
- readonly paging?: Record<string, {
20
- size?: number | undefined;
21
- }> | undefined;
22
- readonly schema: "network.xyo.sentinel.config";
23
- readonly security?: {
24
- readonly allowAnonymous?: boolean | undefined;
25
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
26
- readonly disallowed?: Record<string, string[]> | undefined;
27
- } | undefined;
28
- readonly storeQueries?: boolean | undefined;
29
- } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
30
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
31
- readonly name?: string | undefined;
32
- readonly paging?: Record<string, {
33
- size?: number | undefined;
34
- }> | undefined;
35
- readonly schema: string;
36
- readonly security?: {
37
- readonly allowAnonymous?: boolean | undefined;
38
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
39
- readonly disallowed?: Record<string, string[]> | undefined;
40
- } | undefined;
41
- readonly storeQueries?: boolean | undefined;
42
- } & Omit<{
43
- archivists?: string[] | undefined;
44
- schema: string;
45
- }, "schema"> & {
46
- schema: string;
47
- } & {
48
- schema: "network.xyo.sentinel.config";
49
- witnesses?: string[] | undefined;
50
- } & {
51
- schema: string;
52
- }, "schema"> & {
53
- schema: "network.xyo.sentinel.config";
54
- }, "schema"> & {
55
- schema: string;
56
- }, "schema"> & {
57
- schema: string;
58
- }, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData> | null | undefined, Error | undefined];
1
+ import { ModuleFromNodeConfig } from '@xyo-network/react-node';
2
+ import { SentinelInstance } from '@xyo-network/sentinel';
3
+ export declare const useSentinelFromNode: (nameOrAddress?: string, config?: ModuleFromNodeConfig) => [SentinelInstance | null | undefined, Error | undefined];
59
4
  //# sourceMappingURL=useSentinelFromNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,eAAO,MAAM,mBAAmB,mBAAoB,MAAM,OAAO,OAAO,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8GAC3B,CAAA"}
1
+ {"version":3,"file":"useSentinelFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAqB,MAAM,yBAAyB,CAAA;AACjF,OAAO,EAAsB,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE5E,eAAO,MAAM,mBAAmB,mBACd,MAAM,WACd,oBAAoB,KAC3B,CAAC,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAOzD,CAAA"}
@@ -1,60 +1,5 @@
1
- import { Logger } from '@xyo-network/core';
2
- import { ModuleFilter } from '@xyo-network/module';
3
- import { SentinelModule } from '@xyo-network/sentinel';
4
- export declare const useSentinelsFromNode: (filter?: ModuleFilter, up?: boolean, logger?: Logger) => [SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
5
- readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
6
- readonly name?: string | undefined;
7
- readonly paging?: Record<string, {
8
- size?: number | undefined;
9
- }> | undefined;
10
- readonly schema: string;
11
- readonly security?: {
12
- readonly allowAnonymous?: boolean | undefined;
13
- readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
14
- readonly disallowed?: Record<string, string[]> | undefined;
15
- } | undefined;
16
- readonly storeQueries?: boolean | undefined;
17
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
18
- readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
19
- readonly name?: string | undefined;
20
- readonly paging?: Record<string, {
21
- size?: number | undefined;
22
- }> | undefined;
23
- readonly schema: "network.xyo.sentinel.config";
24
- readonly security?: {
25
- readonly allowAnonymous?: boolean | undefined;
26
- readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
27
- readonly disallowed?: Record<string, string[]> | undefined;
28
- } | undefined;
29
- readonly storeQueries?: boolean | undefined;
30
- } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
31
- readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
32
- readonly name?: string | undefined;
33
- readonly paging?: Record<string, {
34
- size?: number | undefined;
35
- }> | undefined;
36
- readonly schema: string;
37
- readonly security?: {
38
- readonly allowAnonymous?: boolean | undefined;
39
- readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
40
- readonly disallowed?: Record<string, string[]> | undefined;
41
- } | undefined;
42
- readonly storeQueries?: boolean | undefined;
43
- } & Omit<{
44
- archivists?: string[] | undefined;
45
- schema: string;
46
- }, "schema"> & {
47
- schema: string;
48
- } & {
49
- schema: "network.xyo.sentinel.config";
50
- witnesses?: string[] | undefined;
51
- } & {
52
- schema: string;
53
- }, "schema"> & {
54
- schema: "network.xyo.sentinel.config";
55
- }, "schema"> & {
56
- schema: string;
57
- }, "schema"> & {
58
- schema: string;
59
- }, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData>[] | null | undefined, Error | undefined];
1
+ import { ModuleFilter } from '@xyo-network/module-model';
2
+ import { ModuleFromNodeConfig } from '@xyo-network/react-node';
3
+ import { SentinelInstance } from '@xyo-network/sentinel';
4
+ export declare const useSentinelsFromNode: (filter?: ModuleFilter, config?: ModuleFromNodeConfig) => [SentinelInstance[] | null | undefined, Error | undefined];
60
5
  //# sourceMappingURL=useSentinelsFromNode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useSentinelsFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,eAAO,MAAM,oBAAoB,YAAa,YAAY,OAAO,OAAO,WAAW,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gHAA2D,CAAA"}
1
+ {"version":3,"file":"useSentinelsFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useSentinelsFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,oBAAoB,EAAsB,MAAM,yBAAyB,CAAA;AAClF,OAAO,EAAsB,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE5E,eAAO,MAAM,oBAAoB,YACtB,YAAY,WACZ,oBAAoB,KAC5B,CAAC,gBAAgB,EAAE,GAAG,IAAI,GAAG,SAAS,EAAE,KAAK,GAAG,SAAS,CAkB3D,CAAA"}
package/package.json CHANGED
@@ -10,23 +10,22 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-async-effect": "^2.17.6",
14
- "@xylabs/react-shared": "^2.17.6",
15
- "@xyo-network/account-model": "^2.65.0",
16
- "@xyo-network/archivist": "^2.65.0",
17
- "@xyo-network/boundwitness-model": "^2.65.0",
18
- "@xyo-network/core": "^2.65.0",
19
- "@xyo-network/module": "^2.65.0",
20
- "@xyo-network/react-module": "^2.57.0",
21
- "@xyo-network/react-node": "^2.57.0",
22
- "@xyo-network/react-shared": "^2.57.0",
23
- "@xyo-network/react-witness": "^2.57.0",
24
- "@xyo-network/sentinel": "^2.65.0",
25
- "@xyo-network/witness": "^2.65.0"
13
+ "@xylabs/react-async-effect": "~2.17.6",
14
+ "@xylabs/react-shared": "~2.17.6",
15
+ "@xyo-network/account-model": "~2.66.5",
16
+ "@xyo-network/archivist": "~2.66.5",
17
+ "@xyo-network/boundwitness-model": "~2.66.5",
18
+ "@xyo-network/module": "~2.66.5",
19
+ "@xyo-network/module-model": "~2.66.5",
20
+ "@xyo-network/react-node": "~2.57.1",
21
+ "@xyo-network/react-shared": "~2.57.1",
22
+ "@xyo-network/react-witness": "~2.57.1",
23
+ "@xyo-network/sentinel": "~2.66.5",
24
+ "@xyo-network/witness": "~2.66.5"
26
25
  },
27
26
  "devDependencies": {
28
- "@xylabs/ts-scripts-yarn3": "^2.18.10",
29
- "@xylabs/tsconfig-react": "^2.18.10",
27
+ "@xylabs/ts-scripts-yarn3": "^2.18.11",
28
+ "@xylabs/tsconfig-react": "^2.18.11",
30
29
  "typescript": "^5.1.6"
31
30
  },
32
31
  "peerDependencies": {
@@ -81,5 +80,5 @@
81
80
  },
82
81
  "sideEffects": false,
83
82
  "types": "dist/types/index.d.ts",
84
- "version": "2.57.0"
83
+ "version": "2.57.1"
85
84
  }
@@ -5,7 +5,7 @@ import { BoundWitness } from '@xyo-network/boundwitness-model'
5
5
  import { ModuleFilter } from '@xyo-network/module'
6
6
  import { useWitnessesFromNode } from '@xyo-network/react-witness'
7
7
  import { MemorySentinel, SentinelConfig, SentinelConfigSchema } from '@xyo-network/sentinel'
8
- import { WitnessModule } from '@xyo-network/witness'
8
+ import { WitnessInstance } from '@xyo-network/witness'
9
9
  import { useEffect, useState } from 'react'
10
10
 
11
11
  import { SentinelContext } from './Context'
@@ -20,7 +20,7 @@ export interface SentinelProviderProps {
20
20
  filter?: ModuleFilter
21
21
  name?: string
22
22
  required?: boolean
23
- witnesses?: WitnessModule[]
23
+ witnesses?: WitnessInstance[]
24
24
  }
25
25
 
26
26
  export const SentinelProvider: React.FC<WithChildren<SentinelProviderProps>> = ({ account, archivist, children, filter, name, required = false }) => {
@@ -1,3 +1 @@
1
1
  export * from './node'
2
- export * from './useWrappedSentinel'
3
- export * from './useWrappedSentinels'
@@ -1,4 +1,2 @@
1
1
  export * from './useSentinelFromNode'
2
2
  export * from './useSentinelsFromNode'
3
- export * from './useWrappedSentinelFromNode'
4
- export * from './useWrappedSentinelsFromNode'
@@ -1,6 +1,14 @@
1
- import { Logger } from '@xyo-network/core'
2
- import { useModuleFromNode } from '@xyo-network/react-node'
3
- import { SentinelModule } from '@xyo-network/sentinel'
1
+ import { ModuleFromNodeConfig, useModuleFromNode } from '@xyo-network/react-node'
2
+ import { asSentinelInstance, SentinelInstance } from '@xyo-network/sentinel'
4
3
 
5
- export const useSentinelFromNode = (nameOrAddress?: string, up?: boolean, logger?: Logger) =>
6
- useModuleFromNode<SentinelModule>(nameOrAddress, up, logger)
4
+ export const useSentinelFromNode = (
5
+ nameOrAddress?: string,
6
+ config: ModuleFromNodeConfig = {},
7
+ ): [SentinelInstance | null | undefined, Error | undefined] => {
8
+ const [module, error] = useModuleFromNode(nameOrAddress, config)
9
+ const instance = asSentinelInstance(module)
10
+ if (module && !instance) {
11
+ return [null, Error('Resolved mode is not a SentinelInstance')]
12
+ }
13
+ return [instance, error]
14
+ }
@@ -1,6 +1,26 @@
1
- import { Logger } from '@xyo-network/core'
2
- import { ModuleFilter } from '@xyo-network/module'
3
- import { useModulesFromNode } from '@xyo-network/react-node'
4
- import { SentinelModule } from '@xyo-network/sentinel'
1
+ import { ModuleFilter } from '@xyo-network/module-model'
2
+ import { ModuleFromNodeConfig, useModulesFromNode } from '@xyo-network/react-node'
3
+ import { isSentinelInstance, SentinelInstance } from '@xyo-network/sentinel'
5
4
 
6
- export const useSentinelsFromNode = (filter?: ModuleFilter, up?: boolean, logger?: Logger) => useModulesFromNode<SentinelModule>(filter, up, logger)
5
+ export const useSentinelsFromNode = (
6
+ filter?: ModuleFilter,
7
+ config?: ModuleFromNodeConfig,
8
+ ): [SentinelInstance[] | null | undefined, Error | undefined] => {
9
+ const [modules, error] = useModulesFromNode(filter, config)
10
+ if (error) {
11
+ return [null, error]
12
+ }
13
+ if (modules) {
14
+ return [
15
+ modules.reduce<SentinelInstance[]>((prev, module) => {
16
+ if (isSentinelInstance(module)) {
17
+ prev.push(module)
18
+ }
19
+ return prev
20
+ }, []),
21
+ undefined,
22
+ ]
23
+ } else {
24
+ return [modules, error]
25
+ }
26
+ }
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useWrappedSentinelFromNode = void 0;
4
- const react_node_1 = require("@xyo-network/react-node");
5
- const sentinel_1 = require("@xyo-network/sentinel");
6
- exports.useWrappedSentinelFromNode = react_node_1.WrappedModuleFromNodeHookFactory.create(sentinel_1.SentinelWrapper, 'useWrappedSentinelFromNode');
7
- //# sourceMappingURL=useWrappedSentinelFromNode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinelFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useWrappedSentinelFromNode.tsx"],"names":[],"mappings":";;;AAAA,wDAA0E;AAC1E,oDAAuD;AAE1C,QAAA,0BAA0B,GAAG,6CAAgC,CAAC,MAAM,CAAC,0BAAe,EAAE,4BAA4B,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useWrappedSentinelsFromNode = void 0;
4
- const react_node_1 = require("@xyo-network/react-node");
5
- const sentinel_1 = require("@xyo-network/sentinel");
6
- exports.useWrappedSentinelsFromNode = react_node_1.WrappedModulesFromNodeHookFactory.create(sentinel_1.SentinelWrapper, 'useWrappedSentinelsFromNode');
7
- //# sourceMappingURL=useWrappedSentinelsFromNode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinelsFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useWrappedSentinelsFromNode.tsx"],"names":[],"mappings":";;;AAAA,wDAA2E;AAC3E,oDAAuD;AAE1C,QAAA,2BAA2B,GAAG,8CAAiC,CAAC,MAAM,CAAC,0BAAe,EAAE,6BAA6B,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useWrappedSentinel = void 0;
4
- const react_module_1 = require("@xyo-network/react-module");
5
- const sentinel_1 = require("@xyo-network/sentinel");
6
- exports.useWrappedSentinel = react_module_1.WrappedModuleHookFactory.create(sentinel_1.SentinelWrapper);
7
- //# sourceMappingURL=useWrappedSentinel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinel.js","sourceRoot":"","sources":["../../../src/hooks/useWrappedSentinel.tsx"],"names":[],"mappings":";;;AAAA,4DAAoE;AACpE,oDAAuD;AAE1C,QAAA,kBAAkB,GAAG,uCAAwB,CAAC,MAAM,CAAC,0BAAe,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useWrappedSentinels = void 0;
4
- const react_module_1 = require("@xyo-network/react-module");
5
- const sentinel_1 = require("@xyo-network/sentinel");
6
- exports.useWrappedSentinels = react_module_1.WrappedModulesHookFactory.create(sentinel_1.SentinelWrapper);
7
- //# sourceMappingURL=useWrappedSentinels.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinels.js","sourceRoot":"","sources":["../../../src/hooks/useWrappedSentinels.tsx"],"names":[],"mappings":";;;AAAA,4DAAqE;AACrE,oDAAuD;AAE1C,QAAA,mBAAmB,GAAG,wCAAyB,CAAC,MAAM,CAAC,0BAAe,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import { WrappedModuleFromNodeHookFactory } from '@xyo-network/react-node';
2
- import { SentinelWrapper } from '@xyo-network/sentinel';
3
- export const useWrappedSentinelFromNode = WrappedModuleFromNodeHookFactory.create(SentinelWrapper, 'useWrappedSentinelFromNode');
4
- //# sourceMappingURL=useWrappedSentinelFromNode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinelFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useWrappedSentinelFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,0BAA0B,GAAG,gCAAgC,CAAC,MAAM,CAAC,eAAe,EAAE,4BAA4B,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import { WrappedModulesFromNodeHookFactory } from '@xyo-network/react-node';
2
- import { SentinelWrapper } from '@xyo-network/sentinel';
3
- export const useWrappedSentinelsFromNode = WrappedModulesFromNodeHookFactory.create(SentinelWrapper, 'useWrappedSentinelsFromNode');
4
- //# sourceMappingURL=useWrappedSentinelsFromNode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinelsFromNode.js","sourceRoot":"","sources":["../../../../src/hooks/node/useWrappedSentinelsFromNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,2BAA2B,GAAG,iCAAiC,CAAC,MAAM,CAAC,eAAe,EAAE,6BAA6B,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import { WrappedModuleHookFactory } from '@xyo-network/react-module';
2
- import { SentinelWrapper } from '@xyo-network/sentinel';
3
- export const useWrappedSentinel = WrappedModuleHookFactory.create(SentinelWrapper);
4
- //# sourceMappingURL=useWrappedSentinel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinel.js","sourceRoot":"","sources":["../../../src/hooks/useWrappedSentinel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import { WrappedModulesHookFactory } from '@xyo-network/react-module';
2
- import { SentinelWrapper } from '@xyo-network/sentinel';
3
- export const useWrappedSentinels = WrappedModulesHookFactory.create(SentinelWrapper);
4
- //# sourceMappingURL=useWrappedSentinels.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinels.js","sourceRoot":"","sources":["../../../src/hooks/useWrappedSentinels.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,mBAAmB,GAAG,yBAAyB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA"}
@@ -1,58 +0,0 @@
1
- import { SentinelWrapper } from '@xyo-network/sentinel';
2
- export declare const useWrappedSentinelFromNode: (nameOrAddress?: string | undefined, wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined, up?: boolean | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [SentinelWrapper<import("@xyo-network/sentinel").SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
3
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
4
- readonly name?: string | undefined;
5
- readonly paging?: Record<string, {
6
- size?: number | undefined;
7
- }> | undefined;
8
- readonly schema: string;
9
- readonly security?: {
10
- readonly allowAnonymous?: boolean | undefined;
11
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
12
- readonly disallowed?: Record<string, string[]> | undefined;
13
- } | undefined;
14
- readonly storeQueries?: boolean | undefined;
15
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
16
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
17
- readonly name?: string | undefined;
18
- readonly paging?: Record<string, {
19
- size?: number | undefined;
20
- }> | undefined;
21
- readonly schema: "network.xyo.sentinel.config";
22
- readonly security?: {
23
- readonly allowAnonymous?: boolean | undefined;
24
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
25
- readonly disallowed?: Record<string, string[]> | undefined;
26
- } | undefined;
27
- readonly storeQueries?: boolean | undefined;
28
- } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
29
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
30
- readonly name?: string | undefined;
31
- readonly paging?: Record<string, {
32
- size?: number | undefined;
33
- }> | undefined;
34
- readonly schema: string;
35
- readonly security?: {
36
- readonly allowAnonymous?: boolean | undefined;
37
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
38
- readonly disallowed?: Record<string, string[]> | undefined;
39
- } | undefined;
40
- readonly storeQueries?: boolean | undefined;
41
- } & Omit<{
42
- archivists?: string[] | undefined;
43
- schema: string;
44
- }, "schema"> & {
45
- schema: string;
46
- } & {
47
- schema: "network.xyo.sentinel.config";
48
- witnesses?: string[] | undefined;
49
- } & {
50
- schema: string;
51
- }, "schema"> & {
52
- schema: "network.xyo.sentinel.config";
53
- }, "schema"> & {
54
- schema: string;
55
- }, "schema"> & {
56
- schema: string;
57
- }, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData>> | undefined, Error | undefined];
58
- //# sourceMappingURL=useWrappedSentinelFromNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinelFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useWrappedSentinelFromNode.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wGAAyF,CAAA"}
@@ -1,58 +0,0 @@
1
- import { SentinelWrapper } from '@xyo-network/sentinel';
2
- export declare const useWrappedSentinelsFromNode: (account?: import("@xyo-network/wallet-model").WalletInstance | undefined, up?: boolean | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [SentinelWrapper<import("@xyo-network/sentinel").SentinelModule<import("@xyo-network/sentinel").SentinelParams<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
3
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
4
- readonly name?: string | undefined;
5
- readonly paging?: Record<string, {
6
- size?: number | undefined;
7
- }> | undefined;
8
- readonly schema: string;
9
- readonly security?: {
10
- readonly allowAnonymous?: boolean | undefined;
11
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
12
- readonly disallowed?: Record<string, string[]> | undefined;
13
- } | undefined;
14
- readonly storeQueries?: boolean | undefined;
15
- } & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
16
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
17
- readonly name?: string | undefined;
18
- readonly paging?: Record<string, {
19
- size?: number | undefined;
20
- }> | undefined;
21
- readonly schema: "network.xyo.sentinel.config";
22
- readonly security?: {
23
- readonly allowAnonymous?: boolean | undefined;
24
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
25
- readonly disallowed?: Record<string, string[]> | undefined;
26
- } | undefined;
27
- readonly storeQueries?: boolean | undefined;
28
- } & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
29
- readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
30
- readonly name?: string | undefined;
31
- readonly paging?: Record<string, {
32
- size?: number | undefined;
33
- }> | undefined;
34
- readonly schema: string;
35
- readonly security?: {
36
- readonly allowAnonymous?: boolean | undefined;
37
- readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
38
- readonly disallowed?: Record<string, string[]> | undefined;
39
- } | undefined;
40
- readonly storeQueries?: boolean | undefined;
41
- } & Omit<{
42
- archivists?: string[] | undefined;
43
- schema: string;
44
- }, "schema"> & {
45
- schema: string;
46
- } & {
47
- schema: "network.xyo.sentinel.config";
48
- witnesses?: string[] | undefined;
49
- } & {
50
- schema: string;
51
- }, "schema"> & {
52
- schema: "network.xyo.sentinel.config";
53
- }, "schema"> & {
54
- schema: string;
55
- }, "schema"> & {
56
- schema: string;
57
- }, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData>>[] | undefined, Error | undefined];
58
- //# sourceMappingURL=useWrappedSentinelsFromNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWrappedSentinelsFromNode.d.ts","sourceRoot":"","sources":["../../../../src/hooks/node/useWrappedSentinelsFromNode.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0GAA2F,CAAA"}