Skip to content

Commit bb6aff9

Browse files
Merge branch 'master' into tw568-arbitrum-chain-feature-config-structure
2 parents ebd0449 + c4a065a commit bb6aff9

38 files changed

+838
-441
lines changed

docs/build-decentralized-apps/02-how-to-estimate-gas.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Multiplying the value obtained from `eth_estimateGas` by the child chain gas pri
2222

2323
Alternatively, to obtain the gas limit for your transaction, you can call `NodeInterface.gasEstimateComponents()` and then use the first result, which is `gasEstimate`. Next, to find the total cost, you need to multiply this amount by the child chain gas price, which is available in the third result, `baseFee`.
2424

25-
Note that when working with parent to child chain messages (also known as [retryable tickets](/how-arbitrum-works/deep-dives/l1-to-l2-messaging.mdx)), you can use the function [`L1ToL2MessageGasEstimator.estimateAll()`](https://github.com/OffchainLabs/arbitrum-sdk/blob/main/src/lib/message/L1ToL2MessageGasEstimator.ts#L215) of the Arbitrum SDK or [`NodeInterface.estimateRetryableTicket()`](https://github.com/OffchainLabs/@@nitroRepositorySlug=nitro@@/blob/@@nitroVersionTag=v3.8.0@@/nodeInterface/NodeInterface.go#L120) to get all the gas information needed to send a successful transaction.
25+
Note that when working with parent to child chain messages (also known as [retryable tickets](/how-arbitrum-works/deep-dives/l1-to-l2-messaging.mdx)), you can use the function [`L1ToL2MessageGasEstimator.estimateAll()`](https://github.com/OffchainLabs/arbitrum-sdk/blob/main/src/lib/message/L1ToL2MessageGasEstimator.ts#L215) of the Arbitrum SDK or [`NodeInterface.estimateRetryableTicket()`](https://github.com/OffchainLabs/@@nitroRepositorySlug=nitro@@/blob/@@nitroVersionTag=v3.9.3@@/nodeInterface/NodeInterface.go#L120) to get all the gas information needed to send a successful transaction.
2626

2727
## Breaking down the formula
2828

docs/build-decentralized-apps/nodeinterface/01-overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ displayed_sidebar: buildAppsSidebar
88

99
<!-- todo: remove this doc, redirect to existing ref doc -->
1010

11-
The Arbitrum Nitro software includes a special `NodeInterface` contract available at address `0xc8` that is only accessible via RPCs (it's not actually deployed onchain and thus can't be called by smart contracts). The way it works is that the node uses Geth's [`InterceptRPCMessage`](https://github.com/OffchainLabs/go-ethereum/blob/@@goEthereumCommit=e845151eb649647a8d2d2b5c874377ffe5d2a8c9@@/internal/ethapi/api.go#L1034) hook to detect messages sent to the address `0xc8`, and swaps out the message it's handling before deriving a transaction from it.
11+
The Arbitrum Nitro software includes a special `NodeInterface` contract available at address `0xc8` that is only accessible via RPCs (it's not actually deployed onchain and thus can't be called by smart contracts). The way it works is that the node uses Geth's [`InterceptRPCMessage`](https://github.com/OffchainLabs/go-ethereum/blob/@@goEthereumCommit=ae34a6a9ef5af5079c8eef6571895d703023efef@@/internal/ethapi/api.go#L1034) hook to detect messages sent to the address `0xc8`, and swaps out the message it's handling before deriving a transaction from it.
1212

1313
The [reference page](/build-decentralized-apps/nodeinterface/02-reference.mdx) contains information about all methods available in the `NodeInterface`.

docs/build-decentralized-apps/precompiles/02-reference.mdx

Lines changed: 28 additions & 28 deletions
Large diffs are not rendered by default.

docs/for-devs/dev-tools-and-resources/partials/precompile-tables/_ArbAddressTable.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
</td>
1515
<td>
1616
<a
17-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAddressTable.sol#L17"
17+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAddressTable.sol#L17"
1818
target="_blank"
1919
>
2020
Interface
2121
</a>
2222
</td>
2323
<td>
2424
<a
25-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAddressTable.go#L17"
25+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAddressTable.go#L17"
2626
target="_blank"
2727
>
2828
Implementation
@@ -36,15 +36,15 @@
3636
</td>
3737
<td>
3838
<a
39-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAddressTable.sol#L26"
39+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAddressTable.sol#L26"
4040
target="_blank"
4141
>
4242
Interface
4343
</a>
4444
</td>
4545
<td>
4646
<a
47-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAddressTable.go#L22"
47+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAddressTable.go#L22"
4848
target="_blank"
4949
>
5050
Implementation
@@ -58,15 +58,15 @@
5858
</td>
5959
<td>
6060
<a
61-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAddressTable.sol#L36"
61+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAddressTable.sol#L36"
6262
target="_blank"
6363
>
6464
Interface
6565
</a>
6666
</td>
6767
<td>
6868
<a
69-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAddressTable.go#L27"
69+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAddressTable.go#L27"
7070
target="_blank"
7171
>
7272
Implementation
@@ -82,15 +82,15 @@
8282
</td>
8383
<td>
8484
<a
85-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAddressTable.sol#L45"
85+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAddressTable.sol#L45"
8686
target="_blank"
8787
>
8888
Interface
8989
</a>
9090
</td>
9191
<td>
9292
<a
93-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAddressTable.go#L40"
93+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAddressTable.go#L40"
9494
target="_blank"
9595
>
9696
Implementation
@@ -104,15 +104,15 @@
104104
</td>
105105
<td>
106106
<a
107-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAddressTable.sol#L53"
107+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAddressTable.sol#L53"
108108
target="_blank"
109109
>
110110
Interface
111111
</a>
112112
</td>
113113
<td>
114114
<a
115-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAddressTable.go#L52"
115+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAddressTable.go#L52"
116116
target="_blank"
117117
>
118118
Implementation
@@ -126,15 +126,15 @@
126126
</td>
127127
<td>
128128
<a
129-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAddressTable.sol#L62"
129+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAddressTable.sol#L62"
130130
target="_blank"
131131
>
132132
Interface
133133
</a>
134134
</td>
135135
<td>
136136
<a
137-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAddressTable.go#L67"
137+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAddressTable.go#L67"
138138
target="_blank"
139139
>
140140
Implementation
@@ -148,15 +148,15 @@
148148
</td>
149149
<td>
150150
<a
151-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAddressTable.sol#L69"
151+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAddressTable.sol#L69"
152152
target="_blank"
153153
>
154154
Interface
155155
</a>
156156
</td>
157157
<td>
158158
<a
159-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAddressTable.go#L73"
159+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAddressTable.go#L73"
160160
target="_blank"
161161
>
162162
Implementation

docs/for-devs/dev-tools-and-resources/partials/precompile-tables/_ArbAggregator.mdx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
</td>
1515
<td>
1616
<a
17-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAggregator.sol#L14"
17+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAggregator.sol#L14"
1818
target="_blank"
1919
>
2020
Interface
2121
</a>
2222
</td>
2323
<td>
2424
<a
25-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAggregator.go#L24"
25+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAggregator.go#L25"
2626
target="_blank"
2727
>
2828
Implementation
@@ -36,15 +36,15 @@
3636
</td>
3737
<td>
3838
<a
39-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAggregator.sol#L20"
39+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAggregator.sol#L20"
4040
target="_blank"
4141
>
4242
Interface
4343
</a>
4444
</td>
4545
<td>
4646
<a
47-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAggregator.go#L30"
47+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAggregator.go#L32"
4848
target="_blank"
4949
>
5050
Implementation
@@ -58,15 +58,15 @@
5858
</td>
5959
<td>
6060
<a
61-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAggregator.sol#L24"
61+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAggregator.sol#L24"
6262
target="_blank"
6363
>
6464
Interface
6565
</a>
6666
</td>
6767
<td>
6868
<a
69-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAggregator.go#L35"
69+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAggregator.go#L37"
7070
target="_blank"
7171
>
7272
Implementation
@@ -80,15 +80,15 @@
8080
</td>
8181
<td>
8282
<a
83-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAggregator.sol#L29"
83+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAggregator.sol#L29"
8484
target="_blank"
8585
>
8686
Interface
8787
</a>
8888
</td>
8989
<td>
9090
<a
91-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAggregator.go#L40"
91+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAggregator.go#L42"
9292
target="_blank"
9393
>
9494
Implementation
@@ -102,15 +102,15 @@
102102
</td>
103103
<td>
104104
<a
105-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAggregator.sol#L36"
105+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAggregator.sol#L36"
106106
target="_blank"
107107
>
108108
Interface
109109
</a>
110110
</td>
111111
<td>
112112
<a
113-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAggregator.go#L63"
113+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAggregator.go#L65"
114114
target="_blank"
115115
>
116116
Implementation
@@ -124,15 +124,15 @@
124124
</td>
125125
<td>
126126
<a
127-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAggregator.sol#L44"
127+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAggregator.sol#L44"
128128
target="_blank"
129129
>
130130
Interface
131131
</a>
132132
</td>
133133
<td>
134134
<a
135-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAggregator.go#L72"
135+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAggregator.go#L74"
136136
target="_blank"
137137
>
138138
Implementation
@@ -149,15 +149,15 @@
149149
</td>
150150
<td>
151151
<a
152-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAggregator.sol#L49"
152+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAggregator.sol#L49"
153153
target="_blank"
154154
>
155155
Interface
156156
</a>
157157
</td>
158158
<td>
159159
<a
160-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAggregator.go#L95"
160+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAggregator.go#L98"
161161
target="_blank"
162162
>
163163
Implementation
@@ -171,15 +171,15 @@
171171
</td>
172172
<td>
173173
<a
174-
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f9f65d7c77adf61ad16504a3738a9edcc31e2b2f/ArbAggregator.sol#L59"
174+
href="https://github.com/OffchainLabs/nitro-precompile-interfaces/blob/f49a4889b486fd804a7901203f5f663cfd1581c8/ArbAggregator.sol#L59"
175175
target="_blank"
176176
>
177177
Interface
178178
</a>
179179
</td>
180180
<td>
181181
<a
182-
href="https://github.com/OffchainLabs/nitro/blob/v3.8.0/precompiles/ArbAggregator.go#L102"
182+
href="https://github.com/OffchainLabs/nitro/blob/v3.9.3/precompiles/ArbAggregator.go#L106"
183183
target="_blank"
184184
>
185185
Implementation

0 commit comments

Comments
 (0)