From c8490565ff29a90b77f50c0044e708e3b25c1f89 Mon Sep 17 00:00:00 2001 From: "moxey.eth" Date: Wed, 3 Apr 2024 16:59:36 +1100 Subject: [PATCH] docs: add warnings to experimental actions --- site/pages/experimental/actions/getCallsStatus.mdx | 4 ++++ site/pages/experimental/actions/getCapabilities.mdx | 6 ++++++ site/pages/experimental/actions/sendCalls.mdx | 4 ++++ site/pages/experimental/actions/writeContracts.mdx | 4 ++++ 4 files changed, 18 insertions(+) diff --git a/site/pages/experimental/actions/getCallsStatus.mdx b/site/pages/experimental/actions/getCallsStatus.mdx index 19fdf7563c..b30c386919 100644 --- a/site/pages/experimental/actions/getCallsStatus.mdx +++ b/site/pages/experimental/actions/getCallsStatus.mdx @@ -8,6 +8,10 @@ Returns the status and receipts of a call batch that was sent via `sendCalls`. [Read more.](https://github.com/ethereum/EIPs/blob/1d759f24e6552a516091bb1fe3361d9ca44d085c/EIPS/eip-5792.md#wallet_getcallsstatus) +:::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 diff --git a/site/pages/experimental/actions/getCapabilities.mdx b/site/pages/experimental/actions/getCapabilities.mdx index 4db6b38fad..617fd85224 100644 --- a/site/pages/experimental/actions/getCapabilities.mdx +++ b/site/pages/experimental/actions/getCapabilities.mdx @@ -8,6 +8,12 @@ Extract capabilities (grouped by chain ID) that a connected wallet supports (e.g [Read more.](https://github.com/ethereum/EIPs/blob/1d759f24e6552a516091bb1fe3361d9ca44d085c/EIPS/eip-5792.md#wallet_getcapabilities) +:::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] diff --git a/site/pages/experimental/actions/sendCalls.mdx b/site/pages/experimental/actions/sendCalls.mdx index 7d86ec6d6d..6b3968b0d7 100644 --- a/site/pages/experimental/actions/sendCalls.mdx +++ b/site/pages/experimental/actions/sendCalls.mdx @@ -8,6 +8,10 @@ Requests for the wallet to sign and broadcast a batch of calls (transactions) to [Read more.](https://github.com/ethereum/EIPs/blob/1d759f24e6552a516091bb1fe3361d9ca44d085c/EIPS/eip-5792.md#wallet_sendcalls) +:::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 diff --git a/site/pages/experimental/actions/writeContracts.mdx b/site/pages/experimental/actions/writeContracts.mdx index c9192663f5..76edef8f26 100644 --- a/site/pages/experimental/actions/writeContracts.mdx +++ b/site/pages/experimental/actions/writeContracts.mdx @@ -8,6 +8,10 @@ Requests for the wallet to sign and broadcast a batch of write contract calls (t [Read more.](https://github.com/ethereum/EIPs/blob/1d759f24e6552a516091bb1fe3361d9ca44d085c/EIPS/eip-5792.md#wallet_sendcalls) +:::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