Skip to content

Commit

Permalink
Correct import paths (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
grod220 authored Dec 3, 2024
1 parent e4ee7e6 commit b85b362
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 35 deletions.
7 changes: 1 addition & 6 deletions packages/query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
"license": "(MIT OR Apache-2.0)",
"type": "module",
"scripts": {
"build": "tsc --build --verbose",
"clean": "rm -rfv dist *.tsbuildinfo package penumbra-zone-*.tgz",
"dev:pack": "tsc-watch --onSuccess \"$npm_execpath pack\"",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"lint:strict": "tsc --noEmit && eslint src --max-warnings 0",
"lint": "eslint \"**/*.ts*\"",
"test": "vitest run"
},
"files": [
Expand Down
14 changes: 7 additions & 7 deletions packages/query/src/block-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ import { ScanBlockResult } from '@penumbra-zone/types/state-commitment-tree';
import { computePositionId, getLpNftMetadata } from '@penumbra-zone/wasm/dex';
import { customizeSymbol } from '@penumbra-zone/wasm/metadata';
import { backOff } from 'exponential-backoff';
import { updatePricesFromSwaps } from './helpers/price-indexer.js';
import { processActionDutchAuctionEnd } from './helpers/process-action-dutch-auction-end.js';
import { processActionDutchAuctionSchedule } from './helpers/process-action-dutch-auction-schedule.js';
import { processActionDutchAuctionWithdraw } from './helpers/process-action-dutch-auction-withdraw.js';
import { RootQuerier } from './root-querier.js';
import { updatePricesFromSwaps } from './helpers/price-indexer';
import { processActionDutchAuctionEnd } from './helpers/process-action-dutch-auction-end';
import { processActionDutchAuctionSchedule } from './helpers/process-action-dutch-auction-schedule';
import { processActionDutchAuctionWithdraw } from './helpers/process-action-dutch-auction-withdraw';
import { RootQuerier } from './root-querier';
import { IdentityKey } from '@penumbra-zone/protobuf/penumbra/core/keys/v1/keys_pb';
import { getDelegationTokenMetadata } from '@penumbra-zone/wasm/stake';
import { toPlainMessage } from '@bufbuild/protobuf';
import { getAssetIdFromGasPrices } from '@penumbra-zone/getters/compact-block';
import { getSpendableNoteRecordCommitment } from '@penumbra-zone/getters/spendable-note-record';
import { getSwapRecordCommitment } from '@penumbra-zone/getters/swap-record';
import { CompactBlock } from '@penumbra-zone/protobuf/penumbra/core/component/compact_block/v1/compact_block_pb';
import { shouldSkipTrialDecrypt } from './helpers/skip-trial-decrypt.js';
import { identifyTransactions, RelevantTx } from './helpers/identify-txs.js';
import { shouldSkipTrialDecrypt } from './helpers/skip-trial-decrypt';
import { identifyTransactions, RelevantTx } from './helpers/identify-txs';

declare global {
// eslint-disable-next-line no-var -- expected globals
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/helpers/identify-txs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
getCommitmentsFromActions,
getNullifiersFromActions,
identifyTransactions,
} from './identify-txs.js';
} from './identify-txs';
import {
Output,
OutputBody,
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/helpers/price-indexer.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { deriveAndSavePriceFromBSOD } from './price-indexer.js';
import { deriveAndSavePriceFromBSOD } from './price-indexer';
import { BatchSwapOutputData } from '@penumbra-zone/protobuf/penumbra/core/component/dex/v1/dex_pb';
import { beforeEach, describe, expect, it, Mock, vi } from 'vitest';
import { IndexedDbInterface } from '@penumbra-zone/types/indexed-db';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Mock, beforeEach, describe, expect, it, vi } from 'vitest';
import { processActionDutchAuctionEnd } from './process-action-dutch-auction-end.js';
import { processActionDutchAuctionEnd } from './process-action-dutch-auction-end';
import { AssetId, Metadata, Value } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import {
ActionDutchAuctionEnd,
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/helpers/skip-trial-decrypt.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest';
import { shouldSkipTrialDecrypt } from './skip-trial-decrypt.js';
import { shouldSkipTrialDecrypt } from './skip-trial-decrypt';

describe('skipTrialDecrypt()', () => {
it('should not skip trial decryption if walletCreationBlockHeight is undefined', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/queriers/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PromiseClient } from '@connectrpc/connect';
import { createClient } from './utils.js';
import { createClient } from './utils';
import { AppParameters } from '@penumbra-zone/protobuf/penumbra/core/app/v1/app_pb';
import { Transaction } from '@penumbra-zone/protobuf/penumbra/core/transaction/v1/transaction_pb';
import { AppService } from '@penumbra-zone/protobuf';
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/queriers/auction.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AuctionQuerierInterface } from '@penumbra-zone/types/querier';
import { AuctionService } from '@penumbra-zone/protobuf';
import { PromiseClient } from '@connectrpc/connect';
import { createClient } from './utils.js';
import { createClient } from './utils';
import {
AuctionId,
DutchAuction,
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/queriers/cnidarium.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PromiseClient } from '@connectrpc/connect';
import { createClient } from './utils.js';
import { createClient } from './utils';
import { CnidariumService } from '@penumbra-zone/protobuf';
import { KeyValueRequest } from '@penumbra-zone/protobuf/penumbra/cnidarium/v1/cnidarium_pb';
import { CnidariumQuerierInterface } from '@penumbra-zone/types/querier';
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/queriers/compact-block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
CompactBlockRangeRequest,
} from '@penumbra-zone/protobuf/penumbra/core/component/compact_block/v1/compact_block_pb';
import { CompactBlockService } from '@penumbra-zone/protobuf';
import { createClient } from './utils.js';
import { createClient } from './utils';
import type {
CompactBlockQuerierInterface,
CompactBlockRangeParams,
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/queriers/ibc-client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PromiseClient } from '@connectrpc/connect';
import { createClient } from './utils.js';
import { createClient } from './utils';
import { IbcClientService } from '@penumbra-zone/protobuf';
import {
QueryClientStatesRequest,
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/queriers/sct.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PromiseClient } from '@connectrpc/connect';
import { createClient } from './utils.js';
import { createClient } from './utils';
import { SctService } from '@penumbra-zone/protobuf';
import { SctQuerierInterface } from '@penumbra-zone/types/querier';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/queriers/shielded-pool.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PromiseClient } from '@connectrpc/connect';
import { createClient } from './utils.js';
import { createClient } from './utils';
import { ShieldedPoolService } from '@penumbra-zone/protobuf';
import { AssetId, Metadata } from '@penumbra-zone/protobuf/penumbra/core/asset/v1/asset_pb';
import type { ShieldedPoolQuerierInterface } from '@penumbra-zone/types/querier';
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/queriers/staking.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PromiseClient } from '@connectrpc/connect';
import { createClient } from './utils.js';
import { createClient } from './utils';
import { StakeService } from '@penumbra-zone/protobuf';
import {
GetValidatorInfoRequest,
Expand Down
2 changes: 1 addition & 1 deletion packages/query/src/queriers/tendermint.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PromiseClient } from '@connectrpc/connect';
import { createClient } from './utils.js';
import { createClient } from './utils';
import { TendermintProxyService } from '@penumbra-zone/protobuf';
import { TransactionId } from '@penumbra-zone/protobuf/penumbra/core/txhash/v1/txhash_pb';
import { Transaction } from '@penumbra-zone/protobuf/penumbra/core/transaction/v1/transaction_pb';
Expand Down
18 changes: 9 additions & 9 deletions packages/query/src/root-querier.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { CompactBlockQuerier } from './queriers/compact-block.js';
import { AppQuerier } from './queriers/app.js';
import { TendermintQuerier } from './queriers/tendermint.js';
import { ShieldedPoolQuerier } from './queriers/shielded-pool.js';
import { IbcClientQuerier } from './queriers/ibc-client.js';
import { CnidariumQuerier } from './queriers/cnidarium.js';
import { StakeQuerier } from './queriers/staking.js';
import { CompactBlockQuerier } from './queriers/compact-block';
import { AppQuerier } from './queriers/app';
import { TendermintQuerier } from './queriers/tendermint';
import { ShieldedPoolQuerier } from './queriers/shielded-pool';
import { IbcClientQuerier } from './queriers/ibc-client';
import { CnidariumQuerier } from './queriers/cnidarium';
import { StakeQuerier } from './queriers/staking';
import type { RootQuerierInterface } from '@penumbra-zone/types/querier';
import { AuctionQuerier } from './queriers/auction.js';
import { SctQuerier } from './queriers/sct.js';
import { AuctionQuerier } from './queriers/auction';
import { SctQuerier } from './queriers/sct';

// Given the amount of query services, this root querier aggregates them all
// to make it easier for consumers
Expand Down

0 comments on commit b85b362

Please sign in to comment.