-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial commit * add authorization to estimations * create helper function to find authorization state overrides * support 7702 estimations * remove console.log * cleanup * fix * fix build * keep existing interaction * undo lockfile changes * undo lockfile changes * fix incorrect tx type * update endpoint name * fix build * always extend 7702Actions * change order * cleanup logic * fix build * use const --------- Co-authored-by: mouseless <[email protected]>
- Loading branch information
1 parent
e0a6456
commit f7ef6a1
Showing
18 changed files
with
842 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Account } from "viem" | ||
import { SignedAuthorizationList } from "viem/experimental" | ||
|
||
export type SendTransactionOptions = | ||
| { | ||
type: "legacy" | ||
gasPrice: bigint | ||
account: Account | ||
gas: bigint | ||
nonce: number | ||
} | ||
| { | ||
type: "eip1559" | ||
maxFeePerGas: bigint | ||
maxPriorityFeePerGas: bigint | ||
account: Account | ||
gas: bigint | ||
nonce: number | ||
} | ||
| { | ||
type: "eip7702" | ||
maxFeePerGas: bigint | ||
maxPriorityFeePerGas: bigint | ||
account: Account | ||
gas: bigint | ||
nonce: number | ||
authorizationList: SignedAuthorizationList | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.