-
-
Notifications
You must be signed in to change notification settings - Fork 958
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip: 5792 updates * docs * decorator * Create fresh-cows-deliver.md
- Loading branch information
Showing
21 changed files
with
400 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"viem": patch | ||
--- | ||
|
||
**Experimental:** Added `showCallsStatus` | ||
**Experimental:** Renamed `getCallsReceipt` to `getCallsStatus` | ||
**Experimental:** `getCapabilities` now requires an account. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
description: Requests for the wallet to show information about a call batch. | ||
--- | ||
|
||
# showCallsStatus | ||
|
||
Requests for the wallet to show information about a call batch that was sent via `showCalls`. | ||
|
||
[Read more.](https://github.com/ethereum/EIPs/blob/1663ea2e7a683285f977eda51c32cec86553f585/EIPS/eip-5792.md#wallet_showcallsstatus) | ||
|
||
:::warning[Warning] | ||
This is an experimental action that is not supported in most wallets. It is recommended to have a fallback mechanism if using this in production. | ||
::: | ||
|
||
## Usage | ||
|
||
:::code-group | ||
|
||
```ts twoslash [example.ts] | ||
import { walletClient } from './config' | ||
|
||
await walletClient.showCallsStatus({ // [!code focus:99] | ||
id: '0x1234567890abcdef', | ||
}) | ||
``` | ||
|
||
```ts twoslash [config.ts] filename="config.ts" | ||
import 'viem/window' | ||
// ---cut--- | ||
import { createWalletClient, custom } from 'viem' | ||
import { mainnet } from 'viem/chains' | ||
import { walletActionsEip5792 } from 'viem/experimental' | ||
|
||
export const walletClient = createWalletClient({ | ||
chain: mainnet, | ||
transport: custom(window.ethereum!), | ||
}).extend(walletActionsEip5792()) | ||
|
||
export const [account] = await walletClient.getAddresses() | ||
``` | ||
|
||
::: | ||
|
||
## Returns | ||
|
||
`void` | ||
|
||
## Parameters | ||
|
||
### id | ||
|
||
- **Type:** `string` | ||
|
||
Identifier of the call batch. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.