Skip to content

Commit

Permalink
readme: update
Browse files Browse the repository at this point in the history
  • Loading branch information
tynes committed Jun 17, 2021
1 parent 96275ad commit d470b27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions go/utils/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ Package fees includes helpers for dealing with fees on Optimistic Ethereum

Encodes `tx.gasLimit` based on the variables that are used to determine it.

`data` - Calldata of the transaction being sent. This data should *not* include the full signed RLP transaction.

`l1GasPrice` - gas price on L1 in wei

`l2GasLimit` - amount of gas provided for execution in L2. Notably, accounts are charged for execution based on this gasLimit, even if the gasUsed ends up being less.

`l2GasPrice` - gas price on L2 in wei

#### `DecodeL2GasLimit(gasLimit *big.Int) *big.Int`

Accepts the return value of `eth_estimateGas` and decodes the L2 gas limit that
Expand Down

0 comments on commit d470b27

Please sign in to comment.