Skip to content

Commit b3e80af

Browse files
committed
Auto-fix: Update breadcrumbs, spelling dictionary and other automated fixes
1 parent afde08c commit b3e80af

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

pages/interop/estimate-costs.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,21 @@ import { InteropCallout } from '@/components/WipCallout'
3232

3333
There are several factors that determinate the cost of an [interop transaction](/interop/message-passing):
3434

35-
- How you pass the message.
36-
You can either use [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) directly, or use the cross domain messenger, [`L2ToL2CrossDomainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol), which uses `CrossL2Inbox` internally.
37-
- The transaction type.
38-
Every interop message has two transactions, an [initiating message](/interop/message-passing#initiating-message) in a transaction to the source chain, and an [executing message](/interop/message-passing#executing-message) in the destination chain.
39-
- Whether autorelay is turned on.
40-
If it is turned on for a particular chain there is still an executing message when using `L2ToL2CrossDomainMessenger`, but the chain operator pays for it so you may not care.
35+
* How you pass the message.
36+
You can either use [`CrossL2Inbox`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/CrossL2Inbox.sol) directly, or use the cross domain messenger, [`L2ToL2CrossDomainMessenger`](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol), which uses `CrossL2Inbox` internally.
37+
* The transaction type.
38+
Every interop message has two transactions, an [initiating message](/interop/message-passing#initiating-message) in a transaction to the source chain, and an [executing message](/interop/message-passing#executing-message) in the destination chain.
39+
* Whether autorelay is turned on.
40+
If it is turned on for a particular chain there is still an executing message when using `L2ToL2CrossDomainMessenger`, but the chain operator pays for it so you may not care.
4141

4242
## CrossL2Inbox
4343

44-
This is the low level protocol used by all interop protocols, including `L2ToL2CrossDomainMessenger`.
44+
This is the low level protocol used by all interop protocols, including `L2ToL2CrossDomainMessenger`.
4545

4646
### Initiating message
4747

4848
The initiating message here is just any log entry.
49-
A log entry emitted by Solidity code has 1-4 topics (t) and an unlimited number of unstructured data bytes (n).
49+
A log entry emitted by Solidity code has 1-4 topics (t) and an unlimited number of unstructured data bytes (n).
5050
The gas cost is [*375(t+1)+8n*](https://www.evm.codes/?fork=cancun#a1).
5151

5252
### Executing message
@@ -67,13 +67,13 @@ And, of course, you need to call a function which requires a four byte selector.
6767

6868
So the number of bytes required is *132+32t+n*.
6969

70-
Every transaction posted costs at least *21,000* gas.
71-
Compared with that, the hashing which costs approximately [*30+0.2×\<number of bytes\>*](https://www.evm.codes/?fork=cancun#20), is negligible.
70+
Every transaction posted costs at least *21,000* gas.
71+
Compared with that, the hashing which costs approximately [*30+0.2×\<number of bytes>*](https://www.evm.codes/?fork=cancun#20), is negligible.
7272
We can usually ignore the [memory expansion cost](https://www.evm.codes/about#memoryexpansion), unless the validating contract uses a really large amount of memory.
7373

7474
The cost of using the message is beyond the scope here, because it depends on your application.
7575

76-
So the main cost drivers are the 21,000 transaction gas cost has plus the cost of posting a *132+32t+n* byte transaction.
76+
So the main cost drivers are the 21,000 transaction gas cost has plus the cost of posting a *132+32t+n* byte transaction.
7777

7878
## Cross domain messenger
7979

@@ -86,7 +86,7 @@ The initiating message is sent by [`L2ToL2CrossDomainMessenger.sendMessage`](htt
8686
It writes to [specify that the hash has a sent message](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol#L157).
8787
This would typically be written to previously empty storage, so the cost is *22,100* gas.
8888

89-
Then it [increments the nonce value](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol#L158).
89+
Then it [increments the nonce value](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L2/L2ToL2CrossDomainMessenger.sol#L158).
9090
Overwriting previously used storage (which means storage where the present value is *not* zero) only costs *5,000* gas.
9191

9292
So, the initiating message costs a little over *27,100* gas, plus the negligible cost of emitting the log message, a few if statements, etc.

words.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ counterfactually
8585
Crosschain
8686
crosschain
8787
Crossmint
88-
custom-bridge
8988
Dapphub
9089
daserver
9190
DATACAP
@@ -94,8 +93,8 @@ DATADIR
9493
datadir
9594
devdocs
9695
Devnet
97-
Devnets
9896
devnet
97+
Devnets
9998
devnets
10099
direnv
101100
DISABLETXPOOLGOSSIP

0 commit comments

Comments
 (0)