Skip to content

Commit

Permalink
fix all package exports, remove /src/ import path segments (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
turbocrime authored Apr 26, 2024
1 parent 84a664d commit 3148375
Show file tree
Hide file tree
Showing 173 changed files with 369 additions and 336 deletions.
11 changes: 11 additions & 0 deletions .changeset/brave-tips-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@penumbra-zone/transport-dom': major
'@penumbra-zone/constants': major
'@penumbra-zone/polyfills': major
'@penumbra-zone/getters': major
'@penumbra-zone/client': major
'@penumbra-zone/query': major
'@penumbra-zone/types': major
---

remove `/src/` path segment from exports
4 changes: 2 additions & 2 deletions apps/extension/src/approve-origin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { localExtStorage } from '@penumbra-zone/storage/chrome/local';
import { OriginApproval, PopupType } from './message/popup';
import { popup } from './popup';
import Map from '@penumbra-zone/polyfills/src/Map.groupBy';
import { UserChoice } from '@penumbra-zone/types/src/user-choice';
import Map from '@penumbra-zone/polyfills/Map.groupBy';
import { UserChoice } from '@penumbra-zone/types/user-choice';

export const originAlreadyApproved = async (url: string): Promise<boolean> => {
// parses the origin and returns a consistent format
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,6 +1,6 @@
import { AuthorizeRequest } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/custody/v1/custody_pb';
import { PartialMessage } from '@bufbuild/protobuf';
import type { Jsonified } from '@penumbra-zone/types/src/jsonified';
import type { Jsonified } from '@penumbra-zone/types/jsonified';
import { PopupType, TxApproval } from './message/popup';
import { popup } from './popup';

Expand Down
4 changes: 2 additions & 2 deletions apps/extension/src/clients.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ViewService } from '@buf/penumbra-zone_penumbra.connectrpc_es/penumbra/view/v1/view_connect';
import { createPromiseClient } from '@connectrpc/connect';
import { createChannelTransport } from '@penumbra-zone/transport-dom/src/create';
import { createChannelTransport } from '@penumbra-zone/transport-dom/create';
import { CRSessionClient } from '@penumbra-zone/transport-chrome/session-client';
import { transportOptions } from '@penumbra-zone/types/src/registry';
import { transportOptions } from '@penumbra-zone/types/registry';

const port = CRSessionClient.init(PRAX);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import {
PenumbraProvider,
PenumbraRequestFailure,
PenumbraSymbol,
} from '@penumbra-zone/client/src/global';
} from '@penumbra-zone/client/global';
import { isPraxFailureMessageEvent, isPraxPortMessageEvent, PraxMessage } from './message-event';

import '@penumbra-zone/polyfills/src/Promise.withResolvers';
import '@penumbra-zone/polyfills/Promise.withResolvers';
import { PraxConnection } from '../message/prax';

const request = Promise.withResolvers();
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/entry/offscreen-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
ActionBuildResponse,
isActionBuildRequest,
isOffscreenRequest,
} from '@penumbra-zone/types/src/internal-msg/offscreen';
} from '@penumbra-zone/types/internal-msg/offscreen';

chrome.runtime.onMessage.addListener((req, _sender, respond) => {
if (!isOffscreenRequest(req)) return false;
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/get-rpc-impls.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createPromiseClient, ServiceImpl } from '@connectrpc/connect';
import { createGrpcWebTransport } from '@connectrpc/connect-web';
import { createProxyImpl, noContextHandler } from '@penumbra-zone/transport-dom/src/proxy';
import { createProxyImpl, noContextHandler } from '@penumbra-zone/transport-dom/proxy';
import { rethrowImplErrors } from './utils/rethrow-impl-errors';
import { Query as IbcClientService } from '@buf/cosmos_ibc.connectrpc_es/ibc/core/client/v1/query_connect';
import { Query as IbcChannelService } from '@buf/cosmos_ibc.connectrpc_es/ibc/core/channel/v1/query_connect';
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/hooks/chain-id.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useQuery } from '@tanstack/react-query';
import { viewClient } from '../clients';
import { localExtStorage } from '@penumbra-zone/storage/chrome/local';
import { AppQuerier } from '@penumbra-zone/query/src/queriers/app';
import { AppQuerier } from '@penumbra-zone/query/queriers/app';

export const getChainIdWithFallback = async (): Promise<string> => {
// Check storage first to see if available
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/hooks/full-sync-height.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useQuery } from '@tanstack/react-query';
import { TendermintQuerier } from '@penumbra-zone/query/src/queriers/tendermint';
import { TendermintQuerier } from '@penumbra-zone/query/queriers/tendermint';
import { PopupLoaderData } from '../routes/popup/home';
import { useStore } from '../state';
import { networkSelector } from '../state/network';
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/listeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Code, ConnectError } from '@connectrpc/connect';
import { approveOrigin, originAlreadyApproved } from './approve-origin';
import { PraxConnection } from './message/prax';
import { JsonValue } from '@bufbuild/protobuf';
import { UserChoice } from '@penumbra-zone/types/src/user-choice';
import { UserChoice } from '@penumbra-zone/types/user-choice';

// trigger injected-connection-port to init when a known page is loaded.
chrome.tabs.onUpdated.addListener(
Expand Down
6 changes: 3 additions & 3 deletions apps/extension/src/message/popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import type {
InternalMessage,
InternalRequest,
InternalResponse,
} from '@penumbra-zone/types/src/internal-msg/shared';
import type { UserChoice } from '@penumbra-zone/types/src/user-choice';
import type { Jsonified } from '@penumbra-zone/types/src/jsonified';
} from '@penumbra-zone/types/internal-msg/shared';
import type { UserChoice } from '@penumbra-zone/types/user-choice';
import type { Jsonified } from '@penumbra-zone/types/jsonified';
import { OriginRecord } from '@penumbra-zone/storage/chrome/types';

export enum PopupType {
Expand Down
7 changes: 2 additions & 5 deletions apps/extension/src/popup.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { sessionExtStorage } from '@penumbra-zone/storage/chrome/session';
import { PopupMessage, PopupRequest, PopupType } from './message/popup';
import { PopupPath } from './routes/popup/paths';
import type {
InternalRequest,
InternalResponse,
} from '@penumbra-zone/types/src/internal-msg/shared';
import { isChromeResponderDroppedError } from '@penumbra-zone/types/src/internal-msg/chrome-error';
import type { InternalRequest, InternalResponse } from '@penumbra-zone/types/internal-msg/shared';
import { isChromeResponderDroppedError } from '@penumbra-zone/types/internal-msg/chrome-error';
import { Code, ConnectError } from '@connectrpc/connect';
import { errorFromJson } from '@connectrpc/connect/protocol-connect';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Card, CardDescription, CardHeader, CardTitle } from '@penumbra-zone/ui/
import { FadeTransition } from '@penumbra-zone/ui/components/ui/fade-transition';
import { usePageNav } from '../../../utils/navigate';
import { PagePath } from '../paths';
import { ServicesMessage } from '@penumbra-zone/types/src/services';
import { ServicesMessage } from '@penumbra-zone/types/services';
import { GrpcEndpointForm } from '../../../shared/components/grpc-endpoint-form';

export const SetGrpcEndpoint = () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/routes/popup/approval/origin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ApproveDeny } from './approve-deny';
import { LinkGradientIcon } from '../../../icons/link-gradient';
import { DisplayOriginURL } from '../../../shared/components/display-origin-url';
import { cn } from '@penumbra-zone/ui/lib/utils';
import { UserChoice } from '@penumbra-zone/types/src/user-choice';
import { UserChoice } from '@penumbra-zone/types/user-choice';
import { ExclamationTriangleIcon } from '@radix-ui/react-icons';

export const OriginApproval = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { AuthorizeRequest } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumb
import { useTransactionViewSwitcher } from './use-transaction-view-switcher';
import { ViewTabs } from './view-tabs';
import { ApproveDeny } from '../approve-deny';
import { UserChoice } from '@penumbra-zone/types/src/user-choice';
import type { Jsonified } from '@penumbra-zone/types/src/jsonified';
import { UserChoice } from '@penumbra-zone/types/user-choice';
import type { Jsonified } from '@penumbra-zone/types/jsonified';

export const TransactionApproval = () => {
const { authorizeRequest: authReqString, setChoice, sendResponse } = useStore(txApprovalSelector);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ExclamationTriangleIcon } from '@radix-ui/react-icons';
import { Button } from '@penumbra-zone/ui/components/ui/button';
import { TrashGradientIcon } from '../../../icons/trash-gradient';
import { ServicesMessage } from '@penumbra-zone/types/src/services';
import { ServicesMessage } from '@penumbra-zone/types/services';
import { usePopupNav } from '../../../utils/navigate';
import { PopupPath } from '../paths';
import { useStore } from '../../../state';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Input } from '@penumbra-zone/ui/components/ui/input';
import { LinkGradientIcon } from '../../../../icons/link-gradient';
import { OriginRecord } from '@penumbra-zone/storage/chrome/types';
import { AllSlices, useStore } from '../../../../state';
import { UserChoice } from '@penumbra-zone/types/src/user-choice';
import { UserChoice } from '@penumbra-zone/types/user-choice';
import { SettingsScreen } from '../settings-screen';
import { useStoreShallow } from '../../../../utils/use-store-shallow';
import { allSitesFilteredOutSelector } from '../../../../state/connected-sites';
import Map from '@penumbra-zone/polyfills/src/Map.groupBy';
import Map from '@penumbra-zone/polyfills/Map.groupBy';
import { KnownSitesGroup } from './known-sites-group';

const settingsConnectedSitesSelector = (state: AllSlices) => ({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { OriginRecord } from '@penumbra-zone/storage/chrome/types';
import { UserChoice } from '@penumbra-zone/types/src/user-choice';
import { UserChoice } from '@penumbra-zone/types/user-choice';
import { Button } from '@penumbra-zone/ui/components/ui/button';
import { TrashIcon } from 'lucide-react';
import { DisplayOriginURL } from '../../../../shared/components/display-origin-url';
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/routes/popup/settings/settings-rpc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useState } from 'react';
import { ShareGradientIcon } from '../../../icons/share-gradient';
import { GrpcEndpointForm } from '../../../shared/components/grpc-endpoint-form';
import { SettingsScreen } from './settings-screen';
import '@penumbra-zone/polyfills/src/Promise.withResolvers';
import '@penumbra-zone/polyfills/Promise.withResolvers';

export const SettingsRPC = () => {
const [countdownTime, setCountdownTime] = useState<number>();
Expand Down
8 changes: 4 additions & 4 deletions apps/extension/src/service-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import { localExtStorage } from '@penumbra-zone/storage/chrome/local';
// adapter
import { ConnectRouter, createContextValues, PromiseClient } from '@connectrpc/connect';
import { CRSessionManager } from '@penumbra-zone/transport-chrome/session-manager';
import { createDirectClient } from '@penumbra-zone/transport-dom/src/direct';
import { connectChannelAdapter } from '@penumbra-zone/transport-dom/src/adapter';
import { transportOptions } from '@penumbra-zone/types/src/registry';
import { createDirectClient } from '@penumbra-zone/transport-dom/direct';
import { connectChannelAdapter } from '@penumbra-zone/transport-dom/adapter';
import { transportOptions } from '@penumbra-zone/types/registry';

// context
import { CustodyService } from '@buf/penumbra-zone_penumbra.connectrpc_es/penumbra/custody/v1/custody_connect';
Expand All @@ -39,7 +39,7 @@ import {
WalletId,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { fvkCtx } from '@penumbra-zone/services/ctx/full-viewing-key';
import { WalletJson } from '@penumbra-zone/types/src/wallet';
import { WalletJson } from '@penumbra-zone/types/wallet';

/**
This fixes an issue where some users do not have 'grpcEndpoint' set after they have finished onboarding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PromiseWithResolvers } from '@penumbra-zone/polyfills/src/Promise.withResolvers';
import { PromiseWithResolvers } from '@penumbra-zone/polyfills/Promise.withResolvers';
import { Button } from '@penumbra-zone/ui/components/ui/button';
import {
Dialog,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { createGrpcWebTransport } from '@connectrpc/connect-web';
import { useCallback, useEffect, useMemo, useState } from 'react';
import { AllSlices } from '../../../state';
import { useStoreShallow } from '../../../utils/use-store-shallow';
import { ServicesMessage } from '@penumbra-zone/types/src/services';
import { ServicesMessage } from '@penumbra-zone/types/services';
import debounce from 'lodash/debounce';
import { PromiseWithResolvers } from '@penumbra-zone/polyfills/src/Promise.withResolvers';
import { PromiseWithResolvers } from '@penumbra-zone/polyfills/Promise.withResolvers';
import { useRpcEndpoints } from '../../../hooks/registry';

const randomSort = () => (Math.random() >= 0.5 ? 1 : -1);
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/state/connected-sites.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
mockLocalExtStorage,
mockSessionExtStorage,
} from '@penumbra-zone/storage/chrome/test-utils/mock';
import { UserChoice } from '@penumbra-zone/types/src/user-choice';
import { UserChoice } from '@penumbra-zone/types/user-choice';
import { allSitesFilteredOutSelector } from './connected-sites';

describe('Connected Sites Slice', () => {
Expand Down
7 changes: 2 additions & 5 deletions apps/extension/src/state/origin-approval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import { ConnectError } from '@connectrpc/connect';
import { OriginApproval, PopupType } from '../message/popup';
import { AllSlices, SliceCreator } from '.';
import { errorToJson } from '@connectrpc/connect/protocol-connect';
import type {
InternalRequest,
InternalResponse,
} from '@penumbra-zone/types/src/internal-msg/shared';
import { UserChoice } from '@penumbra-zone/types/src/user-choice';
import type { InternalRequest, InternalResponse } from '@penumbra-zone/types/internal-msg/shared';
import { UserChoice } from '@penumbra-zone/types/user-choice';

export interface OriginApprovalSlice {
responder?: (m: InternalResponse<OriginApproval>) => void;
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 @@ -6,7 +6,7 @@ import { localExtStorage } from '@penumbra-zone/storage/chrome/local';
import { LocalStorageState } from '@penumbra-zone/storage/chrome/types';
import { sessionExtStorage, SessionStorageState } from '@penumbra-zone/storage/chrome/session';
import { StorageItem } from '@penumbra-zone/storage/chrome/base';
import { walletsFromJson } from '@penumbra-zone/types/src/wallet';
import { walletsFromJson } from '@penumbra-zone/types/wallet';

export type Middleware = <
T,
Expand Down
9 changes: 3 additions & 6 deletions apps/extension/src/state/tx-approval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ import {
import { viewClient } from '../clients';
import { ConnectError } from '@connectrpc/connect';
import { errorToJson } from '@connectrpc/connect/protocol-connect';
import type {
InternalRequest,
InternalResponse,
} from '@penumbra-zone/types/src/internal-msg/shared';
import type { Jsonified, Stringified } from '@penumbra-zone/types/src/jsonified';
import { UserChoice } from '@penumbra-zone/types/src/user-choice';
import type { InternalRequest, InternalResponse } from '@penumbra-zone/types/internal-msg/shared';
import type { Jsonified, Stringified } from '@penumbra-zone/types/jsonified';
import { UserChoice } from '@penumbra-zone/types/user-choice';
import { classifyTransaction } from '@penumbra-zone/perspective/transaction/classify';
import { TransactionClassification } from '@penumbra-zone/perspective/transaction/classification';
import {
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/state/wallets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
mockLocalExtStorage,
mockSessionExtStorage,
} from '@penumbra-zone/storage/chrome/test-utils/mock';
import type { WalletCreate } from '@penumbra-zone/types/src/wallet';
import type { WalletCreate } from '@penumbra-zone/types/wallet';

vi.stubGlobal('crypto', webcrypto);

Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/state/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
FullViewingKey,
SpendKey,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/keys/v1/keys_pb';
import { Wallet, WalletCreate } from '@penumbra-zone/types/src/wallet';
import { Wallet, WalletCreate } from '@penumbra-zone/types/wallet';

export interface WalletsSlice {
all: Wallet[];
Expand Down
2 changes: 1 addition & 1 deletion apps/extension/src/wasm-build-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
WitnessData,
} from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/transaction/v1/transaction_pb';
import type { JsonValue } from '@bufbuild/protobuf';
import type { ActionBuildRequest } from '@penumbra-zone/types/src/internal-msg/offscreen';
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 actionKeys from '@penumbra-zone/keys';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { asValueView } from '@penumbra-zone/getters/src/equivalent-value';
import {
getDisplayDenomFromView,
getEquivalentValues,
} from '@penumbra-zone/getters/src/value-view';
import { asValueView } from '@penumbra-zone/getters/equivalent-value';
import { getDisplayDenomFromView, getEquivalentValues } from '@penumbra-zone/getters/value-view';
import { ValueViewComponent } from '@penumbra-zone/ui/components/ui/tx/view/value';

export const EquivalentValues = ({ valueView }: { valueView?: ValueView }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
TableRow,
} from '@penumbra-zone/ui/components/ui/table';
import { Link } from 'react-router-dom';
import { shorten } from '@penumbra-zone/types/src/string';
import { shorten } from '@penumbra-zone/types/string';
import { useStore } from '../../state';
import { memo, useEffect } from 'react';
import { TransactionSummary } from '../../state/transactions';
Expand Down
2 changes: 1 addition & 1 deletion apps/minifront/src/components/extension-not-connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
throwIfPraxNotInstalled,
} from '@penumbra-zone/client';
import { useState } from 'react';
import { PenumbraRequestFailure } from '@penumbra-zone/client/src/global';
import { PenumbraRequestFailure } from '@penumbra-zone/client/global';

const handleErr = (e: unknown) => {
if (e instanceof Error && e.cause) {
Expand Down
7 changes: 2 additions & 5 deletions apps/minifront/src/components/shared/balance-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ import {
import { cn } from '@penumbra-zone/ui/lib/utils';
import { ValueViewComponent } from '@penumbra-zone/ui/components/ui/tx/view/value';
import { BalancesResponse } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/view/v1/view_pb';
import { getAddressIndex } from '@penumbra-zone/getters/src/address-view';
import {
getDisplayDenomFromView,
getSymbolFromValueView,
} from '@penumbra-zone/getters/src/value-view';
import { getAddressIndex } from '@penumbra-zone/getters/address-view';
import { getDisplayDenomFromView, getSymbolFromValueView } from '@penumbra-zone/getters/value-view';

const bySearch = (search: string) => (balancesResponse: BalancesResponse) =>
getDisplayDenomFromView(balancesResponse.balanceView)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
getEquivalentValues,
getMetadata,
getValidatorInfoFromValueView,
} from '@penumbra-zone/getters/src/value-view';
import { asValueView } from '@penumbra-zone/getters/src/equivalent-value';
} from '@penumbra-zone/getters/value-view';
import { asValueView } from '@penumbra-zone/getters/equivalent-value';

/**
* Renders a `ValueView` that contains a delegation token, along with the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { InputBlock } from '../../../../shared/input-block';
import { Validator } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/component/stake/v1/stake_pb';
import { ValueView } from '@buf/penumbra-zone_penumbra.bufbuild_es/penumbra/core/asset/v1/asset_pb';
import { FormEvent } from 'react';
import { getIdentityKey } from '@penumbra-zone/getters/src/validator';
import { getIdentityKey } from '@penumbra-zone/getters/validator';
import { WalletIcon } from '@penumbra-zone/ui/components/ui/icons/wallet';

const getCapitalizedAction = (action: 'delegate' | 'undelegate') =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { FormDialog } from './form-dialog';
import { useMemo } from 'react';
import { AllSlices } from '../../../../../state';
import { useStoreShallow } from '../../../../../utils/use-store-shallow';
import { getValidator } from '@penumbra-zone/getters/src/validator-info';
import { getAmount } from '@penumbra-zone/getters/src/value-view';
import { joinLoHiAmount } from '@penumbra-zone/types/src/amount';
import { getValidator } from '@penumbra-zone/getters/validator-info';
import { getAmount } from '@penumbra-zone/getters/value-view';
import { joinLoHiAmount } from '@penumbra-zone/types/amount';

const stakingActionsSelector = (state: AllSlices) => ({
action: state.staking.action,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { useStore } from '../../../../state';
import {
getIdentityKeyFromValidatorInfo,
getValidator,
} from '@penumbra-zone/getters/src/validator-info';
import { calculateCommissionAsPercentage } from '@penumbra-zone/types/src/staking';
} 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';
import { AssetIcon } from '@penumbra-zone/ui/components/ui/tx/view/asset-icon';

Expand Down
Loading

0 comments on commit 3148375

Please sign in to comment.