@etherplay/connect 0.11.2 → 0.12.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 CHANGED
@@ -90,11 +90,44 @@ const signedInState = await connection.ensureConnected('SignedIn');
90
90
  console.log('Session account:', signedInState.account.signer.address);
91
91
  ```
92
92
 
93
- `ensureConnected` always ends up doing one of three things: initiate a connection attempt, resolve at the target step, or reject with a `ConnectionFailure`. It never sits doing nothing.
93
+ #### What the target is
94
94
 
95
- - It initiates from `Idle`, and from a picker step (`MechanismToChoose`, `WalletToChoose`) that still carries the `error` of a previous failed attempt, so retrying after a rejected wallet prompt prompts again.
95
+ `ensureConnected` promises a **target**, not a step comparison, and does whatever reaching it takes. The target is reached when the connection is:
96
+
97
+ - **at or beyond `step`.** The steps are ordered (`SignedIn` implies `WalletConnected` implies `WalletChosen`), so a signed-in connection satisfies `ensureConnected('WalletConnected')` and resolves as itself.
98
+ - **on the wallet you named**, if you named one.
99
+ - **able to act as the address you named**, if you named one: connected, not locked, and actually holding that account. A connection already at the requested step but on a _different_ account initiates an attempt rather than resolving with somebody else.
100
+ - **on the right chain** — but only for a `WalletConnected` target, and unless you pass `{skipChainCheck: true}`. A `SignedIn` target does not check the chain (a session signer is chain-independent), so `skipChainCheck` does nothing there; read `wallet.invalidChainId` and offer `switchWalletChain()` if your signed-in app also sends through the wallet.
101
+
102
+ Anything you did not name is not part of the target, so a bare `ensureConnected()` behaves exactly as before.
103
+
104
+ An address or a wallet name **you** pass is a requirement. An address the library **replays** from the connection's own state (its locked-wallet reconnect does this) stays a preference and degrades to an ordinary connect, because nobody asked for it.
105
+
106
+ #### It always answers
107
+
108
+ There is no timeout, deliberately: a human is in the loop, so any timer is either long enough to be useless or short enough to cut a user off mid-decision, and it would report "timed out" about a wallet dialog that is open and healthy. The rule is narrower instead: **waiting is only legitimate while something is actually in progress.** It stays pending only while one of these is true, and every one of them is published on the connection so your app can render it and the user can answer it:
109
+
110
+ | Still pending because | What the state says | What ends it |
111
+ | -------------------------------------------------------------- | -------------------------------------------------------- | ------------------------------------------------ |
112
+ | an attempt is running | `step` is `WaitingForWalletConnection` / `PopupLaunched` | the wallet or the host answers |
113
+ | the wallet is holding a signature prompt | `step: 'WaitingForSignature'` | the user answers it |
114
+ | the user is choosing | `step` is `MechanismToChoose` / `WalletToChoose` | they pick, or `cancel()` |
115
+ | the user is picking an account | `step: 'ChooseWalletAccount'` | `connectToAddress(...)`, or `cancel()` |
116
+ | the wallet is on another account | `connection.addressUnavailable` (see below) | they switch in the wallet, or acknowledge it |
117
+ | the wallet is on another chain (`WalletConnected` target only) | `wallet.invalidChainId` | `switchWalletChain()`, or they switch themselves |
118
+ | the signature has not been asked for | `step: 'WalletConnected'` with a `SignedIn` target | `requestSignature()`, or see the note below |
119
+
120
+ If the target is not satisfied, nothing is in progress and nothing can be initiated, that is an answer and it is delivered immediately rather than awaited. "In progress" includes an attempt this call has started that has not come back yet, even before that attempt has published anything. Every resting entry state is enumerated against this, crossed with every target and every kind of mechanism, in `test/ensure-connected-settles.test.ts`.
121
+
122
+ The last row is the one worth knowing about: with the default `requestSignatureAutomaticallyIfPossible: false`, a `SignedIn` target rests at `WalletConnected` waiting for **your** "sign in" button, because prompting over the top of it would ask for a signature you deliberately deferred. Pass `{requestSignatureRightAway: true}` (or set the store option) and `ensureConnected` asks for it itself.
123
+
124
+ #### How it initiates
125
+
126
+ - It initiates from `Idle`, from `WalletChosen` (the wallet is chosen; upgrading it is what you asked for), and from any resting state that does not satisfy the target, including one holding the wrong account.
127
+ - It initiates from a picker step (`MechanismToChoose`, `WalletToChoose`) that still carries the `error` of a previous failed attempt, so retrying after a rejected wallet prompt prompts again.
96
128
  - It does not initiate from a picker step without an `error`: that means the user is making a choice right now and connecting would hijack it. It waits for the user to pick (or cancel) and settles then. Pass `{forceConnect: true}` to connect anyway.
97
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
+ - It rejects with `ConnectionFailure('Connection cancelled')` when the user backs out, including by acknowledging an `addressUnavailable`.
98
131
 
99
132
  ```typescript
100
133
  import {ConnectionFailure} from '@etherplay/connect';
@@ -108,6 +141,97 @@ try {
108
141
  }
109
142
  ```
110
143
 
144
+ ### Asking for a specific account
145
+
146
+ 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:
147
+
148
+ ```typescript
149
+ await connection.ensureConnected(
150
+ 'WalletConnected',
151
+ {type: 'wallet', name: 'Rabby', address: payerOfTheStuckTransaction},
152
+ {doNotStoreLocally: true},
153
+ );
154
+ ```
155
+
156
+ Call it **unconditionally**. Do not put an "are we already there" check in front of it: `connection.account.address` is the address the connection _agreed on_, not the one that can sign right now, and it is deliberately left untouched when the wallet locks, is revoked, or the user switches account behind the connection's back (`wallet.status` and `wallet.accountChanged` record those). A hand-written check on it passes for a locked wallet, skips the call that would have prompted the unlock, and the send then comes back `{code: 4001}` from the always-on provider, which is easy to report as "rejected by user" about a prompt nobody was shown.
157
+
158
+ To **render** readiness without initiating anything, ask `canActAs`:
159
+
160
+ ```typescript
161
+ import {canActAs} from '@etherplay/connect';
162
+
163
+ // in an event handler, against the store's current state
164
+ const ready = connection.canActAs(address);
165
+ // in markup or a reactive block, against a state you already hold: it takes `$connection`, so it
166
+ // re-evaluates when the wallet locks. The method form would not, since a method call gives a
167
+ // reactive block nothing to depend on.
168
+ const readyToo = canActAs($connection, address);
169
+ ```
170
+
171
+ It is false for a locked wallet, for a revoked one, and for a connection on another account, and it starts no flow. It reads `wallet.status` and the accounts the wallet is offering, so it is right about a wallet that has never been asked for accounts (a `WalletChosen` connection) as well as one that has been. Chain is not part of the answer: signing as an address is chain-independent, and `wallet.invalidChainId` is the separate question.
172
+
173
+ #### When the wallet is not on that account: `connection.addressUnavailable`
174
+
175
+ If the wallet cannot offer the address you named, the connection does **not** throw and does **not** tear the wallet down. It connects to what the wallet _does_ offer and comes to rest with a structured reason:
176
+
177
+ ```typescript
178
+ type AddressUnavailable = {
179
+ requested: `0x${string}`; // the address you asked for
180
+ walletName?: string; // the wallet it went to
181
+ selected?: `0x${string}`; // the account that wallet is on instead; absent if it offers none
182
+ available: `0x${string}`[]; // the accounts it is exposing; empty if it has since locked
183
+ message: string; // a sentence you can render as an instruction
184
+ };
185
+ ```
186
+
187
+ The last three describe the wallet **as it is now**, not as it was when the attempt ran: they are re-derived whenever the wallet announces a change, because "switch to the account we need" is not advice anyone can follow if it names an account they have already left. If the wallet ends up offering `requested`, the state clears itself, since it has stopped being true.
188
+
189
+ It sits beside `error` rather than in it, because nothing failed: the wallet works, it is on another account, and only the user can move it. Render it as an instruction, not as a red banner:
190
+
191
+ ```svelte
192
+ {#if $connection.addressUnavailable}
193
+ <p>{$connection.addressUnavailable.message}</p>
194
+ <button onclick={() => connection.acknowledgeAddressUnavailable()}>Cancel</button>
195
+ {/if}
196
+ ```
197
+
198
+ Two ways out, and you have to offer both:
199
+
200
+ - **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.
202
+
203
+ Only an address **you** named produces this. A replayed one degrades to an ordinary connect as it always did.
204
+
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").
206
+
207
+ ##### Wallets that only expose one account
208
+
209
+ `available` is **what the wallet is exposing right now, not what the user owns**, and the difference is not an edge case: MetaMask answers `eth_accounts` with every account the user has permitted, while Rabby (among others) answers with the one account it is currently on. So for a large share of users `available` has a single entry, the requested address is not in it, and the user is holding that address all along.
210
+
211
+ Two consequences for your UI:
212
+
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 as a cancellation.
214
+ - **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
+
216
+ 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.
217
+
218
+ There is deliberately no call that asks the wallet to open its own account picker (EIP-2255 `wallet_requestPermissions`). It would be a better remedy where it works, and it is a candidate for a later release, but it needs a new optional capability on the wallet-provider interface and support that varies per wallet; a button that silently does nothing on the wallets that lack it is worse than the sentence that works everywhere.
219
+
220
+ ### What your UI has to render
221
+
222
+ `ensureConnected` has no timeout, on purpose, so a state where it waits is a state your app must **show**. These are cross-cutting: they are about the wallet, not about the step, so render them above your step switch rather than inside one branch. The demo does this in one component (`demoes/sveltekit/src/lib/NeedsTheUser.svelte`), which is the shortest description of the whole list:
223
+
224
+ | Read | Show | Remedy to offer |
225
+ | ---------------------------------------------------- | --------------------------------- | ------------------------------------------------------ |
226
+ | `wallet.status === 'locked'` | "your wallet is locked" | `unlock()` (not `connect()`, which drops the wallet) |
227
+ | `wallet.status === 'disconnected'`, `accountChanged` | "your wallet moved to 0x…" | `connectToAddress(wallet.accountChanged)` |
228
+ | `wallet.invalidChainId` | "your wallet is on another chain" | `switchWalletChain()`, showing `wallet.switchingChain` |
229
+ | `connection.addressUnavailable` | its `message`, as an instruction | the user switches in the wallet, or acknowledge it |
230
+ | `connection.pendingRequests` | what the wallet is asking for | the user answers it in the wallet |
231
+ | `connection.error` | the failure | `clearError()` and retry |
232
+
233
+ **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
+
111
235
  ## Supported connection shapes
112
236
 
113
237
  There are three supported shapes. Pick one deliberately: they differ in what the user ends up with, and in what infrastructure you have to run.
@@ -297,8 +421,18 @@ export const payment = createConnection({
297
421
 
298
422
  // At checkout:
299
423
  const payer = await payment.ensureConnected({doNotStoreLocally: true});
424
+
425
+ // Later, to replace or cancel a stuck payment: it reuses the original nonce, so it must be signed
426
+ // by the SAME key. Name the account (and the wallet, if you recorded which one paid).
427
+ await payment.ensureConnected(
428
+ 'WalletConnected',
429
+ {type: 'wallet', name: walletThatPaid, address: payerOfTheStuckTransaction},
430
+ {doNotStoreLocally: true},
431
+ );
300
432
  ```
301
433
 
434
+ A payment rail whose wallet is re-picked per payment is the case that most needs the named account, and the one where the user is most likely to be on a different one by the time it matters. See "Asking for a specific account" above, including `connection.addressUnavailable`, which is what the flow rests on when the wallet is not on the account the replacement needs.
435
+
302
436
  ### What `storagePrefix` does
303
437
 
304
438
  Each connection persists two entries, in both `localStorage` and `sessionStorage`:
@@ -499,7 +633,9 @@ reproduce it and then drift from it.
499
633
  | `connectToAddress(address, options?)` | Connect to specific wallet address |
500
634
  | `switchWalletChain(chainInfo?)` | Switch wallet to different chain |
501
635
  | `unlock()` | Prompt a locked wallet, keeping step, account and wallet (see "What to call on a locked wallet") |
502
- | `ensureConnected(step?, mechanism?, options?)` | Promise-based connection; reconnects a locked wallet, since it promises a usable one |
636
+ | `ensureConnected(step?, mechanism?, options?)` | Promise-based connection to a TARGET: step, wallet, account, chain. Reconnects a locked wallet |
637
+ | `canActAs(address)` | Can this connection sign as that address right now? Reads state, initiates nothing |
638
+ | `acknowledgeAddressUnavailable()` | Dismiss `connection.addressUnavailable`; settles a waiting `ensureConnected` as cancelled |
503
639
  | `isTargetStepReached(connection)` | Check if target step is reached |
504
640
  | `getSignatureForPublicKeyPublication()` | Get signature for public key |
505
641
  | `getDelegation(target)` | Get a delegation credential |
@@ -570,7 +706,12 @@ One consequence worth stating plainly, because it used to be worse than it is: t
570
706
 
571
707
  The reasoning, including the version of this that made `connect()` reconnect too and why it was rejected, is in `docs/adr/0002-connect-ensure-connected-and-unlock-are-three-promises.md`.
572
708
 
573
- **On accounts.** `ensureConnected()`'s reconnect replays the address the connection was on, so an ordinary unlock comes back to the same account rather than bouncing a multi-account user into `ChooseWalletAccount`. If the user unlocks on a _different_ account, the replayed address is treated as a preference and the reconnect lands on the account the wallet actually offers, with `mechanism.address` and `account` updated to say so. An address YOU name (`connectToAddress(a)`, `connect({type: 'wallet', address: a})`) is a demand, and still fails the attempt if the wallet cannot offer it.
709
+ **On accounts.** `ensureConnected()`'s reconnect replays the address the connection was on, so an ordinary unlock comes back to the same account rather than bouncing a multi-account user into `ChooseWalletAccount`. If the user unlocks on a _different_ account, the replayed address is treated as a preference and the reconnect lands on the account the wallet actually offers, with `mechanism.address` and `account` updated to say so.
710
+
711
+ An address YOU name is a requirement, and the two entry points answer an impossible one differently, on purpose:
712
+
713
+ - `connectToAddress(a)` and `connect({type: 'wallet', address: a})` **fail the attempt**, unchanged. `connect` drives the flow from the user's choice and has no promise to settle, so a demand it cannot meet is an error.
714
+ - `ensureConnected(step, {type: 'wallet', address: a})` **rests on `connection.addressUnavailable`** instead: it connects to what the wallet does offer, keeps the wallet, and publishes what was asked for beside what the wallet is on, so the app can tell the user which account to switch to. Switching resolves the original call; acknowledging settles it as cancelled. See "Asking for a specific account" above.
574
715
 
575
716
  ### Connect Options
576
717
 
@@ -587,9 +728,14 @@ interface ConnectOptions {
587
728
  ```typescript
588
729
  interface EnsureConnectedOptions extends ConnectOptions {
589
730
  skipChainCheck?: boolean; // Skip chain validation for WalletConnected step
731
+ forceConnect?: boolean; // Initiate even from a picker the user is mid-choice on
590
732
  }
591
733
  ```
592
734
 
735
+ `ConnectOptions.requestSignatureRightAway` is worth knowing here too: with a `SignedIn` target on an
736
+ already-connected wallet it is what lets `ensureConnected` ask for the signature itself, instead of
737
+ resting at `WalletConnected` waiting for your own "sign in" button.
738
+
593
739
  ## Origin Account Structure
594
740
 
595
741
  When fully signed in, the account includes:
package/dist/index.d.ts CHANGED
@@ -96,6 +96,58 @@ export type WalletMechanism<WalletName extends string | undefined, Address exten
96
96
  export type Mechanism = AuthMechanism | WalletMechanism<string | undefined, `0x${string}` | undefined>;
97
97
  export type FullfilledMechanism = AuthMechanism | WalletMechanism<string, `0x${string}`>;
98
98
  export type TargetStep = 'WalletChosen' | 'WalletConnected' | 'SignedIn';
99
+ /**
100
+ * The wallet is not on the account a caller asked this connection to act as.
101
+ *
102
+ * A RESTING STATE RATHER THAN AN ERROR, because it is not one: the user has a wallet, it works,
103
+ * and it is simply on a different account than the one this request needs (replacing a stuck
104
+ * transaction reuses its nonce, so it must be signed by the same key, and no other account will
105
+ * do). There is a remedy and the user is the only one who can apply it, so this is published as an
106
+ * instruction to render — "this was paid from 0xabc…, your wallet is on 0xdef…, switch or cancel" —
107
+ * next to a connection that is still usable.
108
+ *
109
+ * Only a CALLER-SUPPLIED address produces it. An address this library replayed from the connection's
110
+ * own state is a preference and keeps degrading to an ordinary connect, because the user never asked
111
+ * for it.
112
+ *
113
+ * Two ways out, and the app has to offer both:
114
+ * - the user switches account in their wallet, and the original request proceeds on its own (driven
115
+ * by `accountsChanged`, which is what makes this work on wallets that expose one account at a
116
+ * time and can therefore never offer the requested one in a list);
117
+ * - the user acknowledges it (`acknowledgeAddressUnavailable()`), which is a CANCELLATION: the
118
+ * pending `ensureConnected` rejects with `ConnectionFailure('Connection cancelled')`, the same
119
+ * shape as any other "the user chose not to".
120
+ */
121
+ export type AddressUnavailable = {
122
+ /** The address the caller asked the connection to be able to act as. */
123
+ requested: `0x${string}`;
124
+ /** The wallet the request went to, by the name this connection knows it by, when known. */
125
+ walletName?: string;
126
+ /**
127
+ * The account that wallet is on instead. Absent only when the wallet is offering none at all,
128
+ * which is what a wallet that has since been LOCKED reports: this state is kept up to date as
129
+ * the wallet moves, so it can go from naming an account to naming none.
130
+ */
131
+ selected?: `0x${string}`;
132
+ /**
133
+ * What the wallet is EXPOSING right now. Not what the user owns, and not a picker.
134
+ *
135
+ * MetaMask answers `eth_accounts` with every account the user permitted; Rabby (among others)
136
+ * answers with the one account it is currently on. So this list is frequently a single entry that
137
+ * does not contain `requested`, while the user is holding `requested` all along. An app that
138
+ * renders it as an exhaustive choice, or reads "absent" as "the user does not have it", is wrong
139
+ * for those wallets. `message` is the remedy that works everywhere: switch in the wallet.
140
+ *
141
+ * Empty when the wallet is offering no account at all, which is what a locked wallet reports.
142
+ */
143
+ available: `0x${string}`[];
144
+ /**
145
+ * A sentence an app can render as an INSTRUCTION rather than an error. Addresses are not
146
+ * shortened here: how to abbreviate an address is the app's decision, and every field the
147
+ * sentence is built from is on this object.
148
+ */
149
+ message: string;
150
+ };
99
151
  type WalletStateCommon<WalletProviderType> = {
100
152
  provider: WalletProvider<WalletProviderType>;
101
153
  accounts: `0x${string}`[];
@@ -164,6 +216,17 @@ type ConnectionCommon<WalletProviderType> = {
164
216
  message: string;
165
217
  cause?: any;
166
218
  };
219
+ /**
220
+ * Set when a caller asked this connection to act as an address the wallet is not offering.
221
+ *
222
+ * It sits BESIDE `error` rather than in it, and for the same reason it is not a throw: nothing
223
+ * failed. It is a resting reason with a remedy only the user can apply, so an app renders it as
224
+ * an instruction (see `AddressUnavailable`), not as a red banner.
225
+ *
226
+ * Like `error`, it survives a state built by spreading the current one and is dropped by any
227
+ * fresh transition, so a new attempt clears it without anybody remembering to.
228
+ */
229
+ addressUnavailable?: AddressUnavailable;
167
230
  wallets: WalletHandle<WalletProviderType>[];
168
231
  /**
169
232
  * Requests the user's wallet is holding right now, whatever the connection is doing.
@@ -225,6 +288,26 @@ export type SignedInState<WalletProviderType> = Extract<Connection<WalletProvide
225
288
  step: 'SignedIn';
226
289
  }>;
227
290
  export declare function isTargetStepReached<WalletProviderType, Target extends TargetStep, WalletOnly extends boolean = false>(connection: Connection<WalletProviderType>, targetStep: Target, walletOnly?: WalletOnly): connection is Target extends 'WalletChosen' ? ChosenOrBetter<WalletProviderType> : Target extends 'WalletConnected' ? ConnectedWithWallet<WalletProviderType> : WalletOnly extends true ? SignedInWithWallet<WalletProviderType> : SignedInState<WalletProviderType>;
291
+ /**
292
+ * Can this connection sign as `address` RIGHT NOW, with no flow initiated and nothing prompted?
293
+ *
294
+ * The question `connection.account.address` does not answer. That field is the address the
295
+ * connection AGREED ON, which is the right thing for it to be: it survives the user locking their
296
+ * wallet, revoking the site, or switching account behind the connection's back, all of which keep
297
+ * `step: 'WalletConnected'` and change nothing about who was agreed on. What they change is whether
298
+ * anybody can sign, and that is what this reads (`wallet.status`, and the accounts the wallet is
299
+ * actually offering).
300
+ *
301
+ * It exists because a consumer needed it, wrote the comparison itself against `account.address`,
302
+ * and got a locked wallet wrong: it skipped its `ensureConnected` call, let the transaction out,
303
+ * and reported the provider's `{code: 4001}` as "transaction rejected by user" about a prompt
304
+ * nobody was ever shown. Use this to RENDER readiness (enable a button, show "unlock to pay"), and
305
+ * `ensureConnected(step, {type: 'wallet', address})` to actually reach it.
306
+ *
307
+ * Chain is deliberately not part of the answer: signing as an address is chain-independent, and
308
+ * `wallet.invalidChainId` is the separate question with its own separate remedy.
309
+ */
310
+ export declare function canActAs<WalletProviderType>(connection: Connection<WalletProviderType>, address: `0x${string}`): boolean;
228
311
  export type ConnectOptions = {
229
312
  requireUserConfirmationBeforeSignatureRequest?: boolean;
230
313
  doNotStoreLocally?: boolean;
@@ -245,6 +328,8 @@ export type ConnectionStore<WalletProviderType, Target extends TargetStep = 'Sig
245
328
  cancel: () => void;
246
329
  back: (step: 'MechanismToChoose' | 'Idle' | 'WalletToChoose') => void;
247
330
  clearError: () => void;
331
+ acknowledgeAddressUnavailable: () => void;
332
+ canActAs: (address: `0x${string}`) => boolean;
248
333
  requestSignature: () => Promise<void>;
249
334
  connectToAddress: (address: `0x${string}`, options?: {
250
335
  requireUserConfirmationBeforeSignatureRequest: boolean;
@@ -265,15 +350,15 @@ export type ConnectionStore<WalletProviderType, Target extends TargetStep = 'Sig
265
350
  (options?: EnsureConnectedOptions): Promise<ChosenOrBetter<WalletProviderType>>;
266
351
  (step: 'WalletChosen', mechanism?: WalletMechanism<string | undefined, `0x${string}` | undefined>, options?: EnsureConnectedOptions): Promise<ChosenOrBetter<WalletProviderType>>;
267
352
  } : Target extends 'WalletConnected' ? {
268
- (options?: EnsureConnectedOptions): Promise<WalletConnected<WalletProviderType>>;
269
- (step: 'WalletConnected', mechanism?: WalletMechanism<string | undefined, `0x${string}` | undefined>, options?: EnsureConnectedOptions): Promise<WalletConnected<WalletProviderType>>;
353
+ (options?: EnsureConnectedOptions): Promise<ConnectedWithWallet<WalletProviderType>>;
354
+ (step: 'WalletConnected', mechanism?: WalletMechanism<string | undefined, `0x${string}` | undefined>, options?: EnsureConnectedOptions): Promise<ConnectedWithWallet<WalletProviderType>>;
270
355
  } : WalletOnly extends true ? {
271
356
  (options?: EnsureConnectedOptions): Promise<SignedInWithWallet<WalletProviderType>>;
272
- (step: 'WalletConnected', mechanism?: WalletMechanism<string | undefined, `0x${string}` | undefined>, options?: EnsureConnectedOptions): Promise<WalletConnected<WalletProviderType>>;
357
+ (step: 'WalletConnected', mechanism?: WalletMechanism<string | undefined, `0x${string}` | undefined>, options?: EnsureConnectedOptions): Promise<ConnectedWithWallet<WalletProviderType>>;
273
358
  (step: 'SignedIn', mechanism?: WalletMechanism<string | undefined, `0x${string}` | undefined>, options?: EnsureConnectedOptions): Promise<SignedInWithWallet<WalletProviderType>>;
274
359
  } : {
275
360
  (options?: EnsureConnectedOptions): Promise<SignedIn<WalletProviderType>>;
276
- (step: 'WalletConnected', mechanism?: WalletMechanism<string | undefined, `0x${string}` | undefined>, options?: EnsureConnectedOptions): Promise<WalletConnected<WalletProviderType>>;
361
+ (step: 'WalletConnected', mechanism?: WalletMechanism<string | undefined, `0x${string}` | undefined>, options?: EnsureConnectedOptions): Promise<ConnectedWithWallet<WalletProviderType>>;
277
362
  (step: 'SignedIn', mechanism?: Mechanism, options?: EnsureConnectedOptions): Promise<SignedIn<WalletProviderType>>;
278
363
  };
279
364
  isTargetStepReached: (connection: Connection<WalletProviderType>) => connection is Target extends 'WalletChosen' ? ChosenOrBetter<WalletProviderType> : Target extends 'WalletConnected' ? ConnectedWithWallet<WalletProviderType> : WalletOnly extends true ? SignedInWithWallet<WalletProviderType> : SignedInState<WalletProviderType>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,eAAe,EACf,YAAY,EACZ,cAAc,EACd,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAA0B,KAAK,0BAA0B,EAAC,MAAM,sCAAsC,CAAC;AAI9G,OAAO,EACN,wBAAwB,EACxB,KAAK,aAAa,EAClB,iCAAiC,EACjC,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EAEpB,aAAa,EAGb,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,wBAAwB,EACxB,iCAAiC,EACjC,gBAAgB,EAIhB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,mBAAmB,GACnB,CAAC;AAEF,YAAY,EAAC,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe,EAAC,CAAC;AAIlG,YAAY,EAAC,cAAc,EAAE,YAAY,EAAE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