Skip to content

Commit 2136a90

Browse files
jxombrendanjryan
andauthored
docs: access key guides (#329)
* docs: add access keys guides (overview + send a payment) Amp-Thread-ID: https://ampcode.com/threads/T-019d74be-6ebd-729e-b27f-d26f023a9256 * up * docs: access key guides - authorize, periodical payments, public keys, revoke Amp-Thread-ID: https://ampcode.com/threads/T-019dad40-f171-72ac-bde8-ae91249ec34a * rm * up * Delete src/pages/guide/access-keys/index.mdx * Update authorize-access-keys.mdx * fix: update pnpm-lock.yaml for accounts ^0.7.1 * fix: resolve TypeScript errors from accounts v0.7 upgrade * fix: upgrade wagmi/viem to canary versions compatible with accounts 0.7 --------- Co-authored-by: Brendan Ryan <brendanjryan@users.noreply.github.com>
1 parent 6212588 commit 2136a90

7 files changed

Lines changed: 1004 additions & 156 deletions

File tree

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@
2424
"@tanstack/react-query": "^5.99.0",
2525
"@vercel/analytics": "^1.6.1",
2626
"@vercel/speed-insights": "^1.3.1",
27+
"@wagmi/core": "0.0.0-canary-20260421205751",
2728
"abitype": "^1.2.3",
28-
"accounts": "^0.6.5",
29+
"accounts": "^0.7.1",
2930
"cva": "1.0.0-beta.4",
3031
"mermaid": "^11.14.0",
3132
"monaco-editor": "^0.55.1",
@@ -41,9 +42,9 @@
4142
"tailwindcss": "^4.2.2",
4243
"unplugin-auto-import": "^21.0.0",
4344
"unplugin-icons": "^23.0.1",
44-
"viem": "2.48.0",
45+
"viem": "^2.48.4",
4546
"vocs": "https://pkg.pr.new/wevm/vocs@2fb25c2",
46-
"wagmi": "^3.6.1",
47+
"wagmi": "0.0.0-canary-20260421205751",
4748
"waku": "1.0.0-alpha.4",
4849
"zod": "^4.3.6"
4950
},

pnpm-lock.yaml

Lines changed: 130 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/guides/AccountsSignIn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ export function AccountsSignIn() {
3737

3838
function useTempoWalletConnector() {
3939
const connectors = useConnectors()
40-
return connectors.find((c) => c.id === 'xyz.tempo')
40+
return connectors.find((c: { id: string }) => c.id === 'xyz.tempo')
4141
}

src/components/guides/VirtualAddressesLiveDemo.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,7 @@ function PasskeyLogin() {
121121
className="font-normal text-[14px] -tracking-[2%]"
122122
onClick={async () => {
123123
await disconnect.disconnectAsync().catch(() => {})
124-
connect.connect({
125-
connector,
126-
capabilities: {
127-
label: 'Tempo Docs',
128-
type: 'sign-up',
129-
},
130-
})
124+
connect.connect({ connector })
131125
}}
132126
type="button"
133127
>

0 commit comments

Comments
 (0)