@toon-protocol/client 3.1.1 → 3.3.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/{chunk-KQE6S23B.js → chunk-G36D22II.js} +360 -112
- package/dist/chunk-G36D22II.js.map +1 -0
- package/dist/{chunk-GOLBDUNV.js → chunk-LJSOTVUT.js} +36 -3
- package/dist/chunk-LJSOTVUT.js.map +1 -0
- package/dist/{chunk-7MPONJW5.js → chunk-O6KX7MHD.js} +4 -4
- package/dist/{chunk-7MPONJW5.js.map → chunk-O6KX7MHD.js.map} +1 -1
- package/dist/{chunk-4I3JQ7KA.js → chunk-PTTRHLYV.js} +2 -2
- package/dist/cli/main.js +11 -4
- package/dist/cli/main.js.map +1 -1
- package/dist/{client-AV355FHQ.js → client-FFEFAMJ4.js} +7 -3
- package/dist/hidden-service-BsBH2HNi.d.ts +301 -0
- package/dist/index.d.ts +270 -157
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/socks-K6QOOWJ5.js +23 -0
- package/dist/transport/hidden-service.d.ts +1 -116
- package/dist/transport/hidden-service.js +9 -1
- package/package.json +1 -1
- package/dist/chunk-GOLBDUNV.js.map +0 -1
- package/dist/chunk-KQE6S23B.js.map +0 -1
- package/dist/socks-CCMHMB35.js +0 -15
- /package/dist/{chunk-4I3JQ7KA.js.map → chunk-PTTRHLYV.js.map} +0 -0
- /package/dist/{client-AV355FHQ.js.map → client-FFEFAMJ4.js.map} +0 -0
- /package/dist/{socks-CCMHMB35.js.map → socks-K6QOOWJ5.js.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BeforePayRefusedError,
|
|
2
3
|
ChainUnavailableError,
|
|
3
4
|
ChannelFundingError,
|
|
4
5
|
ChannelNotOpenError,
|
|
@@ -18,6 +19,7 @@ import {
|
|
|
18
19
|
StaleRpcReadError,
|
|
19
20
|
ToonClient,
|
|
20
21
|
ToonClientError,
|
|
22
|
+
TransactionOutcomeError,
|
|
21
23
|
TransferNotDeliveredError,
|
|
22
24
|
TransferUnsupportedError,
|
|
23
25
|
TransportRequiredError,
|
|
@@ -30,10 +32,11 @@ import {
|
|
|
30
32
|
send,
|
|
31
33
|
settlementToTerms,
|
|
32
34
|
toEnvelopeRequest
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-G36D22II.js";
|
|
36
|
+
import "./chunk-O6KX7MHD.js";
|
|
35
37
|
import "./chunk-32MD3CXE.js";
|
|
36
38
|
export {
|
|
39
|
+
BeforePayRefusedError,
|
|
37
40
|
ChainUnavailableError,
|
|
38
41
|
ChannelFundingError,
|
|
39
42
|
ChannelNotOpenError,
|
|
@@ -53,6 +56,7 @@ export {
|
|
|
53
56
|
StaleRpcReadError,
|
|
54
57
|
ToonClient,
|
|
55
58
|
ToonClientError,
|
|
59
|
+
TransactionOutcomeError,
|
|
56
60
|
TransferNotDeliveredError,
|
|
57
61
|
TransferUnsupportedError,
|
|
58
62
|
TransportRequiredError,
|
|
@@ -66,4 +70,4 @@ export {
|
|
|
66
70
|
settlementToTerms,
|
|
67
71
|
toEnvelopeRequest
|
|
68
72
|
};
|
|
69
|
-
//# sourceMappingURL=client-
|
|
73
|
+
//# sourceMappingURL=client-FFEFAMJ4.js.map
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The on-chain channel port: what the client needs a chain to be able to do,
|
|
3
|
+
* independent of which chain it is.
|
|
4
|
+
*
|
|
5
|
+
* These types were `@toon-protocol/core`'s `ConnectorChannelClient` family,
|
|
6
|
+
* whose names still carried the retired admin-API model — a channel opened by
|
|
7
|
+
* `POST /admin/channels` on the connector. That is not how a channel comes into
|
|
8
|
+
* existence any more, and the naming mattered: **a connector has no endpoint
|
|
9
|
+
* that opens a channel** (`self-description-spec.md` ND-03). The client opens,
|
|
10
|
+
* funds, closes and settles the channel itself, directly on chain, and the
|
|
11
|
+
* connector discovers it by reading the chain
|
|
12
|
+
* ([ADR 0052](https://github.com/toon-protocol/connector/blob/main/docs/adr/0052-permissionless-payment-is-guaranteed-and-a-claim-is-what-authorises.md)).
|
|
13
|
+
* So this is a port over *chains*, not over the connector.
|
|
14
|
+
*/
|
|
15
|
+
/** Which settlement family a channel lives in. Mina is gone (connector ADR 0002). */
|
|
16
|
+
type ChainKind = 'evm' | 'solana';
|
|
17
|
+
/**
|
|
18
|
+
* Everything needed to open one channel, as read off the connector's own
|
|
19
|
+
* self-description (`GET /ilp` → `settlements[]`) rather than configured.
|
|
20
|
+
*
|
|
21
|
+
* The connector proved each of these against a live chain at startup
|
|
22
|
+
* (`self-description-spec.md` ND-07), which is why they are taken from the
|
|
23
|
+
* document instead of from a preset: two declarations of one fact is how a
|
|
24
|
+
* mainnet node comes to describe itself as devnet.
|
|
25
|
+
*/
|
|
26
|
+
interface ChannelTerms {
|
|
27
|
+
kind: ChainKind;
|
|
28
|
+
/** The chain key exactly as published: `evm:84532`, or `solana`. */
|
|
29
|
+
chain: string;
|
|
30
|
+
/** EVM only: the numeric chain id parsed out of `chain`. The EIP-712 domain's `chainId`. */
|
|
31
|
+
chainId?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The connector's own settlement address — the counterparty this channel is
|
|
34
|
+
* opened *with*. `0x…` on EVM, base58 on Solana.
|
|
35
|
+
*/
|
|
36
|
+
counterparty: string;
|
|
37
|
+
/** ERC-20 address, or the SPL mint. */
|
|
38
|
+
token: string;
|
|
39
|
+
/** Base units per whole token, as the connector reports it. */
|
|
40
|
+
decimals: number;
|
|
41
|
+
/** EVM: the `TokenNetwork` — the EIP-712 `verifyingContract` a claim is signed under. */
|
|
42
|
+
tokenNetwork?: string;
|
|
43
|
+
/** EVM: the `TokenNetworkRegistry` that minted the `TokenNetwork`; the stable address. */
|
|
44
|
+
tokenNetworkRegistry?: string;
|
|
45
|
+
/** Solana: the settlement program the channel account lives under, bound into every claim (ADR 0053). */
|
|
46
|
+
programId?: string;
|
|
47
|
+
}
|
|
48
|
+
/** Parameters for opening a channel on chain. */
|
|
49
|
+
interface OpenChannelParams {
|
|
50
|
+
terms: ChannelTerms;
|
|
51
|
+
/** Initial collateral, in the token's base units. */
|
|
52
|
+
initialDeposit?: bigint;
|
|
53
|
+
/**
|
|
54
|
+
* Challenge period in seconds. The EVM `TokenNetwork` enforces a one-hour
|
|
55
|
+
* floor; the Solana program takes it as the channel's `challenge_duration`.
|
|
56
|
+
*/
|
|
57
|
+
settlementTimeout?: number;
|
|
58
|
+
}
|
|
59
|
+
/** What opening produced. */
|
|
60
|
+
interface OpenChannelResult {
|
|
61
|
+
/** `0x…` 32 bytes on EVM; the channel account's base58 pubkey on Solana. */
|
|
62
|
+
channelId: string;
|
|
63
|
+
status: ChannelStatus;
|
|
64
|
+
/** The transaction that opened it. Absent when an existing channel was adopted. */
|
|
65
|
+
txHash?: string;
|
|
66
|
+
/** On-chain collateral after opening, when the opener read it back. */
|
|
67
|
+
depositTotal?: bigint;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Where a channel is in its lifecycle.
|
|
71
|
+
*
|
|
72
|
+
* `opening` is real and worth distinguishing: the opening transaction is
|
|
73
|
+
* submitted but not yet confirmed, so the channel does not exist for anyone
|
|
74
|
+
* reading the chain — including the connector, which resolves a claim's channel
|
|
75
|
+
* by reading it. A claim signed in that window is refused as naming an unknown
|
|
76
|
+
* channel, and the remedy is to wait rather than to re-sign.
|
|
77
|
+
*/
|
|
78
|
+
type ChannelStatus = 'opening' | 'open' | 'closed' | 'settled' | 'missing';
|
|
79
|
+
/** A channel as the chain currently reports it. */
|
|
80
|
+
interface OnChainChannelStatus {
|
|
81
|
+
channelId: string;
|
|
82
|
+
status: ChannelStatus;
|
|
83
|
+
/** The chain key this channel lives on, when the reader knows it. */
|
|
84
|
+
chain?: string;
|
|
85
|
+
/** This participant's collateral, in base units. */
|
|
86
|
+
deposit?: bigint;
|
|
87
|
+
/** Unix seconds the channel was closed, when it is closed. */
|
|
88
|
+
closedAt?: bigint;
|
|
89
|
+
/** Unix seconds after which `settle` is permitted. */
|
|
90
|
+
settleableAt?: bigint;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* One chain's implementation of the lifecycle.
|
|
94
|
+
*
|
|
95
|
+
* Every method here is a transaction the *client* signs and pays gas for. None
|
|
96
|
+
* of them talks to a connector.
|
|
97
|
+
*/
|
|
98
|
+
interface ChannelClient {
|
|
99
|
+
openChannel(params: OpenChannelParams): Promise<OpenChannelResult>;
|
|
100
|
+
/**
|
|
101
|
+
* Add collateral. `currentDeposit` is the channel's present total, which EVM
|
|
102
|
+
* needs because `setTotalDeposit` takes the new cumulative figure rather than
|
|
103
|
+
* a delta — a contract shape that makes a lost or duplicated call harmless.
|
|
104
|
+
*/
|
|
105
|
+
depositToChannel(channelId: string, amount: bigint, opts: {
|
|
106
|
+
currentDeposit: bigint;
|
|
107
|
+
}): Promise<{
|
|
108
|
+
txHash?: string;
|
|
109
|
+
depositTotal: bigint;
|
|
110
|
+
}>;
|
|
111
|
+
/** Start the challenge period. */
|
|
112
|
+
closeChannel(channelId: string): Promise<{
|
|
113
|
+
txHash?: string;
|
|
114
|
+
closedAt: bigint;
|
|
115
|
+
settlementTimeout: bigint;
|
|
116
|
+
settleableAt: bigint;
|
|
117
|
+
}>;
|
|
118
|
+
/** Pay out and finish. Only permitted once the challenge period has elapsed. */
|
|
119
|
+
settleChannel(channelId: string): Promise<{
|
|
120
|
+
txHash?: string;
|
|
121
|
+
}>;
|
|
122
|
+
getChannelState(channelId: string): Promise<OnChainChannelStatus>;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* `socks5h://` URL parsing, kept apart from the transport that uses it.
|
|
127
|
+
*
|
|
128
|
+
* Config validation has to reject a bad proxy URL, and config validation runs
|
|
129
|
+
* everywhere — including in a browser, where `./socks.js` must never be loaded
|
|
130
|
+
* (it reaches for `node:module` on the first line). This module is pure.
|
|
131
|
+
*/
|
|
132
|
+
/**
|
|
133
|
+
* Parses and validates a `socks5h://` URL.
|
|
134
|
+
*
|
|
135
|
+
* Enforces the `socks5h://` scheme, not `socks5://`: the trailing `h` means the
|
|
136
|
+
* *proxy* resolves the hostname. Under plain `socks5://` the client resolves it
|
|
137
|
+
* locally first, which for a `.anyone` address means shipping the hidden service
|
|
138
|
+
* you are about to talk to into a plaintext DNS query — the exact fact the
|
|
139
|
+
* hidden service exists to withhold. Mirrors the connector's `transport/socks-url.ts`.
|
|
140
|
+
*/
|
|
141
|
+
declare function validateSocks5hUrl(socksProxy: string): {
|
|
142
|
+
host: string;
|
|
143
|
+
port: number;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The hidden-service carriage: one SOCKS5h proxy, everything that must ride it.
|
|
148
|
+
*
|
|
149
|
+
* A connector deployed as a hidden service is reachable only through a running
|
|
150
|
+
* `anon` daemon's SOCKS5 port. Three separate things in this client have to go
|
|
151
|
+
* through that port, and — annoyingly — each needs a different object to do it:
|
|
152
|
+
*
|
|
153
|
+
* - **The client edge** (`GET /ilp`, `POST /ilp`) goes through `fetch`, which in
|
|
154
|
+
* Node is undici and takes a **dispatcher**. It does not take an `http.Agent`,
|
|
155
|
+
* which is why the `socks-proxy-agent` this package used to depend on cannot
|
|
156
|
+
* serve this path at all.
|
|
157
|
+
* - **Chain RPC** goes through viem, which calls the *global* `fetch` and accepts
|
|
158
|
+
* no injected one. Its only opening is `http(url, { fetchOptions })`, so it
|
|
159
|
+
* needs the same dispatcher handed to it as a fetch option (ADR 0002).
|
|
160
|
+
* - **The BTP carriage** goes through `ws`, which is `node:http` underneath and
|
|
161
|
+
* therefore takes an `http.Agent` and nothing else.
|
|
162
|
+
*
|
|
163
|
+
* So this module builds one SOCKS connection primitive and wraps it three ways.
|
|
164
|
+
* The SOCKS5 handshake itself is `socks`'s job; all we supply is the socket.
|
|
165
|
+
*
|
|
166
|
+
* Chain RPC gets a transport of its own per chain ({@link createChainRpcTransport}),
|
|
167
|
+
* authenticating with a fixed SOCKS username so each chain rides one pinned
|
|
168
|
+
* circuit (connector ADR 0073). The same is true whether the connector is a
|
|
169
|
+
* hidden service or a clearnet host that a hidden payer reaches through the
|
|
170
|
+
* proxy (TOON_Network#167).
|
|
171
|
+
*
|
|
172
|
+
* `undici` is an optional dependency for exactly this reason: Node bundles undici
|
|
173
|
+
* internally but exposes it under no specifier (`require('undici')` is
|
|
174
|
+
* `MODULE_NOT_FOUND`, `node:undici` is `ERR_UNKNOWN_BUILTIN_MODULE`), so a
|
|
175
|
+
* dispatcher cannot be constructed without the package. A dispatcher built by the
|
|
176
|
+
* userland copy *is* honoured by Node's global `fetch`, which calls
|
|
177
|
+
* `dispatcher.dispatch(opts, handler)` with a handler its own bundled undici
|
|
178
|
+
* defines — and that is why the dependency is pinned to **undici 7, not 8**.
|
|
179
|
+
* Node's handler changed shape: Node 22 (undici 6.22) passes the old
|
|
180
|
+
* `onConnect`/`onHeaders`/`onData`/`onComplete` handler, Node 26 (undici 8.9)
|
|
181
|
+
* passes the new `onRequestStart`/`onResponseStart` one. undici 7 accepts both —
|
|
182
|
+
* its `UnwrapHandler.unwrap` passes an old-style handler through untouched.
|
|
183
|
+
* undici 8 dropped the old shape, and on Node 22 every request through such a
|
|
184
|
+
* dispatcher dies in `assertRequestHandler` with
|
|
185
|
+
* `InvalidArgumentError: invalid onRequestStart method`. Verified green on both
|
|
186
|
+
* Node 22.21 and Node 26.7 against the fake proxy in `socks.test.ts`; do not
|
|
187
|
+
* widen the range to `^8` without re-running those on the oldest supported Node.
|
|
188
|
+
*
|
|
189
|
+
* NODE ONLY. This module is imported dynamically, never statically, from the
|
|
190
|
+
* paths that need it; every Node built-in is pulled in through an ESM-safe
|
|
191
|
+
* `require` built off `import.meta.url`, because this package builds as ESM with
|
|
192
|
+
* these deps external and esbuild rewrites a bare `require` into a `__require`
|
|
193
|
+
* shim that throws. A browser cannot reach a `.anyone` address by any means, so
|
|
194
|
+
* a browser bundler must never follow an edge into this file.
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* How long to wait for the proxy to build a circuit to the hidden service.
|
|
199
|
+
*
|
|
200
|
+
* `socks` defaults to 30s, which is too short: an introduction-point circuit to
|
|
201
|
+
* a cold hidden service routinely takes longer, and a too-short connect timeout
|
|
202
|
+
* turns "slow" into "unreachable".
|
|
203
|
+
*/
|
|
204
|
+
declare const DEFAULT_HS_CONNECT_TIMEOUT_MS = 120000;
|
|
205
|
+
/**
|
|
206
|
+
* How long a chain-RPC dial may take through the proxy: the SOCKS handshake, an
|
|
207
|
+
* exit circuit and the TCP connect behind it (connector ADR 0073, decision 4).
|
|
208
|
+
*
|
|
209
|
+
* Far shorter than {@link DEFAULT_HS_CONNECT_TIMEOUT_MS}, because a public RPC
|
|
210
|
+
* is reached over an ordinary exit circuit, not the introduction-point dance a
|
|
211
|
+
* hidden service needs. ADR 0073 measured 3,200 calls through `anon`: the worst
|
|
212
|
+
* one that had to build a fresh circuit took 13s. Twice that, rounded, and a
|
|
213
|
+
* stalled circuit is reported rather than waited on.
|
|
214
|
+
*/
|
|
215
|
+
declare const DEFAULT_RPC_CONNECT_TIMEOUT_MS = 20000;
|
|
216
|
+
/**
|
|
217
|
+
* The longest a pooled chain-RPC connection is kept idle (ADR 0073, decision 4).
|
|
218
|
+
*
|
|
219
|
+
* A circuit can die quietly under a kept-alive socket, and the next request on
|
|
220
|
+
* it then hangs until its own timeout. A short idle cap means such a socket is
|
|
221
|
+
* dropped before it is reused. undici keeps a socket for 4s by default but lets a
|
|
222
|
+
* server's `Keep-Alive` header stretch that to ten minutes; this caps the stretch.
|
|
223
|
+
*/
|
|
224
|
+
declare const RPC_POOL_IDLE_TIMEOUT_MS = 30000;
|
|
225
|
+
/**
|
|
226
|
+
* The fixed SOCKS5 usernames chain RPC authenticates with, one per chain.
|
|
227
|
+
*
|
|
228
|
+
* `anon` (like Tor) isolates streams by SOCKS credentials (`IsolateSOCKSAuth`,
|
|
229
|
+
* on by default): streams that present the same username share a circuit, and
|
|
230
|
+
* streams with different ones never do. So a fixed username per chain gives each
|
|
231
|
+
* chain one circuit that stays pinned until the daemon's own
|
|
232
|
+
* `MaxCircuitDirtiness` rotates it (connector ADR 0073, decision 3). No exit then
|
|
233
|
+
* sees both chains' RPC, neither shares a circuit with the client edge, and no
|
|
234
|
+
* call pays for a new circuit of its own. They differ from the connector's
|
|
235
|
+
* `toon-settlement-*` names, so a payer and a node on one daemon do not share
|
|
236
|
+
* circuits either.
|
|
237
|
+
*/
|
|
238
|
+
declare const RPC_SOCKS_USERNAMES: Readonly<Record<ChainKind, string>>;
|
|
239
|
+
/** Options for {@link createHiddenServiceTransport}. */
|
|
240
|
+
interface HiddenServiceTransportOptions {
|
|
241
|
+
/** Circuit-build timeout, ms. Default {@link DEFAULT_HS_CONNECT_TIMEOUT_MS}. */
|
|
242
|
+
connectTimeoutMs?: number;
|
|
243
|
+
/**
|
|
244
|
+
* A fixed SOCKS5 username to authenticate with, which pins every stream this
|
|
245
|
+
* transport opens to one circuit (`IsolateSOCKSAuth`). Unset means no
|
|
246
|
+
* authentication, and the daemon's default circuit.
|
|
247
|
+
*/
|
|
248
|
+
socksUsername?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Upper bound on how long an idle pooled connection is kept, ms. Unset keeps
|
|
251
|
+
* undici's own behaviour.
|
|
252
|
+
*/
|
|
253
|
+
idleTimeoutMs?: number;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* The three shapes of one proxy, plus the handle that shuts it down.
|
|
257
|
+
*
|
|
258
|
+
* Spread `fetch` and `createWebSocket` into a {@link ../client/types.js!ToonClientConfig}
|
|
259
|
+
* to route a client by hand; pass `socksProxy` instead to have the client build
|
|
260
|
+
* this itself.
|
|
261
|
+
*/
|
|
262
|
+
interface HiddenServiceTransport {
|
|
263
|
+
/** `fetch`, bound to the proxy. Returns ordinary global `Response` objects. */
|
|
264
|
+
fetch: typeof fetch;
|
|
265
|
+
/** A `ws` factory bound to the proxy, for the BTP carriage. */
|
|
266
|
+
createWebSocket: (url: string) => unknown;
|
|
267
|
+
/**
|
|
268
|
+
* The undici dispatcher behind `fetch`, for handing to something that insists
|
|
269
|
+
* on calling the global `fetch` itself — viem's HTTP transport, in practice
|
|
270
|
+
* (`http(url, { fetchOptions: { dispatcher } })`).
|
|
271
|
+
*/
|
|
272
|
+
dispatcher: unknown;
|
|
273
|
+
/** Close the dispatcher's pool and the websocket agents' sockets. */
|
|
274
|
+
close(): Promise<void>;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Builds every proxy-bound object this client needs from one `socks5h://` URL.
|
|
279
|
+
*
|
|
280
|
+
* @throws {Error} if the URL is not `socks5h://`, or if `undici`/`socks` are not
|
|
281
|
+
* installed — they are optional dependencies, so a consumer who never touches
|
|
282
|
+
* a hidden service never pays for them.
|
|
283
|
+
*/
|
|
284
|
+
declare function createHiddenServiceTransport(socksProxy: string, options?: HiddenServiceTransportOptions): HiddenServiceTransport;
|
|
285
|
+
/**
|
|
286
|
+
* The proxy-bound transport one chain's RPC rides: its own pinned circuit, a
|
|
287
|
+
* connect timeout sized for an exit circuit, and a capped idle pool (connector
|
|
288
|
+
* ADR 0073, decisions 3 and 4).
|
|
289
|
+
*
|
|
290
|
+
* It has no fallback. A proxy that is down fails the call; nothing here, or in
|
|
291
|
+
* the viem and Solana paths that use it, ever dials the RPC directly instead.
|
|
292
|
+
*/
|
|
293
|
+
declare function createChainRpcTransport(socksProxy: string, chain: ChainKind): HiddenServiceTransport;
|
|
294
|
+
/**
|
|
295
|
+
* Probes the proxy with a plain TCP connect. Fail-closed and fail-early: a
|
|
296
|
+
* client configured for a hidden service must not quietly fall back to clearnet,
|
|
297
|
+
* and finding out at packet time costs a signed claim.
|
|
298
|
+
*/
|
|
299
|
+
declare function probeSocks5Proxy(socksProxy: string, timeoutMs?: number): Promise<void>;
|
|
300
|
+
|
|
301
|
+
export { type ChainKind as C, DEFAULT_HS_CONNECT_TIMEOUT_MS as D, type HiddenServiceTransport as H, type OnChainChannelStatus as O, RPC_POOL_IDLE_TIMEOUT_MS as R, type ChannelStatus as a, type ChannelTerms as b, type ChannelClient as c, type OpenChannelResult as d, type OpenChannelParams as e, type HiddenServiceTransportOptions as f, DEFAULT_RPC_CONNECT_TIMEOUT_MS as g, RPC_SOCKS_USERNAMES as h, createChainRpcTransport as i, createHiddenServiceTransport as j, probeSocks5Proxy as p, validateSocks5hUrl as v };
|