gennet.js 0.2.1 → 0.2.2
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/index.d.cts +11 -1
- package/dist/index.d.mts +11 -1
- package/dist/index.d.ts +11 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -39,6 +39,13 @@ interface ModuleInfo {
|
|
|
39
39
|
state: string;
|
|
40
40
|
status?: string;
|
|
41
41
|
}
|
|
42
|
+
interface TransportInfo {
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
host?: string;
|
|
45
|
+
port?: number;
|
|
46
|
+
api: string[];
|
|
47
|
+
origins?: string[];
|
|
48
|
+
}
|
|
42
49
|
interface NodeInfo {
|
|
43
50
|
state: GatewayState;
|
|
44
51
|
peerId: string | null;
|
|
@@ -53,6 +60,9 @@ interface NodeInfo {
|
|
|
53
60
|
listenPort: number;
|
|
54
61
|
datadir: string;
|
|
55
62
|
modules: ModuleInfo[];
|
|
63
|
+
ws: TransportInfo;
|
|
64
|
+
http: TransportInfo;
|
|
65
|
+
ipc: boolean;
|
|
56
66
|
}
|
|
57
67
|
interface PeerInfo {
|
|
58
68
|
peerId: string;
|
|
@@ -287,4 +297,4 @@ declare class HttpProvider implements Provider {
|
|
|
287
297
|
}
|
|
288
298
|
|
|
289
299
|
export { Admin, Agent, GenNet, HttpProvider, Mempool, Net, Personal, RpcError, WebSocketProvider };
|
|
290
|
-
export type { AgentResult, GatewayState, IdentityInfo, JsonRpcErrorResponse, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccessResponse, ModuleInfo, NodeInfo, PeerInfo, Provider, ProviderEvent, ProviderEventListener, ReconnectOptions, Subscription, SubscriptionTopic };
|
|
300
|
+
export type { AgentResult, GatewayState, IdentityInfo, JsonRpcErrorResponse, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccessResponse, ModuleInfo, NodeInfo, PeerInfo, Provider, ProviderEvent, ProviderEventListener, ReconnectOptions, Subscription, SubscriptionTopic, TransportInfo };
|
package/dist/index.d.mts
CHANGED
|
@@ -39,6 +39,13 @@ interface ModuleInfo {
|
|
|
39
39
|
state: string;
|
|
40
40
|
status?: string;
|
|
41
41
|
}
|
|
42
|
+
interface TransportInfo {
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
host?: string;
|
|
45
|
+
port?: number;
|
|
46
|
+
api: string[];
|
|
47
|
+
origins?: string[];
|
|
48
|
+
}
|
|
42
49
|
interface NodeInfo {
|
|
43
50
|
state: GatewayState;
|
|
44
51
|
peerId: string | null;
|
|
@@ -53,6 +60,9 @@ interface NodeInfo {
|
|
|
53
60
|
listenPort: number;
|
|
54
61
|
datadir: string;
|
|
55
62
|
modules: ModuleInfo[];
|
|
63
|
+
ws: TransportInfo;
|
|
64
|
+
http: TransportInfo;
|
|
65
|
+
ipc: boolean;
|
|
56
66
|
}
|
|
57
67
|
interface PeerInfo {
|
|
58
68
|
peerId: string;
|
|
@@ -287,4 +297,4 @@ declare class HttpProvider implements Provider {
|
|
|
287
297
|
}
|
|
288
298
|
|
|
289
299
|
export { Admin, Agent, GenNet, HttpProvider, Mempool, Net, Personal, RpcError, WebSocketProvider };
|
|
290
|
-
export type { AgentResult, GatewayState, IdentityInfo, JsonRpcErrorResponse, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccessResponse, ModuleInfo, NodeInfo, PeerInfo, Provider, ProviderEvent, ProviderEventListener, ReconnectOptions, Subscription, SubscriptionTopic };
|
|
300
|
+
export type { AgentResult, GatewayState, IdentityInfo, JsonRpcErrorResponse, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccessResponse, ModuleInfo, NodeInfo, PeerInfo, Provider, ProviderEvent, ProviderEventListener, ReconnectOptions, Subscription, SubscriptionTopic, TransportInfo };
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,13 @@ interface ModuleInfo {
|
|
|
39
39
|
state: string;
|
|
40
40
|
status?: string;
|
|
41
41
|
}
|
|
42
|
+
interface TransportInfo {
|
|
43
|
+
enabled: boolean;
|
|
44
|
+
host?: string;
|
|
45
|
+
port?: number;
|
|
46
|
+
api: string[];
|
|
47
|
+
origins?: string[];
|
|
48
|
+
}
|
|
42
49
|
interface NodeInfo {
|
|
43
50
|
state: GatewayState;
|
|
44
51
|
peerId: string | null;
|
|
@@ -53,6 +60,9 @@ interface NodeInfo {
|
|
|
53
60
|
listenPort: number;
|
|
54
61
|
datadir: string;
|
|
55
62
|
modules: ModuleInfo[];
|
|
63
|
+
ws: TransportInfo;
|
|
64
|
+
http: TransportInfo;
|
|
65
|
+
ipc: boolean;
|
|
56
66
|
}
|
|
57
67
|
interface PeerInfo {
|
|
58
68
|
peerId: string;
|
|
@@ -287,4 +297,4 @@ declare class HttpProvider implements Provider {
|
|
|
287
297
|
}
|
|
288
298
|
|
|
289
299
|
export { Admin, Agent, GenNet, HttpProvider, Mempool, Net, Personal, RpcError, WebSocketProvider };
|
|
290
|
-
export type { AgentResult, GatewayState, IdentityInfo, JsonRpcErrorResponse, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccessResponse, ModuleInfo, NodeInfo, PeerInfo, Provider, ProviderEvent, ProviderEventListener, ReconnectOptions, Subscription, SubscriptionTopic };
|
|
300
|
+
export type { AgentResult, GatewayState, IdentityInfo, JsonRpcErrorResponse, JsonRpcNotification, JsonRpcRequest, JsonRpcResponse, JsonRpcSuccessResponse, ModuleInfo, NodeInfo, PeerInfo, Provider, ProviderEvent, ProviderEventListener, ReconnectOptions, Subscription, SubscriptionTopic, TransportInfo };
|