Skip to content

Commit

Permalink
feat!: replace ethers transaction request with custom implementation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasmoeller committed Jan 3, 2024
1 parent 75b5ca2 commit 5ea2253
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { TransactionRequest } from '@ethersproject/providers'
import {
BridgeDefinition,
Chain,
Expand All @@ -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<string, any>
ccipReadEnabled?: boolean
}

export const Orders = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'] as const
export type Order = (typeof Orders)[number]

Expand Down

0 comments on commit 5ea2253

Please sign in to comment.