Skip to content

Commit

Permalink
[pairing] draft updates
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 committed Sep 3, 2024
1 parent 89a5502 commit e830104
Show file tree
Hide file tree
Showing 8 changed files with 419 additions and 414 deletions.
16 changes: 8 additions & 8 deletions apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
"@connectrpc/connect-web": "^1.4.0",
"@penumbra-labs/registry": "11.1.0",
"@penumbra-zone/bech32m": "^7.0.0",
"@penumbra-zone/client": "^18.0.1",
"@penumbra-zone/crypto-web": "^22.0.0",
"@penumbra-zone/client": "^18.1.0",
"@penumbra-zone/crypto-web": "^23.0.0",
"@penumbra-zone/getters": "^16.0.0",
"@penumbra-zone/keys": "^4.2.1",
"@penumbra-zone/perspective": "^28.0.0",
"@penumbra-zone/perspective": "^29.0.0",
"@penumbra-zone/protobuf": "^6.0.0",
"@penumbra-zone/query": "^29.0.0",
"@penumbra-zone/services": "^32.0.0",
"@penumbra-zone/storage": "^28.0.0",
"@penumbra-zone/query": "^30.0.0",
"@penumbra-zone/services": "^33.0.0",
"@penumbra-zone/storage": "^29.0.0",
"@penumbra-zone/transport-chrome": "^8.0.1",
"@penumbra-zone/transport-dom": "^7.5.0",
"@penumbra-zone/types": "^21.0.0",
"@penumbra-zone/wasm": "^26.2.0",
"@penumbra-zone/types": "^22.0.0",
"@penumbra-zone/wasm": "^27.0.0",
"@radix-ui/react-icons": "^1.3.0",
"@repo/context": "workspace:*",
"@repo/ui": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/hooks/onboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { walletsSelector } from '../state/wallets';

// Saves hashed password, uses that hash to encrypt the seed phrase
// and then saves that to session + local storage
export const useOnboardingSave = () => {
export const useAddWallet = () => {
const { setPassword } = useStore(passwordSelector);
const { phrase: generatedPhrase } = useStore(generateSelector);
const { phrase: importedPhrase } = useStore(importSelector);
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/routes/page/onboarding/height.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const ImportWalletCreationHeight = () => {
<CardContent className='mt-8'>
<form className='grid gap-6' onSubmit={handleSubmit}>
<Input
type='text'
type='number'
placeholder='Enter block height'
value={blockHeight}
onChange={e => setBlockHeight(e.target.value)}
Expand Down
4 changes: 2 additions & 2 deletions apps/extension/src/routes/page/onboarding/set-password.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import {
CardTitle,
} from '@repo/ui/components/ui/card';
import { FadeTransition } from '@repo/ui/components/ui/fade-transition';
import { useOnboardingSave } from '../../../hooks/onboarding';
import { useAddWallet } from '../../../hooks/onboarding';
import { usePageNav } from '../../../utils/navigate';
import { PagePath } from '../paths';
import { PasswordInput } from '../../../shared/components/password-input';

export const SetPassword = () => {
const navigate = usePageNav();
const onboardingSave = useOnboardingSave();
const onboardingSave = useAddWallet();
const [password, setPassword] = useState('');
const [confirmation, setConfirmation] = useState('');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import {
CardTitle,
} from '@repo/ui/components/ui/card';
import { FadeTransition } from '@repo/ui/components/ui/fade-transition';
import { useOnboardingSave } from '../../../hooks/onboarding';
import { useAddWallet } from '../../../hooks/onboarding';
import { usePageNav } from '../../../utils/navigate';
import { PagePath } from '../paths';
import { PasswordInput } from '../../../shared/components/password-input';

export const SetPassword = () => {
const navigate = usePageNav();
const finalOnboardingSave = useOnboardingSave();
const finalOnboardingSave = useAddWallet();
const [password, setPassword] = useState('');
const [confirmation, setConfirmation] = useState('');

Expand Down
14 changes: 7 additions & 7 deletions packages/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"@bufbuild/protobuf": "^1.10.0",
"@penumbra-labs/registry": "11.1.0",
"@penumbra-zone/bech32m": "^7.0.0",
"@penumbra-zone/crypto-web": "^22.0.0",
"@penumbra-zone/crypto-web": "^23.0.0",
"@penumbra-zone/getters": "^16.0.0",
"@penumbra-zone/keys": "^4.2.1",
"@penumbra-zone/perspective": "^28.0.0",
"@penumbra-zone/perspective": "^29.0.0",
"@penumbra-zone/protobuf": "^6.0.0",
"@penumbra-zone/query": "^29.0.0",
"@penumbra-zone/services": "^32.0.0",
"@penumbra-zone/storage": "^28.0.0",
"@penumbra-zone/query": "^30.0.0",
"@penumbra-zone/services": "^33.0.0",
"@penumbra-zone/storage": "^29.0.0",
"@penumbra-zone/transport-chrome": "^8.0.1",
"@penumbra-zone/transport-dom": "^7.5.0",
"@penumbra-zone/types": "^21.0.0",
"@penumbra-zone/wasm": "^26.2.0",
"@penumbra-zone/types": "^22.0.0",
"@penumbra-zone/wasm": "^27.0.0",
"exponential-backoff": "^3.1.1"
}
}
6 changes: 3 additions & 3 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
"@penumbra-labs/registry": "11.1.0",
"@penumbra-zone/bech32m": "^7.0.0",
"@penumbra-zone/getters": "^16.0.0",
"@penumbra-zone/perspective": "^28.0.0",
"@penumbra-zone/perspective": "^29.0.0",
"@penumbra-zone/protobuf": "^6.0.0",
"@penumbra-zone/types": "^21.0.0",
"@penumbra-zone/wasm": "^26.2.0",
"@penumbra-zone/types": "^22.0.0",
"@penumbra-zone/wasm": "^27.0.0",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "1.0.5",
Expand Down
785 changes: 395 additions & 390 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit e830104

Please sign in to comment.