Skip to content

Commit

Permalink
Merge branch 'master' into gzeoneth-patch-5
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth authored Aug 11, 2022
2 parents 897135a + 831438a commit a1e1462
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 109 deletions.
2 changes: 1 addition & 1 deletion docs/AnyTrust.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: AnyTrust Chains
sidebar_label: AnyTrust Chains
---

AnyTrust chains are an Arbitrum chain type, distinct from Arbitrum Rollup chains. The Arbitrum One mainnet chain (chain ID 42161) is — and will always be — a rollup chain. The first AnyTrust chain — Arbitrum Nova, is currently open for [developer access](https://medium.com/offchainlabs/introducing-nova-arbitrum-anytrust-mainnet-is-open-for-developers-9a54692f345e). See [Public Chains](Public_Chains.md) for chain details.
AnyTrust chains are an Arbitrum chain type, distinct from Arbitrum Rollup chains. The Arbitrum One mainnet chain (chain ID 42161) is — and will always be — a rollup chain. The first AnyTrust chain — Arbitrum Nova, is currently [live on mainnet](https://medium.com/offchainlabs/its-time-for-a-new-dawn-nova-is-open-to-the-public-a081df1e4ad2); see [Public Chains](Public_Chains.md) for chain details.

The fundamental tradeoff between Rollup and AnyTrust is decentralization vs. transaction costs: Rollup chains inherit their security directly from layer 1 without introducing new trust assumptions, whereas AnyTrust chains introduce their own security assumption, and are thus able to charge users lower fees.

Expand Down
94 changes: 4 additions & 90 deletions docs/Developer_Quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,98 +11,12 @@ Arbitrum is a suite of Ethereum scaling solutions that enables high-throughput,

If you're looking to discover how Arbitrum works, the best place to begin is by the [Rollups basics](Rollup_basics.md) section, which gives a high level overview of Arbitrum's internals. From there, you can jump into more detailed explainers on various components of the system.

### How Can I Start Building
### How Can I Start Building?

If you want to get started using Arbitrum with no setup required, check out our [public testnets](Public_Chains.md).

### How Can I Develop Locally
You could use our [Tutorials](https://github.com/OffchainLabs/arbitrum-tutorials) to get started with building on Arbitrum. This mono-repo includes various demos showing and explaining how to interact with Arbitrum — deploying and using contracts directly on L2, moving Ether and tokens between L1 and L2, and more.

The very first step to start building with Arbitrum is [installing](Installation.md) Arbitrum and its dependencies. Next, you'll need to deploy an Arbitrum chain on an L1 blockchain. You can follow the [local testnet guide](Local_Blockchain.md) for a quickstart walkthrough deployment of an Arbitrum Rollup chain on the local testnet.
We also show how you can use broadly supported Ethereum ecosystem tooling (Hardhat, Ethers-js, etc.) as well as our special Arbitrum SDK for convenience.

Note that Arbitrum chains support dynamic launching of contracts, so you don't need to setup an Arbitrum chain for each application you build, and indeed you may deploy your contracts on a testnet chain which you did not launch. The benefits of having multiple applications on the same Arbitrum Rollup chain is that they'll be able to interact synchronously, just as they would if they were launched directly on Ethereum.

Once you have deployed Arbitrum, you can [build and run the demo app](#hello-arbitrum) or [deploy your own contracts](Contract_Deployment.md).

**Want to learn more? Check out the** [**open source code**](https://github.com/offchainlabs/arbitrum)**. Join the team on** [**Discord**](https://discord.gg/ZpZuw7p)**.**

## Setup Local Geth and Rollup Blockchain

See [Local Blockchain Setup](Local_Blockchain.md).

## Hello, Arbitrum

Now you'll deploy and run a demo dApp on Arbitrum. The dApp is based on
a simple Pet Shop dApp that is used in a Truffle tutorial.

First clone the pet-shop demo dApp and install dependencies:

```bash
git clone https://github.com/OffchainLabs/demo-dapp-pet-shop
cd demo-dapp-pet-shop
yarn
```

### Deployment

Deploy contracts to Arbitrum :

```bash
truffle migrate --network arbitrum
```

### Use the dApp

1. Install [Metamask](https://metamask.io/) (See all supported wallets [here](https://portal.arbitrum.one/#wallets))

> Once Metamask is installed, open it and select
> `Import Account` and enter one of the following pre-funded private keys
>
> ```
> 0x979f020f6f6f71577c09db93ba944c89945f10fade64cfc7eb26137d5816fb76
> 0xd26a199ae5b6bed1992439d1840f7cb400d0a55a0c9f796fa67d7c571fbb180e
> 0xaf5c2984cb1e2f668ae3fd5bbfe0471f68417efd012493538dcd42692299155b
> 0x9af1e691e3db692cc9cad4e87b6490e099eb291e3b434a0d3f014dfd2bb747cc
> 0x27e926925fb5903ee038c894d9880f74d3dd6518e23ab5e5651de93327c7dffa
> 0xe4b33c0bb790b88f2463facaf86ae7c17cbdab41187e69ddde8cc1c1fda7c9ab
> ```
2) Select local arbitrum network in Metamask
- Go back to Metamask or click the extension icon
- Select `Main Ethereum Network` top right hand side
- Choose `Custom RPC`
- Enter `Local Arbitrum` as the network name
- Enter `http://127.0.0.1:8547` as the RPC url
- Press the save button
- Metamask should now have an Local Arbitrum account holding ETH
3) Launch the front-end
```bash
yarn start
```
The browser will open to [localhost:8080](http://localhost:8080)

In the popup window that appears, select `Connect`

4) Adopt some pets

The pet shop dApp should now be running in your browser. Choose a pet or two
and click the adopt button to adopt your new animal friend(s).

### Election Dapp

If you want to try another dApp run, deploy the solidity contracts and launch the frontend

```bash
git clone https://github.com/OffchainLabs/demo-dapp-election
cd demo-dapp-election
yarn
truffle migrate --network arbitrum
yarn start
```

### More Demos

For more demos, see our [demos](https://github.com/OffchainLabs/arbitrum-tutorials) mono-repo.
**Want to learn more? Check out the** [**open source code**](https://github.com/offchainlabs/arbitrum)**. Join the team on** [**Discord**](https://discord.gg/ZpZuw7p)**.**
2 changes: 1 addition & 1 deletion docs/Mainnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: What is "Mainnet Beta"?
sidebar_label: What is "Mainnet Beta"?
---

Arbitrum One — the first permissionless Ethereum layer 2 rollup with full Ethereum smart contract functionality — is [live](https://offchain.medium.com/mainnet-for-everyone-27ce0f67c85e)and Nova, our first [AnyTrust](AnyTrust.md) chain, is [open to developers on mainnet](https://medium.com/offchainlabs/introducing-nova-arbitrum-anytrust-mainnet-is-open-for-developers-9a54692f345e), soon to be opened up to all users! We're sure you're (almost) as excited as we are; here's what you need to know before using the system:
Arbitrum One — the first permissionless Ethereum layer 2 rollup with full Ethereum smart contract functionality — is [live on mainnet](https://offchain.medium.com/mainnet-for-everyone-27ce0f67c85e)as is [Nova](https://medium.com/offchainlabs/its-time-for-a-new-dawn-nova-is-open-to-the-public-a081df1e4ad2), our first [AnyTrust](AnyTrust.md) chain! We're sure you're (almost) as excited as we are; here's what you need to know before using the system:

### Some Words of Caution

Expand Down
Loading

0 comments on commit a1e1462

Please sign in to comment.