-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wagmi: build supports alpha release now
- Loading branch information
Showing
4 changed files
with
49 additions
and
6 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
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 |
---|---|---|
@@ -1 +1,30 @@ | ||
This is a [Vite](https://vitejs.dev) project bootstrapped with [`create-wagmi`](https://github.com/wevm/wagmi/tree/main/packages/create-wagmi). | ||
|
||
It uses the Sapphire wrapper to encrypt contract deployments, transactions, | ||
view calls & gas estimations using the `injectedWithSapphire()` connector and | ||
`sapphireTransport` adapter configured in `src/wagmi.ts`: | ||
|
||
The connector and transport must be configured to use Sapphire to ensure | ||
that both transactions and view calls are encrypted. | ||
|
||
```typescript | ||
import { injectedWithSapphire, | ||
sapphireTransport, | ||
sapphireLocalnet } from "@oasisprotocol/sapphire-wagmi-v2"; | ||
|
||
export const config = createConfig({ | ||
multiInjectedProviderDiscovery: false, | ||
chains: [sapphire, sapphireTestnet, sapphireLocalnet], | ||
connectors: [injectedWithSapphire()], | ||
transports: { | ||
[sapphire.id]: sapphireTransport(), | ||
[sapphireTestnet.id]: sapphireTransport(), | ||
[sapphireLocalnet.id]: sapphireTransport(), | ||
}, | ||
}); | ||
``` | ||
|
||
Please note that `multiInjectedProviderDiscovery` is disabled, as [EIP-6963] is | ||
not yet supported by the Sapphire Wagmi integration. | ||
|
||
[EIP-6963]: https://eips.ethereum.org/EIPS/eip-6963 |
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