diff --git a/packages/drift/src/cache/ClientCache.ts b/packages/drift/src/cache/ClientCache.ts index bcf213b..5ac7125 100644 --- a/packages/drift/src/cache/ClientCache.ts +++ b/packages/drift/src/cache/ClientCache.ts @@ -286,7 +286,7 @@ export class ClientCache // Required due to incompatibility between the conditional `FunctionArgsParam` // type and `Partial` type. -export interface PartialReadParams< +interface PartialReadParams< TAbi extends Abi = Abi, TFunctionName extends FunctionName = FunctionName, > extends ContractParams, diff --git a/packages/drift/src/client/drift/MockDrift.ts b/packages/drift/src/client/drift/MockDrift.ts index 543f226..9a0bd27 100644 --- a/packages/drift/src/client/drift/MockDrift.ts +++ b/packages/drift/src/client/drift/MockDrift.ts @@ -1,8 +1,8 @@ import type { Abi } from "abitype"; import type { MockAdapter } from "src/adapter/MockAdapter"; +import type { ContractParams } from "src/adapter/types/Adapter"; import type { SimpleCache } from "src/cache/types"; import { MockClient } from "src/client/MockClient"; -import type { ContractOptions } from "src/client/contract/Contract"; import { MockContract } from "src/client/contract/MockContract"; import type { Drift } from "src/client/drift/Drift"; import { ZERO_ADDRESS } from "src/constants"; @@ -17,7 +17,7 @@ export class MockDrift< contract({ abi, address = ZERO_ADDRESS, - }: ContractOptions) { + }: ContractParams) { return new MockContract< TAbi, TAdapter, diff --git a/packages/drift/src/exports/index.ts b/packages/drift/src/exports/index.ts index c5d2a20..abeac35 100644 --- a/packages/drift/src/exports/index.ts +++ b/packages/drift/src/exports/index.ts @@ -17,17 +17,18 @@ export type { } from "src/adapter/types/Abi"; export type { Adapter, - FunctionArgsParam, + ContractParams, DecodeFunctionDataParams, EncodeFunctionDataParams, + FunctionArgsParam, GetEventsParams, - ReadParams, - SimulateWriteParams, - WriteParams, OnMinedParam, ReadAdapter, + ReadParams, ReadWriteAdapter, + SimulateWriteParams, WriteAdapter, + WriteParams, } from "src/adapter/types/Adapter"; export type { BlockBase, @@ -112,7 +113,6 @@ export { type ReadContract, type ReadWriteContract, type ContractClientOptions, - type ContractOptions, type ContractSimulateWriteArgs, } from "src/client/contract/Contract";