Skip to content

Commit

Permalink
use local codegen for protobuf message types (#1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime authored Aug 13, 2024
1 parent 4b6b2ed commit 49263c6
Show file tree
Hide file tree
Showing 365 changed files with 1,061 additions and 1,398 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-bobcats-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@penumbra-zone/protobuf': major
---

generate and bundle proto types
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ tsconfig.tsbuildinfo

# Storybook builds
storybook-static

packages/protobuf/gen
packages/protobuf/proto
12 changes: 6 additions & 6 deletions .syncpackrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
],
"semverGroups": [
{
"range": "",
"range": "^",
"dependencies": [
"@buf/*",
"@bufbuild/**",
"@connectrpc/**"
],
Expand Down Expand Up @@ -54,13 +53,14 @@
"isBanned": true
},
{
"label": "Control @buf registry packages from root",
"label": "Require @buf registry packages remain in root or in apps",
"dependencies": [
"@buf/*"
],
"snapTo": [
"penumbra-web"
]
"packages": [
"@penumbra-zone/**"
],
"isBanned": true
}
]
}
1 change: 0 additions & 1 deletion apps/minifront/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ Prerequisites:

- Install [nodejs](https://nodejs.org/)
- Install [pnpm](https://pnpm.io/installation)
- Add buf registry: `npm config set @buf:registry https://buf.build/gen/npm/v1/`

```shell
pnpm install
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"test": "vitest run"
},
"dependencies": {
"@bufbuild/protobuf": "1.10.0",
"@bufbuild/protobuf": "^1.10.0",
"@cosmjs/proto-signing": "^0.32.4",
"@cosmjs/stargate": "^0.32.4",
"@cosmos-kit/core": "^2.13.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { asValueView } from '@penumbra-zone/getters/equivalent-value';
import { getDisplayDenomFromView, getEquivalentValues } from '@penumbra-zone/getters/value-view';
import { ValueViewComponent } from '@repo/ui/components/ui/value';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BalancesResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb.js';
import { BalancesResponse } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';
import { AddressComponent, AddressIcon } from '@repo/ui/components/ui/address';
import { Button } from '@repo/ui/components/ui/button';
import {
Expand Down
10 changes: 2 additions & 8 deletions apps/minifront/src/components/shared/gas-fee.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import {
Fee,
FeeTier_Tier,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/fee/v1/fee_pb';
import { Fee, FeeTier_Tier } from '@penumbra-zone/protobuf/penumbra/core/component/fee/v1/fee_pb';
import { SegmentedPicker, SegmentedPickerOption } from '@repo/ui/components/ui/segmented-picker';
import { InputBlock } from './input-block';
import { ValueViewComponent } from '@repo/ui/components/ui/value';
import {
Metadata,
ValueView,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { Metadata, ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';

const FEE_TIER_OPTIONS: SegmentedPickerOption<FeeTier_Tier>[] = [
{
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/src/components/shared/input-token.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useMemo } from 'react';
import { BalancesResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb.js';
import { BalancesResponse } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';
import { getDisplayDenomExponent } from '@penumbra-zone/getters/metadata';
import { getMetadataFromBalancesResponseOptional } from '@penumbra-zone/getters/balances-response';
import { BalanceValueView } from '@repo/ui/components/ui/balance-value-view';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BalancesResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb.js';
import { Metadata } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { BalancesResponse } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';
import { Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { getAssetIdFromValueView } from '@penumbra-zone/getters/value-view';
import { useStakingTokenMetadata } from '../../state/shared';
import { ReactNode, useCallback, useEffect, useState } from 'react';
Expand All @@ -9,7 +9,7 @@ import {
getAssetIdFromBalancesResponseOptional,
} from '@penumbra-zone/getters/balances-response';
import { ViewService } from '@penumbra-zone/protobuf';
import { GasPrices } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/fee/v1/fee_pb';
import { GasPrices } from '@penumbra-zone/protobuf/penumbra/core/component/fee/v1/fee_pb';
import { getAssetId } from '@penumbra-zone/getters/metadata';
import { penumbra } from '../../prax';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { Dialog, DialogClose, DialogContent, DialogHeader } from '@repo/ui/components/ui/dialog';
import { AssetIcon } from '@repo/ui/components/ui/asset-icon';
import {
Metadata,
ValueView,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { Metadata, ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { ValueViewComponent } from '@repo/ui/components/ui/value';
import { useCallback, useEffect, useId, useMemo, useState } from 'react';
import { IconInput } from '@repo/ui/components/ui/icon-input';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { cn } from '@repo/ui/lib/utils';
import { AssetIcon } from '@repo/ui/components/ui/asset-icon';
import { ValueViewComponent } from '@repo/ui/components/ui/value';
import { TableCell, TableRow } from '@repo/ui/components/ui/table';
import { BalancesResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb.js';
import { BalancesResponse } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';

interface BalanceItemProps {
asset: BalanceOrMetadata;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useId, useState } from 'react';
import { IconInput } from '@repo/ui/components/ui/icon-input';
import { Dialog, DialogContent, DialogHeader } from '@repo/ui/components/ui/dialog';
import { ValueViewComponent } from '@repo/ui/components/ui/value';
import { BalancesResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb.js';
import { BalancesResponse } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';
import { Box } from '@repo/ui/components/ui/box';
import { motion } from 'framer-motion';
import { Metadata } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { emptyBalanceResponse } from '../../../utils/empty-balance-response';
import { bySearch } from './search-filters';
import {
Expand Down
4 changes: 2 additions & 2 deletions apps/minifront/src/components/shared/selectors/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BalancesResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb.js';
import { Metadata } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { BalancesResponse } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';
import { Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import {
getAddressIndex,
getMetadataFromBalancesResponseOptional,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BalancesResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb.js';
import { BalancesResponse } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';
import { getDisplayDenomFromView, getSymbolFromValueView } from '@penumbra-zone/getters/value-view';
import { Metadata } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { type BalanceOrMetadata, isBalance, isMetadata } from './helpers';
import { getValueViewCaseFromBalancesResponse } from '@penumbra-zone/getters/balances-response';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { describe, expect, it, vi } from 'vitest';
import { DelegationValueView } from '.';
import { render } from '@testing-library/react';
import {
Metadata,
ValueView,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { ValidatorInfo } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/stake/v1/stake_pb.js';
import { Metadata, ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { ValidatorInfo } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb';
import { bech32mIdentityKey } from '@penumbra-zone/bech32m/penumbravalid';
import { Any } from '@bufbuild/protobuf';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { ValidatorInfoComponent } from './validator-info-component';
import { ValueViewComponent } from '@repo/ui/components/ui/value';
import { StakingActions } from './staking-actions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Button } from '@repo/ui/components/ui/button';
import { Dialog, DialogContent, DialogHeader } from '@repo/ui/components/ui/dialog';
import { IdentityKeyComponent } from '@repo/ui/components/ui/identity-key-component';
import { InputBlock } from '../../../../shared/input-block';
import { Validator } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/stake/v1/stake_pb.js';
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { Validator } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb';
import { ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { FormEvent } from 'react';
import { getIdentityKey } from '@penumbra-zone/getters/validator';
import { getFormattedAmtFromValueView } from '@penumbra-zone/types/value-view';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { StakingActions } from '.';
import { render } from '@testing-library/react';
import { ValidatorInfo } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/stake/v1/stake_pb.js';
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { ValidatorInfo } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb';
import { ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { AllSlices } from '../../../../../state';

const nonZeroBalance = new ValueView({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Button } from '@repo/ui/components/ui/button';
import { ValidatorInfo } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/stake/v1/stake_pb.js';
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { ValidatorInfo } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb';
import { ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { FormDialog } from './form-dialog';
import { useMemo } from 'react';
import { AllSlices } from '../../../../../state';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidatorInfo } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/stake/v1/stake_pb.js';
import { ValidatorInfo } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb';
import { IdentityKeyComponent } from '@repo/ui/components/ui/identity-key-component';
import {
Tooltip,
Expand All @@ -13,7 +13,7 @@ import {
getValidatorState,
} from '@penumbra-zone/getters/validator-info';
import { calculateCommissionAsPercentage } from '@penumbra-zone/types/staking';
import { Metadata } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { AssetIcon } from '@repo/ui/components/ui/asset-icon';
import { ValidatorStateLabel } from './validator-state-label.tsx';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidatorState_ValidatorStateEnum } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/stake/v1/stake_pb.js';
import { ValidatorState_ValidatorStateEnum } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb';
import { cn } from '@repo/ui/lib/utils';

interface LabelInfo {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AnimatePresence, motion } from 'framer-motion';
import { AllSlices } from '../../../state';
import { DelegationValueView } from './delegation-value-view';
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { useStoreShallow } from '../../../utils/use-store-shallow';
import { getValidatorIdentityKeyFromValueView } from '@penumbra-zone/getters/value-view';
import { bech32mIdentityKey } from '@penumbra-zone/bech32m/penumbravalid';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
Metadata,
ValueView,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { Metadata, ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { getDisplayDenomFromView } from '@penumbra-zone/getters/value-view';
import {
TooltipProvider,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import {
useBalancesResponses,
useStakingTokenMetadata,
} from '../../../state/shared';
import {
Metadata,
ValueView,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { Metadata, ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { getDisplayDenomFromView } from '@penumbra-zone/getters/value-view';
import { assetPatterns } from '@penumbra-zone/types/assets';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValidatorInfo } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/stake/v1/stake_pb.js';
import { ValidatorInfo } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb';
import { TableCell, TableRow } from '@repo/ui/components/ui/table';
import { ReactNode } from 'react';
import { Oval } from 'react-loader-spinner';
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/src/components/staking/validators-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@repo/ui/components/ui/table';
import { Oval } from 'react-loader-spinner';
import { ValidatorInfoRow } from './validator-info-row';
import { ValidatorInfo } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/stake/v1/stake_pb.js';
import { ValidatorInfo } from '@penumbra-zone/protobuf/penumbra/core/component/stake/v1/stake_pb';
import { ReactNode } from 'react';
import { getValidator } from '@penumbra-zone/getters/validator-info';
import { VotingPowerAsIntegerPercentage } from '@penumbra-zone/types/staking';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useAuctionInfos } from '../../../state/swap/dutch-auction';
import { AddressIndex } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { AddressIndex } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { Button } from '@repo/ui/components/ui/button';
import { AllSlices } from '../../../state';
import { useStoreShallow } from '../../../utils/use-store-shallow.ts';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { getFilteredAuctionInfos } from './get-filtered-auction-infos';
import {
AuctionId,
DutchAuction,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/auction/v1/auction_pb.js';
} from '@penumbra-zone/protobuf/penumbra/core/component/auction/v1/auction_pb';
import { AuctionInfo } from '../../../fetchers/auction-infos';
import { AddressIndex } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb.js';
import { AddressIndex } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';

const MOCK_AUCTION_1 = new DutchAuction({
description: {
Expand Down
4 changes: 2 additions & 2 deletions apps/minifront/src/components/swap/auction-list/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AllSlices } from '../../../state';
import { DutchAuctionComponent } from '@repo/ui/components/ui/dutch-auction-component';
import { useStoreShallow } from '../../../utils/use-store-shallow';
import { AuctionId } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/auction/v1/auction_pb.js';
import { AuctionId } from '@penumbra-zone/protobuf/penumbra/core/component/auction/v1/auction_pb';
import { GradientHeader } from '@repo/ui/components/ui/gradient-header';
import { QueryLatestStateButton } from './query-latest-state-button';
import { Card } from '@repo/ui/components/ui/card';
Expand All @@ -13,7 +13,7 @@ import { useAuctionInfos } from '../../../state/swap/dutch-auction';
import { useStatus } from '../../../state/status';
import { byStartHeightDescending } from './helpers';
import { Filters } from './filters';
import { AddressIndex } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb.js';
import { AddressIndex } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { EndOrWithdrawAllButton } from './end-or-withdraw-all-button.tsx';

const auctionListSelector = (state: AllSlices) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@penumbra-zone/getters/value-view';
import { Traces } from './traces';
import { AllSlices } from '../../../../state';
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { toBaseUnit } from '@penumbra-zone/types/lo-hi';
import BigNumber from 'bignumber.js';
import { useStoreShallow } from '../../../../utils/use-store-shallow';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { SwapExecution_Trace } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/dex/v1/dex_pb.js';
import { SwapExecution_Trace } from '@penumbra-zone/protobuf/penumbra/core/component/dex/v1/dex_pb';
import { Trace } from './trace';
import {
Metadata,
ValueView,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { Metadata, ValueView } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { ValueViewComponent } from '@repo/ui/components/ui/value';
import { ArrowDown, ArrowUp } from 'lucide-react';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {
Metadata,
Value,
ValueView,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { SwapExecution_Trace } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/dex/v1/dex_pb.js';
} from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { SwapExecution_Trace } from '@penumbra-zone/protobuf/penumbra/core/component/dex/v1/dex_pb';
import { bech32mAssetId } from '@penumbra-zone/bech32m/passet';
import { ValueViewComponent } from '@repo/ui/components/ui/value';
import { Price } from './price';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Metadata } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { SwapExecution_Trace } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/dex/v1/dex_pb.js';
import { Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { SwapExecution_Trace } from '@penumbra-zone/protobuf/penumbra/core/component/dex/v1/dex_pb';
import { bech32mAssetId } from '@penumbra-zone/bech32m/passet';
import { getDisplayDenomExponent } from '@penumbra-zone/getters/metadata';
import { formatAmount, removeTrailingZeros } from '@penumbra-zone/types/amount';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BalanceValueView } from '@repo/ui/components/ui/balance-value-view';
import { BalancesResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb.js';
import { Metadata } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb.js';
import { BalancesResponse } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';
import { Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import { Box } from '@repo/ui/components/ui/box';
import { joinLoHiAmount } from '@penumbra-zone/types/amount';
import {
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/src/components/swap/unclaimed-swaps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { uint8ArrayToBase64 } from '@penumbra-zone/types/base64';
import { GradientHeader } from '@repo/ui/components/ui/gradient-header';
import { useStoreShallow } from '../../utils/use-store-shallow';
import { useState } from 'react';
import { SwapRecord } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb';
import { SwapRecord } from '@penumbra-zone/protobuf/penumbra/view/v1/view_pb';

const unclaimedSwapsSelector = (state: AllSlices) => ({
claimSwap: state.unclaimedSwaps.claimSwap,
Expand Down
Loading

0 comments on commit 49263c6

Please sign in to comment.