@qntx/wallet-engine 0.13.0 → 0.14.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 +1057 -20
- package/dist/apps-fiat24.d.mts +202 -0
- package/dist/apps-fiat24.mjs +1378 -0
- package/dist/apps-fiat24.mjs.map +1 -0
- package/dist/apps-hyperliquid.d.mts +549 -0
- package/dist/apps-hyperliquid.mjs +2742 -0
- package/dist/apps-hyperliquid.mjs.map +1 -0
- package/dist/apps-polymarket.d.mts +729 -0
- package/dist/apps-polymarket.mjs +3786 -0
- package/dist/apps-polymarket.mjs.map +1 -0
- package/dist/apps.d.mts +136 -0
- package/dist/apps.mjs +535 -0
- package/dist/apps.mjs.map +1 -0
- package/dist/connect-BY1C5ZRI.mjs +210 -0
- package/dist/connect-BY1C5ZRI.mjs.map +1 -0
- package/dist/connect.d.mts +17 -9
- package/dist/connect.mjs +3 -185
- package/dist/{errors-CQnlTc1i.d.mts → controller-DpNVHVsj.d.mts} +1093 -758
- package/dist/controller-rMnaxKAH.mjs +46 -0
- package/dist/controller-rMnaxKAH.mjs.map +1 -0
- package/dist/decimal-COJ4g8qy.mjs +38 -0
- package/dist/decimal-COJ4g8qy.mjs.map +1 -0
- package/dist/eligibility-BfM9ybYZ.mjs +48 -0
- package/dist/eligibility-BfM9ybYZ.mjs.map +1 -0
- package/dist/engine-Dic_kkEr.d.mts +1829 -0
- package/dist/errors-B8W-hoYW.d.mts +7 -0
- package/dist/errors-horUy5k1.mjs +24 -0
- package/dist/errors-horUy5k1.mjs.map +1 -0
- package/dist/gateway-contract.d.mts +3 -608
- package/dist/gateway-contract.mjs +1467 -161
- package/dist/gateway-contract.mjs.map +1 -1
- package/dist/idb.d.mts +5 -0
- package/dist/idb.mjs +122 -46
- package/dist/idb.mjs.map +1 -1
- package/dist/index-vBgfOFIh.d.mts +2227 -0
- package/dist/index.d.mts +58 -618
- package/dist/index.mjs +21963 -6836
- package/dist/index.mjs.map +1 -1
- package/dist/json-BDwV38cj.mjs +15 -0
- package/dist/json-BDwV38cj.mjs.map +1 -0
- package/dist/link-Ceq8Dggp.mjs +139 -0
- package/dist/link-Ceq8Dggp.mjs.map +1 -0
- package/dist/primitives-DbSHLZKq.mjs +31 -0
- package/dist/primitives-DbSHLZKq.mjs.map +1 -0
- package/dist/push-message-AQuzoNFY.d.mts +84 -0
- package/dist/push-message-kbnH1A5w.mjs +142 -0
- package/dist/push-message-kbnH1A5w.mjs.map +1 -0
- package/dist/push.d.mts +13 -0
- package/dist/push.mjs +70 -0
- package/dist/push.mjs.map +1 -0
- package/dist/qr.d.mts +292 -0
- package/dist/qr.mjs +1725 -0
- package/dist/qr.mjs.map +1 -0
- package/dist/registry-CbtwcxkX.mjs +374 -0
- package/dist/registry-CbtwcxkX.mjs.map +1 -0
- package/dist/risk-DyABgg4W.mjs +757 -0
- package/dist/risk-DyABgg4W.mjs.map +1 -0
- package/dist/session-CNJFLarP.mjs +18 -0
- package/dist/session-CNJFLarP.mjs.map +1 -0
- package/dist/socket-ChG9JRT_.mjs +110 -0
- package/dist/socket-ChG9JRT_.mjs.map +1 -0
- package/dist/spi-BrTw5s98.d.mts +3 -0
- package/dist/timer-Cdk5rGM2.mjs +43 -0
- package/dist/timer-Cdk5rGM2.mjs.map +1 -0
- package/dist/types-BpvioFGo.d.mts +258 -0
- package/dist/types-DbftVZ3I.mjs +90 -0
- package/dist/types-DbftVZ3I.mjs.map +1 -0
- package/dist/walletconnect.d.mts +86 -0
- package/dist/walletconnect.mjs +1507 -0
- package/dist/walletconnect.mjs.map +1 -0
- package/dist/webln-BgrtPXpG.mjs +2593 -0
- package/dist/webln-BgrtPXpG.mjs.map +1 -0
- package/dist/webln-Bllk_xJ2.d.mts +666 -0
- package/package.json +92 -19
- package/dist/connect.mjs.map +0 -1
- package/dist/registry-DwguKWvt.d.mts +0 -27
- package/dist/registry-oorLoGtz.mjs +0 -120
- package/dist/registry-oorLoGtz.mjs.map +0 -1
- package/dist/webln-DKqCnqx1.mjs +0 -3677
- package/dist/webln-DKqCnqx1.mjs.map +0 -1
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
import { An as Controller, At as PhishingController, B as AccountRef, Q as TrackedTransaction, R as TransactionController, Rn as EngineLogger, Sn as EngineStore, Tt as WalletConnectOrigin, V as BatchRecord, W as DelegationStatus, Zt as SparkController, _ as RequestController, ht as DappOrigin, vn as NetworkController } from "./controller-DpNVHVsj.mjs";
|
|
2
|
+
import { NostrKeyRef } from "@qntx/wallet";
|
|
3
|
+
import { WalletSigner } from "@qntx/wallet/nostr";
|
|
4
|
+
import { SparkNetwork } from "@qntx/wallet/protocol";
|
|
5
|
+
type ConnectionOrigin = DappOrigin;
|
|
6
|
+
type ConnectionScope = {
|
|
7
|
+
/** CAIP-10 */
|
|
8
|
+
readonly accounts: ReadonlyArray<string>;
|
|
9
|
+
readonly methods: ReadonlyArray<string>;
|
|
10
|
+
readonly notifications: ReadonlyArray<string>;
|
|
11
|
+
};
|
|
12
|
+
type ConnectionSession = {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly origin: ConnectionOrigin;
|
|
15
|
+
/** Keyed by CAIP-2. */
|
|
16
|
+
readonly scopes: Readonly<Record<string, ConnectionScope>>;
|
|
17
|
+
/**
|
|
18
|
+
* The group whose keys sign for every chain scope (`eip155:*`, `solana:*`, `bip122:*`) and
|
|
19
|
+
* `lightning`; absent until such a scope is granted.
|
|
20
|
+
*/
|
|
21
|
+
readonly group?: AccountGroup;
|
|
22
|
+
/** The identity whose key signs for the `nostr` scope; present with a non-empty nostr scope. */
|
|
23
|
+
readonly identity?: NostrKeyRef;
|
|
24
|
+
/** The session's current EVM network; only dApp sessions have one. */
|
|
25
|
+
readonly currentNetwork: string;
|
|
26
|
+
/** The session's current TRON network; set when a `tron` namespace is granted. */
|
|
27
|
+
readonly tronNetwork?: string;
|
|
28
|
+
/** The origin's Nostr policy — set when the host approves a `nostr` connection. */
|
|
29
|
+
readonly nostrPolicy?: NostrPolicy;
|
|
30
|
+
/** The origin's Lightning policy — set when the host approves a `lightning` connection. */
|
|
31
|
+
readonly lightningPolicy?: LightningPolicy;
|
|
32
|
+
readonly createdAt: number;
|
|
33
|
+
readonly lastUsedAt: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* How much a `nostr` session may do without per-call approval: `signing` is `"ask"` (every
|
|
37
|
+
* `signEvent` goes through the pipeline), `"always"` (any kind signs directly), or a kind list (`{
|
|
38
|
+
* kinds }` — only those kinds sign directly, the rest ask); `decrypt` gates `nip04/nip44 .decrypt`.
|
|
39
|
+
* Kinds `0`, `3` and `5` and every replaceable, ephemeral or addressable event (10000–39999) always
|
|
40
|
+
* ask regardless.
|
|
41
|
+
*/
|
|
42
|
+
type NostrPolicy = {
|
|
43
|
+
readonly signing: "ask" | "always" | {
|
|
44
|
+
readonly kinds: ReadonlyArray<number>;
|
|
45
|
+
};
|
|
46
|
+
readonly decrypt: boolean;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* How much a `lightning` session may do without per-call approval: `balance` gates `getBalance`
|
|
50
|
+
* (WebLN). Sending and invoicing always go through their own approvals.
|
|
51
|
+
*/
|
|
52
|
+
type LightningPolicy = {
|
|
53
|
+
readonly balance: boolean;
|
|
54
|
+
};
|
|
55
|
+
/** `connect` asks for accounts; `network` asks to add a network the session does not cover. */
|
|
56
|
+
type PendingConnection = {
|
|
57
|
+
readonly id: string;
|
|
58
|
+
readonly origin: ConnectionOrigin;
|
|
59
|
+
readonly kind: "connect" | "network";
|
|
60
|
+
/**
|
|
61
|
+
* Which namespace the connection is for — `eip155` (EVM), `nostr` (NIP-07) or `lightning`
|
|
62
|
+
* (WebLN).
|
|
63
|
+
*/
|
|
64
|
+
readonly namespace: "eip155" | "nostr" | "lightning" | "solana" | "bip122" | "tron";
|
|
65
|
+
readonly network?: string;
|
|
66
|
+
/** `false` for a `network` request that adds the network without making it current. */
|
|
67
|
+
readonly activate?: boolean;
|
|
68
|
+
readonly createdAt: number;
|
|
69
|
+
};
|
|
70
|
+
/** What a connection request asks for; `namespace` defaults to `eip155`, `activate` to `true`. */
|
|
71
|
+
type ConnectionRequest = {
|
|
72
|
+
readonly kind: PendingConnection["kind"];
|
|
73
|
+
readonly namespace?: PendingConnection["namespace"];
|
|
74
|
+
readonly network?: string;
|
|
75
|
+
readonly activate?: boolean;
|
|
76
|
+
};
|
|
77
|
+
type AccountGroup = {
|
|
78
|
+
readonly walletId: string;
|
|
79
|
+
readonly groupIndex: number;
|
|
80
|
+
};
|
|
81
|
+
type ConnectionState = {
|
|
82
|
+
readonly sessions: Readonly<Record<string, ConnectionSession>>;
|
|
83
|
+
readonly pending: Readonly<Record<string, PendingConnection>>;
|
|
84
|
+
/** Whether the session store is open and loaded. */
|
|
85
|
+
readonly ready: boolean;
|
|
86
|
+
};
|
|
87
|
+
type ConnectionControllerOptions = {
|
|
88
|
+
/** The session EngineStore — the engine opens it once per unlock and closes it on lock. */
|
|
89
|
+
readonly openStore: () => Promise<EngineStore>;
|
|
90
|
+
readonly random: (n: number) => Uint8Array;
|
|
91
|
+
readonly now: () => number;
|
|
92
|
+
readonly logger: EngineLogger;
|
|
93
|
+
/** Development builds also accept `http://localhost`. */
|
|
94
|
+
readonly allowLocalhost: boolean;
|
|
95
|
+
/** The group the app currently shows; sessions are bound to it. */
|
|
96
|
+
readonly selectedGroup: () => AccountGroup | undefined;
|
|
97
|
+
/** The group's EVM address on `network`. */
|
|
98
|
+
readonly evmAddress: (group: AccountGroup, network: string) => Promise<string>;
|
|
99
|
+
/** The group's Solana address on `network` (a CAIP-2 `solana:<genesis>` chain). */
|
|
100
|
+
readonly solanaAddress: (group: AccountGroup, network: string) => Promise<string>;
|
|
101
|
+
/** The group's TRON address (base58) on `network` (a `tron:<chain>` CAIP-2 chain). */
|
|
102
|
+
readonly tronAddress: (group: AccountGroup, network: string) => Promise<string>;
|
|
103
|
+
/** The group's fixed dApp-facing Bitcoin address of `purpose` on `network` (`bip122:<genesis>`). */
|
|
104
|
+
readonly bitcoinAddress: (group: AccountGroup, network: string, purpose: BitcoinPurpose) => Promise<string>;
|
|
105
|
+
readonly enabledNetworks: () => ReadonlyArray<string>;
|
|
106
|
+
/** A Nostr identity's public key — `nostr(wallet).signer(ref).getPublicKey()`. */
|
|
107
|
+
readonly nostrPubkey: (ref: NostrKeyRef) => Promise<string>;
|
|
108
|
+
/** Voids a page's unfinished requests (revoked, or its network changed). */
|
|
109
|
+
readonly invalidate: (origin: string) => void;
|
|
110
|
+
/** Called when the app's group selection changes; returns an unsubscribe. */
|
|
111
|
+
readonly onSelectedGroup: (listener: () => void) => () => void;
|
|
112
|
+
/**
|
|
113
|
+
* Voids every unfinished request — locking, unlocking and switching account group void every
|
|
114
|
+
* unfinished request (requests.mdx invariant 1).
|
|
115
|
+
*/
|
|
116
|
+
readonly invalidateAll: () => void;
|
|
117
|
+
readonly phishing: Pick<PhishingController, "check">;
|
|
118
|
+
readonly setTimer: (ms: number, fn: () => unknown) => () => void;
|
|
119
|
+
};
|
|
120
|
+
/** `payment` is the group's `btc.bip84` address, `ordinals` its `btc.bip86` one. */
|
|
121
|
+
type BitcoinPurpose = "payment" | "ordinals";
|
|
122
|
+
/**
|
|
123
|
+
* What a session authorized on one network: the addresses the page may see and the group whose keys
|
|
124
|
+
* sign for them.
|
|
125
|
+
*/
|
|
126
|
+
type SessionAccounts = {
|
|
127
|
+
readonly group: AccountGroup;
|
|
128
|
+
readonly addresses: ReadonlyArray<string>;
|
|
129
|
+
};
|
|
130
|
+
declare class ConnectionController extends Controller<ConnectionState> {
|
|
131
|
+
private readonly options;
|
|
132
|
+
private engineStore;
|
|
133
|
+
private readonly waiters;
|
|
134
|
+
private readonly expiries;
|
|
135
|
+
private identity;
|
|
136
|
+
private unsubscribeSelection;
|
|
137
|
+
private writeQueue;
|
|
138
|
+
constructor(options: ConnectionControllerOptions);
|
|
139
|
+
init(): Promise<void>;
|
|
140
|
+
destroy(): Promise<void>;
|
|
141
|
+
/** Locking is not consent: every pending connection is rejected. */
|
|
142
|
+
lock(): void;
|
|
143
|
+
/**
|
|
144
|
+
* A page navigated away (or the bridge is being disposed): the origin's pending connection
|
|
145
|
+
* requests are rejected and its unfinished pipeline requests voided — the live session survives
|
|
146
|
+
* (a refresh is not a revocation).
|
|
147
|
+
*/
|
|
148
|
+
invalidateOrigin(origin: string): void;
|
|
149
|
+
/**
|
|
150
|
+
* Throws `4100` unless `origin` is `https://host[:port]` (or localhost in development) and not on
|
|
151
|
+
* the phishing list. A WalletConnect peer instead passes its origin object: an established
|
|
152
|
+
* session must carry the same session key and topic, and its unverified peer URL must not be on
|
|
153
|
+
* the phishing list.
|
|
154
|
+
*/
|
|
155
|
+
checkOrigin(origin: string | WalletConnectOrigin): ConnectionOrigin;
|
|
156
|
+
session(origin: string): ConnectionSession | undefined;
|
|
157
|
+
pending(): ReadonlyArray<PendingConnection>;
|
|
158
|
+
/** What the origin's session authorized on `network` — `undefined` when nothing. */
|
|
159
|
+
sessionAccounts(origin: string, network: string): SessionAccounts | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* The selected group's accounts on `network` as a grant would bind them — a preview for callers
|
|
162
|
+
* that sign before a session exists; nothing is persisted. `undefined` when no group is selected
|
|
163
|
+
* or the account cannot be derived.
|
|
164
|
+
*/
|
|
165
|
+
previewAccounts(network: string): Promise<SessionAccounts | undefined>;
|
|
166
|
+
/** The identity the origin's `nostr` scope is bound to, with the pubkey the page sees. */
|
|
167
|
+
nostrIdentity(origin: string): {
|
|
168
|
+
readonly ref: NostrKeyRef;
|
|
169
|
+
readonly pubkey: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
/** Whether `network` is an EVM network the wallet has enabled. */
|
|
172
|
+
isEnabled(network: string): boolean;
|
|
173
|
+
/** Throws `4100` unless the origin's session covers `method` on `network`. */
|
|
174
|
+
authorize(origin: string, network: string, method: string): ConnectionSession;
|
|
175
|
+
/** Resolves with the session once the host approves; rejects with `4001` when it refuses. */
|
|
176
|
+
request(origin: string, { kind, namespace, network, activate }: ConnectionRequest): Promise<ConnectionSession>;
|
|
177
|
+
/**
|
|
178
|
+
* The host's approval, by id: the accounts granted (of the app's selected group for a
|
|
179
|
+
* chain/lightning grant, of the active identity for `nostr`) and the network. The whole
|
|
180
|
+
* derivation, merge and persist runs inside the session write queue, so a concurrent group switch
|
|
181
|
+
* cannot interleave.
|
|
182
|
+
*/
|
|
183
|
+
approveConnection(id: string, grant: {
|
|
184
|
+
readonly accounts: ReadonlyArray<string>;
|
|
185
|
+
readonly network: string;
|
|
186
|
+
/** The `nostr` namespace's grant: the identity's pubkey and the origin's policy. */
|
|
187
|
+
readonly nostr?: {
|
|
188
|
+
readonly pubkey: string;
|
|
189
|
+
readonly policy: NostrPolicy;
|
|
190
|
+
};
|
|
191
|
+
/** The `lightning` namespace's grant: the origin's policy. */
|
|
192
|
+
readonly lightning?: {
|
|
193
|
+
readonly policy: LightningPolicy;
|
|
194
|
+
};
|
|
195
|
+
}): Promise<ConnectionSession>;
|
|
196
|
+
rejectConnection(id: string): void;
|
|
197
|
+
/**
|
|
198
|
+
* Establishes a WalletConnect peer's session inside the session write queue: each network's scope
|
|
199
|
+
* is bound to the selected group's accounts, `settle` receives the bound scopes and settles the
|
|
200
|
+
* peer on the relay, returning its origin, and the session is persisted under that origin — a
|
|
201
|
+
* group switch cannot interleave between the accounts the peer is given and the ones recorded.
|
|
202
|
+
* Nothing is persisted when `settle` throws.
|
|
203
|
+
*/
|
|
204
|
+
establishWalletConnect(scopes: Readonly<Record<string, Omit<ConnectionScope, "accounts">>>, settle: (scopes: Readonly<Record<string, ConnectionScope>>) => Promise<WalletConnectOrigin>): Promise<ConnectionSession>;
|
|
205
|
+
/** Ends the origin's session; its pending connection and unfinished requests are void. */
|
|
206
|
+
revoke(origin: string): Promise<void>;
|
|
207
|
+
/** Switches within the session's scope; the origin's unfinished requests are void. */
|
|
208
|
+
setCurrentNetwork(origin: string, network: string): Promise<void>;
|
|
209
|
+
/** Switches the session's TRON network; the origin's unfinished requests are void. */
|
|
210
|
+
setTronNetwork(origin: string, network: string): Promise<void>;
|
|
211
|
+
touch(origin: string): Promise<void>;
|
|
212
|
+
/** The active Nostr identity — `undefined` until the host picks one. */
|
|
213
|
+
activeIdentity(): NostrKeyRef | undefined;
|
|
214
|
+
/** The origin's persisted Nostr policy — `undefined` until it is nostr-authorized. */
|
|
215
|
+
nostrPolicy(origin: string): NostrPolicy | undefined;
|
|
216
|
+
/** The origin's persisted Lightning policy — `undefined` until it is lightning-authorized. */
|
|
217
|
+
lightningPolicy(origin: string): LightningPolicy | undefined;
|
|
218
|
+
private bitcoinScope;
|
|
219
|
+
/**
|
|
220
|
+
* The host's Nostr identity selection: the pubkey is derived first, then every session with a
|
|
221
|
+
* non-empty `nostr` scope is re-pointed — `identity` and the scope's account written together —
|
|
222
|
+
* and the origin's unfinished requests voided. No event — NIP-07 has none.
|
|
223
|
+
*/
|
|
224
|
+
setActiveIdentity(ref: NostrKeyRef | undefined): Promise<void>;
|
|
225
|
+
/**
|
|
226
|
+
* Every session write — a re-point, a grant's merge and persist, a revoke, a network switch, a
|
|
227
|
+
* touch — queues here so one writer runs at a time and reads the latest session at its turn. A
|
|
228
|
+
* failed task does not break the chain.
|
|
229
|
+
*/
|
|
230
|
+
private serial;
|
|
231
|
+
private repointQueued;
|
|
232
|
+
/**
|
|
233
|
+
* Re-binds every session's chain/lightning scopes to the app's current group selection: each
|
|
234
|
+
* scope's accounts become the target's (empty when the selection is cleared or a derivation
|
|
235
|
+
* fails), `group` written together with them. The origin's unfinished requests are voided.
|
|
236
|
+
*/
|
|
237
|
+
private repoint;
|
|
238
|
+
/**
|
|
239
|
+
* A session's scopes re-computed for `target`: EVM and Solana scope accounts are the group's
|
|
240
|
+
* address, `bip122` its two purpose addresses, `lightning` its `spark:` ref; `nostr` is the
|
|
241
|
+
* identity's and passes through. `target` undefined or a failed derivation → empty accounts.
|
|
242
|
+
*/
|
|
243
|
+
private repointScopes;
|
|
244
|
+
/**
|
|
245
|
+
* The scopes a grant produces, bound to the app's selected group (chain/lightning namespaces) or
|
|
246
|
+
* the active identity (`nostr`) — read at write-queue turn, not request time.
|
|
247
|
+
*/
|
|
248
|
+
private grantScopes;
|
|
249
|
+
private newSessionId;
|
|
250
|
+
private dropPending;
|
|
251
|
+
private persist;
|
|
252
|
+
private requireStore;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* The Bitcoin Wallet Standard (Exodus' `bitcoin:*` features, registered through
|
|
256
|
+
* `@wallet-standard/wallet` like the Solana wallet) handler — the bridge routes `provider:
|
|
257
|
+
* "bitcoin"` messages here.
|
|
258
|
+
*/
|
|
259
|
+
type BitcoinRequest = {
|
|
260
|
+
readonly method: string;
|
|
261
|
+
readonly params?: unknown;
|
|
262
|
+
/**
|
|
263
|
+
* The CAIP-2 network the call targets — a WalletConnect request names it; the in-app-browser
|
|
264
|
+
* bridge never sets it (the page has no say), so its calls use the wallet's default network.
|
|
265
|
+
*/
|
|
266
|
+
readonly network?: string;
|
|
267
|
+
};
|
|
268
|
+
type BitcoinHandler = {
|
|
269
|
+
readonly handle: (origin: string | WalletConnectOrigin, request: BitcoinRequest) => Promise<unknown>;
|
|
270
|
+
readonly subscribe: (listener: (event: BitcoinEvent) => void) => () => void;
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* The Bitcoin Wallet Standard chain ids to the registry's CAIP-2 ids: `bitcoin:testnet` is the
|
|
274
|
+
* registry's default test network (Testnet4 — the registry has no Testnet3).
|
|
275
|
+
*/
|
|
276
|
+
declare const BITCOIN_CHAIN_IDS: Readonly<Record<string, string>>;
|
|
277
|
+
/** The Wallet Standard `WalletAccount` shape `bitcoin:connect` returns per account. */
|
|
278
|
+
type BitcoinWalletAccount = {
|
|
279
|
+
readonly address: string;
|
|
280
|
+
/** `payment`: the compressed key (33 bytes); `ordinals`: the x-only internal key (32 bytes). */
|
|
281
|
+
readonly publicKey: Uint8Array;
|
|
282
|
+
readonly chains: ReadonlyArray<string>;
|
|
283
|
+
readonly features: ReadonlyArray<string>;
|
|
284
|
+
};
|
|
285
|
+
type BitcoinEvent = {
|
|
286
|
+
readonly name: "bitcoinAccountsChanged";
|
|
287
|
+
readonly origin: string;
|
|
288
|
+
readonly accounts: ReadonlyArray<BitcoinWalletAccount>;
|
|
289
|
+
};
|
|
290
|
+
type BitcoinConnections = Pick<ConnectionController, "checkOrigin" | "session" | "authorize" | "sessionAccounts" | "request" | "touch" | "revoke" | "getState" | "store">;
|
|
291
|
+
type BitcoinRequests = Pick<RequestController, "prepare" | "outcome">;
|
|
292
|
+
type Options$2 = {
|
|
293
|
+
readonly connections: BitcoinConnections;
|
|
294
|
+
readonly requests: BitcoinRequests;
|
|
295
|
+
/** The group's address and public key for `purpose` on `network` (receive chain, index 0). */
|
|
296
|
+
readonly bitcoinAccount: (group: {
|
|
297
|
+
readonly walletId: string;
|
|
298
|
+
readonly groupIndex: number;
|
|
299
|
+
}, network: string, purpose: BitcoinPurpose) => Promise<{
|
|
300
|
+
readonly address: string;
|
|
301
|
+
readonly publicKey: Uint8Array;
|
|
302
|
+
}>;
|
|
303
|
+
readonly bitcoinNetwork: () => string;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* The Bitcoin Wallet Standard handler: `bitcoin:connect` authorizes the `bip122` scope (both the
|
|
307
|
+
* `payment` and the `ordinals` account) and returns the requested purposes in order;
|
|
308
|
+
* `bitcoin:signMessage` goes through `bitcoin-sign` (BIP-322 simple); `bitcoinAccountsChanged`
|
|
309
|
+
* carries the re-pointed accounts the bridge forwards as `bitcoin:events` `change` on a group
|
|
310
|
+
* switch.
|
|
311
|
+
*/
|
|
312
|
+
declare class BitcoinWalletHandler implements BitcoinHandler {
|
|
313
|
+
readonly options: Options$2;
|
|
314
|
+
private readonly events;
|
|
315
|
+
constructor(options: Options$2);
|
|
316
|
+
subscribe(listener: (event: BitcoinEvent) => void): () => void;
|
|
317
|
+
handle(origin: string | WalletConnectOrigin, request: BitcoinRequest): Promise<unknown>;
|
|
318
|
+
private connect;
|
|
319
|
+
private walletAccount;
|
|
320
|
+
/**
|
|
321
|
+
* Signs `message` (UTF-8 text only — `bitcoin.message` takes text, so there is no blind path) for
|
|
322
|
+
* one of the session's accounts. The signature is the BIP-322 simple witness serialization
|
|
323
|
+
* (witness item count, then each item length-prefixed) — the kernel's `smp` + base64 string
|
|
324
|
+
* decoded to bytes, which is what MetaMask's Bitcoin Wallet Standard wallet hands out.
|
|
325
|
+
*/
|
|
326
|
+
private signMessage;
|
|
327
|
+
/**
|
|
328
|
+
* Signs (and with `send` broadcasts) a batch of dApp PSBTs under one approval. Every account
|
|
329
|
+
* named must be a session account — inputs of both purposes may mix in one PSBT, each sign entry
|
|
330
|
+
* carries its account's template — and `chain`, when given, must be the session's network.
|
|
331
|
+
*/
|
|
332
|
+
private signTransactions;
|
|
333
|
+
/**
|
|
334
|
+
* A `change` event's accounts, derived only from the session after the write: the binding's
|
|
335
|
+
* `payment` and `ordinals` accounts — empty when the session is gone or none are bound.
|
|
336
|
+
*/
|
|
337
|
+
private sessionAccountsChanged;
|
|
338
|
+
}
|
|
339
|
+
type Eip1193Request = {
|
|
340
|
+
readonly method: string;
|
|
341
|
+
readonly params?: unknown;
|
|
342
|
+
/**
|
|
343
|
+
* The CAIP-2 network the call targets — a WalletConnect request names it; the in-app-browser
|
|
344
|
+
* bridge never sets it (the page has no say), so its calls use the session's current network.
|
|
345
|
+
*/
|
|
346
|
+
readonly network?: string;
|
|
347
|
+
};
|
|
348
|
+
type Eip1193Event = {
|
|
349
|
+
readonly name: "connect";
|
|
350
|
+
readonly origin: string;
|
|
351
|
+
readonly chainId: string;
|
|
352
|
+
} | {
|
|
353
|
+
readonly name: "accountsChanged";
|
|
354
|
+
readonly origin: string;
|
|
355
|
+
readonly accounts: ReadonlyArray<string>;
|
|
356
|
+
} | {
|
|
357
|
+
readonly name: "chainChanged";
|
|
358
|
+
readonly origin: string;
|
|
359
|
+
readonly chainId: string;
|
|
360
|
+
} | {
|
|
361
|
+
readonly name: "disconnect";
|
|
362
|
+
readonly origin: string;
|
|
363
|
+
};
|
|
364
|
+
type Eip1193HandlerOptions = {
|
|
365
|
+
readonly connections: ConnectionController;
|
|
366
|
+
readonly requests: RequestController;
|
|
367
|
+
readonly networks: NetworkController;
|
|
368
|
+
/** The network an unconnected page sees. */
|
|
369
|
+
readonly defaultNetwork: () => string;
|
|
370
|
+
/** Whether a token is already in the built-in table or the user's custom tokens. */
|
|
371
|
+
readonly isTracked: (network: string, address: string) => boolean;
|
|
372
|
+
/** The account's EIP-7702 delegation state on `network`. */
|
|
373
|
+
readonly delegationState: (account: AccountRef, network: string) => Promise<DelegationStatus>;
|
|
374
|
+
/** `wallet_sendCalls` bundles, keyed by their id. */
|
|
375
|
+
readonly batches: {
|
|
376
|
+
readonly record: (record: BatchRecord) => Promise<void>;
|
|
377
|
+
readonly get: (origin: string, id: string) => BatchRecord | undefined;
|
|
378
|
+
};
|
|
379
|
+
/** A tracked transaction by id — `wallet_getCallsStatus` aggregates them. */
|
|
380
|
+
readonly txById: (id: string) => TrackedTransaction | undefined;
|
|
381
|
+
/** The host shows a bundle's status page; `wallet_showCallsStatus` is the trigger. */
|
|
382
|
+
readonly showCallsStatus: (request: {
|
|
383
|
+
readonly origin: string;
|
|
384
|
+
readonly txIds: ReadonlyArray<string>;
|
|
385
|
+
}) => void;
|
|
386
|
+
readonly now: () => number;
|
|
387
|
+
readonly random: (length: number) => Uint8Array;
|
|
388
|
+
};
|
|
389
|
+
declare class Eip1193Handler {
|
|
390
|
+
private readonly options;
|
|
391
|
+
private readonly events;
|
|
392
|
+
constructor(options: Eip1193HandlerOptions);
|
|
393
|
+
/** Events for the host to forward to pages; derived from changes to the sessions. */
|
|
394
|
+
subscribe(listener: (event: Eip1193Event) => void): () => void;
|
|
395
|
+
handle(origin: string | WalletConnectOrigin, request: Eip1193Request): Promise<unknown>;
|
|
396
|
+
/** The session's bound accounts on its current network — the page's `eth_accounts`. */
|
|
397
|
+
private accounts;
|
|
398
|
+
private requestAccounts;
|
|
399
|
+
private permissions;
|
|
400
|
+
private switchChain;
|
|
401
|
+
/**
|
|
402
|
+
* EIP-3085. The chain must already be a network the wallet enables; the page's `rpcUrls` are
|
|
403
|
+
* validated for shape and never read or used — custom endpoints are the user's setting.
|
|
404
|
+
*/
|
|
405
|
+
private addChain;
|
|
406
|
+
/** EIP-747 (ERC-20 only): `symbol`, `decimals` and `image` from the page are never used. */
|
|
407
|
+
private watchAsset;
|
|
408
|
+
/** The address the page named, checked against the session binding on its current network. */
|
|
409
|
+
private authorizedAccount;
|
|
410
|
+
private personalSign;
|
|
411
|
+
private typedData;
|
|
412
|
+
private sendTransaction;
|
|
413
|
+
/** The eip1559 placeholder the pipeline re-fills; only to, value, data and gas survive. */
|
|
414
|
+
private txSkeleton;
|
|
415
|
+
/**
|
|
416
|
+
* The session authorized for `method` on the request's target network (`network` overrides the
|
|
417
|
+
* session's current one for a WalletConnect call); the returned session's `currentNetwork` is the
|
|
418
|
+
* target so every downstream use — the account binding, the chainId checks — hits it.
|
|
419
|
+
*/
|
|
420
|
+
private signingSession;
|
|
421
|
+
private sign;
|
|
422
|
+
private requiredSession;
|
|
423
|
+
private accountFor;
|
|
424
|
+
/**
|
|
425
|
+
* EIP-5792 `wallet_getCapabilities`: `atomic` per chain the page asks about or its session
|
|
426
|
+
* covers.
|
|
427
|
+
*/
|
|
428
|
+
private getCapabilities;
|
|
429
|
+
/** `wallet_sendCalls` (EIP-5792 v2.0.0): atomic batch, sequential fallback or 5760. */
|
|
430
|
+
private sendCalls;
|
|
431
|
+
/** One call through the `evm-sign` transaction path — its own approval. */
|
|
432
|
+
private submitCall;
|
|
433
|
+
/** ≥2 calls through `evm-batch` with the page's origin. */
|
|
434
|
+
private submitBatch;
|
|
435
|
+
/** `wallet_getCallsStatus` / `wallet_showCallsStatus`: the record must belong to the origin. */
|
|
436
|
+
private callsStatus;
|
|
437
|
+
private read;
|
|
438
|
+
}
|
|
439
|
+
/** A NIP-07 method call from the page. */
|
|
440
|
+
type Nip07Request = {
|
|
441
|
+
readonly method: string;
|
|
442
|
+
readonly params?: unknown;
|
|
443
|
+
};
|
|
444
|
+
type Nip07HandlerOptions = {
|
|
445
|
+
readonly connections: Pick<ConnectionController, "checkOrigin" | "authorize" | "session" | "nostrIdentity" | "nostrPolicy" | "request" | "touch">;
|
|
446
|
+
readonly requests: Pick<RequestController, "prepare" | "outcome">;
|
|
447
|
+
/** `nostr(wallet).signer(ref)` — the session identity's signer. */
|
|
448
|
+
readonly signerFor: (ref: NostrKeyRef) => WalletSigner;
|
|
449
|
+
};
|
|
450
|
+
declare class Nip07Handler {
|
|
451
|
+
private readonly options;
|
|
452
|
+
constructor(options: Nip07HandlerOptions);
|
|
453
|
+
handle(origin: string, request: Nip07Request): Promise<unknown>;
|
|
454
|
+
/** The session's bound identity pubkey — a `nostr` connection approval when none yet. */
|
|
455
|
+
private publicKey;
|
|
456
|
+
private signEvent;
|
|
457
|
+
private crypt;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* The Wallet Standard (`window.solana` / `registerWallet`) handler — the bridge routes `provider:
|
|
461
|
+
* "solana"` messages here.
|
|
462
|
+
*/
|
|
463
|
+
type SolanaRequest = {
|
|
464
|
+
readonly method: string;
|
|
465
|
+
readonly params?: unknown;
|
|
466
|
+
/**
|
|
467
|
+
* The CAIP-2 network the call targets — a WalletConnect request names it; the in-app-browser
|
|
468
|
+
* bridge never sets it (the page has no say), so its calls use the wallet's default network.
|
|
469
|
+
*/
|
|
470
|
+
readonly network?: string;
|
|
471
|
+
};
|
|
472
|
+
type SolanaHandler = {
|
|
473
|
+
readonly handle: (origin: string | WalletConnectOrigin, request: SolanaRequest) => Promise<unknown>;
|
|
474
|
+
readonly subscribe: (listener: (event: SolanaEvent) => void) => () => void;
|
|
475
|
+
};
|
|
476
|
+
/**
|
|
477
|
+
* The Wallet Standard short chain ids to the registry's CAIP-2 genesis-hash ids, derived from the
|
|
478
|
+
* solana network registry by name.
|
|
479
|
+
*/
|
|
480
|
+
declare const SOLANA_CHAIN_IDS: Readonly<Record<string, string>>;
|
|
481
|
+
/** The Wallet Standard `WalletAccount` shape `standard:connect` returns per account. */
|
|
482
|
+
type SolanaWalletAccount = {
|
|
483
|
+
readonly address: string;
|
|
484
|
+
readonly publicKey: Uint8Array;
|
|
485
|
+
readonly chains: ReadonlyArray<string>;
|
|
486
|
+
readonly features: ReadonlyArray<string>;
|
|
487
|
+
readonly icon?: string;
|
|
488
|
+
readonly label?: string;
|
|
489
|
+
};
|
|
490
|
+
type SolanaEvent = {
|
|
491
|
+
readonly name: "solanaAccountsChanged";
|
|
492
|
+
readonly origin: string;
|
|
493
|
+
readonly accounts: ReadonlyArray<SolanaWalletAccount>;
|
|
494
|
+
};
|
|
495
|
+
type SolanaConnections = Pick<ConnectionController, "checkOrigin" | "session" | "authorize" | "sessionAccounts" | "request" | "touch" | "revoke" | "getState" | "store">;
|
|
496
|
+
type SolanaRequests = Pick<RequestController, "prepare" | "outcome">;
|
|
497
|
+
type Options$1 = {
|
|
498
|
+
readonly connections: SolanaConnections;
|
|
499
|
+
readonly requests: SolanaRequests;
|
|
500
|
+
/** The group's Solana address + public key on `network` (the `solana.bip44-change` account). */
|
|
501
|
+
readonly solanaAccount: (group: {
|
|
502
|
+
readonly walletId: string;
|
|
503
|
+
readonly groupIndex: number;
|
|
504
|
+
}, network: string) => Promise<{
|
|
505
|
+
readonly address: string;
|
|
506
|
+
readonly publicKey: Uint8Array;
|
|
507
|
+
}>;
|
|
508
|
+
readonly solanaNetwork: () => string;
|
|
509
|
+
};
|
|
510
|
+
/**
|
|
511
|
+
* The Wallet Standard handler: `standard:connect` authorizes the `solana` scope, `solana:*` sign
|
|
512
|
+
* requests go through `solana-sign`, `solanaAccountsChanged` returns the re-pointed accounts the
|
|
513
|
+
* bridge forwards as `standard:events` `change` on a group switch.
|
|
514
|
+
*/
|
|
515
|
+
declare class SolanaWalletHandler implements SolanaHandler {
|
|
516
|
+
readonly options: Options$1;
|
|
517
|
+
private readonly events;
|
|
518
|
+
constructor(options: Options$1);
|
|
519
|
+
/** `standard:events` `change` per origin — derived from changes to the sessions. */
|
|
520
|
+
subscribe(listener: (event: SolanaEvent) => void): () => void;
|
|
521
|
+
handle(origin: string | WalletConnectOrigin, request: SolanaRequest): Promise<unknown>;
|
|
522
|
+
private connect;
|
|
523
|
+
private walletAccount;
|
|
524
|
+
private signTransactions;
|
|
525
|
+
/**
|
|
526
|
+
* The network a transaction call targets: `network` (a WalletConnect request names its CAIP-2
|
|
527
|
+
* chain) or the wallet's default when no input names a chain, otherwise the one chain every input
|
|
528
|
+
* agrees on (`chain` is required for sign-and-send).
|
|
529
|
+
*/
|
|
530
|
+
private networkOf;
|
|
531
|
+
private signMessage;
|
|
532
|
+
/**
|
|
533
|
+
* Sign In With Solana: connects first when needed, binds the message to the page's host and the
|
|
534
|
+
* session's account, and signs the exact text the user is shown.
|
|
535
|
+
*/
|
|
536
|
+
private signIn;
|
|
537
|
+
private signMessageRequest;
|
|
538
|
+
/** One `solana-sign` request for the session's bound group, resolved to its outcome. */
|
|
539
|
+
private signRequest;
|
|
540
|
+
/**
|
|
541
|
+
* A `change` event's accounts, derived only from the session after the write: the binding's
|
|
542
|
+
* account — empty when the session is gone or no Solana account is bound.
|
|
543
|
+
*/
|
|
544
|
+
private sessionAccountsChanged;
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* The TronLink-style (`window.tron` / `window.tronLink`) handler — the bridge routes `provider:
|
|
548
|
+
* "tron"` messages here.
|
|
549
|
+
*/
|
|
550
|
+
type TronRequest = {
|
|
551
|
+
readonly method: string;
|
|
552
|
+
readonly params?: unknown;
|
|
553
|
+
};
|
|
554
|
+
type TronHandler = {
|
|
555
|
+
readonly handle: (origin: string, request: TronRequest) => Promise<unknown>;
|
|
556
|
+
readonly subscribe: (listener: (event: TronEvent) => void) => () => void;
|
|
557
|
+
};
|
|
558
|
+
/** The address pair `tron_getProviderState` and `tronWeb.defaultAddress` report. */
|
|
559
|
+
type TronProviderAddress = {
|
|
560
|
+
readonly base58: string;
|
|
561
|
+
readonly hex: string;
|
|
562
|
+
};
|
|
563
|
+
/** The injected provider's state: the page mirrors it on `defaultAddress`/`ready`/events. */
|
|
564
|
+
type TronProviderState = {
|
|
565
|
+
readonly address: TronProviderAddress | false;
|
|
566
|
+
readonly chainId: string;
|
|
567
|
+
/** The network's genesis block id — `trx.getBlockByNumber(0)` reports it as `blockID`. */
|
|
568
|
+
readonly genesis: string;
|
|
569
|
+
};
|
|
570
|
+
type TronEvent = {
|
|
571
|
+
readonly name: "tronStateChanged";
|
|
572
|
+
readonly origin: string;
|
|
573
|
+
readonly state: TronProviderState;
|
|
574
|
+
};
|
|
575
|
+
type TronConnections = Pick<ConnectionController, "checkOrigin" | "session" | "authorize" | "sessionAccounts" | "setTronNetwork" | "request" | "touch" | "revoke" | "getState" | "store">;
|
|
576
|
+
type TronRequests = Pick<RequestController, "prepare" | "outcome">;
|
|
577
|
+
type Options = {
|
|
578
|
+
readonly connections: TronConnections;
|
|
579
|
+
readonly requests: TronRequests;
|
|
580
|
+
readonly transactions: Pick<TransactionController, "submitDappTron">;
|
|
581
|
+
/** The enabled TRON networks (`tron:` CAIP-2 ids) — every one is in a `tron` grant's scopes. */
|
|
582
|
+
readonly tronNetworks: () => ReadonlyArray<string>;
|
|
583
|
+
/** The default TRON network — the current one until a session picks another. */
|
|
584
|
+
readonly tronNetwork: () => string;
|
|
585
|
+
/** Whether the TRC-20 contract at `address` on `network` is already tracked. */
|
|
586
|
+
readonly isTracked: (network: string, address: string) => boolean;
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
* The Wallet-Standard-like TronLink handler: `tron_requestAccounts`/`eth_requestAccounts` authorize
|
|
590
|
+
* the `tron` scope, signing goes through `tron-sign`, `tronStateChanged` carries the provider state
|
|
591
|
+
* the injected script turns into `accountsChanged`/`chainChanged`/`connect`.
|
|
592
|
+
*/
|
|
593
|
+
declare class TronWalletHandler implements TronHandler {
|
|
594
|
+
readonly options: Options;
|
|
595
|
+
private readonly events;
|
|
596
|
+
constructor(options: Options);
|
|
597
|
+
/** `tronStateChanged` per origin — derived from changes to the sessions. */
|
|
598
|
+
subscribe(listener: (event: TronEvent) => void): () => void;
|
|
599
|
+
handle(origin: string, request: TronRequest): Promise<unknown>;
|
|
600
|
+
/** The injected provider's state for the session's TRON network (or the default when absent). */
|
|
601
|
+
private providerState;
|
|
602
|
+
/**
|
|
603
|
+
* `eth_requestAccounts` resolves `[base58]`; the legacy `tron_requestAccounts` resolves a `{code,
|
|
604
|
+
* message}` result instead of rejecting — 200 on success, 4001 when the user refused, 4000 for
|
|
605
|
+
* anything else (TronLink's own convention).
|
|
606
|
+
*/
|
|
607
|
+
private requestAccounts;
|
|
608
|
+
/** The session's current TRON network and its binding — every signing method requires both. */
|
|
609
|
+
private signingSession;
|
|
610
|
+
/**
|
|
611
|
+
* A `wallet_switchEthereumChain` on `window.tron` switches the session's TRON network: a chain id
|
|
612
|
+
* that names no enabled TRON network is 4902, no session is 4100.
|
|
613
|
+
*/
|
|
614
|
+
private switchChain;
|
|
615
|
+
/** The TRC-20 `wallet_watchAsset`: other token kinds are 4200, malformed params invalid. */
|
|
616
|
+
private watchAsset;
|
|
617
|
+
/**
|
|
618
|
+
* The dApp transaction shape checks every `tron_sign*`/`tron_send*` call shares: the declared
|
|
619
|
+
* `txID` must be the sha256 of `raw_data_hex`, and a `raw_data` JSON must encode to exactly those
|
|
620
|
+
* bytes — the wallet never signs bytes the page could misrepresent.
|
|
621
|
+
*/
|
|
622
|
+
private transactionOf;
|
|
623
|
+
private tronSign;
|
|
624
|
+
/** `trx.sign(tx)` — signs the exact `raw_data` bytes; the page broadcasts them itself. */
|
|
625
|
+
private signTransaction;
|
|
626
|
+
/** `trx.sendRawTransaction(tx)` — broadcasts a transaction this wallet already signed. */
|
|
627
|
+
private sendRawTransaction;
|
|
628
|
+
/** `trx.signMessageV2(m)` — a TIP-191 personal-sign of arbitrary bytes. */
|
|
629
|
+
private signMessage;
|
|
630
|
+
/** `trx.signTypedData`/`_signTypedData` — a TIP-712 typed-data signature. */
|
|
631
|
+
private signTypedData;
|
|
632
|
+
}
|
|
633
|
+
/** A WebLN method call from the page. */
|
|
634
|
+
type WeblnRequest = {
|
|
635
|
+
readonly method: string;
|
|
636
|
+
readonly params?: unknown;
|
|
637
|
+
};
|
|
638
|
+
type WeblnHandlerOptions = {
|
|
639
|
+
readonly connections: Pick<ConnectionController, "checkOrigin" | "authorize" | "session" | "sessionAccounts" | "lightningPolicy" | "request" | "touch">;
|
|
640
|
+
readonly requests: Pick<RequestController, "prepare" | "outcome">;
|
|
641
|
+
readonly spark: Pick<SparkController, "accountBalance" | "paymentStatus">;
|
|
642
|
+
/** The Spark network the account's signer runs on. */
|
|
643
|
+
readonly sparkNetwork: SparkNetwork;
|
|
644
|
+
readonly now: () => number;
|
|
645
|
+
/** The node's display alias — host-configured, never a pubkey. */
|
|
646
|
+
readonly alias: string;
|
|
647
|
+
/** The host's lightning fee cap — `pay`'s `maxFeeSats` comes from here. */
|
|
648
|
+
readonly lightningMaxFee: (amountSats: number) => number;
|
|
649
|
+
/** The injected wait for the preimage poll. */
|
|
650
|
+
readonly sleep: (ms: number) => Promise<void>;
|
|
651
|
+
};
|
|
652
|
+
declare class WeblnHandler {
|
|
653
|
+
private readonly options;
|
|
654
|
+
constructor(options: WeblnHandlerOptions);
|
|
655
|
+
/** The session's `lightning` binding as a Spark ref — the group the session authorized. */
|
|
656
|
+
private ref;
|
|
657
|
+
handle(origin: string, request: WeblnRequest): Promise<unknown>;
|
|
658
|
+
private sendPayment;
|
|
659
|
+
private makeInvoice;
|
|
660
|
+
private lnurl;
|
|
661
|
+
private preimage;
|
|
662
|
+
private lightningOption;
|
|
663
|
+
private getBalance;
|
|
664
|
+
}
|
|
665
|
+
export { ConnectionScope as A, BitcoinRequest as C, ConnectionController as D, AccountGroup as E, PendingConnection as F, SessionAccounts as I, ConnectionState as M, LightningPolicy as N, ConnectionOrigin as O, NostrPolicy as P, BitcoinHandler as S, BitcoinWalletHandler as T, Eip1193Event as _, TronProviderAddress as a, BITCOIN_CHAIN_IDS as b, TronWalletHandler as c, SolanaHandler as d, SolanaRequest as f, Nip07Request as g, Nip07Handler as h, TronHandler as i, ConnectionSession as j, ConnectionRequest as k, SOLANA_CHAIN_IDS as l, SolanaWalletHandler as m, WeblnRequest as n, TronProviderState as o, SolanaWalletAccount as p, TronEvent as r, TronRequest as s, WeblnHandler as t, SolanaEvent as u, Eip1193Handler as v, BitcoinWalletAccount as w, BitcoinEvent as x, Eip1193Request as y };
|
|
666
|
+
//# sourceMappingURL=webln-Bllk_xJ2.d.mts.map
|