You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This monorepo will help you get started with building on Arbitrum. It provides various simple demos showing and explaining how to interact with Arbitrum — deploying and using contracts directly on L2, moving Ether and tokens betweens L1 and L2, and more.
3
+
This monorepo will help you get started with building on Arbitrum chains. It provides various simple demos showing and explaining how to interact with Arbitrum chains (including Orbit chains) — deploying and using contracts directly on Arbitrum, moving Ether and tokens betweens the parent and child chains, and more.
4
4
5
5
We show how you can use broadly supported Ethereum ecosystem tooling (Hardhat, Ethers-js, etc.) as well as our special [Arbitrum SDK](https://github.com/OffchainLabs/arbitrum-sdk) for convenience.
- 🌀 [Deposit Ether or Tokens from L1 to L3](./packages/l1-l3-teleport/)
44
44
45
+
## How to run the tutorials against a custom network
46
+
47
+
As mentioned above, these tutorials use the [Arbitrum SDK](https://github.com/OffchainLabs/arbitrum-sdk), which loads the regular Arbitrum chains by default (Arbitrum One, Arbitrum Nova and Arbitrum Sepolia). You can use these tutorials against any other Arbitrum chain (including Orbit chains), by loading it to the Arbitrum SDK.
48
+
49
+
To do that, fill the information of your chain in the [`customNetwork.json`](./customNetwork.json) file., which is automatically loaded in all tutorials.
50
+
51
+
To obtain the information of a specific chain, you can use the method [`prepareArbitrumNetwork`](https://github.com/OffchainLabs/arbitrum-orbit-sdk/blob/main/src/utils/registerNewNetwork.ts#L18) of the Orbit SDK.
Copy file name to clipboardExpand all lines: packages/address-table/README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Address Table Demo
1
+
# Address table demo
2
2
3
-
The Address table is a precompiled contract on Arbitrum for registering addresses which are then retrievable by an integer index; this saves gas by minimizing precious calldata required to input an address as a parameter.
3
+
The Address table is a precompiled contract on Arbitrum chains for registering addresses which are then retrievable by an integer index; this saves gas by minimizing precious calldata required to input an address as a parameter.
4
4
5
5
This demo shows a simple contract with affordances to retrieve an address from a contract by its index in the address table, and a client-side script to pre-register the given address (if necessary).
6
6
@@ -12,19 +12,21 @@ See `exec.js` for inline comments / explanation.
12
12
yarn run exec
13
13
```
14
14
15
-
## Config Environment Variables
15
+
## Set environment variables
16
16
17
17
Set the values shown in `.env-sample` as environmental variables. To copy it into a `.env` file:
18
18
19
19
```bash
20
20
cp .env-sample .env
21
21
```
22
22
23
-
(you'll still need to edit some variables, i.e., `DEVNET_PRIVKEY`)
23
+
You'll still need to edit some variables, i.e., `PRIVATE_KEY` and `CHAIN_RPC`.
24
+
25
+
Note that you can also set the environment variables in an `.env` file in the root of the monorepo, which will be available in all tutorials.
24
26
25
27
### More info
26
28
27
-
See our [developer documentation for more info](https://developer.offchainlabs.com/docs/special_features).
29
+
See our [developer documentation for more info](https://docs.arbitrum.io/).
0 commit comments