@arkade-os/swap 0.1.0-rc.8 → 0.1.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/README.md +45 -10
- package/dist/advanced.cjs +6429 -3083
- package/dist/advanced.d.cts +325 -282
- package/dist/advanced.d.ts +325 -282
- package/dist/advanced.js +343 -34
- package/dist/chunk-A3SHHRX4.js +104 -0
- package/dist/chunk-FMRAV77W.js +3065 -0
- package/dist/{chunk-HV7EIUE2.js → chunk-HRMWBULL.js} +1773 -634
- package/dist/chunk-WKJFXXSR.js +3382 -0
- package/dist/index.cjs +6868 -3837
- package/dist/index.d.cts +71 -243
- package/dist/index.d.ts +71 -243
- package/dist/index.js +139 -167
- package/dist/lockupContract-D7BNjksX.d.ts +148 -0
- package/dist/lockupContract-G-9CNRMq.d.cts +148 -0
- package/dist/node/index.cjs +61 -10
- package/dist/node/index.d.cts +310 -639
- package/dist/node/index.d.ts +310 -639
- package/dist/node/index.js +65 -10
- package/dist/nostr.cjs +428 -49
- package/dist/nostr.d.cts +59 -70
- package/dist/nostr.d.ts +59 -70
- package/dist/nostr.js +268 -36
- package/dist/offer-CcJfx5Fj.d.cts +269 -0
- package/dist/offer-DdB1M6FZ.d.ts +269 -0
- package/dist/offerFillPlan-BII0PW92.d.cts +1642 -0
- package/dist/offerFillPlan-CNTLVD7j.d.ts +1642 -0
- package/dist/protocol.cjs +5591 -4064
- package/dist/protocol.d.cts +258 -355
- package/dist/protocol.d.ts +258 -355
- package/dist/protocol.js +209 -228
- package/dist/repositories/realm/index.cjs +55 -11
- package/dist/repositories/realm/index.d.cts +18 -30
- package/dist/repositories/realm/index.d.ts +18 -30
- package/dist/repositories/realm/index.js +49 -12
- package/dist/repositories/sqlite/index.cjs +61 -10
- package/dist/repositories/sqlite/index.d.cts +7 -6
- package/dist/repositories/sqlite/index.d.ts +7 -6
- package/dist/repositories/sqlite/index.js +57 -11
- package/dist/repository-DmPzpbd7.d.ts +2342 -0
- package/dist/repository-DqdLVrVv.d.cts +2342 -0
- package/dist/rfq-C0tHOvn6.d.cts +983 -0
- package/dist/rfq-C0tHOvn6.d.ts +983 -0
- package/dist/watch-BonYT9af.d.cts +74 -0
- package/dist/watch-CmJQDtsy.d.ts +74 -0
- package/package.json +12 -12
- package/dist/chunk-4PATNGYQ.js +0 -3297
- package/dist/chunk-ARYFNDJY.js +0 -1432
- package/dist/chunk-U7VWWTL6.js +0 -66
- package/dist/errors-CSpOUdCN.d.ts +0 -2216
- package/dist/errors-DVn92LQd.d.cts +0 -2216
- package/dist/lockupContract-6TYZOBbn.d.ts +0 -490
- package/dist/lockupContract-aLCQQiSu.d.cts +0 -490
- package/dist/repository-D0gFF_GA.d.cts +0 -3491
- package/dist/repository-tDT8p-Nx.d.ts +0 -3491
- package/dist/rfq-DhkgiwQ7.d.cts +0 -1126
- package/dist/rfq-DhkgiwQ7.d.ts +0 -1126
- package/dist/watch-C4cMEeZT.d.cts +0 -96
- package/dist/watch-DbWXdpzm.d.ts +0 -96
package/dist/nostr.d.cts
CHANGED
|
@@ -1,84 +1,71 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TransportCardFetcher } from '@arkade-os/solver-discovery';
|
|
2
|
+
import { e as RfqTransport } from './rfq-C0tHOvn6.cjs';
|
|
2
3
|
import { SimplePool } from 'nostr-tools';
|
|
3
4
|
import '@arkade-os/sdk';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
-
* and the payloads it carries are public at
|
|
8
|
-
* https://docs.arkadeos.com/intents/reference/rfq).
|
|
7
|
+
* One shared Nostr pool for every swap-package reader and writer.
|
|
9
8
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* nostr-tools' SimplePool already multiplexes subscriptions over one WebSocket
|
|
10
|
+
* per relay, but only within a single pool instance. A pool per transport or
|
|
11
|
+
* per card fetch means one socket per relay per concurrent use, each with its
|
|
12
|
+
* own lifecycle, plus "already in CLOSING" races when two owners tear down the
|
|
13
|
+
* same relay. Sharing one pool collapses that to one socket per relay per app,
|
|
14
|
+
* with subscriptions multiplexed at the protocol level.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* swaps should not pay for a Nostr library it never calls, and re-exporting
|
|
21
|
-
* this from `index.ts` would put `nostr-tools` in every consumer's module graph
|
|
22
|
-
* whether or not they resolve it. The subpath is what keeps that promise: the
|
|
23
|
-
* module is only loaded if it is imported.
|
|
24
|
-
*
|
|
25
|
-
* The consequence, stated plainly: importing this subpath without `nostr-tools`
|
|
26
|
-
* installed fails at resolution with a module-not-found. That is the intended
|
|
27
|
-
* failure — loud, at the import, naming the missing package — rather than a
|
|
28
|
-
* transport that silently degrades.
|
|
29
|
-
*
|
|
30
|
-
* A dynamic `await import()` inside the factory would also defer the cost, but
|
|
31
|
-
* it would make construction async. This transport opens its subscription
|
|
32
|
-
* eagerly, on purpose (see below), so an async factory would push a `await`
|
|
33
|
-
* into every caller for no benefit the subpath does not already give.
|
|
16
|
+
* The pool is process-wide and never closed by borrowers: transports and card
|
|
17
|
+
* fetches close only their own subscription, and a relay's socket closes once
|
|
18
|
+
* nothing has used it for IDLE_CLOSE_MS. closeSharedNostrPool() tears it all
|
|
19
|
+
* down at once, for tests and short-lived scripts.
|
|
34
20
|
*/
|
|
35
21
|
|
|
22
|
+
type NostrPool = SimplePool;
|
|
36
23
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* MUST stay inside NIP-01's ephemeral range (20000–29999) and MUST match the
|
|
40
|
-
* solver's `NOSTR_KIND_DIRECTED`. The two sides subscribe by `kinds`, so a
|
|
41
|
-
* mismatch is not an error either can report — they simply never see each
|
|
42
|
-
* other, and every request times out blaming the solver.
|
|
43
|
-
*
|
|
44
|
-
* Ephemeral because a negotiation is worthless once it is over: a request
|
|
45
|
-
* nobody answered inside the timeout, and a quote past its `valid_until`, help
|
|
46
|
-
* no one, while a retained copy is a permanent record of who negotiated what
|
|
47
|
-
* with whom. The cost is no store-and-forward — a request sent while the solver
|
|
48
|
-
* is disconnected is dropped rather than queued — which the timeout and the
|
|
49
|
-
* caller's retry cover.
|
|
24
|
+
* A pool safe to share: per-subscription idle accounting, and a keep-alive ping
|
|
25
|
+
* that drops a half-open socket instead of letting every quote on it time out.
|
|
50
26
|
*/
|
|
51
|
-
declare const
|
|
27
|
+
declare const createNostrPool: () => SimplePool;
|
|
28
|
+
/** The process-wide pool. Lazy, so HTTP-only consumers never touch the network. */
|
|
29
|
+
declare const sharedNostrPool: () => SimplePool;
|
|
52
30
|
/**
|
|
53
|
-
*
|
|
31
|
+
* Tear down the shared pool. Borrowers must have closed their subscriptions
|
|
32
|
+
* (transport.close(), or the card fetcher's own timeout/EOSE path). For tests
|
|
33
|
+
* and short-lived scripts that should not wait out IDLE_CLOSE_MS.
|
|
34
|
+
*/
|
|
35
|
+
declare const closeSharedNostrPool: () => void;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The Nostr RFQ transport — the PRODUCTION one; `httpTransport` and the dev-broker
|
|
39
|
+
* `relayTransport` in `rfq.ts` are not what deployed solvers listen on. The kind, NIP-44 framing
|
|
40
|
+
* and payloads are public at https://docs.arkadeos.com/intents/reference/rfq.
|
|
54
41
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
42
|
+
* A separate entry point (`@arkade-os/swap/nostr`) so `nostr-tools`, an OPTIONAL peer dependency,
|
|
43
|
+
* stays out of HTTP-only consumers' module graphs. Importing it without `nostr-tools` installed
|
|
44
|
+
* fails loudly at resolution, by design. A dynamic `import()` in the factory was rejected: it
|
|
45
|
+
* would make construction async, and the subscription is opened eagerly.
|
|
59
46
|
*/
|
|
60
|
-
|
|
47
|
+
|
|
61
48
|
/**
|
|
62
|
-
*
|
|
49
|
+
* Directed RFQ traffic. Provisional in the spec.
|
|
63
50
|
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
|
|
51
|
+
* MUST stay inside NIP-01's ephemeral range (20000–29999) and MUST match the solver's
|
|
52
|
+
* `NOSTR_KIND_DIRECTED`: both sides subscribe by `kinds`, so a mismatch surfaces only as every
|
|
53
|
+
* request timing out. Ephemeral because a finished negotiation is worthless and a retained copy
|
|
54
|
+
* records who negotiated with whom; the cost (no store-and-forward) is covered by timeout + retry.
|
|
55
|
+
*/
|
|
56
|
+
declare const RFQ_DIRECTED_KIND = 24859;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Every relay dropped the subscription, so no reply can arrive on it. Distinct from a timeout:
|
|
60
|
+
* that says the solver did not respond, this says we could never have heard it.
|
|
69
61
|
*/
|
|
70
62
|
declare class RelayUnavailable extends Error {
|
|
71
63
|
readonly reasons: string[];
|
|
72
64
|
constructor(reasons: string[]);
|
|
73
65
|
}
|
|
74
66
|
/**
|
|
75
|
-
* `close()` was called while a negotiation was still waiting on a reply.
|
|
76
|
-
*
|
|
77
|
-
* Distinct from both a timeout and {@link RelayUnavailable}, which describe the
|
|
78
|
-
* wire; this describes a decision on our own side of it. A caller that closed
|
|
79
|
-
* deliberately — a user leaving the screen, a flow abandoning its request — can
|
|
80
|
-
* match on this and stay quiet, rather than reporting a solver failure that
|
|
81
|
-
* never happened.
|
|
67
|
+
* `close()` was called while a negotiation was still waiting on a reply. A deliberate local
|
|
68
|
+
* decision, so a caller can match on it and stay quiet rather than report a solver failure.
|
|
82
69
|
*/
|
|
83
70
|
declare class TransportClosed extends Error {
|
|
84
71
|
constructor();
|
|
@@ -89,10 +76,8 @@ interface NostrRfqOptions {
|
|
|
89
76
|
/** The card's `discovery_pubkey`, x-only hex — who we address. */
|
|
90
77
|
solverPubkey: string;
|
|
91
78
|
/**
|
|
92
|
-
* Transport key. Defaults to a FRESH key per transport
|
|
93
|
-
*
|
|
94
|
-
* the protocol needs a stable client key — the quote binds to the covenant,
|
|
95
|
-
* not to who asked for it.
|
|
79
|
+
* Transport key. Defaults to a FRESH key per transport so the negotiation is not linkable to
|
|
80
|
+
* a long-term identity; the quote binds to the covenant, not to who asked.
|
|
96
81
|
*/
|
|
97
82
|
secretKey?: Uint8Array;
|
|
98
83
|
/** Injectable for tests; a caller may also share one pool across swaps. */
|
|
@@ -100,12 +85,16 @@ interface NostrRfqOptions {
|
|
|
100
85
|
timeoutMs?: number;
|
|
101
86
|
}
|
|
102
87
|
/**
|
|
103
|
-
* Build an `RfqTransport` speaking kind-24859 directed traffic.
|
|
104
|
-
*
|
|
105
|
-
* Sends are fire-and-forget publishes; replies arrive on a single long-lived
|
|
106
|
-
* subscription filtered to this transport key, so a reply that arrives before
|
|
107
|
-
* the publish promise settles is not missed.
|
|
88
|
+
* Build an `RfqTransport` speaking kind-24859 directed traffic. Replies arrive on one
|
|
89
|
+
* long-lived subscription filtered to this transport key.
|
|
108
90
|
*/
|
|
109
91
|
declare const nostrRfqTransport: (options: NostrRfqOptions) => RfqTransport;
|
|
92
|
+
interface NostrCardFetcherOptions {
|
|
93
|
+
/** Injectable for tests; a lent pool is never closed, only the subscription on it. */
|
|
94
|
+
pool?: SimplePool;
|
|
95
|
+
/** How long to wait for every relay's EOSE before answering with what arrived. */
|
|
96
|
+
timeoutMs?: number;
|
|
97
|
+
}
|
|
98
|
+
declare const nostrCardFetcher: (options?: NostrCardFetcherOptions) => TransportCardFetcher;
|
|
110
99
|
|
|
111
|
-
export { type
|
|
100
|
+
export { type NostrCardFetcherOptions, type NostrPool, type NostrRfqOptions, RFQ_DIRECTED_KIND, RelayUnavailable, TransportClosed, closeSharedNostrPool, createNostrPool, nostrCardFetcher, nostrRfqTransport, sharedNostrPool };
|
package/dist/nostr.d.ts
CHANGED
|
@@ -1,84 +1,71 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TransportCardFetcher } from '@arkade-os/solver-discovery';
|
|
2
|
+
import { e as RfqTransport } from './rfq-C0tHOvn6.js';
|
|
2
3
|
import { SimplePool } from 'nostr-tools';
|
|
3
4
|
import '@arkade-os/sdk';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
-
* and the payloads it carries are public at
|
|
8
|
-
* https://docs.arkadeos.com/intents/reference/rfq).
|
|
7
|
+
* One shared Nostr pool for every swap-package reader and writer.
|
|
9
8
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
9
|
+
* nostr-tools' SimplePool already multiplexes subscriptions over one WebSocket
|
|
10
|
+
* per relay, but only within a single pool instance. A pool per transport or
|
|
11
|
+
* per card fetch means one socket per relay per concurrent use, each with its
|
|
12
|
+
* own lifecycle, plus "already in CLOSING" races when two owners tear down the
|
|
13
|
+
* same relay. Sharing one pool collapses that to one socket per relay per app,
|
|
14
|
+
* with subscriptions multiplexed at the protocol level.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* swaps should not pay for a Nostr library it never calls, and re-exporting
|
|
21
|
-
* this from `index.ts` would put `nostr-tools` in every consumer's module graph
|
|
22
|
-
* whether or not they resolve it. The subpath is what keeps that promise: the
|
|
23
|
-
* module is only loaded if it is imported.
|
|
24
|
-
*
|
|
25
|
-
* The consequence, stated plainly: importing this subpath without `nostr-tools`
|
|
26
|
-
* installed fails at resolution with a module-not-found. That is the intended
|
|
27
|
-
* failure — loud, at the import, naming the missing package — rather than a
|
|
28
|
-
* transport that silently degrades.
|
|
29
|
-
*
|
|
30
|
-
* A dynamic `await import()` inside the factory would also defer the cost, but
|
|
31
|
-
* it would make construction async. This transport opens its subscription
|
|
32
|
-
* eagerly, on purpose (see below), so an async factory would push a `await`
|
|
33
|
-
* into every caller for no benefit the subpath does not already give.
|
|
16
|
+
* The pool is process-wide and never closed by borrowers: transports and card
|
|
17
|
+
* fetches close only their own subscription, and a relay's socket closes once
|
|
18
|
+
* nothing has used it for IDLE_CLOSE_MS. closeSharedNostrPool() tears it all
|
|
19
|
+
* down at once, for tests and short-lived scripts.
|
|
34
20
|
*/
|
|
35
21
|
|
|
22
|
+
type NostrPool = SimplePool;
|
|
36
23
|
/**
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* MUST stay inside NIP-01's ephemeral range (20000–29999) and MUST match the
|
|
40
|
-
* solver's `NOSTR_KIND_DIRECTED`. The two sides subscribe by `kinds`, so a
|
|
41
|
-
* mismatch is not an error either can report — they simply never see each
|
|
42
|
-
* other, and every request times out blaming the solver.
|
|
43
|
-
*
|
|
44
|
-
* Ephemeral because a negotiation is worthless once it is over: a request
|
|
45
|
-
* nobody answered inside the timeout, and a quote past its `valid_until`, help
|
|
46
|
-
* no one, while a retained copy is a permanent record of who negotiated what
|
|
47
|
-
* with whom. The cost is no store-and-forward — a request sent while the solver
|
|
48
|
-
* is disconnected is dropped rather than queued — which the timeout and the
|
|
49
|
-
* caller's retry cover.
|
|
24
|
+
* A pool safe to share: per-subscription idle accounting, and a keep-alive ping
|
|
25
|
+
* that drops a half-open socket instead of letting every quote on it time out.
|
|
50
26
|
*/
|
|
51
|
-
declare const
|
|
27
|
+
declare const createNostrPool: () => SimplePool;
|
|
28
|
+
/** The process-wide pool. Lazy, so HTTP-only consumers never touch the network. */
|
|
29
|
+
declare const sharedNostrPool: () => SimplePool;
|
|
52
30
|
/**
|
|
53
|
-
*
|
|
31
|
+
* Tear down the shared pool. Borrowers must have closed their subscriptions
|
|
32
|
+
* (transport.close(), or the card fetcher's own timeout/EOSE path). For tests
|
|
33
|
+
* and short-lived scripts that should not wait out IDLE_CLOSE_MS.
|
|
34
|
+
*/
|
|
35
|
+
declare const closeSharedNostrPool: () => void;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The Nostr RFQ transport — the PRODUCTION one; `httpTransport` and the dev-broker
|
|
39
|
+
* `relayTransport` in `rfq.ts` are not what deployed solvers listen on. The kind, NIP-44 framing
|
|
40
|
+
* and payloads are public at https://docs.arkadeos.com/intents/reference/rfq.
|
|
54
41
|
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
42
|
+
* A separate entry point (`@arkade-os/swap/nostr`) so `nostr-tools`, an OPTIONAL peer dependency,
|
|
43
|
+
* stays out of HTTP-only consumers' module graphs. Importing it without `nostr-tools` installed
|
|
44
|
+
* fails loudly at resolution, by design. A dynamic `import()` in the factory was rejected: it
|
|
45
|
+
* would make construction async, and the subscription is opened eagerly.
|
|
59
46
|
*/
|
|
60
|
-
|
|
47
|
+
|
|
61
48
|
/**
|
|
62
|
-
*
|
|
49
|
+
* Directed RFQ traffic. Provisional in the spec.
|
|
63
50
|
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
|
|
51
|
+
* MUST stay inside NIP-01's ephemeral range (20000–29999) and MUST match the solver's
|
|
52
|
+
* `NOSTR_KIND_DIRECTED`: both sides subscribe by `kinds`, so a mismatch surfaces only as every
|
|
53
|
+
* request timing out. Ephemeral because a finished negotiation is worthless and a retained copy
|
|
54
|
+
* records who negotiated with whom; the cost (no store-and-forward) is covered by timeout + retry.
|
|
55
|
+
*/
|
|
56
|
+
declare const RFQ_DIRECTED_KIND = 24859;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Every relay dropped the subscription, so no reply can arrive on it. Distinct from a timeout:
|
|
60
|
+
* that says the solver did not respond, this says we could never have heard it.
|
|
69
61
|
*/
|
|
70
62
|
declare class RelayUnavailable extends Error {
|
|
71
63
|
readonly reasons: string[];
|
|
72
64
|
constructor(reasons: string[]);
|
|
73
65
|
}
|
|
74
66
|
/**
|
|
75
|
-
* `close()` was called while a negotiation was still waiting on a reply.
|
|
76
|
-
*
|
|
77
|
-
* Distinct from both a timeout and {@link RelayUnavailable}, which describe the
|
|
78
|
-
* wire; this describes a decision on our own side of it. A caller that closed
|
|
79
|
-
* deliberately — a user leaving the screen, a flow abandoning its request — can
|
|
80
|
-
* match on this and stay quiet, rather than reporting a solver failure that
|
|
81
|
-
* never happened.
|
|
67
|
+
* `close()` was called while a negotiation was still waiting on a reply. A deliberate local
|
|
68
|
+
* decision, so a caller can match on it and stay quiet rather than report a solver failure.
|
|
82
69
|
*/
|
|
83
70
|
declare class TransportClosed extends Error {
|
|
84
71
|
constructor();
|
|
@@ -89,10 +76,8 @@ interface NostrRfqOptions {
|
|
|
89
76
|
/** The card's `discovery_pubkey`, x-only hex — who we address. */
|
|
90
77
|
solverPubkey: string;
|
|
91
78
|
/**
|
|
92
|
-
* Transport key. Defaults to a FRESH key per transport
|
|
93
|
-
*
|
|
94
|
-
* the protocol needs a stable client key — the quote binds to the covenant,
|
|
95
|
-
* not to who asked for it.
|
|
79
|
+
* Transport key. Defaults to a FRESH key per transport so the negotiation is not linkable to
|
|
80
|
+
* a long-term identity; the quote binds to the covenant, not to who asked.
|
|
96
81
|
*/
|
|
97
82
|
secretKey?: Uint8Array;
|
|
98
83
|
/** Injectable for tests; a caller may also share one pool across swaps. */
|
|
@@ -100,12 +85,16 @@ interface NostrRfqOptions {
|
|
|
100
85
|
timeoutMs?: number;
|
|
101
86
|
}
|
|
102
87
|
/**
|
|
103
|
-
* Build an `RfqTransport` speaking kind-24859 directed traffic.
|
|
104
|
-
*
|
|
105
|
-
* Sends are fire-and-forget publishes; replies arrive on a single long-lived
|
|
106
|
-
* subscription filtered to this transport key, so a reply that arrives before
|
|
107
|
-
* the publish promise settles is not missed.
|
|
88
|
+
* Build an `RfqTransport` speaking kind-24859 directed traffic. Replies arrive on one
|
|
89
|
+
* long-lived subscription filtered to this transport key.
|
|
108
90
|
*/
|
|
109
91
|
declare const nostrRfqTransport: (options: NostrRfqOptions) => RfqTransport;
|
|
92
|
+
interface NostrCardFetcherOptions {
|
|
93
|
+
/** Injectable for tests; a lent pool is never closed, only the subscription on it. */
|
|
94
|
+
pool?: SimplePool;
|
|
95
|
+
/** How long to wait for every relay's EOSE before answering with what arrived. */
|
|
96
|
+
timeoutMs?: number;
|
|
97
|
+
}
|
|
98
|
+
declare const nostrCardFetcher: (options?: NostrCardFetcherOptions) => TransportCardFetcher;
|
|
110
99
|
|
|
111
|
-
export { type
|
|
100
|
+
export { type NostrCardFetcherOptions, type NostrPool, type NostrRfqOptions, RFQ_DIRECTED_KIND, RelayUnavailable, TransportClosed, closeSharedNostrPool, createNostrPool, nostrCardFetcher, nostrRfqTransport, sharedNostrPool };
|