@xyo-network/react-node 2.35.11 → 2.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/contexts/useArchivistModule.d.ts +1 -176
- package/dist/cjs/contexts/useArchivistModule.d.ts.map +1 -1
- package/dist/cjs/contexts/useArchivistModules.d.ts +1 -176
- package/dist/cjs/contexts/useArchivistModules.d.ts.map +1 -1
- package/dist/cjs/contexts/useModule.d.ts +6 -28
- package/dist/cjs/contexts/useModule.d.ts.map +1 -1
- package/dist/cjs/contexts/useModule.js +1 -1
- package/dist/cjs/contexts/useModule.js.map +1 -1
- package/dist/cjs/contexts/useModules.d.ts +6 -28
- package/dist/cjs/contexts/useModules.d.ts.map +1 -1
- package/dist/cjs/contexts/useModules.js +1 -1
- package/dist/cjs/contexts/useModules.js.map +1 -1
- package/dist/docs.json +439 -1984
- package/dist/esm/contexts/useArchivistModule.d.ts +1 -176
- package/dist/esm/contexts/useArchivistModule.d.ts.map +1 -1
- package/dist/esm/contexts/useArchivistModules.d.ts +1 -176
- package/dist/esm/contexts/useArchivistModules.d.ts.map +1 -1
- package/dist/esm/contexts/useModule.d.ts +6 -28
- package/dist/esm/contexts/useModule.d.ts.map +1 -1
- package/dist/esm/contexts/useModule.js +1 -1
- package/dist/esm/contexts/useModule.js.map +1 -1
- package/dist/esm/contexts/useModules.d.ts +6 -28
- package/dist/esm/contexts/useModules.d.ts.map +1 -1
- package/dist/esm/contexts/useModules.js +1 -1
- package/dist/esm/contexts/useModules.js.map +1 -1
- package/package.json +2 -2
- package/src/contexts/useModule.ts +1 -1
- package/src/contexts/useModules.ts +1 -1
|
@@ -1,178 +1,3 @@
|
|
|
1
1
|
import { XyoArchivistWrapper } from '@xyo-network/archivist';
|
|
2
|
-
export declare const useArchivistModule: (address?: string) => XyoArchivistWrapper
|
|
3
|
-
schema: string;
|
|
4
|
-
} & {
|
|
5
|
-
previousHash?: string | undefined;
|
|
6
|
-
sources?: string[] | undefined;
|
|
7
|
-
timestamp?: number | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
schema: "network.xyo.query.module.subscribe";
|
|
10
|
-
address: string;
|
|
11
|
-
filter?: import("@xyo-network/module").XyoModuleSubscribeFilter | null | undefined;
|
|
12
|
-
maxQueue?: number | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
budget?: number | undefined;
|
|
15
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
16
|
-
minBid?: number | undefined;
|
|
17
|
-
address?: string | [string] | undefined;
|
|
18
|
-
}) | ({
|
|
19
|
-
schema: string;
|
|
20
|
-
} & {
|
|
21
|
-
previousHash?: string | undefined;
|
|
22
|
-
sources?: string[] | undefined;
|
|
23
|
-
timestamp?: number | undefined;
|
|
24
|
-
} & {
|
|
25
|
-
schema: "network.xyo.query.module.discover";
|
|
26
|
-
} & {
|
|
27
|
-
budget?: number | undefined;
|
|
28
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
29
|
-
minBid?: number | undefined;
|
|
30
|
-
address?: string | [string] | undefined;
|
|
31
|
-
}) | ({
|
|
32
|
-
schema: string;
|
|
33
|
-
} & {
|
|
34
|
-
previousHash?: string | undefined;
|
|
35
|
-
sources?: string[] | undefined;
|
|
36
|
-
timestamp?: number | undefined;
|
|
37
|
-
} & {
|
|
38
|
-
schema: "network.xyo.query.module.initialize";
|
|
39
|
-
config?: ({
|
|
40
|
-
schema: string;
|
|
41
|
-
} & {
|
|
42
|
-
previousHash?: string | undefined;
|
|
43
|
-
sources?: string[] | undefined;
|
|
44
|
-
timestamp?: number | undefined;
|
|
45
|
-
} & {
|
|
46
|
-
schema: string;
|
|
47
|
-
}) | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
budget?: number | undefined;
|
|
50
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
51
|
-
minBid?: number | undefined;
|
|
52
|
-
address?: string | [string] | undefined;
|
|
53
|
-
}) | ({
|
|
54
|
-
schema: string;
|
|
55
|
-
} & {
|
|
56
|
-
previousHash?: string | undefined;
|
|
57
|
-
sources?: string[] | undefined;
|
|
58
|
-
timestamp?: number | undefined;
|
|
59
|
-
} & {
|
|
60
|
-
schema: "network.xyo.query.module.shutdown";
|
|
61
|
-
} & {
|
|
62
|
-
budget?: number | undefined;
|
|
63
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
64
|
-
minBid?: number | undefined;
|
|
65
|
-
address?: string | [string] | undefined;
|
|
66
|
-
})) | ({
|
|
67
|
-
schema: string;
|
|
68
|
-
} & {
|
|
69
|
-
previousHash?: string | undefined;
|
|
70
|
-
sources?: string[] | undefined;
|
|
71
|
-
timestamp?: number | undefined;
|
|
72
|
-
} & {
|
|
73
|
-
schema: "network.xyo.query.archivist.all";
|
|
74
|
-
} & {
|
|
75
|
-
budget?: number | undefined;
|
|
76
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
77
|
-
minBid?: number | undefined;
|
|
78
|
-
address?: string | [string] | undefined;
|
|
79
|
-
}) | ({
|
|
80
|
-
schema: string;
|
|
81
|
-
} & {
|
|
82
|
-
previousHash?: string | undefined;
|
|
83
|
-
sources?: string[] | undefined;
|
|
84
|
-
timestamp?: number | undefined;
|
|
85
|
-
} & {
|
|
86
|
-
schema: "network.xyo.query.archivist.clear";
|
|
87
|
-
} & {
|
|
88
|
-
budget?: number | undefined;
|
|
89
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
90
|
-
minBid?: number | undefined;
|
|
91
|
-
address?: string | [string] | undefined;
|
|
92
|
-
}) | ({
|
|
93
|
-
schema: string;
|
|
94
|
-
} & {
|
|
95
|
-
previousHash?: string | undefined;
|
|
96
|
-
sources?: string[] | undefined;
|
|
97
|
-
timestamp?: number | undefined;
|
|
98
|
-
} & {
|
|
99
|
-
schema: "network.xyo.query.archivist.commit";
|
|
100
|
-
} & {
|
|
101
|
-
budget?: number | undefined;
|
|
102
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
103
|
-
minBid?: number | undefined;
|
|
104
|
-
address?: string | [string] | undefined;
|
|
105
|
-
}) | ({
|
|
106
|
-
schema: string;
|
|
107
|
-
} & {
|
|
108
|
-
previousHash?: string | undefined;
|
|
109
|
-
sources?: string[] | undefined;
|
|
110
|
-
timestamp?: number | undefined;
|
|
111
|
-
} & {
|
|
112
|
-
schema: "network.xyo.query.archivist.delete";
|
|
113
|
-
hashes: string[];
|
|
114
|
-
} & {
|
|
115
|
-
budget?: number | undefined;
|
|
116
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
117
|
-
minBid?: number | undefined;
|
|
118
|
-
address?: string | [string] | undefined;
|
|
119
|
-
}) | ({
|
|
120
|
-
schema: string;
|
|
121
|
-
} & {
|
|
122
|
-
previousHash?: string | undefined;
|
|
123
|
-
sources?: string[] | undefined;
|
|
124
|
-
timestamp?: number | undefined;
|
|
125
|
-
} & {
|
|
126
|
-
schema: "network.xyo.query.archivist.find";
|
|
127
|
-
filter?: import("@xyo-network/archivist").XyoPayloadFindFilter | undefined;
|
|
128
|
-
} & {
|
|
129
|
-
budget?: number | undefined;
|
|
130
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
131
|
-
minBid?: number | undefined;
|
|
132
|
-
address?: string | [string] | undefined;
|
|
133
|
-
}) | ({
|
|
134
|
-
schema: string;
|
|
135
|
-
} & {
|
|
136
|
-
previousHash?: string | undefined;
|
|
137
|
-
sources?: string[] | undefined;
|
|
138
|
-
timestamp?: number | undefined;
|
|
139
|
-
} & {
|
|
140
|
-
schema: "network.xyo.query.archivist.get";
|
|
141
|
-
hashes: string[];
|
|
142
|
-
} & {
|
|
143
|
-
budget?: number | undefined;
|
|
144
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
145
|
-
minBid?: number | undefined;
|
|
146
|
-
address?: string | [string] | undefined;
|
|
147
|
-
}) | ({
|
|
148
|
-
schema: string;
|
|
149
|
-
} & {
|
|
150
|
-
previousHash?: string | undefined;
|
|
151
|
-
sources?: string[] | undefined;
|
|
152
|
-
timestamp?: number | undefined;
|
|
153
|
-
} & {
|
|
154
|
-
schema: "network.xyo.query.archivist.insert";
|
|
155
|
-
payloads: ({
|
|
156
|
-
schema: string;
|
|
157
|
-
} & {
|
|
158
|
-
previousHash?: string | undefined;
|
|
159
|
-
sources?: string[] | undefined;
|
|
160
|
-
timestamp?: number | undefined;
|
|
161
|
-
} & {
|
|
162
|
-
schema: string;
|
|
163
|
-
})[];
|
|
164
|
-
} & {
|
|
165
|
-
budget?: number | undefined;
|
|
166
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
167
|
-
minBid?: number | undefined;
|
|
168
|
-
address?: string | [string] | undefined;
|
|
169
|
-
}), {
|
|
170
|
-
schema: string;
|
|
171
|
-
} & {
|
|
172
|
-
previousHash?: string | undefined;
|
|
173
|
-
sources?: string[] | undefined;
|
|
174
|
-
timestamp?: number | undefined;
|
|
175
|
-
} & {
|
|
176
|
-
schema: string;
|
|
177
|
-
}> | undefined;
|
|
2
|
+
export declare const useArchivistModule: (address?: string) => XyoArchivistWrapper | undefined;
|
|
178
3
|
//# sourceMappingURL=useArchivistModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useArchivistModule.d.ts","sourceRoot":"","sources":["../../../src/contexts/useArchivistModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAI5D,eAAO,MAAM,kBAAkB,aAAc,MAAM
|
|
1
|
+
{"version":3,"file":"useArchivistModule.d.ts","sourceRoot":"","sources":["../../../src/contexts/useArchivistModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAI5D,eAAO,MAAM,kBAAkB,aAAc,MAAM,oCAGlD,CAAA"}
|
|
@@ -1,178 +1,3 @@
|
|
|
1
1
|
import { XyoArchivistWrapper } from '@xyo-network/archivist';
|
|
2
|
-
export declare const useArchivistModules: () => (XyoArchivistWrapper
|
|
3
|
-
schema: string;
|
|
4
|
-
} & {
|
|
5
|
-
previousHash?: string | undefined;
|
|
6
|
-
sources?: string[] | undefined;
|
|
7
|
-
timestamp?: number | undefined;
|
|
8
|
-
} & {
|
|
9
|
-
schema: "network.xyo.query.module.subscribe";
|
|
10
|
-
address: string;
|
|
11
|
-
filter?: import("@xyo-network/module").XyoModuleSubscribeFilter | null | undefined;
|
|
12
|
-
maxQueue?: number | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
budget?: number | undefined;
|
|
15
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
16
|
-
minBid?: number | undefined;
|
|
17
|
-
address?: string | [string] | undefined;
|
|
18
|
-
}) | ({
|
|
19
|
-
schema: string;
|
|
20
|
-
} & {
|
|
21
|
-
previousHash?: string | undefined;
|
|
22
|
-
sources?: string[] | undefined;
|
|
23
|
-
timestamp?: number | undefined;
|
|
24
|
-
} & {
|
|
25
|
-
schema: "network.xyo.query.module.discover";
|
|
26
|
-
} & {
|
|
27
|
-
budget?: number | undefined;
|
|
28
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
29
|
-
minBid?: number | undefined;
|
|
30
|
-
address?: string | [string] | undefined;
|
|
31
|
-
}) | ({
|
|
32
|
-
schema: string;
|
|
33
|
-
} & {
|
|
34
|
-
previousHash?: string | undefined;
|
|
35
|
-
sources?: string[] | undefined;
|
|
36
|
-
timestamp?: number | undefined;
|
|
37
|
-
} & {
|
|
38
|
-
schema: "network.xyo.query.module.initialize";
|
|
39
|
-
config?: ({
|
|
40
|
-
schema: string;
|
|
41
|
-
} & {
|
|
42
|
-
previousHash?: string | undefined;
|
|
43
|
-
sources?: string[] | undefined;
|
|
44
|
-
timestamp?: number | undefined;
|
|
45
|
-
} & {
|
|
46
|
-
schema: string;
|
|
47
|
-
}) | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
budget?: number | undefined;
|
|
50
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
51
|
-
minBid?: number | undefined;
|
|
52
|
-
address?: string | [string] | undefined;
|
|
53
|
-
}) | ({
|
|
54
|
-
schema: string;
|
|
55
|
-
} & {
|
|
56
|
-
previousHash?: string | undefined;
|
|
57
|
-
sources?: string[] | undefined;
|
|
58
|
-
timestamp?: number | undefined;
|
|
59
|
-
} & {
|
|
60
|
-
schema: "network.xyo.query.module.shutdown";
|
|
61
|
-
} & {
|
|
62
|
-
budget?: number | undefined;
|
|
63
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
64
|
-
minBid?: number | undefined;
|
|
65
|
-
address?: string | [string] | undefined;
|
|
66
|
-
})) | ({
|
|
67
|
-
schema: string;
|
|
68
|
-
} & {
|
|
69
|
-
previousHash?: string | undefined;
|
|
70
|
-
sources?: string[] | undefined;
|
|
71
|
-
timestamp?: number | undefined;
|
|
72
|
-
} & {
|
|
73
|
-
schema: "network.xyo.query.archivist.all";
|
|
74
|
-
} & {
|
|
75
|
-
budget?: number | undefined;
|
|
76
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
77
|
-
minBid?: number | undefined;
|
|
78
|
-
address?: string | [string] | undefined;
|
|
79
|
-
}) | ({
|
|
80
|
-
schema: string;
|
|
81
|
-
} & {
|
|
82
|
-
previousHash?: string | undefined;
|
|
83
|
-
sources?: string[] | undefined;
|
|
84
|
-
timestamp?: number | undefined;
|
|
85
|
-
} & {
|
|
86
|
-
schema: "network.xyo.query.archivist.clear";
|
|
87
|
-
} & {
|
|
88
|
-
budget?: number | undefined;
|
|
89
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
90
|
-
minBid?: number | undefined;
|
|
91
|
-
address?: string | [string] | undefined;
|
|
92
|
-
}) | ({
|
|
93
|
-
schema: string;
|
|
94
|
-
} & {
|
|
95
|
-
previousHash?: string | undefined;
|
|
96
|
-
sources?: string[] | undefined;
|
|
97
|
-
timestamp?: number | undefined;
|
|
98
|
-
} & {
|
|
99
|
-
schema: "network.xyo.query.archivist.commit";
|
|
100
|
-
} & {
|
|
101
|
-
budget?: number | undefined;
|
|
102
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
103
|
-
minBid?: number | undefined;
|
|
104
|
-
address?: string | [string] | undefined;
|
|
105
|
-
}) | ({
|
|
106
|
-
schema: string;
|
|
107
|
-
} & {
|
|
108
|
-
previousHash?: string | undefined;
|
|
109
|
-
sources?: string[] | undefined;
|
|
110
|
-
timestamp?: number | undefined;
|
|
111
|
-
} & {
|
|
112
|
-
schema: "network.xyo.query.archivist.delete";
|
|
113
|
-
hashes: string[];
|
|
114
|
-
} & {
|
|
115
|
-
budget?: number | undefined;
|
|
116
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
117
|
-
minBid?: number | undefined;
|
|
118
|
-
address?: string | [string] | undefined;
|
|
119
|
-
}) | ({
|
|
120
|
-
schema: string;
|
|
121
|
-
} & {
|
|
122
|
-
previousHash?: string | undefined;
|
|
123
|
-
sources?: string[] | undefined;
|
|
124
|
-
timestamp?: number | undefined;
|
|
125
|
-
} & {
|
|
126
|
-
schema: "network.xyo.query.archivist.find";
|
|
127
|
-
filter?: import("@xyo-network/archivist").XyoPayloadFindFilter | undefined;
|
|
128
|
-
} & {
|
|
129
|
-
budget?: number | undefined;
|
|
130
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
131
|
-
minBid?: number | undefined;
|
|
132
|
-
address?: string | [string] | undefined;
|
|
133
|
-
}) | ({
|
|
134
|
-
schema: string;
|
|
135
|
-
} & {
|
|
136
|
-
previousHash?: string | undefined;
|
|
137
|
-
sources?: string[] | undefined;
|
|
138
|
-
timestamp?: number | undefined;
|
|
139
|
-
} & {
|
|
140
|
-
schema: "network.xyo.query.archivist.get";
|
|
141
|
-
hashes: string[];
|
|
142
|
-
} & {
|
|
143
|
-
budget?: number | undefined;
|
|
144
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
145
|
-
minBid?: number | undefined;
|
|
146
|
-
address?: string | [string] | undefined;
|
|
147
|
-
}) | ({
|
|
148
|
-
schema: string;
|
|
149
|
-
} & {
|
|
150
|
-
previousHash?: string | undefined;
|
|
151
|
-
sources?: string[] | undefined;
|
|
152
|
-
timestamp?: number | undefined;
|
|
153
|
-
} & {
|
|
154
|
-
schema: "network.xyo.query.archivist.insert";
|
|
155
|
-
payloads: ({
|
|
156
|
-
schema: string;
|
|
157
|
-
} & {
|
|
158
|
-
previousHash?: string | undefined;
|
|
159
|
-
sources?: string[] | undefined;
|
|
160
|
-
timestamp?: number | undefined;
|
|
161
|
-
} & {
|
|
162
|
-
schema: string;
|
|
163
|
-
})[];
|
|
164
|
-
} & {
|
|
165
|
-
budget?: number | undefined;
|
|
166
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
167
|
-
minBid?: number | undefined;
|
|
168
|
-
address?: string | [string] | undefined;
|
|
169
|
-
}), {
|
|
170
|
-
schema: string;
|
|
171
|
-
} & {
|
|
172
|
-
previousHash?: string | undefined;
|
|
173
|
-
sources?: string[] | undefined;
|
|
174
|
-
timestamp?: number | undefined;
|
|
175
|
-
} & {
|
|
176
|
-
schema: string;
|
|
177
|
-
}> | undefined)[];
|
|
2
|
+
export declare const useArchivistModules: () => (XyoArchivistWrapper | undefined)[];
|
|
178
3
|
//# sourceMappingURL=useArchivistModules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useArchivistModules.d.ts","sourceRoot":"","sources":["../../../src/contexts/useArchivistModules.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAKxF,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"useArchivistModules.d.ts","sourceRoot":"","sources":["../../../src/contexts/useArchivistModules.ts"],"names":[],"mappings":"AAAA,OAAO,EAA8B,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAKxF,eAAO,MAAM,mBAAmB,2CAM/B,CAAA"}
|
|
@@ -1,31 +1,9 @@
|
|
|
1
|
-
export declare const useModule: (address?: string) => import("@xyo-network/module").XyoModule<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
timestamp?: number | undefined;
|
|
7
|
-
} & {
|
|
8
|
-
schema: string;
|
|
9
|
-
} & {
|
|
10
|
-
budget?: number | undefined;
|
|
11
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
12
|
-
minBid?: number | undefined;
|
|
13
|
-
address?: string | [string] | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
schema: string;
|
|
16
|
-
} & {
|
|
17
|
-
previousHash?: string | undefined;
|
|
18
|
-
sources?: string[] | undefined;
|
|
19
|
-
timestamp?: number | undefined;
|
|
20
|
-
} & {
|
|
21
|
-
schema: string;
|
|
22
|
-
}, {
|
|
23
|
-
schema: string;
|
|
24
|
-
} & {
|
|
25
|
-
previousHash?: string | undefined;
|
|
26
|
-
sources?: string[] | undefined;
|
|
27
|
-
timestamp?: number | undefined;
|
|
1
|
+
export declare const useModule: (address?: string) => import("@xyo-network/module").XyoModule<import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
|
|
2
|
+
security?: {
|
|
3
|
+
allowed?: Record<string, string[][]> | undefined;
|
|
4
|
+
disallowed?: Record<string, string[]> | undefined;
|
|
5
|
+
} | undefined;
|
|
28
6
|
} & {
|
|
29
7
|
schema: string;
|
|
30
|
-
}> | undefined;
|
|
8
|
+
}> | null | undefined;
|
|
31
9
|
//# sourceMappingURL=useModule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../src/contexts/useModule.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,aAAc,MAAM
|
|
1
|
+
{"version":3,"file":"useModule.d.ts","sourceRoot":"","sources":["../../../src/contexts/useModule.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,aAAc,MAAM;;;;;;;qBAGzC,CAAA"}
|
|
@@ -4,7 +4,7 @@ exports.useModule = void 0;
|
|
|
4
4
|
const useNode_1 = require("./useNode");
|
|
5
5
|
const useModule = (address) => {
|
|
6
6
|
const [node] = (0, useNode_1.useNode)();
|
|
7
|
-
return address ? node === null || node === void 0 ? void 0 : node.
|
|
7
|
+
return address ? node === null || node === void 0 ? void 0 : node.resolve(address) : undefined;
|
|
8
8
|
};
|
|
9
9
|
exports.useModule = useModule;
|
|
10
10
|
//# sourceMappingURL=useModule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModule.js","sourceRoot":"","sources":["../../../src/contexts/useModule.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAE5B,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,EAAE;IAC5C,MAAM,CAAC,IAAI,CAAC,GAAG,IAAA,iBAAO,GAAE,CAAA;IACxB,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,
|
|
1
|
+
{"version":3,"file":"useModule.js","sourceRoot":"","sources":["../../../src/contexts/useModule.ts"],"names":[],"mappings":";;;AAAA,uCAAmC;AAE5B,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,EAAE;IAC5C,MAAM,CAAC,IAAI,CAAC,GAAG,IAAA,iBAAO,GAAE,CAAA;IACxB,OAAO,OAAO,CAAC,CAAC,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;AACrD,CAAC,CAAA;AAHY,QAAA,SAAS,aAGrB"}
|
|
@@ -1,31 +1,9 @@
|
|
|
1
|
-
export declare const useModules: () => (import("@xyo-network/module").XyoModule<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
timestamp?: number | undefined;
|
|
7
|
-
} & {
|
|
8
|
-
schema: string;
|
|
9
|
-
} & {
|
|
10
|
-
budget?: number | undefined;
|
|
11
|
-
maxFrequency?: "once" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | undefined;
|
|
12
|
-
minBid?: number | undefined;
|
|
13
|
-
address?: string | [string] | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
schema: string;
|
|
16
|
-
} & {
|
|
17
|
-
previousHash?: string | undefined;
|
|
18
|
-
sources?: string[] | undefined;
|
|
19
|
-
timestamp?: number | undefined;
|
|
20
|
-
} & {
|
|
21
|
-
schema: string;
|
|
22
|
-
}, {
|
|
23
|
-
schema: string;
|
|
24
|
-
} & {
|
|
25
|
-
previousHash?: string | undefined;
|
|
26
|
-
sources?: string[] | undefined;
|
|
27
|
-
timestamp?: number | undefined;
|
|
1
|
+
export declare const useModules: () => (import("@xyo-network/module").XyoModule<import("@xyo-network/payload").SchemaFields & import("@xyo-network/payload").PayloadFields & {
|
|
2
|
+
security?: {
|
|
3
|
+
allowed?: Record<string, string[][]> | undefined;
|
|
4
|
+
disallowed?: Record<string, string[]> | undefined;
|
|
5
|
+
} | undefined;
|
|
28
6
|
} & {
|
|
29
7
|
schema: string;
|
|
30
|
-
}> | undefined)[] | undefined;
|
|
8
|
+
}> | null | undefined)[] | undefined;
|
|
31
9
|
//# sourceMappingURL=useModules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModules.d.ts","sourceRoot":"","sources":["../../../src/contexts/useModules.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"useModules.d.ts","sourceRoot":"","sources":["../../../src/contexts/useModules.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;oCAItB,CAAA"}
|
|
@@ -6,7 +6,7 @@ const useNode_1 = require("./useNode");
|
|
|
6
6
|
const useModules = () => {
|
|
7
7
|
const [addresses] = (0, useModuleAddresses_1.useModuleAddresses)();
|
|
8
8
|
const [node] = (0, useNode_1.useNode)();
|
|
9
|
-
return addresses === null || addresses === void 0 ? void 0 : addresses.map((address) => node === null || node === void 0 ? void 0 : node.
|
|
9
|
+
return addresses === null || addresses === void 0 ? void 0 : addresses.map((address) => node === null || node === void 0 ? void 0 : node.resolve(address));
|
|
10
10
|
};
|
|
11
11
|
exports.useModules = useModules;
|
|
12
12
|
//# sourceMappingURL=useModules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModules.js","sourceRoot":"","sources":["../../../src/contexts/useModules.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,uCAAmC;AAE5B,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,CAAC,SAAS,CAAC,GAAG,IAAA,uCAAkB,GAAE,CAAA;IACxC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAA,iBAAO,GAAE,CAAA;IACxB,OAAO,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,
|
|
1
|
+
{"version":3,"file":"useModules.js","sourceRoot":"","sources":["../../../src/contexts/useModules.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AACzD,uCAAmC;AAE5B,MAAM,UAAU,GAAG,GAAG,EAAE;IAC7B,MAAM,CAAC,SAAS,CAAC,GAAG,IAAA,uCAAkB,GAAE,CAAA;IACxC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAA,iBAAO,GAAE,CAAA;IACxB,OAAO,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAA;AAC5D,CAAC,CAAA;AAJY,QAAA,UAAU,cAItB"}
|