Skip to content

Commit

Permalink
redundant type export
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbronco committed Oct 28, 2024
1 parent 18f37af commit c24bc5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions modules/sources/contracts/v3/fetch-pool-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import VaultV3Abi from '../abis/VaultV3';
import { formatEther } from 'viem';
import type { PoolDynamicUpsertData } from '../../../../prisma/prisma-types';

export type { PoolDynamicUpsertData };

// TODO: Find out if we need to do that,
// or can somehow get the correct type infered automatically from the viem's result set?
type PoolConfig = AbiParameterToPrimitiveType<ExtractAbiFunction<typeof VaultV3Abi, 'getPoolConfig'>['outputs'][0]>;
Expand Down
3 changes: 2 additions & 1 deletion modules/sources/contracts/v3/vault-client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ViemClient } from '../../viem-client';
import { PoolDynamicUpsertData, fetchPoolData } from './fetch-pool-data';
import { fetchPoolData } from './fetch-pool-data';
import { ProtocolFees, fetchProtocolFees } from './fetch-protocol-fees';
import { PoolDynamicUpsertData } from '../../../../prisma/prisma-types';

export interface VaultClient {
fetchPoolData: (pools: string[], blockNumber?: bigint) => Promise<{ [address: string]: PoolDynamicUpsertData }>;
Expand Down

0 comments on commit c24bc5a

Please sign in to comment.