@xyo-network/react-sentinel 2.56.2 → 2.56.4
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/contexts/Provider.js +7 -8
- package/dist/cjs/contexts/Provider.js.map +1 -1
- package/dist/cjs/contexts/State.js +1 -1
- package/dist/cjs/contexts/State.js.map +1 -1
- package/dist/cjs/hooks/index.js +3 -2
- package/dist/cjs/hooks/index.js.map +1 -1
- package/dist/cjs/hooks/node/index.js +8 -0
- package/dist/cjs/hooks/node/index.js.map +1 -0
- package/dist/cjs/hooks/node/useSentinelFromNode.js +7 -0
- package/dist/cjs/hooks/node/useSentinelFromNode.js.map +1 -0
- package/dist/cjs/hooks/node/useSentinelsFromNode.js +7 -0
- package/dist/cjs/hooks/node/useSentinelsFromNode.js.map +1 -0
- package/dist/cjs/hooks/node/useWrappedSentinelFromNode.js +7 -0
- package/dist/cjs/hooks/node/useWrappedSentinelFromNode.js.map +1 -0
- package/dist/cjs/hooks/node/useWrappedSentinelsFromNode.js +7 -0
- package/dist/cjs/hooks/node/useWrappedSentinelsFromNode.js.map +1 -0
- package/dist/cjs/hooks/useWrappedSentinel.js +7 -0
- package/dist/cjs/hooks/useWrappedSentinel.js.map +1 -0
- package/dist/cjs/hooks/useWrappedSentinels.js +7 -0
- package/dist/cjs/hooks/useWrappedSentinels.js.map +1 -0
- package/dist/docs.json +4812 -425
- package/dist/esm/contexts/Provider.js +6 -7
- package/dist/esm/contexts/Provider.js.map +1 -1
- package/dist/esm/hooks/index.js +3 -2
- package/dist/esm/hooks/index.js.map +1 -1
- package/dist/esm/hooks/node/index.js +5 -0
- package/dist/esm/hooks/node/index.js.map +1 -0
- package/dist/esm/hooks/node/useSentinelFromNode.js +3 -0
- package/dist/esm/hooks/node/useSentinelFromNode.js.map +1 -0
- package/dist/esm/hooks/node/useSentinelsFromNode.js +3 -0
- package/dist/esm/hooks/node/useSentinelsFromNode.js.map +1 -0
- package/dist/esm/hooks/node/useWrappedSentinelFromNode.js +4 -0
- package/dist/esm/hooks/node/useWrappedSentinelFromNode.js.map +1 -0
- package/dist/esm/hooks/node/useWrappedSentinelsFromNode.js +4 -0
- package/dist/esm/hooks/node/useWrappedSentinelsFromNode.js.map +1 -0
- package/dist/esm/hooks/useWrappedSentinel.js +4 -0
- package/dist/esm/hooks/useWrappedSentinel.js.map +1 -0
- package/dist/esm/hooks/useWrappedSentinels.js +4 -0
- package/dist/esm/hooks/useWrappedSentinels.js.map +1 -0
- package/dist/types/contexts/Provider.d.ts +4 -1
- package/dist/types/contexts/Provider.d.ts.map +1 -1
- package/dist/types/contexts/use.d.ts +50 -1
- package/dist/types/contexts/use.d.ts.map +1 -1
- package/dist/types/hooks/index.d.ts +3 -2
- package/dist/types/hooks/index.d.ts.map +1 -1
- package/dist/types/hooks/node/index.d.ts +5 -0
- package/dist/types/hooks/node/index.d.ts.map +1 -0
- package/dist/types/hooks/node/useSentinelFromNode.d.ts +54 -0
- package/dist/types/hooks/node/useSentinelFromNode.d.ts.map +1 -0
- package/dist/types/hooks/node/useSentinelsFromNode.d.ts +54 -0
- package/dist/types/hooks/node/useSentinelsFromNode.d.ts.map +1 -0
- package/dist/types/hooks/node/useWrappedSentinelFromNode.d.ts +52 -0
- package/dist/types/hooks/node/useWrappedSentinelFromNode.d.ts.map +1 -0
- package/dist/types/hooks/node/useWrappedSentinelsFromNode.d.ts +52 -0
- package/dist/types/hooks/node/useWrappedSentinelsFromNode.d.ts.map +1 -0
- package/dist/types/hooks/useWrappedSentinel.d.ts +101 -0
- package/dist/types/hooks/useWrappedSentinel.d.ts.map +1 -0
- package/dist/types/hooks/useWrappedSentinels.d.ts +101 -0
- package/dist/types/hooks/useWrappedSentinels.d.ts.map +1 -0
- package/package.json +14 -10
- package/src/contexts/Provider.tsx +9 -15
- package/src/hooks/index.ts +3 -2
- package/src/hooks/node/index.ts +4 -0
- package/src/hooks/node/useSentinelFromNode.tsx +7 -0
- package/src/hooks/node/useSentinelsFromNode.tsx +6 -0
- package/src/hooks/node/useWrappedSentinelFromNode.tsx +4 -0
- package/src/hooks/node/useWrappedSentinelsFromNode.tsx +4 -0
- package/src/hooks/useWrappedSentinel.tsx +4 -0
- package/src/hooks/useWrappedSentinels.tsx +4 -0
- package/dist/cjs/hooks/useNodeSentinel.js +0 -7
- package/dist/cjs/hooks/useNodeSentinel.js.map +0 -1
- package/dist/cjs/hooks/useNodeSentinels.js +0 -7
- package/dist/cjs/hooks/useNodeSentinels.js.map +0 -1
- package/dist/esm/hooks/useNodeSentinel.js +0 -4
- package/dist/esm/hooks/useNodeSentinel.js.map +0 -1
- package/dist/esm/hooks/useNodeSentinels.js +0 -4
- package/dist/esm/hooks/useNodeSentinels.js.map +0 -1
- package/dist/types/hooks/useNodeSentinel.d.ts +0 -3
- package/dist/types/hooks/useNodeSentinel.d.ts.map +0 -1
- package/dist/types/hooks/useNodeSentinels.d.ts +0 -3
- package/dist/types/hooks/useNodeSentinels.d.ts.map +0 -1
- package/src/hooks/useNodeSentinel.tsx +0 -4
- package/src/hooks/useNodeSentinels.tsx +0 -4
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { SentinelWrapper } from '@xyo-network/sentinel';
|
|
2
|
+
export declare const useWrappedSentinels: (modules?: 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: "network.xyo.sentinel.config";
|
|
46
|
+
witnesses?: string[] | undefined;
|
|
47
|
+
} & {
|
|
48
|
+
schema: string;
|
|
49
|
+
}, "schema">, "schema"> & {
|
|
50
|
+
schema: string;
|
|
51
|
+
}, "schema">, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData>[] | undefined, account?: import("@xyo-network/account-model").AccountInstance | 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 & {
|
|
52
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
53
|
+
readonly name?: string | undefined;
|
|
54
|
+
readonly paging?: Record<string, {
|
|
55
|
+
size?: number | undefined;
|
|
56
|
+
}> | undefined;
|
|
57
|
+
readonly schema: string;
|
|
58
|
+
readonly security?: {
|
|
59
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
60
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
61
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
readonly storeQueries?: boolean | undefined;
|
|
64
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
65
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
66
|
+
readonly name?: string | undefined;
|
|
67
|
+
readonly paging?: Record<string, {
|
|
68
|
+
size?: number | undefined;
|
|
69
|
+
}> | undefined;
|
|
70
|
+
readonly schema: "network.xyo.sentinel.config";
|
|
71
|
+
readonly security?: {
|
|
72
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
73
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
74
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
readonly storeQueries?: boolean | undefined;
|
|
77
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
78
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
79
|
+
readonly name?: string | undefined;
|
|
80
|
+
readonly paging?: Record<string, {
|
|
81
|
+
size?: number | undefined;
|
|
82
|
+
}> | undefined;
|
|
83
|
+
readonly schema: string;
|
|
84
|
+
readonly security?: {
|
|
85
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
86
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
87
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
readonly storeQueries?: boolean | undefined;
|
|
90
|
+
} & Omit<{
|
|
91
|
+
archivists?: string[] | undefined;
|
|
92
|
+
schema: string;
|
|
93
|
+
}, "schema"> & {
|
|
94
|
+
schema: "network.xyo.sentinel.config";
|
|
95
|
+
witnesses?: string[] | undefined;
|
|
96
|
+
} & {
|
|
97
|
+
schema: string;
|
|
98
|
+
}, "schema">, "schema"> & {
|
|
99
|
+
schema: string;
|
|
100
|
+
}, "schema">, undefined>, import("@xyo-network/sentinel").SentinelModuleEventData>>[] | undefined, Error | undefined];
|
|
101
|
+
//# sourceMappingURL=useWrappedSentinels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWrappedSentinels.d.ts","sourceRoot":"","sources":["../../../src/hooks/useWrappedSentinels.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qHAAoD,CAAA"}
|
package/package.json
CHANGED
|
@@ -12,17 +12,21 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/react-async-effect": "^2.17.6",
|
|
14
14
|
"@xylabs/react-shared": "^2.17.6",
|
|
15
|
-
"@xyo-network/account-model": "^2.64.
|
|
16
|
-
"@xyo-network/archivist": "^2.64.
|
|
17
|
-
"@xyo-network/boundwitness-model": "^2.64.
|
|
18
|
-
"@xyo-network/
|
|
19
|
-
"@xyo-network/
|
|
20
|
-
"@xyo-network/
|
|
21
|
-
"@xyo-network/
|
|
15
|
+
"@xyo-network/account-model": "^2.64.3",
|
|
16
|
+
"@xyo-network/archivist": "^2.64.3",
|
|
17
|
+
"@xyo-network/boundwitness-model": "^2.64.3",
|
|
18
|
+
"@xyo-network/core": "^2.64.3",
|
|
19
|
+
"@xyo-network/module": "^2.64.3",
|
|
20
|
+
"@xyo-network/react-module": "^2.56.4",
|
|
21
|
+
"@xyo-network/react-node": "^2.56.4",
|
|
22
|
+
"@xyo-network/react-shared": "^2.56.4",
|
|
23
|
+
"@xyo-network/react-witness": "^2.56.4",
|
|
24
|
+
"@xyo-network/sentinel": "^2.64.3",
|
|
25
|
+
"@xyo-network/witness": "^2.64.3"
|
|
22
26
|
},
|
|
23
27
|
"devDependencies": {
|
|
24
|
-
"@xylabs/ts-scripts-yarn3": "^2.18.
|
|
25
|
-
"@xylabs/tsconfig-react": "^2.18.
|
|
28
|
+
"@xylabs/ts-scripts-yarn3": "^2.18.7",
|
|
29
|
+
"@xylabs/tsconfig-react": "^2.18.7",
|
|
26
30
|
"typescript": "^5.1.6"
|
|
27
31
|
},
|
|
28
32
|
"peerDependencies": {
|
|
@@ -77,5 +81,5 @@
|
|
|
77
81
|
},
|
|
78
82
|
"sideEffects": false,
|
|
79
83
|
"types": "dist/types/index.d.ts",
|
|
80
|
-
"version": "2.56.
|
|
84
|
+
"version": "2.56.4"
|
|
81
85
|
}
|
|
@@ -2,7 +2,8 @@ import { useAsyncEffect } from '@xylabs/react-async-effect'
|
|
|
2
2
|
import { WithChildren } from '@xylabs/react-shared'
|
|
3
3
|
import { AccountInstance } from '@xyo-network/account-model'
|
|
4
4
|
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
5
|
-
import {
|
|
5
|
+
import { ModuleFilter } from '@xyo-network/module'
|
|
6
|
+
import { useWitnessesFromNode } from '@xyo-network/react-witness'
|
|
6
7
|
import { MemorySentinel, SentinelConfig, SentinelConfigSchema } from '@xyo-network/sentinel'
|
|
7
8
|
import { WitnessModule } from '@xyo-network/witness'
|
|
8
9
|
import { useEffect, useState } from 'react'
|
|
@@ -16,30 +17,23 @@ export interface SentinelProviderProps {
|
|
|
16
17
|
/** @deprecated - sentinel no longer uses archive but relies on an archivist */
|
|
17
18
|
archive?: string
|
|
18
19
|
archivist?: string
|
|
20
|
+
filter?: ModuleFilter
|
|
19
21
|
name?: string
|
|
20
22
|
required?: boolean
|
|
21
|
-
witnesses?:
|
|
23
|
+
witnesses?: WitnessModule[]
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
export const SentinelProvider: React.FC<WithChildren<SentinelProviderProps>> = ({
|
|
25
|
-
account,
|
|
26
|
-
archivist,
|
|
27
|
-
children,
|
|
28
|
-
name,
|
|
29
|
-
witnesses = [],
|
|
30
|
-
required = false,
|
|
31
|
-
}) => {
|
|
32
|
-
const [node] = useNode()
|
|
26
|
+
export const SentinelProvider: React.FC<WithChildren<SentinelProviderProps>> = ({ account, archivist, children, filter, name, required = false }) => {
|
|
33
27
|
const [sentinel, setSentinel] = useState<MemorySentinel>()
|
|
34
28
|
const [history, setHistory] = useState<BoundWitness[]>()
|
|
35
29
|
const [progress, setProgress] = useState<SentinelReportProgress>({})
|
|
36
30
|
const [status, setStatus] = useState(SentinelReportStatus.Idle)
|
|
37
31
|
const [reportingErrors, setReportingErrors] = useState<Error[]>()
|
|
32
|
+
const [witnesses] = useWitnessesFromNode(filter)
|
|
38
33
|
|
|
39
34
|
useAsyncEffect(
|
|
40
35
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
41
36
|
async (mounted) => {
|
|
42
|
-
const witnessModules = (await node?.resolve({ address: witnesses })) as WitnessModule[]
|
|
43
37
|
const sentinel = await MemorySentinel.create({
|
|
44
38
|
account,
|
|
45
39
|
config: {
|
|
@@ -47,7 +41,7 @@ export const SentinelProvider: React.FC<WithChildren<SentinelProviderProps>> = (
|
|
|
47
41
|
name,
|
|
48
42
|
|
|
49
43
|
schema: SentinelConfigSchema,
|
|
50
|
-
witnesses,
|
|
44
|
+
witnesses: witnesses?.map((module) => module.address),
|
|
51
45
|
} as SentinelConfig,
|
|
52
46
|
})
|
|
53
47
|
const offCallbacks: (() => void)[] = []
|
|
@@ -71,7 +65,7 @@ export const SentinelProvider: React.FC<WithChildren<SentinelProviderProps>> = (
|
|
|
71
65
|
}
|
|
72
66
|
}),
|
|
73
67
|
)
|
|
74
|
-
|
|
68
|
+
witnesses?.forEach((witness) => {
|
|
75
69
|
offCallbacks.push(
|
|
76
70
|
witness.on('reportEnd', ({ module, errors }) => {
|
|
77
71
|
const witnesses = progress.witnesses ?? {}
|
|
@@ -112,7 +106,7 @@ export const SentinelProvider: React.FC<WithChildren<SentinelProviderProps>> = (
|
|
|
112
106
|
}
|
|
113
107
|
},
|
|
114
108
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
115
|
-
[account, archivist, witnesses
|
|
109
|
+
[account, archivist, witnesses],
|
|
116
110
|
)
|
|
117
111
|
|
|
118
112
|
useEffect(() => {
|
package/src/hooks/index.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './node'
|
|
2
|
+
export * from './useWrappedSentinel'
|
|
3
|
+
export * from './useWrappedSentinels'
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Logger } from '@xyo-network/core'
|
|
2
|
+
import { ModuleFilter } from '@xyo-network/module'
|
|
3
|
+
import { useModuleFromNode } from '@xyo-network/react-node'
|
|
4
|
+
import { SentinelModule } from '@xyo-network/sentinel'
|
|
5
|
+
|
|
6
|
+
export const useSentinelFromNode = (nameOrAddressOrFilter?: string | ModuleFilter, logger?: Logger) =>
|
|
7
|
+
useModuleFromNode<SentinelModule>(nameOrAddressOrFilter, logger)
|
|
@@ -0,0 +1,6 @@
|
|
|
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'
|
|
5
|
+
|
|
6
|
+
export const useSentinelsFromNode = (filter?: ModuleFilter, logger?: Logger) => useModulesFromNode<SentinelModule>(filter, logger)
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useNodeSentinel = void 0;
|
|
4
|
-
const react_node_1 = require("@xyo-network/react-node");
|
|
5
|
-
const sentinel_1 = require("@xyo-network/sentinel");
|
|
6
|
-
exports.useNodeSentinel = (0, react_node_1.WrappedNodeModuleHookFactory)(sentinel_1.SentinelWrapper, 'useNodeSentinel');
|
|
7
|
-
//# sourceMappingURL=useNodeSentinel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNodeSentinel.js","sourceRoot":"","sources":["../../../src/hooks/useNodeSentinel.tsx"],"names":[],"mappings":";;;AAAA,wDAAsE;AACtE,oDAAuD;AAE1C,QAAA,eAAe,GAAG,IAAA,yCAA4B,EAAC,0BAAe,EAAE,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useSentinels = void 0;
|
|
4
|
-
const react_node_1 = require("@xyo-network/react-node");
|
|
5
|
-
const sentinel_1 = require("@xyo-network/sentinel");
|
|
6
|
-
exports.useSentinels = (0, react_node_1.WrappedNodeModulesHookFactory)(sentinel_1.SentinelWrapper, 'useSentinel');
|
|
7
|
-
//# sourceMappingURL=useNodeSentinels.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNodeSentinels.js","sourceRoot":"","sources":["../../../src/hooks/useNodeSentinels.tsx"],"names":[],"mappings":";;;AAAA,wDAAuE;AACvE,oDAAuD;AAE1C,QAAA,YAAY,GAAG,IAAA,0CAA6B,EAAC,0BAAe,EAAE,aAAa,CAAC,CAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { WrappedNodeModuleHookFactory } from '@xyo-network/react-node';
|
|
2
|
-
import { SentinelWrapper } from '@xyo-network/sentinel';
|
|
3
|
-
export const useNodeSentinel = WrappedNodeModuleHookFactory(SentinelWrapper, 'useNodeSentinel');
|
|
4
|
-
//# sourceMappingURL=useNodeSentinel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNodeSentinel.js","sourceRoot":"","sources":["../../../src/hooks/useNodeSentinel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,eAAe,GAAG,4BAA4B,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNodeSentinels.js","sourceRoot":"","sources":["../../../src/hooks/useNodeSentinels.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,YAAY,GAAG,6BAA6B,CAAC,eAAe,EAAE,aAAa,CAAC,CAAA"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { SentinelWrapper } from '@xyo-network/sentinel';
|
|
2
|
-
export declare const useNodeSentinel: (nameOrAddress?: string | undefined, wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [SentinelWrapper<import("@xyo-network/sentinel").SentinelModule> | undefined, Error | undefined];
|
|
3
|
-
//# sourceMappingURL=useNodeSentinel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNodeSentinel.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNodeSentinel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,eAAO,MAAM,eAAe,4QAAmE,CAAA"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { SentinelWrapper } from '@xyo-network/sentinel';
|
|
2
|
-
export declare const useSentinels: (account?: import("@xyo-network/wallet-model").WalletInstance | undefined, logger?: import("@xyo-network/core").Logger | undefined) => [SentinelWrapper<import("@xyo-network/sentinel").SentinelModule>[] | undefined, Error | undefined];
|
|
3
|
-
//# sourceMappingURL=useNodeSentinels.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useNodeSentinels.d.ts","sourceRoot":"","sources":["../../../src/hooks/useNodeSentinels.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,eAAO,MAAM,YAAY,2OAAgE,CAAA"}
|