Gravity 백서

Gravity

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 23쪽 중 21쪽

t both data availability sources {% endhint %} ### Guide #### Prerequisites 1. A local directory for storing node data 2. An Ethereum Sepolia RPC endpoint with unlimited rate limit for eth\_getLogs 3. An Ethereum Sepolia beacon chain RPC endpoint 4. Connection to a Celestia lightnode or public testnet RPC endpoint #### Node & DAS Server Setup 1. **Setup the Celestia DAS Server** * Repository: [https://github.com/celestiaorg/nitro-das-celestia/](https://github.com/celestiaorg/nitro-das-celestia/tree/main) * Configuration for testnet: ```bash docker run -d --rm --name celestia-das-server \ -p 9876:9876 \ --entrypoint /bin/celestia-server \ ghcr.io/celestiaorg/nitro-das-celestia:v0.4.1 \ --enable-rpc --rpc-addr=0.0.0.0 --rpc-port=9876 \ --celestia.rpc=<YOUR_CELESTIA_TESTNET_ENDPOINT>\ --celestia.namespace-id=<TESTNET_NAMESPACE_ID> ``` 2. **Connect to a Celestia testnet RPC endpoint** * Use [testnet RPC endpoints](https://docs.celestia.org/how-to-guides/mocha-testnet#production-rpc-endpoints) #### Download Snapshot (Recommended) Syncing a node from scratch can be extremely time-consuming and resource-intensive. We strongly recommend downloading our latest snapshot: 1. [Download Gravity L2 Sepolia Testnet Node Snapshot](https://storage.googleapis.com/conduit-networks-snapshots/gravity/testnet/latest.tar) #### Running the node Save the following script as `run-gravity-testnet-node.sh`, make it executable with `chmod +x run-gravity-node.sh`, and update the TODO variables: ```bash #!/bin/bash # Define dependent variables LOCAL_DIR="TODO" # Replace with your local directory path ETH_SEPOLIA_RPC="TODO" # Replace with your Ethereum Sepolia testnet RPC endpoint ETH_SEPOLIA_BEACON_RPC="TODO" # Replace with your Ethereum Sepolia beacon RPC endpoint CELESTIA_DAS_URL="TODO" # Replace with your Celestia DAS server URL (e.g., http://localhost:9876) # Run the Docker container docker run --rm -it \ --add-host=host.docker.internal:host-gateway \ -v "$LOCAL_DIR:/home/user/.arbitrum" \ -p 0.0.0.0:8547:8547 \ -p 0.0.0.0:8548:8548 \ ghcr.io/celestiaorg/nitro:v3.3.2 \ --parent-chain.connection.url="$ETH_SEPOLIA_RPC" \ --chain.id=13505 \ --chain.name=conduit-orbit-deployer \ --http.api=net,web3,eth \ --http.corsdomain="*" \ --http.addr=0.0.0.0 \ --http.vhosts="*" \ --persistent.db-engine="pebble" \ --chain.info-json='[ { "chain-id": 13505, "parent-chain-id": 11155111, "chain-name": "conduit-orbit-deployer", "chain-config": { "chainId": 13505, "homesteadBlock": 0, "daoForkBlock": null, "daoForkSupport": true, "eip150Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 0, "eip158Block": 0, "byzantiumBlock": 0, "constantinopleBlock": 0, "petersburgBlock": 0, "istanbulBlock": 0, "muirGlacierBlock": 0, "berlinBlock": 0, "londonBlock": 0, "clique": { "period": 0, "epoch": 0 }, "arbitrum": { "EnableArbOS": true, "AllowDebugPrecompiles": false, "DataAvailabilityCommittee": true, "InitialArbOSVersion": 11, "InitialChainOwner": "0x218a4534C699CE35dc929ff4ca845C05Af9A57a2", "GenesisBlockNum": 0 } }, "rollup": { "bridge": "0x946CF7F3238537e51B017369E523425A18996C23", "inbox": "0xe50eBd835F5f17fdEC0A547c37343F080B664357", "sequencer-inbox": "0x3eb7334755Fb41dC01400B15C8cC0C64B36E5969", "rollup": "0xDE145C4Ef9699D130848167d512dD1D09f173066", "validator-utils": "0xb33Dca7b17c72CFC311D68C543cd4178E0d7ce55", "validator-wallet-creator": "0x75500812ADC9E51b721BEa31Df322EEc66967DDF", "deployed-at": 5979967 } } ]' \ --node.data-availability.enable \ --node.data-availability.rest-aggregator.enable \ --node.data-availability.rest-aggregator.urls=https://das-gravity-testnet-sepolia-34ow2embsc.t.conduit.xyz \ --node.celestia-cfg.enable=true \ --node.celestia-cfg.url="$CELESTIA_DAS_URL" \ --execution.forwarding-target=https://rpc-sepolia.gravity.xyz \ --node.feed.input.url=wss://relay-gravity-testnet-sepolia-34ow2embsc.t.conduit.xyz \ --parent-chain.blob-client.beacon-url="$ETH_SEPOLIA_BEACON_RPC" ``` ### References For more information, please check out the following guides: 1. <https://docs.arbitrum.io/node-running/how-tos/running-an-orbit-node> 2. <https://docs.conduit.xyz/guides/run-a-node/arbitrum-node> 3. <https://docs.celestia.org/how-to-guides/arbitrum-full-node> # How to Get G (Gravity Alpha, L2) Learn the different methods to acquire G tokens through bridges, exchanges, and direct purchases on Gravity Alpha Mainnet (L2). {% hint style="danger" %} **Action required — bridge out before November 1, 2026.** Gravity Alpha Mainnet (L2) users should move **all** assets back to Ethereum before **November 1, 2026**. See [Bridge Assets back to Ethereum](/legacy-alpha-mainnet-l2/bridge-back-to-ethereum). {% endhint %} {% hint style="info" %} This page covers bridging and acquiring G on the legacy **Gravity Alpha Mainnet (L2, chainId `1625`)**. The onboarding flow for Gravity Chain (L1) will be documented separately once it is available. {% endhint %} ### Option 1: [Gravity Bridge Solutions](https://bridge.gravity.xyz/) The Gravity Bridge offers cross-chain solutions for seamless asset transfers between different blockchains and the Gravity Alpha Mainnet. You can transfer assets to Gravity Alpha Mainnet through two options: our native bridge, which provides optimized transfers specifically for G, DAI, and WBTC tokens; or through our integration with LI.FI as a routing provider, which supports a wider range of ERC-20 tokens. 1. **Native Canonical Bridge**: Our purpose-built bridge optimized specifically for G, DAI, and WBTC tokens, providing efficient and secure transfers. 2. **LiFi-Powered Multi-Token Bridge**: An extended bridging solution supporting a wide range of ERC-20 tokens beyond our core assets, leveraging LiFi's cross-chain infrastructure. #### Native Canonical Bridge The native canonical bridge is designed to connect **Gravity Alpha Mainnet with Ethereum**. This bridge supports specific tokens: | Token | Ethereum Address | Gravity Address | | ----- | ------------------------------------------ | ------------------------------------------ | | WBTC | 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599 | 0x729ed87bbE7B7e4B7F09BCb9c668580818d98BB9 | | DAI | 0x6B175474E89094C44Da98b954EedeAC495271d0F | 0xBFBBc4dA47508e85AC18DFC961fa182194E85f9a | | G | 0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649 | Native Gas Token of Gravity | ***Important Timeframes:*** * **Ethereum to Gravity**: When bridging tokens from Ethereum Mainnet to Gravity Alpha Mainnet, you will need to wait at least 10 minutes for the bridging process to complete. * **Gravity to Ethereum**: When bridging tokens from Gravity Alpha Mainnet to Ethereum Mainnet, after submitting the transaction, you will need to wait 7 days to claim the funds on the Ethereum Mainnet. ***Why do I have to wait 7 days for withdrawing funds to Ethereum mainnet?*** This is how all optimistic rollups work. Optimistic rollups use a mechanism called fraud proofs to ensure participants in the network remain honest. There is a "challenge period" for these proofs, where, when one party submits a claim about the state of the chain, another party has approximately 7 days to challenge that claim. ***Why do I need G tokens on Ethereum mainnet when I bridge other assets to Gravity Alpha Mainnet?*** Bridging assets from the Ethereum mainnet to Gravity Alpha Mainnet involves two transactions. The first transaction is initiated on the Ethereum mainnet, and the second is a system transaction on the Gravity Alpha Mainnet that distributes funds to the recipient. Since Gravity Alpha Mainnet is an Arbitrum Nitro rollup, the cost of the system transaction on the Gravity Alpha Mainnet must be covered by the initiating transaction on the Ethereum mainnet. Additionally, since the Gravity Alpha Mainnet uses G tokens, the initial deposit transaction also requires some G tokens. To learn more about how canonical bridges work in general, [read this article](https://li.fi/knowledge-hub/the-evolution-of-native-bridges/). #### LiFi Bridge Integration For tokens other than G, DAI, and WBTC, our interface integrates with[ LI.FI](https://li.fi/) as a routing provider. This allows for a wider range of supported tokens and source networks. #### Using the Bridge Interface Visit this website: <https://bridge.gravity.xyz/> Step 1: Configure Source Token * Connect your wallet * Select your source blockchain network * Choose the token you want to bridge * Enter the amount you wish to exchange Step 2: Review Destination Details * Destination will be default set to G Token on Gravity Alpha Mainnet * View the estimated amount you'll receive * Check current exchange rate and price impact Step 3: Select Bridge Route * Compare available routes based on: * 💰 Expected return amount * ⚡ Transaction speed * 🏷️ Gas fees * ⏱️ Estimated completion time * Choose between "Best Return" or "Fastest" options * When you select G, DAI, or WBTC for transfer between Ethereum Mainnet and Gravity Alpha Mainnet, it will automatically use the native bridge route Step 4: Gas Management * Check for "Get Gravity gas" notification * If prompted, enable this option to: * Automatically include required G tokens * Ensure sufficient gas for bridge completion * Cover future transactions on Gravity Alpha Mainnet Step 5: Configure Settings (Optional) * Click the ⚙️ icon besides the wallet button * Adjust route priority if needed * Select gas price (Slow/Normal/Fast) * Choose slippage tolerance (Auto/0.5%) #### Methods to Bridge Assets In the [website](https://bridge.gravity.xyz/), you can also choose from three methods to acquire G tokens on Gravity Alpha Mainnet: 1\. ONCHAIN Bridge: Directly bridge tokens from other networks using our cross-chain bridge powered by LIFI protocol. 2\. CEX Trading: Purchase through supported centralized exchanges 3\. FIAT Purchase: Buy directly using traditional currencies ### Option 2: [Stargate V2 Hydra](https://stargate.finance/bridge) For USDC/USDT/wETH, Gravity chain adopted the [Stargate V2 Hydra system](https://stargateprotocol.gitbook.io/stargate/v/v2-user-docs/whats-new-in-stargate-v2/hydra) for better user experience. With Hydra, users can bridge these tokens between any supported chain and Gravity Alpha Mainnet. <table><thead><tr><th width="168">Token</th><th>Contract on Ethereum Mainnet</th><th>Contract on Gravity</th></tr></thead><tbody><tr><td>ETH/WETH</td><td>Native token of Ethereum Mainnet</td><td>0xf6f832466Cd6C21967E0D954109403f36Bc8ceaA</td></tr><tr><td>USDT</td><td>0xdac17f958d2ee523a2206206994597c13d831ec7</td><td>0x816E810f9F787d669FB71932DeabF6c83781Cd48</td></tr><tr><td>USDC</td><td>0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48</td><td>0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6</td></tr></tbody></table> ### Option 3: [Symbiosis](https://app.symbiosis.finance/swap?chainIn=Gravity\&chainOut=Gravity\&tokenIn=0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6\&tokenOut=G) For ***quick*** bridging G token using existing liquidity pools between **Gravity Alpha Mainnet <> BNB Chain <> Ethereum <> Base** <table><thead><tr><th width="100">Token</th><th width="385">Contract on Ethereum, BNB Chain, and Base</th><th>Contract on Gravity</th></tr></thead><tbody><tr><td>G</td><td>0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649</td><td>Native token of Gravity Alpha Mainnet</td></tr></tbody></table> ### Option 4: Bridge Programmatically with Arbitrum SDK We have created a demo to guide you through the process of bridging assets between Ethereum and Gravity programmatically using the Arbitrum SDK. You can access the demo and follow along with the code and steps provided in the [GitHub repository](https://github.com/Galxe/gravity-bridge-demo). ​ # Bridge Assets back to Ethereum (Gravity Alpha, L2) Move G and other assets from Gravity Alpha Mainnet (L2) back to Ethereum mainnet. {% hint style="danger" %} **Action required — bridge out before November 1, 2026.** Please move **all** of your assets off Gravity Alpha Mainnet (L2) back to Ethereum before **November 1, 2026**. The network is unsettled in **December 2026**. **Different assets use different routes, and they are not interchangeable** — see [Which route does my asset use?](#which-route-does-my-asset-use) below before you start. {% endhint %} {% hint style="info" %} This page covers **withdrawing** assets from the legacy **Gravity Alpha Mainnet (L2, chainId `1625`)** to Ethereum mainnet. To bring assets in, see [How to Get G (on Gravity Alpha Mainnet, L2)](/legacy-alpha-mainnet-l2/bridge-to-gravity). {% endhint %} For the separately deployed G-only fast bridge, see [Alpha G Fast Bridge Contracts](/legacy-alpha-mainnet-l2/alpha-g-fast-bridge). Its message delivery is separate from the canonical withdrawal delay described below. ## Which route does my asset use? Gravity Alpha Mainnet holds two different kinds of tokens, and the available routes depend on the asset. | Asset | How it got here | Exit route | Can the canonical bridge withdraw it? | | -------------- | ---------------------------------------------- | ---------------------------------------------------- | ------------------------------------- | | **G** | native token | [Gravity Bridge](https://bridge.gravity.xyz/) | ✅ Yes | | **DAI** | Arbitrum standard ERC-20 gateway | [Gravity Bridge](https://bridge.gravity.xyz/) | ✅ Yes | | **WBTC** | Arbitrum standard ERC-20 gateway | [Gravity Bridge](https://bridge.gravity.xyz/) | ✅ Yes | | **USDC** | Stargate (issued as `Bridged USDC (Stargate)`) | [Stargate](https://stargate.finance/bridge) **only** | ❌ **No** | | **USDT** | Stargate | [Stargate](https://stargate.finance/bridge) **only** | ❌ **No** | | **ETH / WETH** | Stargate | [Stargate](https://stargate.finance/bridge) **only** | ❌ **No** | {% hint style="danger" %} **USDC, USDT and ETH/WETH cannot be withdrawn through the canonical bridge.** These tokens were issued on Gravity Alpha Mainnet by Stargate, not by the Arbitrum standard gateway — the rollup's canonical bridge has no record of them and cannot process them. [**Stargate**](https://stargate.finance/bridge) **is the only way to move them off this network.** Do not wait for another route to appear. {% endhint %} ## Bridge G (and DAI, WBTC) back to Ethereum — official Gravity bridge Use the official [Gravity Bridge](https://bridge.gravity.xyz/) (native canonical route) to move **G** from Gravity Alpha Mainnet back to Ethereum mainnet. 1. Open <https://bridge.gravity.xyz/> and connect your wallet. 2. Set the **source** network to **Gravity Alpha Mainnet** and the **destination** to **Ethereum**. 3. Select **G**, enter the amount, and submit the withdrawal transaction — the native canonical route is used automatically for G. The native canonical bridge also handles **DAI** and **WBTC** the same way. {% hint style="warning" %} **7-day withdrawal delay.** Like all optimistic rollups, native withdrawals from Gravity Alpha Mainnet to Ethereum have a \~7-day challenge period before the funds can be claimed on Ethereum. Start well before the November 1, 2026 deadline so your withdrawal has time to complete. If you need G on Ethereum sooner, a liquidity-pool route such as [Symbiosis](https://app.symbiosis.finance/swap) can bridge G in minutes instead of the 7-day wait. {% endhint %} ## Bridge USDC, USDT and ETH/WETH back to Ethereum — Stargate For **USDC, USDT and ETH/WETH**, use [Stargate](https://stargate.finance/bridge). Stargate uses liquidity pools (Stargate V2 Hydra), so transfers settle in minutes — there is no 7-day rollup wait. 1. Open <https://stargate.finance/bridge> and connect your wallet. 2. Set **From** to **Gravity** (Alpha Mainnet) and **To** to **Ethereum** — or any other chain Stargate supports. 3. Select the asset, enter the amount, and confirm. {% hint style="warning" %} **On Stargate, USDC is listed as `USDC.e`** — not `USDC`. If you search for "USDC" you may not find your balance. The three assets appear as **`USDC.e`**, **`USDT`** and **`WETH`** with **Gravity** as the source network. {% endhint %} Stargate can also send these assets directly to chains other than Ethereum — including BNB Chain, Base, Arbitrum, Polygon, Avalanche, OP Mainnet and others — so you do not have to route through Ethereum if your destination is elsewhere. | Asset | Symbol on Stargate | Contract on Gravity Alpha Mainnet | Contract on Ethereum | | ---------- | ------------------ | ------------------------------------------ | ------------------------------------------ | | USDC | `USDC.e` | 0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6 | 0xA0b86991c6218b36c1D19D4a2e9Eb0cE3606eB48 | | USDT | `USDT` | 0x816E810f9F787d669FB71932DeabF6c83781Cd48 | 0xdAC17F958D2ee523a2206206994597C13D831ec7 | | ETH / WETH | `WETH` | 0xf6f832466Cd6C21967E0D954109403f36Bc8ceaA | Native ETH | {% hint style="info" %} Keep a small amount of **G** on Gravity Alpha Mainnet to cover gas for the bridge transaction. {% endhint %} ## See also * [How to Get G (on Gravity Alpha Mainnet, L2)](/legacy-alpha-mainnet-l2/bridge-to-gravity) — bringing assets **in**. * [Token Contracts on Gravity Alpha Mainnet (L2)](/legacy-alpha-mainnet-l2/token-contracts-on-gravity) — full address list. * [Gravity Bridge](https://bridge.gravity.xyz/) · [Stargate](https://stargate.finance/bridge) · [Symbiosis](https://app.symbiosis.finance/swap) # Token Contracts on Gravity Alpha (L2) Explore a list of available ERC20 tokens on Gravity Alpha Mainnet (L2) Bridge. {% hint style="danger" %} **Action required — bridge out before November 1, 2026.** Gravity Alpha Mainnet (L2) is being deprecated and will be unsettled in **December 2026**. Move all assets back to Ethereum before **November 1, 2026** — see [Bridge Assets back to Ethereum](/legacy-alpha-mainnet-l2/bridge-back-to-ethereum). **USDC, USDT and ETH/WETH can only exit via** [**Stargate**](https://stargate.finance/bridge) — they are Stargate-issued tokens and the canonical bridge cannot withdraw them. {% endhint %} {% hint style="info" %} Addresses below are on the legacy **Gravity Alpha Mainnet (L2, chainId `1625`)**. For Gravity Mainnet (L1) token addresses, see [Token Contracts on Gravity](/the-g-token/token-contracts). {% endhint %} Gravity token list can be found on [**this github repo**](https://github.com/Galxe/gravity-token-list/blob/main/src/tokenlist.json). Submit the request to add yours. <table><thead><tr><th width="139">Token</th><th width="199">Contract on Gravity</th><th width="202">Contract on Ethereum</th><th>Official Supported Bridge</th></tr></thead><tbody><tr><td>G</td><td>Native Token</td><td>0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649</td><td><a href="https://app.symbiosis.finance/swap?chainIn=Gravity&#x26;chainOut=Gravity&#x26;tokenIn=0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6&#x26;tokenOut=G">Symbiosis</a></td></tr><tr><td>wG</td><td>0xBB859E225ac8Fb6BE1C7e38D87b767e95Fef0EbD</td><td>N/A</td><td></td></tr><tr><td>WBTC</td><td>0x729ed87bbE7B7e4B7F09BCb9c668580818d98BB9</td><td>0x2260fac5e5542a773aa44fbcfedf7c193bc2c599</td><td><a href="https://bridge.gravity.xyz">Canonical Bridge</a> (Arbitrum Nitro standard ERC20 gateway)</td></tr><tr><td>DAI</td><td>0xBFBBc4dA47508e85AC18DFC961fa182194E85f9a</td><td>0x6B175474E89094C44Da98b954EedeAC495271d0F</td><td><a href="https://bridge.gravity.xyz">Canonical Bridge</a> (Arbitrum Nitro standard ERC20 gateway)</td></tr><tr><td>ETH/WETH</td><td>0xf6f832466Cd6C21967E0D954109403f36Bc8ceaA</td><td>Native Token</td><td><a href="https://stargate.finance/bridge">Stargate V2 Hydra</a></td></tr><tr><td>USDT</td><td>0x816E810f9F787d669FB71932DeabF6c83781Cd48</td><td>0xdac17f958d2ee523a2206206994597c13d831ec7</td><td><a href="https://stargate.finance/bridge">Stargate V2 Hydra</a></td></tr><tr><td>USDC</td><td>0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6</td><td>0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48</td><td><a href="https://stargate.finance/bridge">Stargate V2 Hydr
프로젝트로 돌아가기