Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/pages/guide/issuance/create-a-stablecoin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -138,7 +138,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -206,7 +206,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -274,7 +274,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down
6 changes: 3 additions & 3 deletions src/pages/guide/issuance/distribute-rewards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -145,7 +145,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -198,7 +198,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down
14 changes: 7 additions & 7 deletions src/pages/guide/issuance/manage-stablecoin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -161,7 +161,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -274,7 +274,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -345,7 +345,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -454,7 +454,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -534,7 +534,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -608,7 +608,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down
6 changes: 3 additions & 3 deletions src/pages/guide/issuance/mint-stablecoins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -188,7 +188,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -347,7 +347,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down
2 changes: 1 addition & 1 deletion src/pages/guide/issuance/use-for-fees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export const config = createConfig({
keyManager: KeyManager.localStorage(),
})],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down
12 changes: 6 additions & 6 deletions src/pages/guide/stablecoin-dex/managing-fee-liquidity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const config = createConfig({
chains: [tempoModerato],
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -135,7 +135,7 @@ export const config = createConfig({
chains: [tempoModerato],
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -210,7 +210,7 @@ export const config = createConfig({
chains: [tempoModerato],
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -297,7 +297,7 @@ export const config = createConfig({
chains: [tempoModerato],
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -367,7 +367,7 @@ export const config = createConfig({
chains: [tempoModerato],
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -435,7 +435,7 @@ export const config = createConfig({
chains: [tempoModerato],
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down
8 changes: 4 additions & 4 deletions src/pages/guide/use-accounts/connect-to-wallets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const config = createConfig({
connectors: [metaMask()], // [!code ++]
multiInjectedProviderDiscovery: true, // [!code ++]
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -112,7 +112,7 @@ export const config = createConfig({
connectors: [metaMask()], // [!code ++]
multiInjectedProviderDiscovery: true, // [!code ++]
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -172,7 +172,7 @@ export const config = createConfig({
connectors: [metaMask()], // [!code ++]
multiInjectedProviderDiscovery: true, // [!code ++]
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -249,7 +249,7 @@ export const config = createConfig({
connectors: [metaMask()], // [!code ++]
multiInjectedProviderDiscovery: true, // [!code ++]
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down
20 changes: 8 additions & 12 deletions src/pages/guide/use-accounts/embed-passkeys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const config = createConfig({
})], // [!code ++]
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -140,7 +140,7 @@ export const config = createConfig({
})], // [!code ++]
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down Expand Up @@ -218,7 +218,7 @@ export const config = createConfig({
})], // [!code ++]
multiInjectedProviderDiscovery: false,
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand All @@ -229,21 +229,17 @@ export const config = createConfig({

Now that you have created your first passkey account, you can now:
- learn the [Best Practices](#best-practices) below
- follow a guide on how to [make a payment](#TODO), [create a stablecoin](#TODO), and [more](#TODO) with a passkey account.
- follow a guide on how to [send a payment](/guide/payments/send-a-payment), [create a stablecoin](/guide/issuance/create-a-stablecoin), and [execute swaps](/guide/stablecoin-dex/executing-swaps) with a passkey account.

::::

{/*

TODO: note on public key retention with credentialId -> pubKey KV service.

## Notes for Production
## Best Practices

### Public Key Retention
### Use a Remote Key Manager in Production

*/}
`KeyManager.localStorage()` is useful for local development, but production applications should persist credential-to-public-key mappings on a backend service.

## Best Practices
Use [`KeyManager.http`](https://wagmi.sh/tempo/keyManagers/http) with your API so users can recover and continue using their passkey account across browser storage resets and device changes.

### Loading State

Expand Down
2 changes: 1 addition & 1 deletion src/pages/sdk/typescript/server/handler.keyManager.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const config = createConfig({
],
chains: [tempoModerato],
transports: {
[tempo.id]: http(),
[tempoModerato.id]: http(),
},
})
```
Expand Down