diff --git a/src/api.ts b/src/api.ts index 16b3ba95..d142dea3 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1,4 +1,3 @@ -import { TransactionRequest } from '@ethersproject/providers' import { BridgeDefinition, Chain, @@ -11,6 +10,30 @@ import { } from '.' import { ToolError } from './apiErrors' +export type BigIntish = string + +export type TransactionRequest = { + to?: string + from?: string + nonce?: BigIntish + + gasLimit?: BigIntish + gasPrice?: BigIntish + + data?: string + value?: BigIntish + chainId?: number + + type?: number + accessList?: { address: string; storageKeys: string[] }[] + + maxPriorityFeePerGas?: BigIntish + maxFeePerGas?: BigIntish + + customData?: Record + ccipReadEnabled?: boolean +} + export const Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'] as const export type Order = (typeof Orders)[number]