Skip to content

Commit

Permalink
use bundled protos (#154)
Browse files Browse the repository at this point in the history
* use bundled protos

* chore: update penumbra-zone deps

---------

Co-authored-by: turbocrime <[email protected]>
Co-authored-by: Max Korsunov <[email protected]>
  • Loading branch information
3 people authored Aug 14, 2024
1 parent 74258a8 commit 33cb2da
Show file tree
Hide file tree
Showing 72 changed files with 366 additions and 776 deletions.
12 changes: 6 additions & 6 deletions .syncpackrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
],
"semverGroups": [
{
"range": "",
"range": "^",
"dependencies": [
"@buf/*",
"@bufbuild/**",
"@connectrpc/**"
],
Expand Down Expand Up @@ -52,13 +51,14 @@
"isBanned": true
},
{
"label": "Control @buf registry packages from root",
"label": "Require @buf registry packages remain in root or in apps",
"dependencies": [
"@buf/*"
],
"snapTo": [
"prax-wallet"
]
"packages": [
"@penumbra-zone/**"
],
"isBanned": true
}
]
}
30 changes: 14 additions & 16 deletions apps/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,24 @@
"test": "vitest run"
},
"dependencies": {
"@buf/cosmos_ibc.bufbuild_es": "1.10.0-20230913112312-7ab44ae956a0.1",
"@buf/penumbra-zone_penumbra.bufbuild_es": "1.10.0-20240804013626-f19a2ee01838.1",
"@bufbuild/protobuf": "1.10.0",
"@connectrpc/connect": "1.4.0",
"@connectrpc/connect-web": "1.4.0",
"@bufbuild/protobuf": "^1.10.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-web": "^1.4.0",
"@penumbra-labs/registry": "11.0.0",
"@penumbra-zone/bech32m": "^6.1.1",
"@penumbra-zone/client": "^17.0.0",
"@penumbra-zone/crypto-web": "^20.0.0",
"@penumbra-zone/getters": "^14.0.0",
"@penumbra-zone/bech32m": "^7.0.0",
"@penumbra-zone/client": "^18.0.0",
"@penumbra-zone/crypto-web": "^21.0.0",
"@penumbra-zone/getters": "^15.0.0",
"@penumbra-zone/keys": "^4.2.1",
"@penumbra-zone/perspective": "^24.0.0",
"@penumbra-zone/protobuf": "^5.7.0",
"@penumbra-zone/query": "^25.0.0",
"@penumbra-zone/services": "^28.0.0",
"@penumbra-zone/storage": "^24.0.0",
"@penumbra-zone/perspective": "^25.0.0",
"@penumbra-zone/protobuf": "^6.0.0",
"@penumbra-zone/query": "^26.0.0",
"@penumbra-zone/services": "^29.0.0",
"@penumbra-zone/storage": "^25.0.0",
"@penumbra-zone/transport-chrome": "^8.0.1",
"@penumbra-zone/transport-dom": "^7.5.0",
"@penumbra-zone/types": "^19.0.0",
"@penumbra-zone/wasm": "^24.0.0",
"@penumbra-zone/types": "^20.0.0",
"@penumbra-zone/wasm": "^25.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/approve-transaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AuthorizeRequest } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/custody/v1/custody_pb';
import { AuthorizeRequest } from '@penumbra-zone/protobuf/penumbra/custody/v1/custody_pb';
import { PartialMessage } from '@bufbuild/protobuf';
import type { Jsonified } from '@penumbra-zone/types/jsonified';
import { PopupType, TxApproval } from './message/popup';
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/ctx/full-viewing-key.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FullViewingKey } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { FullViewingKey } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { Code, ConnectError } from '@connectrpc/connect';
import { localExtStorage } from '../storage/local';

Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/ctx/wallet-id.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WalletId } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { WalletId } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { Code, ConnectError } from '@connectrpc/connect';
import { localExtStorage } from '../storage/local';

Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/message/popup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AuthorizeRequest } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/custody/v1/custody_pb';
import type { AuthorizeRequest } from '@penumbra-zone/protobuf/penumbra/custody/v1/custody_pb';
import type {
InternalMessage,
InternalRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { MetadataFetchFn, TransactionViewComponent } from '@repo/ui/components/u
import { useStore } from '../../../../state';
import { txApprovalSelector } from '../../../../state/tx-approval';
import { JsonViewer } from '@repo/ui/components/ui/json-viewer';
import { AuthorizeRequest } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/custody/v1/custody_pb';
import { AuthorizeRequest } from '@penumbra-zone/protobuf/penumbra/custody/v1/custody_pb';
import { useTransactionViewSwitcher } from './use-transaction-view-switcher';
import { ViewTabs } from './view-tabs';
import { ApproveDeny } from '../approve-deny';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { TransactionViewTab } from './types';
import { txApprovalSelector } from '../../../../state/tx-approval';
import { useMemo, useState } from 'react';
import { useStore } from '../../../../state';
import { TransactionView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/transaction/v1/transaction_pb';
import { TransactionView } from '@penumbra-zone/protobuf/penumbra/core/transaction/v1/transaction_pb';

export const useTransactionViewSwitcher = (): {
selectedTransactionView: TransactionView | undefined;
Expand Down
5 changes: 1 addition & 4 deletions apps/extension/src/routes/popup/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import { BlockSync } from './block-sync';
import { localExtStorage } from '../../../storage/local';
import { getActiveWallet } from '../../../state/wallets';
import { needsLogin, needsOnboard } from '../popup-needs';
import {
Address,
FullViewingKey,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { Address, FullViewingKey } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { getAddressByIndex, getEphemeralByIndex } from '@penumbra-zone/wasm/keys';
import { Wallet } from '@penumbra-zone/types/wallet';
import { ValidateAddress } from './validate-address';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Mock, describe, expect, it, vi } from 'vitest';
import { getAddressOwnershipInfoFromBech32mAddress } from './get-address-ownership-info-from-bech32m-address';
import { IndexByAddressResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb';
import { IndexByAddressResponse } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';

const ADDRESS =
'penumbra10t0nt9nfd40sgs7v6gshyescnh4j650vc255uwxmmtkt7fzmelmfxn0sqxjvde7xkhv3zr63sa2pja62kmyscw386lluvvkf2y3a8flf69mhg29zkyg7tg9ey8spqp5mw5uhl6';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AddressOwnershipInfo } from './types';
import { viewClient } from '../../../../clients';
import { Address } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { Address } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';

export const getAddressOwnershipInfoFromBech32mAddress = async (
bech32mAddress: string,
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/state/numeraires.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { LocalStorageState } from '../storage/types';
import { AllSlices, SliceCreator } from '.';
import { ExtensionStorage } from '../storage/base';
import { Stringified } from '@penumbra-zone/types/jsonified';
import { AssetId } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { AssetId } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';

export interface NumerairesSlice {
selectedNumeraires: Stringified<AssetId>[];
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/state/persist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { LocalStorageState } from '../storage/types';
import { sessionExtStorage, SessionStorageState } from '../storage/session';
import { StorageItem } from '../storage/base';
import { walletsFromJson } from '@penumbra-zone/types/wallet';
import { AppParameters } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/app/v1/app_pb';
import { AppParameters } from '@penumbra-zone/protobuf/penumbra/core/app/v1/app_pb';

export type Middleware = <
T,
Expand Down
11 changes: 4 additions & 7 deletions apps/extension/src/state/tx-approval.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { AuthorizeRequest } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/custody/v1/custody_pb';
import { AuthorizeRequest } from '@penumbra-zone/protobuf/penumbra/custody/v1/custody_pb';
import { AllSlices, SliceCreator } from '.';
import { PopupType, TxApproval } from '../message/popup';
import {
TransactionPlan,
TransactionView,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/transaction/v1/transaction_pb';
} from '@penumbra-zone/protobuf/penumbra/core/transaction/v1/transaction_pb';
import { viewClient } from '../clients';
import { ConnectError } from '@connectrpc/connect';
import { errorToJson } from '@connectrpc/connect/protocol-connect';
Expand All @@ -18,12 +18,9 @@ import {
asReceiverTransactionView,
} from '@penumbra-zone/perspective/translators/transaction-view';
import { localExtStorage } from '../storage/local';
import {
AssetId,
Metadata,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { AssetId, Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { viewTransactionPlan } from '@penumbra-zone/perspective/plan/view-transaction-plan';
import { FullViewingKey } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { FullViewingKey } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';

export interface TxApprovalSlice {
/**
Expand Down
4 changes: 2 additions & 2 deletions apps/extension/src/storage/types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { AppParameters } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/app/v1/app_pb';
import { AppParameters } from '@penumbra-zone/protobuf/penumbra/core/app/v1/app_pb';
import { KeyPrintJson } from '@penumbra-zone/crypto-web/encryption';
import { Stringified } from '@penumbra-zone/types/jsonified';
import { UserChoice } from '@penumbra-zone/types/user-choice';
import { WalletJson } from '@penumbra-zone/types/wallet';
import { AssetId } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { AssetId } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';

export enum LocalStorageVersion {
V1 = 'V1',
Expand Down
5 changes: 1 addition & 4 deletions apps/extension/src/storage/v1-migration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import { MockStorageArea } from './mock';
import { ExtensionStorage } from './base';
import { v1Migrations } from './v1-migration';
import { localDefaults } from './local';
import {
FullViewingKey,
WalletId,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { FullViewingKey, WalletId } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { walletIdFromBech32m } from '@penumbra-zone/bech32m/penumbrawalletid';
import { fullViewingKeyFromBech32m } from '@penumbra-zone/bech32m/penumbrafullviewingkey';
import { LocalStorageState, LocalStorageVersion } from './types';
Expand Down
5 changes: 1 addition & 4 deletions apps/extension/src/storage/v1-migration.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import { fullViewingKeyFromBech32m } from '@penumbra-zone/bech32m/penumbrafullviewingkey';
import { walletIdFromBech32m } from '@penumbra-zone/bech32m/penumbrawalletid';
import { LocalStorageState, LocalStorageVersion } from './types';
import {
FullViewingKey,
WalletId,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { FullViewingKey, WalletId } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';

export interface Migration {
wallets: {
Expand Down
9 changes: 3 additions & 6 deletions apps/extension/src/wallet-services.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import { AppParameters } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/app/v1/app_pb';
import { AppParameters } from '@penumbra-zone/protobuf/penumbra/core/app/v1/app_pb';
import { AppService } from '@penumbra-zone/protobuf';
import { createGrpcWebTransport } from '@connectrpc/connect-web';
import { createPromiseClient } from '@connectrpc/connect';
import {
FullViewingKey,
WalletId,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { FullViewingKey, WalletId } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { localExtStorage } from './storage/local';
import { onboardGrpcEndpoint, onboardWallet } from './storage/onboard';
import { Services } from '@repo/context';
import { ServicesMessage } from './message/services';
import { WalletServices } from '@penumbra-zone/types/services';
import { AssetId } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { AssetId } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { isInternalSender } from './senders/internal';

export const startWalletServices = async () => {
Expand Down
4 changes: 2 additions & 2 deletions apps/extension/src/wasm-build-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import {
Action,
TransactionPlan,
WitnessData,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/transaction/v1/transaction_pb';
} from '@penumbra-zone/protobuf/penumbra/core/transaction/v1/transaction_pb';
import type { JsonValue } from '@bufbuild/protobuf';
import type { ActionBuildRequest } from '@penumbra-zone/types/internal-msg/offscreen';
import { FullViewingKey } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { FullViewingKey } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';

import actionKeys from '@penumbra-zone/keys';
const keyFileNames: Partial<Record<Exclude<Action['action']['case'], undefined>, URL>> =
Expand Down
15 changes: 0 additions & 15 deletions docs/dependency-upgrades.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,6 @@ $ pnpm i # use new versions and update lockfile
You should always run install again after fixing, because syncpack will not run
install for you.

## `@buf` registry

Syncpack is configured to prefer `@buf` registry versions specified at the root
package of the monorepo. So if you need new message types, you must update at
the root and propagate from there.

These packages also have tight relationships with `@bufbuild` and `@connectrpc`
packages, so it's usually best to update these together.

```sh
$ pnpm update --latest "@buf/*" "@bufbuild/*" "@connectrpc/*" # update root buf packages
$ pnpm syncpack fix-mismatches # propagate versions
$ pnpm i # use new versions and update lockfile
```

## Identifying sources of conflict

If you have conflicting dependencies, you can use `pnpm why` to inspect the
Expand Down
13 changes: 4 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"scripts": {
"add:tgz": "tsx scripts/add-tgz.ts",
"all-check": "pnpm clean && pnpm install && pnpm lint && pnpm build && pnpm test",
"buf-update": "pnpm update --latest \"@buf/*\" \"@bufbuild/*\" \"@connectrpc/*\" && pnpm syncpack fix-mismatches && pnpm install",
"build": "turbo build",
"clean": "turbo clean",
"clean:modules": "rm -rf node_modules apps/*/node_modules packages/*/node_modules pnpm-lock.yaml",
Expand All @@ -29,19 +28,15 @@
"watch-and-repack": "./scripts/watch-and-repack.sh"
},
"dependencies": {
"@buf/cosmos_ibc.bufbuild_es": "1.10.0-20230913112312-7ab44ae956a0.1",
"@buf/cosmos_ibc.connectrpc_es": "1.4.0-20230913112312-7ab44ae956a0.3",
"@buf/penumbra-zone_penumbra.bufbuild_es": "1.10.0-20240804013626-f19a2ee01838.1",
"@buf/penumbra-zone_penumbra.connectrpc_es": "1.4.0-20240804013626-f19a2ee01838.3",
"@buf/tendermint_tendermint.bufbuild_es": "1.10.0-20231117195010-33ed361a9051.1",
"@bufbuild/protobuf": "1.10.0",
"@connectrpc/connect": "1.4.0",
"@connectrpc/connect-web": "1.4.0",
"@bufbuild/protobuf": "^1.10.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-web": "^1.4.0",
"tsx": "^4.16.2"
},
"devDependencies": {
"@buf/connectrpc_eliza.bufbuild_es": "1.10.0-20230913231627-233fca715f49.1",
"@buf/connectrpc_eliza.connectrpc_es": "1.4.0-20230913231627-233fca715f49.3",
"@buf/penumbra-zone_penumbra.bufbuild_es": "1.10.0-20240703080008-312294d02bf9.1",
"@changesets/cli": "^2.27.5",
"@repo/eslint-config": "workspace:*",
"@repo/tailwind-config": "workspace:*",
Expand Down
24 changes: 11 additions & 13 deletions packages/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,20 @@
".": "./src/index.ts"
},
"peerDependencies": {
"@buf/cosmos_ibc.bufbuild_es": "1.10.0-20230913112312-7ab44ae956a0.1",
"@buf/penumbra-zone_penumbra.bufbuild_es": "1.10.0-20240804013626-f19a2ee01838.1",
"@bufbuild/protobuf": "1.10.0",
"@bufbuild/protobuf": "^1.10.0",
"@penumbra-labs/registry": "11.0.0",
"@penumbra-zone/bech32m": "^6.1.1",
"@penumbra-zone/crypto-web": "^20.0.0",
"@penumbra-zone/getters": "^14.0.0",
"@penumbra-zone/perspective": "^24.0.0",
"@penumbra-zone/protobuf": "^5.7.0",
"@penumbra-zone/query": "^25.0.0",
"@penumbra-zone/services": "^28.0.0",
"@penumbra-zone/storage": "^24.0.0",
"@penumbra-zone/bech32m": "^7.0.0",
"@penumbra-zone/crypto-web": "^21.0.0",
"@penumbra-zone/getters": "^15.0.0",
"@penumbra-zone/perspective": "^25.0.0",
"@penumbra-zone/protobuf": "^6.0.0",
"@penumbra-zone/query": "^26.0.0",
"@penumbra-zone/services": "^29.0.0",
"@penumbra-zone/storage": "^25.0.0",
"@penumbra-zone/transport-chrome": "^8.0.1",
"@penumbra-zone/transport-dom": "^7.5.0",
"@penumbra-zone/types": "^19.0.0",
"@penumbra-zone/wasm": "^24.0.0",
"@penumbra-zone/types": "^20.0.0",
"@penumbra-zone/wasm": "^25.0.0",
"exponential-backoff": "^3.1.1"
}
}
9 changes: 3 additions & 6 deletions packages/context/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@ import { RootQuerier } from '@penumbra-zone/query/root-querier';
import { IndexedDb } from '@penumbra-zone/storage/indexed-db';
import { ViewServer } from '@penumbra-zone/wasm/view-server';
import { ServicesInterface, WalletServices } from '@penumbra-zone/types/services';
import {
FullViewingKey,
WalletId,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { FullViewingKey, WalletId } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { ChainRegistryClient } from '@penumbra-labs/registry';
import { AppParameters } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/app/v1/app_pb';
import { AssetId } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { AppParameters } from '@penumbra-zone/protobuf/penumbra/core/app/v1/app_pb';
import { AssetId } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';

export interface ServicesConfig {
readonly chainId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
AddressIndex,
AddressView,
AddressView_Decoded,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
} from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { addressFromBech32m } from '@penumbra-zone/bech32m/penumbra';

const meta: Meta<typeof AddressViewComponent> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
AddressIndex,
AddressView,
AddressView_Decoded,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
} from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { AddressViewComponent } from '.';
import { describe, expect, test } from 'vitest';
import { render } from '@testing-library/react';
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/components/ui/address-view/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AddressIcon } from '../address/address-icon';
import { AddressView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { AddressView } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { CopyToClipboardIconButton } from '../copy-to-clipboard/copy-to-clipboard-icon-button';
import { AddressComponent } from '../address/address-component';
import { bech32mAddress } from '@penumbra-zone/bech32m/penumbra';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { AddressComponent } from './address-component';
import { describe, expect, test } from 'vitest';
import { render } from '@testing-library/react';
import { addressFromBech32m } from '@penumbra-zone/bech32m/penumbra';
import { Address } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { Address } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';

describe('<AddressComponent />', () => {
const address =
Expand Down
Loading

0 comments on commit 33cb2da

Please sign in to comment.