diff --git a/src/pages/accounts/index.mdx b/src/pages/accounts/index.mdx index 2ce0796c..326c9d53 100644 --- a/src/pages/accounts/index.mdx +++ b/src/pages/accounts/index.mdx @@ -91,13 +91,13 @@ Get started with Wagmi by following the [official guide](https://wagmi.sh/react/ ### Configure -After you have set up Wagmi, you can set up the Tempo Accounts SDK by using a Connector from `accounts/wagmi`. +After you have set up Wagmi, you can configure the Tempo Accounts SDK with `tempoWallet` from `wagmi/connectors` or `webAuthn` from `wagmi/tempo`. :::code-group ```tsx twoslash [Tempo Wallet] import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { tempoWallet } from 'accounts/wagmi' // [!code hl] +import { tempoWallet } from 'wagmi/connectors' // [!code hl] export const wagmiConfig = createConfig({ chains: [tempo], @@ -110,7 +110,7 @@ export const wagmiConfig = createConfig({ ```tsx twoslash [Domain-bound Passkeys] import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { webAuthn } from 'accounts/wagmi' // [!code hl] +import { webAuthn } from 'wagmi/tempo' // [!code hl] export const wagmiConfig = createConfig({ chains: [tempo], diff --git a/src/pages/accounts/wagmi/tempoWallet.mdx b/src/pages/accounts/wagmi/tempoWallet.mdx index 66c490a3..57a24d30 100644 --- a/src/pages/accounts/wagmi/tempoWallet.mdx +++ b/src/pages/accounts/wagmi/tempoWallet.mdx @@ -12,7 +12,7 @@ Creates a Wagmi connector backed by the Tempo Wallet dialog adapter. ```ts import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -39,7 +39,7 @@ import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' import { parseUnits } from 'viem' import { Expiry } from 'accounts' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -69,7 +69,7 @@ Dialog to use for the embed app. import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' import { Dialog } from 'accounts' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -96,7 +96,7 @@ Fee payer configuration for interacting with a service running [`Handler.relay`] ```ts twoslash import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -119,7 +119,7 @@ URL of the embed app. ```ts twoslash import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -142,7 +142,7 @@ Enable [Machine Payment Protocol](https://mpp.dev) support. ```ts twoslash import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -165,7 +165,7 @@ Use testnet. When `true`, the default chain will be the first testnet chain in ` ```ts twoslash import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], diff --git a/src/pages/accounts/wagmi/webAuthn.mdx b/src/pages/accounts/wagmi/webAuthn.mdx index c067bb14..7b37377d 100644 --- a/src/pages/accounts/wagmi/webAuthn.mdx +++ b/src/pages/accounts/wagmi/webAuthn.mdx @@ -12,7 +12,7 @@ Creates a Wagmi connector backed by the WebAuthn adapter. ```ts import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { webAuthn } from 'accounts/wagmi' +import { webAuthn } from 'wagmi/tempo' export const config = createConfig({ chains: [tempo], @@ -45,7 +45,7 @@ Cannot be used with `ceremony`. ```ts twoslash import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { webAuthn } from 'accounts/wagmi' +import { webAuthn } from 'wagmi/tempo' export const config = createConfig({ chains: [tempo], @@ -70,7 +70,7 @@ import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' import { parseUnits } from 'viem' import { Expiry } from 'accounts' -import { webAuthn } from 'accounts/wagmi' +import { webAuthn } from 'wagmi/tempo' export const config = createConfig({ chains: [tempo], @@ -109,7 +109,7 @@ Cannot be used with `authUrl`. import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' import { WebAuthnCeremony } from 'accounts' -import { webAuthn } from 'accounts/wagmi' +import { webAuthn } from 'wagmi/tempo' export const config = createConfig({ chains: [tempo], @@ -136,7 +136,7 @@ Fee payer configuration for interacting with a service running [`Handler.relay`] ```ts twoslash import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { webAuthn } from 'accounts/wagmi' +import { webAuthn } from 'wagmi/tempo' export const config = createConfig({ chains: [tempo], @@ -160,7 +160,7 @@ Enable [Machine Payment Protocol](https://mpp.dev) support. ```ts twoslash import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { webAuthn } from 'accounts/wagmi' +import { webAuthn } from 'wagmi/tempo' export const config = createConfig({ chains: [tempo], @@ -184,7 +184,7 @@ Use testnet. When `true`, the default chain will be the first testnet chain in ` ```ts twoslash import { createConfig, http } from 'wagmi' import { tempo } from 'wagmi/chains' -import { webAuthn } from 'accounts/wagmi' +import { webAuthn } from 'wagmi/tempo' export const config = createConfig({ chains: [tempo], diff --git a/src/pages/guide/_template.mdx b/src/pages/guide/_template.mdx index 6527ccb1..00d7468a 100644 --- a/src/pages/guide/_template.mdx +++ b/src/pages/guide/_template.mdx @@ -46,7 +46,7 @@ export function Component() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -76,7 +76,7 @@ export function Component() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], diff --git a/src/pages/guide/issuance/create-a-stablecoin.mdx b/src/pages/guide/issuance/create-a-stablecoin.mdx index a81bdfb1..adc9a71b 100644 --- a/src/pages/guide/issuance/create-a-stablecoin.mdx +++ b/src/pages/guide/issuance/create-a-stablecoin.mdx @@ -72,7 +72,7 @@ export function AddFunds() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -131,7 +131,7 @@ export function CreateStablecoin() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -197,7 +197,7 @@ export function CreateStablecoin() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -263,7 +263,7 @@ export function CreateStablecoin() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], diff --git a/src/pages/guide/issuance/distribute-rewards.mdx b/src/pages/guide/issuance/distribute-rewards.mdx index 9f8dc359..cdebd713 100644 --- a/src/pages/guide/issuance/distribute-rewards.mdx +++ b/src/pages/guide/issuance/distribute-rewards.mdx @@ -85,7 +85,7 @@ export function OptInToRewards() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -143,7 +143,7 @@ export function StartReward() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -194,7 +194,7 @@ export function ClaimReward() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], diff --git a/src/pages/guide/issuance/manage-stablecoin.mdx b/src/pages/guide/issuance/manage-stablecoin.mdx index ea7a228a..a8134a9d 100644 --- a/src/pages/guide/issuance/manage-stablecoin.mdx +++ b/src/pages/guide/issuance/manage-stablecoin.mdx @@ -85,7 +85,7 @@ export function GrantRoles() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -162,7 +162,7 @@ export function GrantRoles() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -273,7 +273,7 @@ export function RevokeRoles() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -342,7 +342,7 @@ export function SetSupplyCap() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -449,7 +449,7 @@ export function LinkTokenPolicy() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -527,7 +527,7 @@ export function PauseUnpauseTransfers() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -599,7 +599,7 @@ export function BurnBlocked() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], diff --git a/src/pages/guide/issuance/mint-stablecoins.mdx b/src/pages/guide/issuance/mint-stablecoins.mdx index 032de2d1..3194f696 100644 --- a/src/pages/guide/issuance/mint-stablecoins.mdx +++ b/src/pages/guide/issuance/mint-stablecoins.mdx @@ -83,7 +83,7 @@ export function GrantIssuerRole() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -184,7 +184,7 @@ export function MintToken() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], @@ -341,7 +341,7 @@ export function BurnToken() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], diff --git a/src/pages/guide/issuance/use-for-fees.mdx b/src/pages/guide/issuance/use-for-fees.mdx index 439aca2e..780e8b38 100644 --- a/src/pages/guide/issuance/use-for-fees.mdx +++ b/src/pages/guide/issuance/use-for-fees.mdx @@ -208,7 +208,7 @@ export function PayWithIssuedToken() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], diff --git a/src/pages/guide/machine-payments/client.mdx b/src/pages/guide/machine-payments/client.mdx index add1b853..5505a417 100644 --- a/src/pages/guide/machine-payments/client.mdx +++ b/src/pages/guide/machine-payments/client.mdx @@ -97,8 +97,8 @@ Mppx.create({ ```ts [config.ts] import { createConfig, http } from 'wagmi' -import { tempoWallet } from 'accounts/wagmi' import { tempoModerato } from 'viem/chains' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [tempoWallet()], diff --git a/src/pages/guide/payments/sponsor-user-fees.mdx b/src/pages/guide/payments/sponsor-user-fees.mdx index 7eeacdb5..8e809e47 100644 --- a/src/pages/guide/payments/sponsor-user-fees.mdx +++ b/src/pages/guide/payments/sponsor-user-fees.mdx @@ -60,9 +60,9 @@ export const POST = handler.fetch // Next.js ```ts twoslash [Tempo Wallet] // @noErrors -import { tempoWallet } from 'accounts/wagmi' import { tempo } from 'viem/chains' import { createConfig, http } from 'wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [tempoWallet({ @@ -78,10 +78,10 @@ export const config = createConfig({ ```ts twoslash [WebAuthn] // @noErrors -import { webAuthn } from 'accounts/wagmi' import { tempo } from 'viem/chains' import { withRelay } from 'viem/tempo' import { createConfig, http } from 'wagmi' +import { webAuthn } from 'wagmi/tempo' export const config = createConfig({ connectors: [webAuthn({ authUrl: '/auth' })], diff --git a/src/pages/guide/stablecoin-dex/managing-fee-liquidity.mdx b/src/pages/guide/stablecoin-dex/managing-fee-liquidity.mdx index f66b78b5..1378ce40 100644 --- a/src/pages/guide/stablecoin-dex/managing-fee-liquidity.mdx +++ b/src/pages/guide/stablecoin-dex/managing-fee-liquidity.mdx @@ -61,8 +61,8 @@ function ManageFeeLiquidity() { ```ts twoslash [wagmi.config.ts] // @noErrors import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' import { createConfig, http } from 'wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [tempoWallet()], @@ -125,8 +125,8 @@ function ManageFeeLiquidity() { ```ts twoslash [wagmi.config.ts] // @noErrors import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' import { createConfig, http } from 'wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [tempoWallet()], @@ -196,8 +196,8 @@ function ManageFeeLiquidity() { ```ts twoslash [wagmi.config.ts] // @noErrors import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' import { createConfig, http } from 'wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [tempoWallet()], @@ -279,8 +279,8 @@ function ManageFeeLiquidity() { ```ts twoslash [wagmi.config.ts] // @noErrors import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' import { createConfig, http } from 'wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [tempoWallet()], @@ -345,8 +345,8 @@ function MonitorSwaps() { ```ts twoslash [wagmi.config.ts] // @noErrors import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' import { createConfig, http } from 'wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [tempoWallet()], @@ -409,8 +409,8 @@ function RebalancePool() { ```ts twoslash [wagmi.config.ts] // @noErrors import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' import { createConfig, http } from 'wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [tempoWallet()], diff --git a/src/pages/guide/use-accounts/embed-passkeys.mdx b/src/pages/guide/use-accounts/embed-passkeys.mdx index 4208446b..b8fa9ad4 100644 --- a/src/pages/guide/use-accounts/embed-passkeys.mdx +++ b/src/pages/guide/use-accounts/embed-passkeys.mdx @@ -81,7 +81,7 @@ Next, we will need to configure the `webAuthn` connector in our Wagmi config, pa // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { webAuthn } from 'accounts/wagmi' // [!code ++] +import { webAuthn } from 'wagmi/tempo' // [!code ++] export const config = createConfig({ chains: [tempo], @@ -153,7 +153,7 @@ export function Example() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { webAuthn } from 'accounts/wagmi' // [!code ++] +import { webAuthn } from 'wagmi/tempo' // [!code ++] export const config = createConfig({ chains: [tempo], @@ -229,7 +229,7 @@ export function Example() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { webAuthn } from 'accounts/wagmi' // [!code ++] +import { webAuthn } from 'wagmi/tempo' // [!code ++] export const config = createConfig({ chains: [tempo], diff --git a/src/pages/guide/use-accounts/embed-tempo-wallet.mdx b/src/pages/guide/use-accounts/embed-tempo-wallet.mdx index d22c472b..b3f0cfa2 100644 --- a/src/pages/guide/use-accounts/embed-tempo-wallet.mdx +++ b/src/pages/guide/use-accounts/embed-tempo-wallet.mdx @@ -49,7 +49,7 @@ Next, we will configure the `tempoWallet` connector in our Wagmi config. // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' // [!code ++] +import { tempoWallet } from 'wagmi/connectors' // [!code ++] export const config = createConfig({ chains: [tempo], @@ -100,7 +100,7 @@ export function Example() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' // [!code ++] +import { tempoWallet } from 'wagmi/connectors' // [!code ++] export const config = createConfig({ chains: [tempo], @@ -166,7 +166,7 @@ export function Example() { // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' // [!code ++] +import { tempoWallet } from 'wagmi/connectors' // [!code ++] export const config = createConfig({ chains: [tempo], @@ -248,7 +248,7 @@ The `tempoWallet` connector supports fee sponsorship via a `feePayer` option. Th // @noErrors import { createConfig, http } from 'wagmi' import { tempo } from 'viem/chains' -import { tempoWallet } from 'accounts/wagmi' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ chains: [tempo], diff --git a/src/snippets/wagmi.config.ts b/src/snippets/wagmi.config.ts index af6435a4..c3bac3a7 100644 --- a/src/snippets/wagmi.config.ts +++ b/src/snippets/wagmi.config.ts @@ -3,10 +3,9 @@ // biome-ignore-all format: snippet // [!region setup] -import { tempoWallet } from 'accounts/wagmi' import { tempo } from 'viem/chains' import { createConfig, http } from 'wagmi' -import { KeyManager, webAuthn } from 'wagmi/tempo' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [tempoWallet()], @@ -20,11 +19,10 @@ export const config = createConfig({ // [!endregion setup] // [!region withFeePayer] -import { tempoWallet } from 'accounts/wagmi' import { tempo } from 'viem/chains' import { withRelay } from 'viem/tempo' import { createConfig, http } from 'wagmi' -import { KeyManager, webAuthn } from 'wagmi/tempo' +import { tempoWallet } from 'wagmi/connectors' export const config = createConfig({ connectors: [