@etherplay/connect 0.12.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 +142 -12
- package/dist/index.d.ts +128 -70
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +384 -45
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +596 -143
package/README.md
CHANGED
|
@@ -129,18 +129,55 @@ The last row is the one worth knowing about: with the default `requestSignatureA
|
|
|
129
129
|
- It rejects with a `ConnectionFailure` when the attempt fails. `cause` and the convenience `code` carry the underlying wallet error, so a user rejection is `code === 4001`.
|
|
130
130
|
- It rejects with `ConnectionFailure('Connection cancelled')` when the user backs out, including by acknowledging an `addressUnavailable`.
|
|
131
131
|
|
|
132
|
+
#### Why it failed: `reason`
|
|
133
|
+
|
|
134
|
+
**Read `reason`, not `message`, and not "is there a `cause`".** Every `ConnectionFailure` carries a `reason` from a closed set of string literals, and the connection's own resting `error` carries the same field, with the same value for the same event: the thrown failure copies it, so the banner your app renders and the error your `await` caught cannot disagree.
|
|
135
|
+
|
|
136
|
+
This replaces the older advice to tell a cancellation from a failure by whether an underlying error is present. That test was all there was, and it was not enough: several outcomes carry no `cause` and mean completely different things, so "no cause" collapsed "the user closed the dialog" (say nothing) together with "the connection came to rest and cannot get there" (report it) and "your own app asked for a different account" (retry it).
|
|
137
|
+
|
|
138
|
+
| `reason` | What happened | What to do |
|
|
139
|
+
| ---------------------------------- | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
|
|
140
|
+
| `cancelled` | The user closed or dismissed the connect flow (`cancel()`, `back()`, closed the popup). | Nothing. Do not show an error: they decided. |
|
|
141
|
+
| `address-unavailable-acknowledged` | The user read `addressUnavailable` and chose not to switch account. | Nothing, or re-offer the action. Also a decision, also not an error. |
|
|
142
|
+
| `superseded` | A newer `ensureConnected` naming a **different** address took the account slot. | Retry, if you still want it. The user decided nothing; your app asked for two things at once. |
|
|
143
|
+
| `unreachable` | Came to rest, nothing in progress, nothing can be initiated from here. | **Report it.** "Could not connect, try again." This is an outcome, not a silent no-op. |
|
|
144
|
+
| `wallet-rejected` | The wallet prompt was declined (EIP-1193 `4001`). | Offer a retry; the same prompt can succeed next time. |
|
|
145
|
+
| `wallet-unavailable` | The wallet cannot authorise accounts (EIP-1193 `4100`): read-only, locked, unconfigured. | Retrying will not help. Tell the user to unlock or configure their wallet. |
|
|
146
|
+
| `no-accounts` | The wallet answered with an empty account list. | Report it. It looks like a refusal and is not one. |
|
|
147
|
+
| `cross-origin-blocked` | The wallet host refused a cross-origin request. | Offer the onchain delegate path, not another popup. See "Cross-origin requests" below. |
|
|
148
|
+
| `host-refused` | The wallet host refused for a reason of **its** own. | Show `message`; read `(err.cause as {type?: string})?.type` if you need to tell refusals apart. |
|
|
149
|
+
| `failed` | Anything else. The underlying error is on `cause`. | Show `message`, offer a retry. |
|
|
150
|
+
|
|
132
151
|
```typescript
|
|
133
152
|
import {ConnectionFailure} from '@etherplay/connect';
|
|
134
153
|
|
|
135
154
|
try {
|
|
136
155
|
const state = await connection.ensureConnected('WalletConnected');
|
|
137
156
|
} catch (err) {
|
|
138
|
-
if (err instanceof ConnectionFailure
|
|
139
|
-
|
|
157
|
+
if (!(err instanceof ConnectionFailure)) throw err;
|
|
158
|
+
switch (err.reason) {
|
|
159
|
+
case 'cancelled':
|
|
160
|
+
case 'address-unavailable-acknowledged':
|
|
161
|
+
break; // the user decided: say nothing
|
|
162
|
+
case 'wallet-rejected':
|
|
163
|
+
toast('Connection declined. Try again when you are ready.');
|
|
164
|
+
break;
|
|
165
|
+
case 'superseded':
|
|
166
|
+
break; // your own app asked for another account; retry if you still want this one
|
|
167
|
+
default:
|
|
168
|
+
toast(err.message); // unreachable, no-accounts, host refusals, anything new
|
|
140
169
|
}
|
|
141
170
|
}
|
|
142
171
|
```
|
|
143
172
|
|
|
173
|
+
**Host refusals are deliberately not modelled further.** The wallet host is deployed separately and chooses its own vocabulary, so this library pins only the refusal types it can verify: `cross-origin-blocked`, minted by `@etherplay/connect-core`, and its own popup's `cancelation`, which is not a refusal at all and surfaces as `cancelled`. Anything else passes through as `host-refused` with the host's `type` intact on `cause`. A member per host word would be a claim this package cannot check, and would go stale the day the host shipped a new one.
|
|
174
|
+
|
|
175
|
+
**A dismissed `addressUnavailable` keeps the shape of a cancellation.** Its `message` is still `'Connection cancelled'`, exactly as `cancel()` produces, so every path you already wrote that maps a refusal to "the user chose not to" keeps working and nobody paints a red banner over a decision. `reason` is what tells the two apart, and it is the only thing that does.
|
|
176
|
+
|
|
177
|
+
**New members may appear in a MINOR version, so keep a `default` branch.** A union the type system can exhaust is worth having, and it comes with that cost: an exhaustive `switch` with no default is the one shape a new member breaks. The trade was taken deliberately (see [ADR-0004](../../docs/adr/0004-a-failure-says-why-with-a-safe-default-shape.md)). `failed` is the catch-all, so most future causes will need no new member at all, and anything that does get one was indistinguishable from a generic failure before it existed.
|
|
178
|
+
|
|
179
|
+
`reason` is **additive**: `message`, `cause` and `code` are unchanged on every path, so code that ignores it behaves exactly as it did.
|
|
180
|
+
|
|
144
181
|
### Asking for a specific account
|
|
145
182
|
|
|
146
183
|
Some sends only mean anything for one account. Replacing or cancelling a stuck transaction reuses its **original nonce**, so it has to be signed by the same key, and a signature from any other account is not a lesser answer, it is a wrong one. Name the account, and the wallet if you recorded it:
|
|
@@ -198,11 +235,11 @@ It sits beside `error` rather than in it, because nothing failed: the wallet wor
|
|
|
198
235
|
Two ways out, and you have to offer both:
|
|
199
236
|
|
|
200
237
|
- **The user switches account in their wallet.** The original request then proceeds on its own and the promise resolves: somebody who has just done what was asked should not have to press anything in your app.
|
|
201
|
-
- **The user acknowledges it.** `acknowledgeAddressUnavailable()` clears the state and settles the pending `ensureConnected` as `ConnectionFailure('Connection cancelled')`, the same shape as any other "the user chose not to", so existing refusal handling covers it and nobody sees an error for a decision. The connection stays connected on the account the wallet is offering.
|
|
238
|
+
- **The user acknowledges it.** `acknowledgeAddressUnavailable()` clears the state and settles the pending `ensureConnected` as `ConnectionFailure('Connection cancelled')`, the same shape as any other "the user chose not to", so existing refusal handling covers it and nobody sees an error for a decision. The connection stays connected on the account the wallet is offering. To tell this dismissal from the user closing the connect dialog, read [`reason`](#why-it-failed-reason): it is `'address-unavailable-acknowledged'`, where a `cancel()` is `'cancelled'`. The message is identical on purpose, so nothing else distinguishes them.
|
|
202
239
|
|
|
203
240
|
Only an address **you** named produces this. A replayed one degrades to an ordinary connect as it always did.
|
|
204
241
|
|
|
205
|
-
**One request at a time.** A connection has one wallet, one account and one such state, so two `ensureConnected` calls naming _different_ accounts cannot both stand: the newer supersedes, and the older is answered with a `ConnectionFailure` naming where the connection came to rest. It is **not** answered with `Connection cancelled`, because the user decided nothing — that message is reserved for `acknowledgeAddressUnavailable()`, and a dismissal answers only the request for the address it was showing. If you need two accounts ready at once, use two connections with different `storagePrefix`es (see "Running more than one connection in a page").
|
|
242
|
+
**One request at a time.** A connection has one wallet, one account and one such state, so two `ensureConnected` calls naming _different_ accounts cannot both stand: the newer supersedes, and the older is answered with a `ConnectionFailure` carrying [`reason: 'superseded'`](#why-it-failed-reason) and naming where the connection came to rest. It is **not** answered with `Connection cancelled`, because the user decided nothing — that message is reserved for `acknowledgeAddressUnavailable()`, and a dismissal answers only the request for the address it was showing. If you need two accounts ready at once, use two connections with different `storagePrefix`es (see "Running more than one connection in a page").
|
|
206
243
|
|
|
207
244
|
##### Wallets that only expose one account
|
|
208
245
|
|
|
@@ -210,7 +247,7 @@ Only an address **you** named produces this. A replayed one degrades to an ordin
|
|
|
210
247
|
|
|
211
248
|
Two consequences for your UI:
|
|
212
249
|
|
|
213
|
-
- **Do not render `available` as an exhaustive account picker**, and do not read "the requested address is absent" as "the user does not have it". Show it as detail, and only when it has more than one entry. If you do offer its entries as a choice, say what choosing one MEANS: connecting to a different account abandons the request that produced this state, so the pending `ensureConnected` settles
|
|
250
|
+
- **Do not render `available` as an exhaustive account picker**, and do not read "the requested address is absent" as "the user does not have it". Show it as detail, and only when it has more than one entry. If you do offer its entries as a choice, say what choosing one MEANS: connecting to a different account abandons the request that produced this state, so the pending `ensureConnected` settles (with `reason: 'unreachable'`, since the user acknowledged nothing and no newer request took the slot).
|
|
214
251
|
- **The instruction is the remedy.** `message` asks the user to switch to that account in their wallet, which is the only thing that works when the wallet exposes one at a time. Nothing in the app can pick an account the wallet is not offering.
|
|
215
252
|
|
|
216
253
|
That path is fully automatic on the library side: every wallet emits `accountsChanged` when the user switches, so the pending `ensureConnected` picks it up and proceeds to satisfy the original request. There is no "retry" button to wire, and pressing one would be redundant — at most one attempt is made per announcement the wallet makes, and an attempt never starts another off its own result.
|
|
@@ -228,7 +265,9 @@ There is deliberately no call that asks the wallet to open its own account picke
|
|
|
228
265
|
| `wallet.invalidChainId` | "your wallet is on another chain" | `switchWalletChain()`, showing `wallet.switchingChain` |
|
|
229
266
|
| `connection.addressUnavailable` | its `message`, as an instruction | the user switches in the wallet, or acknowledge it |
|
|
230
267
|
| `connection.pendingRequests` | what the wallet is asking for | the user answers it in the wallet |
|
|
231
|
-
| `connection.error` |
|
|
268
|
+
| `connection.error` | its `message`, per `error.reason` | `clearError()` and retry |
|
|
269
|
+
|
|
270
|
+
`connection.error` carries the same `reason` as the `ConnectionFailure` a pending `ensureConnected` rejects with, and for the same event it is the same value, so the two cannot tell the user different stories: see [Why it failed: `reason`](#why-it-failed-reason) for the table. It is the field to branch on before you decide to render a red banner at all, since some of what lands there is a decision the user made rather than a failure.
|
|
232
271
|
|
|
233
272
|
**A locked wallet is the one most likely to be missed**, and it became more visible with the target semantics: `step` stays `WalletConnected`, `account.address` still names the account that was agreed on, and only `wallet.status` (and `canActAs`) knows it cannot sign. A signed-in app is not exempt: its session account keeps working, but anything sent from the **wallet** account cannot be signed until the user unlocks.
|
|
234
273
|
|
|
@@ -356,7 +395,8 @@ const hasSigner = connection.targetStep === 'SignedIn';
|
|
|
356
395
|
| `walletHost` | `string` | Conditional | URL for popup-based auth. Required for `targetStep: 'SignedIn'` **unless** `walletOnly: true`; never used by `targetStep: 'WalletConnected'` or `'WalletChosen'`. See [Supported connection shapes](#supported-connection-shapes) |
|
|
357
396
|
| `signingOrigin` | `string` | No | Sign for ANOTHER origin's account (defaults to the current origin). Refused unless that origin consents; see [Signing for another origin](#signing-for-another-origin) |
|
|
358
397
|
| `autoConnect` | `boolean` | No | Auto-reconnect returning users (default: `true`) |
|
|
359
|
-
| `walletConnector` | `WalletConnector` | No | Custom wallet connector (defaults to Ethereum)
|
|
398
|
+
| `walletConnector` | `WalletConnector` | No | Custom wallet connector (defaults to Ethereum). For a different **chain family**, not for a different list of wallets |
|
|
399
|
+
| `wallets` | `WalletHandle[]` | No | The wallets this app **brings**. Supplying them replaces EIP-6963 discovery for this connection; see [Bringing your own wallet](#bringing-your-own-wallet) |
|
|
360
400
|
| `requestSignatureAutomaticallyIfPossible` | `boolean` | No | Auto-request signature after wallet connection |
|
|
361
401
|
| `useCurrentAccount` | `'always' \| 'whenSingle'` | No | Always use current wallet account |
|
|
362
402
|
| `prioritizeWalletProvider` | `boolean` | No | Prioritize wallet for RPC calls |
|
|
@@ -369,15 +409,15 @@ const hasSigner = connection.targetStep === 'SignedIn';
|
|
|
369
409
|
|
|
370
410
|
**Cross-origin requests are blocked by default.** The wallet host honours one only when the signing origin has recorded that it accepts requests from that origin, and even then the user is still asked (twice, where the consent was a blanket one rather than a naming of this specific site). With no consent recorded there is no prompt, because a screen asking someone to compare two domain names is not a decision they can make well.
|
|
371
411
|
|
|
372
|
-
A blocked request comes back as an error rather than as a cancellation, so an app can tell it from the user closing the popup:
|
|
412
|
+
A blocked request comes back as an error rather than as a cancellation, so an app can tell it from the user closing the popup. `reason` says so directly (`'cross-origin-blocked'`); `cause` still carries the host's own object, which names both origins:
|
|
373
413
|
|
|
374
414
|
```typescript
|
|
375
415
|
try {
|
|
376
416
|
await connection.ensureConnected();
|
|
377
417
|
} catch (err) {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
// {type, message, windowOrigin, signingOrigin}
|
|
418
|
+
if ((err as ConnectionFailure).reason === 'cross-origin-blocked') {
|
|
419
|
+
// `cause` is the host's own object, which names both origins:
|
|
420
|
+
// {type: 'cross-origin-blocked', message, windowOrigin, signingOrigin}
|
|
381
421
|
}
|
|
382
422
|
}
|
|
383
423
|
```
|
|
@@ -456,6 +496,92 @@ You do not need to share a `walletConnector` between connections. EIP-6963 disco
|
|
|
456
496
|
|
|
457
497
|
> Known limitation, unchanged: the Ethereum connector listens for EIP-6963 announcements for 100 ms after construction. A wallet that announces later than that is not listed.
|
|
458
498
|
|
|
499
|
+
## Bringing your own wallet
|
|
500
|
+
|
|
501
|
+
Some wallets are not installed by the user, they are **constructed by the app**: a chain running in the browser tab with a key it generated, a burner signer, a custodian answering over RPC, a test double. Pass them as `wallets` and this connection is about exactly those.
|
|
502
|
+
|
|
503
|
+
```typescript
|
|
504
|
+
import {createConnection, type WalletHandle} from '@etherplay/connect';
|
|
505
|
+
|
|
506
|
+
const worldWallet: WalletHandle<UnderlyingEthereumProvider> = {
|
|
507
|
+
info: {
|
|
508
|
+
uuid: 'world:1',
|
|
509
|
+
name: 'World Wallet',
|
|
510
|
+
icon: '',
|
|
511
|
+
rdns: 'io.example.world',
|
|
512
|
+
// It holds its own key and signs with no dialog. See "Wallets that never prompt" below.
|
|
513
|
+
autoApproves: true,
|
|
514
|
+
},
|
|
515
|
+
walletProvider: myWorldWalletProvider,
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
export const world = createConnection({
|
|
519
|
+
// `provider` instead of `rpcUrls`: the chain is in the tab. It is read lazily, per request.
|
|
520
|
+
// This one is an Ethereum-family provider, so the default connector is the right one; pair a
|
|
521
|
+
// provider of another chain family with the `walletConnector` that speaks for it.
|
|
522
|
+
chainInfo: {id: 31337, name: 'World', provider: worldChainProvider},
|
|
523
|
+
targetStep: 'WalletConnected',
|
|
524
|
+
storagePrefix: 'world:',
|
|
525
|
+
wallets: [worldWallet],
|
|
526
|
+
});
|
|
527
|
+
|
|
528
|
+
// One wallet, so no picker is ever shown: the name is resolved from the single entry.
|
|
529
|
+
await world.ensureConnected();
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
**Supplying `wallets` replaces discovery for that connection.** No `eip6963:requestProvider` is dispatched, no announcement is listened for, and `connection.wallets` is exactly the list you passed. That is the point rather than a side effect: a wallet your app constructed belongs to ONE connection, while EIP-6963 is page-wide, and mixing the two populations is not something a consumer can undo afterwards. To offer both, run two connections (each with its own `storagePrefix`) or pass a list containing both.
|
|
533
|
+
|
|
534
|
+
Discovery is the default and is untouched for every caller that passes no `wallets`.
|
|
535
|
+
|
|
536
|
+
**`wallets: []` means "no wallets", not "discover some".** An empty list is still a supplied list, because `wallets: maybeList ?? []` and `wallets: list.filter(...)` are ordinary things to write, and falling back to discovery there would quietly enrol every extension in the page into a connection you meant to keep to itself. Pass `undefined`, or omit the key, to ask for discovery.
|
|
537
|
+
|
|
538
|
+
**You do not need a custom `walletConnector` for this.** `walletConnector` is for a different **chain family**, where the provider type, the always-on provider and the account derivation change together. Subclassing one only to replace the list of wallets is the ceremony this setting removes.
|
|
539
|
+
|
|
540
|
+
### The settings object does not discriminate
|
|
541
|
+
|
|
542
|
+
`walletConnector` and `wallets` are ordinary optional settings: only `targetStep` and `walletOnly` select an overload. So all of these compile, and all mean what they look like:
|
|
543
|
+
|
|
544
|
+
```typescript
|
|
545
|
+
createConnection({...base, walletConnector: maybeConnector}); // WalletConnector | undefined
|
|
546
|
+
createConnection({...base, walletConnector: undefined}); // same as omitting it
|
|
547
|
+
createConnection({...base, ...(useCustom ? {walletConnector} : {})}); // conditionally present
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
Both settings are declared `?: T | undefined`, so the second form also compiles in an app using `exactOptionalPropertyTypes: true`.
|
|
551
|
+
|
|
552
|
+
(This was not always true: `walletConnector` used to select between two overloads, so the first two forms matched none and the third silently picked the other one. `test/types/connection-settings.types.ts` keeps it true.)
|
|
553
|
+
|
|
554
|
+
## Wallets that never prompt
|
|
555
|
+
|
|
556
|
+
A wallet can declare that it asks the user nothing:
|
|
557
|
+
|
|
558
|
+
```typescript
|
|
559
|
+
info: {uuid, name, icon, rdns, autoApproves: true}
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
`autoApproves` means there is no dialog to wait for: the wallet holds its own key and answers by itself. **Absent means it prompts**, which is every wallet discovered over EIP-6963, so nothing changes for existing wallets or callers.
|
|
563
|
+
|
|
564
|
+
Read it with `walletPrompts`, which puts that default in one place:
|
|
565
|
+
|
|
566
|
+
```typescript
|
|
567
|
+
import {walletPrompts} from '@etherplay/connect';
|
|
568
|
+
|
|
569
|
+
connection.subscribe(($connection) => {
|
|
570
|
+
// On the wallet you are connected to...
|
|
571
|
+
const willAsk = walletPrompts($connection.wallet?.info);
|
|
572
|
+
// ...or on any wallet in the list, e.g. before rendering a picker row.
|
|
573
|
+
const rows = $connection.wallets.map((w) => ({name: w.info.name, prompts: walletPrompts(w.info)}));
|
|
574
|
+
});
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
`connection.wallet.info` is the `info` of the handle the connected provider came from, stamped by the library, so "which wallet is this" and "does it ask the user anything" are both answerable without matching `mechanism.name` against `wallets` by hand.
|
|
578
|
+
|
|
579
|
+
**The library acts on the declaration in exactly one way: it announces no `PendingRequest` for such a wallet.** `connection.pendingRequests` stays empty and `connection.onRequest` emits nothing, because that list means "your wallet is holding something and is waiting for you", and nothing can be outstanding with a wallet that answers synchronously. A modal saying "your wallet will ask you to confirm this in a moment" is describing an event that never happens.
|
|
580
|
+
|
|
581
|
+
The decision is made when a request STARTS and kept for its lifetime, so switching wallet mid-request cannot silence a prompt that is genuinely on the user's screen, nor announce one that never was.
|
|
582
|
+
|
|
583
|
+
Nothing else in the flow changes: the connect flow, `WaitingForSignature`, and the account picker behave exactly as they do for any other wallet. If your app wants to skip those for a silent wallet, `requestSignatureAutomaticallyIfPossible`, `useCurrentAccount` and your own rendering are the controls, and reading `walletPrompts` is how you decide. See `docs/adr/0005-a-wallet-can-declare-that-it-never-prompts.md`.
|
|
584
|
+
|
|
459
585
|
## Connection States
|
|
460
586
|
|
|
461
587
|
The connection follows a state machine with these primary steps:
|
|
@@ -498,6 +624,8 @@ When connected via wallet, additional state is available:
|
|
|
498
624
|
```typescript
|
|
499
625
|
interface WalletState {
|
|
500
626
|
provider: WalletProvider;
|
|
627
|
+
// Which wallet this is: name, icon, and `autoApproves`. Stamped from the announced handle.
|
|
628
|
+
info?: WalletInfo;
|
|
501
629
|
accounts: `0x${string}`[];
|
|
502
630
|
accountChanged?: `0x${string}`; // Set if user switched accounts
|
|
503
631
|
chainId: string;
|
|
@@ -532,6 +660,8 @@ The prompt is on the user's screen throughout. Reading the list off `wallet` mea
|
|
|
532
660
|
|
|
533
661
|
`wallet.pendingRequests` is still populated, is always the same list, and is **deprecated**. Move to `connection.pendingRequests`; the wallet-level copy will go in a later major version.
|
|
534
662
|
|
|
663
|
+
A wallet that declares `info.autoApproves` announces nothing here at all: see [Wallets that never prompt](#wallets-that-never-prompt). Nothing can be outstanding with a wallet that answers by itself, and the empty list is the honest one.
|
|
664
|
+
|
|
535
665
|
One request is deliberately NOT announced here: the sign-in signature, which has its own `step: 'WaitingForSignature'`. Consumers open a "please sign" dialog from that step and a separate modal from this list, so announcing it in both would stack two. The ADR records that exception and why it is the only one.
|
|
536
666
|
|
|
537
667
|
## Authentication Mechanisms
|
|
@@ -808,7 +938,7 @@ In a Svelte app the `$` auto-subscription and helpers such as `get`/`derived` fr
|
|
|
808
938
|
|
|
809
939
|
- **Construction never throws and does no I/O.** No `window`, `document`, `localStorage`, `sessionStorage`, `navigator`, `crypto`, timers, intervals, or network requests are touched during `createConnection(...)`. The only thing it builds is in-memory state.
|
|
810
940
|
- **Nothing auto-connects without a `window`.** The entire auto-connect block (which reads saved accounts / last wallet from `localStorage` and polls installed wallets) is behind a `typeof window !== 'undefined'` guard, as is `fetchWallets()` in the Ethereum connector. Off-browser both are no-ops.
|
|
811
|
-
- **The store rests at `{step: 'Idle', loading: true, wallets: [], pendingRequests: []}`.** This is the exact same value a browser renders on its very first paint (before the auto-connect promise has resolved), so a server-rendered app hydrates with no store mismatch.
|
|
941
|
+
- **The store rests at `{step: 'Idle', loading: true, wallets: [], pendingRequests: []}`.** This is the exact same value a browser renders on its very first paint (before the auto-connect promise has resolved), so a server-rendered app hydrates with no store mismatch. With [supplied `wallets`](#bringing-your-own-wallet) the list holds them instead of being empty, on the server as on the client: a wallet your app brought exists in both, so the two still agree.
|
|
812
942
|
|
|
813
943
|
### Why `loading` stays `true` off-browser
|
|
814
944
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import type { WalletConnector, WalletHandle, WalletProvider, PendingRequest, RequestEvent, RequestEventHandler, RequestPurpose } from '@etherplay/wallet-connector';
|
|
1
|
+
import type { WalletConnector, WalletHandle, WalletInfo, WalletProvider, PendingRequest, RequestEvent, RequestEventHandler, RequestPurpose } from '@etherplay/wallet-connector';
|
|
2
|
+
import { walletPrompts } from '@etherplay/wallet-connector';
|
|
2
3
|
import { type UnderlyingEthereumProvider } from '@etherplay/wallet-connector-ethereum';
|
|
3
4
|
import { fromEntropyKeyToMnemonic, type OriginAccount, originPublicKeyPublicationMessage, originKeyMessage, delegationMessage, delegationDigest, DELEGATION_ABI, findSavedDelegation, type PermissionRequest, type PermissionOutcome, type SavedDelegation, AuthMechanism } from '@etherplay/connect-core';
|
|
4
5
|
export { fromEntropyKeyToMnemonic, originPublicKeyPublicationMessage, originKeyMessage, delegationMessage, delegationDigest, DELEGATION_ABI, findSavedDelegation, };
|
|
5
6
|
export type { OriginAccount, AuthMechanism, PermissionRequest, PermissionOutcome, SavedDelegation };
|
|
6
7
|
export type { PendingRequest, RequestEvent, RequestEventHandler, RequestPurpose };
|
|
8
|
+
export type { WalletHandle, WalletInfo, WalletProvider, WalletConnector };
|
|
9
|
+
export { walletPrompts };
|
|
7
10
|
export type { UnderlyingEthereumProvider };
|
|
8
11
|
export type BasicChainInfo = {
|
|
9
12
|
id: number;
|
|
@@ -150,6 +153,30 @@ export type AddressUnavailable = {
|
|
|
150
153
|
};
|
|
151
154
|
type WalletStateCommon<WalletProviderType> = {
|
|
152
155
|
provider: WalletProvider<WalletProviderType>;
|
|
156
|
+
/**
|
|
157
|
+
* WHICH wallet this is: the `info` of the handle the provider came from, name, icon and
|
|
158
|
+
* `autoApproves` included.
|
|
159
|
+
*
|
|
160
|
+
* Stamped by `set` rather than supplied, for the same reason `pendingRequests` is (see the ADR): a
|
|
161
|
+
* fact that every construction site would otherwise have to remember to copy is a fact in the wrong
|
|
162
|
+
* place. No construction site can supply one, because `WalletStateInput` omits it.
|
|
163
|
+
*
|
|
164
|
+
* It exists because the state that says a wallet is CONNECTED said nothing about which wallet it
|
|
165
|
+
* was: a consumer had to take `mechanism.name` and look it up in `wallets` to render the wallet's
|
|
166
|
+
* own name, and had to do the same to find out whether that wallet prompts at all. Reading
|
|
167
|
+
* `walletPrompts(connection.wallet.info)` is the whole of that question now.
|
|
168
|
+
*
|
|
169
|
+
* For every state this library builds it is the live wallet's own `info`, taken from the handle
|
|
170
|
+
* that was chosen, so it is exact. Two weaker cases exist and are worth knowing about:
|
|
171
|
+
*
|
|
172
|
+
* - ABSENT. A custom connector may hand over a provider that no announced handle belongs to, and a
|
|
173
|
+
* list in which that provider is ambiguous answers with nothing rather than with a guess. Absent
|
|
174
|
+
* means "not known", which `walletPrompts` reads as the loud default.
|
|
175
|
+
* - ONE PUBLISH STALE. A state spread from a published one keeps the `info` it was published with
|
|
176
|
+
* if the handle has since left the list, which beats a state that cannot say which wallet it is
|
|
177
|
+
* about. The next transition re-derives it.
|
|
178
|
+
*/
|
|
179
|
+
info?: WalletInfo;
|
|
153
180
|
accounts: `0x${string}`[];
|
|
154
181
|
accountChanged?: `0x${string}`;
|
|
155
182
|
chainId: string;
|
|
@@ -211,11 +238,73 @@ type SignedIn<WalletProviderType, WS = WalletState<WalletProviderType>> = {
|
|
|
211
238
|
account: OriginAccount;
|
|
212
239
|
wallet: WS;
|
|
213
240
|
};
|
|
241
|
+
/**
|
|
242
|
+
* WHY a connection attempt ended without reaching what was asked for.
|
|
243
|
+
*
|
|
244
|
+
* A machine-readable discriminant, so an app never has to parse `message` or infer from which
|
|
245
|
+
* fields happen to be absent. It is called `reason` and not `code` because `ConnectionFailure.code`
|
|
246
|
+
* is taken: that one carries the EIP-1193 code off `cause`, and the two answer different questions
|
|
247
|
+
* ("what did the wallet say" versus "what happened to my call").
|
|
248
|
+
*
|
|
249
|
+
* FORWARD COMPATIBILITY, decided rather than left implicit. This is a closed union so the type
|
|
250
|
+
* system can exhaust it, but **new members may appear in a MINOR version**, because a reason this
|
|
251
|
+
* library cannot yet tell apart is a reason it may learn to tell apart. That is why `'failed'`
|
|
252
|
+
* exists as a catch-all: most future causes land there and need no new member, and anything that
|
|
253
|
+
* does get one was previously indistinguishable from a generic failure anyway. **Keep a `default`
|
|
254
|
+
* branch in your switch.** An exhaustive switch with no default is the one shape a new member can
|
|
255
|
+
* break, and the trade was taken knowingly: a union you cannot switch on is worth less than one
|
|
256
|
+
* that may grow.
|
|
257
|
+
*
|
|
258
|
+
* - `cancelled` — the user closed or dismissed the connect flow (`cancel()`, `back(...)`, closing
|
|
259
|
+
* the hosted popup, or a disconnect while the call was waiting). Nothing failed and nothing is
|
|
260
|
+
* worth showing: they decided. **Say nothing.**
|
|
261
|
+
* - `address-unavailable-acknowledged` — the user read `connection.addressUnavailable` ("your
|
|
262
|
+
* wallet is not on that account") and chose not to switch. Also a decision, also not an error,
|
|
263
|
+
* and deliberately carrying the SAME `message` as `cancelled` (`'Connection cancelled'`) so that
|
|
264
|
+
* every existing "a refusal maps to cancelled" path keeps working untouched. Tell the two apart
|
|
265
|
+
* by THIS field, not by the shape.
|
|
266
|
+
* - `superseded` — a newer `ensureConnected` naming a DIFFERENT address took the connection's one
|
|
267
|
+
* account slot. The user decided nothing; the app asked for two things at once. Retry it, or use
|
|
268
|
+
* two connections with different `storagePrefix`es.
|
|
269
|
+
* - `unreachable` — the connection came to rest, nothing is in progress, and nothing can be
|
|
270
|
+
* initiated from here, so the target cannot be reached without a fresh gesture. An outcome to
|
|
271
|
+
* REPORT ("could not connect, try again"), not a silent no-op.
|
|
272
|
+
* - `wallet-rejected` — the wallet prompt was declined (EIP-1193 4001). Offer a retry.
|
|
273
|
+
* - `wallet-unavailable` — the wallet cannot authorise accounts (EIP-1193 4100): read-only,
|
|
274
|
+
* locked, or not configured. Retrying the same prompt will not help; the user must act in the
|
|
275
|
+
* wallet.
|
|
276
|
+
* - `no-accounts` — the wallet answered the request with an empty account list. It looks like a
|
|
277
|
+
* refusal and is not one, which is why it does not alias onto `cancelled`.
|
|
278
|
+
* - `cross-origin-blocked` — the wallet host refused a cross-origin request. The remedy is a
|
|
279
|
+
* registered delegate, not retrying the same popup. `cause` is the host's
|
|
280
|
+
* `{type: 'cross-origin-blocked', windowOrigin, signingOrigin}`.
|
|
281
|
+
* - `host-refused` — the wallet host refused for a reason of ITS own, which this library does not
|
|
282
|
+
* model. The host is deployed separately and chooses its own vocabulary, so its `type` is passed
|
|
283
|
+
* through untouched on `cause` rather than being mapped to a member this library cannot verify:
|
|
284
|
+
* read `(err.cause as {type?: string})?.type` and `err.message` to distinguish them.
|
|
285
|
+
* - `failed` — anything else, with the underlying error on `cause`. The catch-all: treat it as "it
|
|
286
|
+
* did not work", show `message`, offer a retry.
|
|
287
|
+
*/
|
|
288
|
+
export type ConnectionFailureReason = 'cancelled' | 'address-unavailable-acknowledged' | 'superseded' | 'unreachable' | 'wallet-rejected' | 'wallet-unavailable' | 'no-accounts' | 'cross-origin-blocked' | 'host-refused' | 'failed';
|
|
289
|
+
/**
|
|
290
|
+
* The error a connection comes to rest carrying, which an app renders.
|
|
291
|
+
*
|
|
292
|
+
* `reason` is REQUIRED, and that is the whole design: it makes the compiler enumerate every place
|
|
293
|
+
* that can put an error on the connection, rather than leaving the next one to remember. This
|
|
294
|
+
* codebase has twice fixed bugs whose root cause was an invariant maintained at N call sites
|
|
295
|
+
* instead of one.
|
|
296
|
+
*
|
|
297
|
+
* It is the same vocabulary as the `ConnectionFailure` a pending `ensureConnected` rejects with,
|
|
298
|
+
* and not by coincidence: that failure COPIES this field, so the state an app renders and the
|
|
299
|
+
* error a caller catches cannot disagree about what happened.
|
|
300
|
+
*/
|
|
301
|
+
export type ConnectionError = {
|
|
302
|
+
message: string;
|
|
303
|
+
cause?: any;
|
|
304
|
+
reason: ConnectionFailureReason;
|
|
305
|
+
};
|
|
214
306
|
type ConnectionCommon<WalletProviderType> = {
|
|
215
|
-
error?:
|
|
216
|
-
message: string;
|
|
217
|
-
cause?: any;
|
|
218
|
-
};
|
|
307
|
+
error?: ConnectionError;
|
|
219
308
|
/**
|
|
220
309
|
* Set when a caller asked this connection to act as an address the wallet is not offering.
|
|
221
310
|
*
|
|
@@ -317,10 +406,31 @@ export type EnsureConnectedOptions = ConnectOptions & {
|
|
|
317
406
|
skipChainCheck?: boolean;
|
|
318
407
|
forceConnect?: boolean;
|
|
319
408
|
};
|
|
409
|
+
/**
|
|
410
|
+
* Error thrown by `ensureConnected` when a connection attempt ends without reaching the target step.
|
|
411
|
+
*
|
|
412
|
+
* Three fields, answering three different questions:
|
|
413
|
+
*
|
|
414
|
+
* - `reason` — WHAT HAPPENED TO THIS CALL, in a closed vocabulary this library controls. Read this
|
|
415
|
+
* one to decide what to do. See `ConnectionFailureReason`, including its note on new members.
|
|
416
|
+
* - `cause` — the underlying error, exactly as whoever raised it wrote it (a wallet's EIP-1193
|
|
417
|
+
* error, the wallet host's `{type, message}` refusal). Unchanged by the arrival of `reason`.
|
|
418
|
+
* - `code` — the convenience copy of `cause.code`, so a user rejection is still `code === 4001`.
|
|
419
|
+
* `reason === 'wallet-rejected'` now says the same thing without the reach into `cause`.
|
|
420
|
+
*
|
|
421
|
+
* `message` is unchanged on every path, deliberately, including `'Connection cancelled'` for a
|
|
422
|
+
* dismissed `addressUnavailable`: the shape stays the safe one every consumer already maps to "the
|
|
423
|
+
* user chose not to", and `reason` says which of those it was.
|
|
424
|
+
*
|
|
425
|
+
* The third constructor argument is optional so that constructing one by hand (a test double, a
|
|
426
|
+
* consumer's own re-throw) keeps compiling; inside this library every failure comes from one place
|
|
427
|
+
* that always supplies it.
|
|
428
|
+
*/
|
|
320
429
|
export declare class ConnectionFailure extends Error {
|
|
321
430
|
name: string;
|
|
322
431
|
readonly code?: unknown;
|
|
323
|
-
|
|
432
|
+
readonly reason: ConnectionFailureReason;
|
|
433
|
+
constructor(message: string, cause?: unknown, reason?: ConnectionFailureReason);
|
|
324
434
|
}
|
|
325
435
|
export type ConnectionStore<WalletProviderType, Target extends TargetStep = 'SignedIn', WalletOnly extends boolean = false> = {
|
|
326
436
|
subscribe: (run: (value: Connection<WalletProviderType>) => void) => () => void;
|
|
@@ -370,59 +480,39 @@ export type ConnectionStore<WalletProviderType, Target extends TargetStep = 'Sig
|
|
|
370
480
|
onRequest: (handler: RequestEventHandler) => () => void;
|
|
371
481
|
};
|
|
372
482
|
export type AnyConnectionStore<WalletProviderType> = ConnectionStore<WalletProviderType, 'WalletChosen', true> | ConnectionStore<WalletProviderType, 'SignedIn', true> | ConnectionStore<WalletProviderType, 'WalletConnected', true> | ConnectionStore<WalletProviderType, 'SignedIn', false> | ConnectionStore<WalletProviderType, 'WalletConnected', false>;
|
|
373
|
-
export declare function createConnection<WalletProviderType>(settings: {
|
|
483
|
+
export declare function createConnection<WalletProviderType = UnderlyingEthereumProvider>(settings: {
|
|
374
484
|
targetStep: 'WalletChosen';
|
|
375
485
|
walletHost?: string;
|
|
376
486
|
nodeURL?: string;
|
|
377
487
|
chainInfo: ChainInfo<WalletProviderType>;
|
|
378
|
-
walletConnector
|
|
488
|
+
walletConnector?: WalletConnector<WalletProviderType> | undefined;
|
|
489
|
+
wallets?: WalletHandle<WalletProviderType>[] | undefined;
|
|
379
490
|
autoConnect?: boolean;
|
|
380
491
|
prioritizeWalletProvider?: boolean;
|
|
381
492
|
requestsPerSecond?: number;
|
|
382
493
|
storagePrefix?: string;
|
|
383
494
|
}): ConnectionStore<WalletProviderType, 'WalletChosen', true>;
|
|
384
|
-
export declare function createConnection(settings: {
|
|
385
|
-
targetStep: 'WalletChosen';
|
|
386
|
-
walletHost?: string;
|
|
387
|
-
nodeURL?: string;
|
|
388
|
-
chainInfo: ChainInfo<UnderlyingEthereumProvider>;
|
|
389
|
-
walletConnector?: undefined;
|
|
390
|
-
autoConnect?: boolean;
|
|
391
|
-
prioritizeWalletProvider?: boolean;
|
|
392
|
-
requestsPerSecond?: number;
|
|
393
|
-
storagePrefix?: string;
|
|
394
|
-
}): ConnectionStore<UnderlyingEthereumProvider, 'WalletChosen', true>;
|
|
395
|
-
export declare function createConnection<WalletProviderType>(settings: {
|
|
495
|
+
export declare function createConnection<WalletProviderType = UnderlyingEthereumProvider>(settings: {
|
|
396
496
|
targetStep: 'WalletConnected';
|
|
397
497
|
walletHost?: string;
|
|
398
498
|
nodeURL?: string;
|
|
399
499
|
chainInfo: ChainInfo<WalletProviderType>;
|
|
400
|
-
walletConnector
|
|
500
|
+
walletConnector?: WalletConnector<WalletProviderType> | undefined;
|
|
501
|
+
wallets?: WalletHandle<WalletProviderType>[] | undefined;
|
|
401
502
|
autoConnect?: boolean;
|
|
402
503
|
useCurrentAccount?: 'always' | 'whenSingle' | false;
|
|
403
504
|
prioritizeWalletProvider?: boolean;
|
|
404
505
|
requestsPerSecond?: number;
|
|
405
506
|
storagePrefix?: string;
|
|
406
507
|
}): ConnectionStore<WalletProviderType, 'WalletConnected', true>;
|
|
407
|
-
export declare function createConnection(settings: {
|
|
408
|
-
targetStep: 'WalletConnected';
|
|
409
|
-
walletHost?: string;
|
|
410
|
-
nodeURL?: string;
|
|
411
|
-
chainInfo: ChainInfo<UnderlyingEthereumProvider>;
|
|
412
|
-
walletConnector?: undefined;
|
|
413
|
-
autoConnect?: boolean;
|
|
414
|
-
useCurrentAccount?: 'always' | 'whenSingle' | false;
|
|
415
|
-
prioritizeWalletProvider?: boolean;
|
|
416
|
-
requestsPerSecond?: number;
|
|
417
|
-
storagePrefix?: string;
|
|
418
|
-
}): ConnectionStore<UnderlyingEthereumProvider, 'WalletConnected', true>;
|
|
419
|
-
export declare function createConnection<WalletProviderType>(settings: {
|
|
508
|
+
export declare function createConnection<WalletProviderType = UnderlyingEthereumProvider>(settings: {
|
|
420
509
|
targetStep?: 'SignedIn';
|
|
421
510
|
walletOnly: true;
|
|
422
511
|
walletHost?: string;
|
|
423
512
|
nodeURL?: string;
|
|
424
513
|
chainInfo: ChainInfo<WalletProviderType>;
|
|
425
|
-
walletConnector
|
|
514
|
+
walletConnector?: WalletConnector<WalletProviderType> | undefined;
|
|
515
|
+
wallets?: WalletHandle<WalletProviderType>[] | undefined;
|
|
426
516
|
signingOrigin?: string;
|
|
427
517
|
autoConnect?: boolean;
|
|
428
518
|
requestSignatureAutomaticallyIfPossible?: boolean;
|
|
@@ -432,29 +522,14 @@ export declare function createConnection<WalletProviderType>(settings: {
|
|
|
432
522
|
domainRedirectBridge?: boolean;
|
|
433
523
|
storagePrefix?: string;
|
|
434
524
|
}): ConnectionStore<WalletProviderType, 'SignedIn', true>;
|
|
435
|
-
export declare function createConnection(settings: {
|
|
436
|
-
targetStep?: 'SignedIn';
|
|
437
|
-
walletOnly: true;
|
|
438
|
-
walletHost?: string;
|
|
439
|
-
nodeURL?: string;
|
|
440
|
-
chainInfo: ChainInfo<UnderlyingEthereumProvider>;
|
|
441
|
-
walletConnector?: undefined;
|
|
442
|
-
signingOrigin?: string;
|
|
443
|
-
autoConnect?: boolean;
|
|
444
|
-
requestSignatureAutomaticallyIfPossible?: boolean;
|
|
445
|
-
useCurrentAccount?: 'always' | 'whenSingle' | false;
|
|
446
|
-
prioritizeWalletProvider?: boolean;
|
|
447
|
-
requestsPerSecond?: number;
|
|
448
|
-
domainRedirectBridge?: boolean;
|
|
449
|
-
storagePrefix?: string;
|
|
450
|
-
}): ConnectionStore<UnderlyingEthereumProvider, 'SignedIn', true>;
|
|
451
|
-
export declare function createConnection<WalletProviderType>(settings: {
|
|
525
|
+
export declare function createConnection<WalletProviderType = UnderlyingEthereumProvider>(settings: {
|
|
452
526
|
targetStep?: 'SignedIn';
|
|
453
527
|
walletOnly?: false;
|
|
454
528
|
walletHost: string;
|
|
455
529
|
nodeURL?: string;
|
|
456
530
|
chainInfo: ChainInfo<WalletProviderType>;
|
|
457
|
-
walletConnector
|
|
531
|
+
walletConnector?: WalletConnector<WalletProviderType> | undefined;
|
|
532
|
+
wallets?: WalletHandle<WalletProviderType>[] | undefined;
|
|
458
533
|
signingOrigin?: string;
|
|
459
534
|
permissions?: PermissionDeclaration[];
|
|
460
535
|
autoConnect?: boolean;
|
|
@@ -465,21 +540,4 @@ export declare function createConnection<WalletProviderType>(settings: {
|
|
|
465
540
|
domainRedirectBridge?: boolean;
|
|
466
541
|
storagePrefix?: string;
|
|
467
542
|
}): ConnectionStore<WalletProviderType, 'SignedIn', false>;
|
|
468
|
-
export declare function createConnection(settings: {
|
|
469
|
-
targetStep?: 'SignedIn';
|
|
470
|
-
walletOnly?: false;
|
|
471
|
-
walletHost: string;
|
|
472
|
-
nodeURL?: string;
|
|
473
|
-
chainInfo: ChainInfo<UnderlyingEthereumProvider>;
|
|
474
|
-
walletConnector?: undefined;
|
|
475
|
-
signingOrigin?: string;
|
|
476
|
-
permissions?: PermissionDeclaration[];
|
|
477
|
-
autoConnect?: boolean;
|
|
478
|
-
requestSignatureAutomaticallyIfPossible?: boolean;
|
|
479
|
-
useCurrentAccount?: 'always' | 'whenSingle' | false;
|
|
480
|
-
prioritizeWalletProvider?: boolean;
|
|
481
|
-
requestsPerSecond?: number;
|
|
482
|
-
domainRedirectBridge?: boolean;
|
|
483
|
-
storagePrefix?: string;
|
|
484
|
-
}): ConnectionStore<UnderlyingEthereumProvider, 'SignedIn', false>;
|
|
485
543
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|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