Skip to content
Merged
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"sql-formatter": "^15.6.12",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.18",
"tempo.ts": "^0.13.0",
"tempo.ts": "^0.14.0",
"unplugin-auto-import": "^20.3.0",
"unplugin-icons": "^22.5.0",
"viem": "^2.44.4",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/snippets/wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { KeyManager, webAuthn } from 'wagmi/tempo'
export const config = createConfig({
connectors: [
webAuthn({
keyManager: KeyManager.localStorage(),
keyManager: KeyManager.http('https://keys.tempo.xyz'),
}),
],
chains: [tempoModerato],
Expand All @@ -33,7 +33,7 @@ import { KeyManager, webAuthn } from 'wagmi/tempo'
export const config = createConfig({
connectors: [
webAuthn({
keyManager: KeyManager.localStorage(),
keyManager: KeyManager.http('https://keys.tempo.xyz'),
}),
],
chains: [tempoModerato],
Expand Down
10 changes: 9 additions & 1 deletion src/wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ import { KeyManager, webAuthn } from 'wagmi/tempo'

const feeToken = '0x20c0000000000000000000000000000000000001'

const rpId = (() => {
const hostname = globalThis.location?.hostname
if (!hostname) return undefined
const parts = hostname.split('.')
return parts.length > 2 ? parts.slice(-2).join('.') : hostname
})()

export function getConfig(options: getConfig.Options = {}) {
const { multiInjectedProviderDiscovery } = options
return createConfig({
Expand All @@ -22,7 +29,8 @@ export function getConfig(options: getConfig.Options = {}) {
connectors: [
webAuthn({
grantAccessKey: true,
keyManager: KeyManager.localStorage(),
keyManager: KeyManager.http('https://keys.tempo.xyz'),
rpId,
}),
],
multiInjectedProviderDiscovery,
Expand Down
4 changes: 1 addition & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ function syncTips(): Plugin {

console.log('→ syncing TIPs from GitHub...')

const res = await fetch(
`https://api.github.com/repos/${repo}/contents/tips`,
)
const res = await fetch(`https://api.github.com/repos/${repo}/contents/tips`)
if (!res.ok) {
console.error('✗ failed to fetch TIPs directory:', res.statusText)
return
Expand Down