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 apps/expo-example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const globalSingletons = new Set([
// e.g. "react-dom/client" matches "react-dom"
function matchesSingleton(moduleName, singletonSet) {
for (const pkg of singletonSet) {
if (moduleName === pkg || moduleName.startsWith(pkg + '/')) return true
if (moduleName === pkg || moduleName.startsWith(`${pkg}/`)) return true
}
return false
}
Expand Down
22 changes: 14 additions & 8 deletions apps/zerodev-signer-demo/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,25 @@ const nextConfig: NextConfig = {
'@zerodev/wallet-react-ui',
'@zerodev/wallet-core',
],
// Force a single wagmi / @wagmi/core instance in the bundle. wagmi exposes
// its config through React Context; if two physical copies end up loaded,
// `WagmiProvider` and `useConfig` reference different Contexts and hooks
// throw WagmiProviderNotFoundError. Duplicates can arise whenever the same
// wagmi version is resolved with different (optional) peer-dependency
// contexts across paths — common in workspaces. Aliasing both packages to
// this app's node_modules guarantees every import resolves to the same
// module identity.
// Force a single wagmi / @wagmi/core / @tanstack/react-query instance in the
// bundle. Each exposes state through a React Context (WagmiProvider config,
// QueryClientProvider client). If two physical copies end up loaded, provider
// and consumer reference different Contexts and hooks throw (e.g.
// WagmiProviderNotFoundError, "No QueryClient set"). Duplicates arise
// whenever the same version resolves under different (optional) peer
// contexts — the workspace pulls react@19.2.3 through the Expo/RN side and
// react@19.2.0 through the demo, so pnpm splits @tanstack/react-query into
// two variants. Aliasing to this app's node_modules pins every import to the
// same module identity.
webpack: (config) => {
config.resolve.alias = {
...config.resolve.alias,
wagmi: path.resolve(__dirname, 'node_modules/wagmi'),
'@wagmi/core': path.resolve(__dirname, 'node_modules/@wagmi/core'),
'@tanstack/react-query': path.resolve(
__dirname,
'node_modules/@tanstack/react-query',
),
}
return config
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/client/transports/rest.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import type { ApiKeyStamper, PasskeyStamper } from '../../stampers/types.js'
import type { ApiKeyStamper } from '../../stampers/types.js'
import { rest } from './rest.js'

function makeStamper(headerName: string) {
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/utils/encryptOtpAttempt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ async function generateTargetPubHex(): Promise<string> {

describe('encryptOtpAttempt', () => {
it('produces a valid clientSendMsg for a well-formed bundle', async () => {
const { secretKey: signerSk, publicKey: signerPub } = p256.keygen()
const { secretKey: signerSk } = p256.keygen()
const signerPubHex = bytesToHex(p256.getPublicKey(signerSk, false))
void signerPub // consumed via signerPubHex

const targetPublicHex = await generateTargetPubHex()
const bundle = buildBundle({
Expand Down
5 changes: 3 additions & 2 deletions packages/core/src/utils/hpke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ function concat(...parts: Uint8Array[]): Uint8Array {

function i2osp(n: number, len: number): Uint8Array {
const out = new Uint8Array(len)
let value = n
for (let i = len - 1; i >= 0; i--) {
out[i] = n & 0xff
n >>>= 8
out[i] = value & 0xff
value >>>= 8
}
return out
}
Expand Down
1 change: 0 additions & 1 deletion packages/wallet-react-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,4 @@ pnpm dev # watch mode (types)
pnpm typecheck
pnpm test # vitest
pnpm storybook # component catalog
pnpm docs:dev # local docs site (vocs)
```
11 changes: 0 additions & 11 deletions packages/wallet-react-ui/docs/components/AuthFlow/Demo.tsx

This file was deleted.

63 changes: 0 additions & 63 deletions packages/wallet-react-ui/docs/components/AuthFlow/index.tsx

This file was deleted.

60 changes: 0 additions & 60 deletions packages/wallet-react-ui/docs/components/ConnectButton.tsx

This file was deleted.

90 changes: 0 additions & 90 deletions packages/wallet-react-ui/docs/components/LiveExample.tsx

This file was deleted.

Loading
Loading