-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(estimate Wormhole/CCIP gas limit): subtract Arbitrum L1 fee from …
…estimation (#216)
- Loading branch information
1 parent
cad5c5c
commit ea928d9
Showing
4 changed files
with
105 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@folks-finance/xchain-sdk": patch | ||
--- | ||
|
||
Subtract arbitrum L1 fee from estimation |
17 changes: 17 additions & 0 deletions
17
src/chains/evm/common/constants/abi/arbitrum-node-interface-abi.ts
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,17 @@ | ||
export const ArbitrumNodeInterfaceAbi = [ | ||
{ | ||
name: "gasEstimateL1Component", | ||
type: "function", | ||
inputs: [ | ||
{ name: "to", type: "address" }, | ||
{ name: "contractCreation", type: "bool" }, | ||
{ name: "data", type: "bytes" }, | ||
], | ||
outputs: [ | ||
{ name: "gasEstimateForL1", type: "uint64" }, | ||
{ name: "baseFee", type: "uint256" }, | ||
{ name: "l1BaseFeeEstimate", type: "uint256" }, | ||
], | ||
stateMutability: "payable", | ||
}, | ||
] as const; |
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 @@ | ||
export const ARBITRUM_NODE_INTERFACE = "0x00000000000000000000000000000000000000C8"; |
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