Gravity 백서

Gravity

원문

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

a</a></td></tr></tbody></table> # Alpha G Fast Bridge Contracts Verified contract addresses for the G-only fast bridge from Gravity Alpha Mainnet to Ethereum. This bridge moves **native G from Gravity Alpha Mainnet (L2, chain ID 1625) to Ethereum mainnet (chain ID 1)**. Gravity Mainnet L1 (chain ID 127001) is a separate network. The Alpha escrow holds the deposited G and sends a LayerZero message. The Ethereum minter mints the same amount to the recipient after message verification. Operators later withdraw the escrowed G through the canonical bridge to the fixed BurnSink and burn it. The canonical withdrawal and claim process remains separate from fast message delivery. ## Bridge contracts All three contracts below have verified source code on their respective explorers. Deployment and verification records are available in the [bridge repository](https://github.com/Galxe/alpha-g-bridge/tree/main/docs/deployments/2026-09-20/execution-archive). | Contract | Network (chain ID) | Verified address | Role | | --------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------- | | AlphaGEscrow | Gravity Alpha (1625) | [0x8412Fe9ae34Ca66c140E950927591ee8dc09a235](https://explorer.gravity.xyz/address/0x8412Fe9ae34Ca66c140E950927591ee8dc09a235?tab=contract) | Holds deposited native G and sends the mint message to Ethereum. | | EthereumGMinter | Ethereum (1) | [0x7b7fDA78d7C262b5Eff124dB57D3434F1f3bFFD8](https://etherscan.io/address/0x7b7fDA78d7C262b5Eff124dB57D3434F1f3bFFD8#code) | Mints Ethereum G after verifying the Alpha message. | | GBurnSink | Ethereum (1) | [0x6Ba324f1B84c9973249D0cf7B87Aca396164a04e](https://etherscan.io/address/0x6Ba324f1B84c9973249D0cf7B87Aca396164a04e#code) | Receives canonical withdrawals for subsequent burning. | ## Ownership | Safe | Network | Address | Owns | | ------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | Alpha Safe | Gravity Alpha (1625) | [0x4B08D07c2C7CE01f3666D10AF7d7c6080ECcb1FE](https://explorer.gravity.xyz/address/0x4B08D07c2C7CE01f3666D10AF7d7c6080ECcb1FE) | AlphaGEscrow; also its LayerZero delegate | | Ethereum Safe | Ethereum (1) | [0xbD6e434dB90FD8AD4E28d85C133AD34cA6fbfB6D](https://etherscan.io/address/0xbD6e434dB90FD8AD4E28d85C133AD34cA6fbfB6D) | EthereumGMinter, GBurnSink and GToken; also the minter's LayerZero delegate | ## Token and messaging contracts | Contract | Network | Address | | -------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | GToken (G ERC-20) | Ethereum (1) | [0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649](https://etherscan.io/address/0x9C7BEBa8F6eF6643aBd725e45a4E8387eF260649#code) | | LayerZero EndpointV2 | Gravity Alpha (1625), EID 30294 | [0x1a44076050125825900e736c501f859c50fE728c](https://explorer.gravity.xyz/address/0x1a44076050125825900e736c501f859c50fE728c?tab=contract) | | LayerZero EndpointV2 | Ethereum (1), EID 30101 | [0x1a44076050125825900e736c501f859c50fE728c](https://etherscan.io/address/0x1a44076050125825900e736c501f859c50fE728c#code) | | Send library | Gravity Alpha (1625) | [0xe1844c5D63a9543023008D332Bd3d2e6f1FE1043](https://explorer.gravity.xyz/address/0xe1844c5D63a9543023008D332Bd3d2e6f1FE1043?tab=contract) | | Receive library | Ethereum (1) | [0xc02Ab410f0734EFa3F14628780e6e695156024C2](https://etherscan.io/address/0xc02Ab410f0734EFa3F14628780e6e695156024C2#code) | | Executor | Gravity Alpha (1625) | [0xcCE466a522984415bC91338c232d98869193D46e](https://explorer.gravity.xyz/address/0xcCE466a522984415bC91338c232d98869193D46e?tab=contract) | G is the native asset on Alpha; there is no ERC-20 approval step for depositing native G. The full per-chain DVN addresses and messaging parameters are maintained in the [mainnet configuration](https://github.com/Galxe/alpha-g-bridge/blob/main/config/mainnet-config.json). ## Required DVNs The configured pathway requires all four DVNs on each side. These are chain-specific verifier addresses. | Network | DVN address | | -------------------- | ----------------------------------------------------------------------------------------------------------------------------- | | Gravity Alpha (1625) | [0x4b92BC2A7d681bf5230472C80d92aCFE9A6b9435](https://explorer.gravity.xyz/address/0x4b92BC2A7d681bf5230472C80d92aCFE9A6b9435) | | Gravity Alpha (1625) | [0x9C061c9A4782294eeF65ef28Cb88233A987F4bdD](https://explorer.gravity.xyz/address/0x9C061c9A4782294eeF65ef28Cb88233A987F4bdD) | | Gravity Alpha (1625) | [0xe95B63C4dA1D94fa5022e7C23c984F278B416ca7](https://explorer.gravity.xyz/address/0xe95B63C4dA1D94fa5022e7C23c984F278B416ca7) | | Gravity Alpha (1625) | [0xe9C24dD582e37FAACa7d44c799530688DE92Da73](https://explorer.gravity.xyz/address/0xe9C24dD582e37FAACa7d44c799530688DE92Da73) | | Ethereum (1) | [0x380275805876Ff19055EA900CDb2B46a94ecF20D](https://etherscan.io/address/0x380275805876Ff19055EA900CDb2B46a94ecF20D) | | Ethereum (1) | [0x589dEDbD617e0CBcB916A9223F4d1300c294236b](https://etherscan.io/address/0x589dEDbD617e0CBcB916A9223F4d1300c294236b) | | Ethereum (1) | [0xa4fE5A5B9A846458a70Cd0748228aED3bF65c2cd](https://etherscan.io/address/0xa4fE5A5B9A846458a70Cd0748228aED3bF65c2cd) | | Ethereum (1) | [0xa59BA433ac34D2927232918Ef5B2eaAfcF130BA5](https://etherscan.io/address/0xa59BA433ac34D2927232918Ef5B2eaAfcF130BA5) | ## Canonical settlement contracts | Contract | Network | Address | | ---------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------- | | ArbSys | Gravity Alpha (1625) | [0x0000000000000000000000000000000000000064](https://explorer.gravity.xyz/address/0x0000000000000000000000000000000000000064) | | Canonical bridge | Ethereum (1) | [0x7983403dDA368AA7d67145a9b81c5c517F364c42](https://etherscan.io/address/0x7983403dDA368AA7d67145a9b81c5c517F364c42#code) | | Outbox | Ethereum (1) | [0x1153a1e4B1523DFf36f77d696bd6eBF2B0e7DAbF](https://etherscan.io/address/0x1153a1e4B1523DFf36f77d696bd6eBF2B0e7DAbF#code) | | Rollup | Ethereum (1) | [0x2807B1d5d94ca823ca7d8642A5F5DDac120ce48f](https://etherscan.io/address/0x2807B1d5d94ca823ca7d8642A5F5DDac120ce48f#code) | Addresses and ownership were checked on September 20, 2026. The rollup address was read from the canonical bridge's `rollup()` getter. Permissions, limits and messaging configuration can change; query current state before operating. ## Using these addresses * Deposit through the bridge's `bridge(recipient, amount)` call with its quoted message fee. Do not send tokens or native G directly to the listed addresses. * BurnSink has no transfer or recovery function. It is a settlement destination, not a user deposit address. * A source-chain deposit does not prove Ethereum delivery. Check the original GUID's mint result; retry the original verified message if execution failed, without depositing again. * The fast bridge supports G only. For other assets and the canonical user withdrawal route, see [Bridge Assets back to Ethereum](/legacy-alpha-mainnet-l2/bridge-back-to-ethereum). # Gravity Alpha Mainnet (L2) Contracts {% hint style="danger" %} **Legacy network — bridge out before November 1, 2026.** Gravity Alpha Mainnet (L2) is being deprecated in favor of [Gravity Mainnet (L1)](/gravity-networks/l1-mainnet) 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). {% endhint %} {% hint style="info" %} These are the rollup and gateway addresses for the legacy **Gravity Alpha Mainnet (L2, Arbitrum Nitro, chainId `1625`)**. Addresses for Gravity Chain (L1) are published separately. {% endhint %} See [Alpha G Fast Bridge Contracts](/legacy-alpha-mainnet-l2/alpha-g-fast-bridge) for the G escrow, Ethereum minter, burn sink and controlling Safes. The canonical bridge’s `rollup()` address below was checked on September 20, 2026. ### Core Contracts | **Contract** | **Address** | | ---------------------- | ------------------------------------------ | | rollup | 0x2807B1d5d94ca823ca7d8642A5F5DDac120ce48f | | inbox | 0x7AD2a94BefF3294a31894cFb5ba4206957a53c19 | | outbox | 0x1153a1e4B1523DFf36f77d696bd6eBF2B0e7DAbF | | adminProxy | 0xBbc3872E30C91ef69336937838c2a283F79f7E68 | | sequencerInbox | 0x8D99372612e8cFE7163B1a453831Bc40eAeb3cF3 | | bridge | 0x7983403dDA368AA7d67145a9b81c5c517F364c42 | | utils | 0x2b0E04Dc90e3fA58165CB41E2834B44A56E766aF | | validatorWalletCreator | 0x9CAd81628aB7D8e239F1A5B497313341578c5F71 | | l3UpgradeExecutor | 0xef8e170Ba5e43746213887DF50C186fB6Cc431FB | ### L2 Contracts | **Contract** | **Address** | | --------------- | ------------------------------------------ | | customGateway | 0xa26Fd1c23634870303e42311E114D5cc8301Ed1E | | multicall | 0x7cdCB0Cc61f47B8Dd8f47C5A29edaDd84a1BDf5e | | proxyAdmin | 0xBbc3872E30C91ef69336937838c2a283F79f7E68 | | router | 0x8713569d016f981D956715e9EE2795382168b5c0 | | standardGateway | 0xb23988D9728EF147EAa02D602D7e067B6131A1bB | | weth | 0x0000000000000000000000000000000000000000 | | wethGateway | 0x0000000000000000000000000000000000000000 | ### L3 Contracts | **Contract** | **Address** | | --------------- | ------------------------------------------ | | customGateway | 0xC18EADE2B2CdA6AcFAc4fd2226C724a1008b02Ab | | multicall | 0xABF31e3A13528082cE5bb05D6E88749556DAFD5F | | proxyAdmin | 0xB881cf085a78491AaA71Bf22bc87E67865a4409a | | router | 0xf1cA401FB474520EbaBb285670891dEbd7C505Bc | | standardGateway | 0xD330E617270F375Bd476896f3A8AE9041264E13d | | weth | 0x0000000000000000000000000000000000000000 | | wethGateway | 0x0000000000000000000000000000000000000000 | # Gravity Alpha Sepolia Testnet (L2) Contracts {% hint style="danger" %} **Legacy network — bridge out before November 1, 2026.** Gravity Alpha Mainnet (L2) is being deprecated in favor of [Gravity Mainnet (L1)](/gravity-networks/l1-mainnet) 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). {% endhint %} {% hint style="info" %} These are the rollup and gateway addresses for the legacy **Gravity Alpha Sepolia Testnet (L2, Arbitrum Nitro, chainId `13505`)**. For the Gravity Chain (L1) testnet, see [Gravity Longevity Testnet (L1)](/gravity-networks/l1-longevity-testnet). {% endhint %} ### Core Contracts | **Contract** | **Address** | | ---------------------- | ------------------------------------------ | | rollup | 0x68103ED1d4E25C2f92707c82d5e420268A4F5Bf8 | | inbox | 0xAaFb8764055A5CF534F40A3C2b96F51cc2736E27 | | outbox | 0x24f7796702124E6cfe3Ee95BaC5Dc3D85dc9f2BF | | adminProxy | 0xE02283CC2a52837b4218427F3B1c20b086df0E18 | | sequencerInbox | 0xAEfA8B6aB59c0cd098cbBEA234434946d154a7A5 | | bridge | 0x04e9f0f84C1EB8ad8b42861DD4ee349F126cdeAE | | utils | 0x617DF25FeeC04E1Fc7c031e146229Dadd16758f3 | | validatorWalletCreator | 0x3D23095e9fC3FdB373F1Ba2777f2E6e9a3644321 | | l3UpgradeExecutor | 0x81844D7915b389faFe938CA156CFD6998af26c90 | ### L2 Contracts | **Contract** | **Address** | | --------------- | ------------------------------------------ | | customGateway | 0xe909715E3eEC9fBE4675245FF37B2Cba5231630F | | multicall | 0x73465577E9FD7Cd585E4270F23A9eBa99B92b6eD | | proxyAdmin | 0x0000000000000000000000000000000000000000 | | router | 0x648103e7bF7DD0465DE0F5302E18C4FD46A82777 | | standardGateway | 0x399CD8C927F657FA371C425EF1d063F301659788 | | weth | 0x0000000000000000000000000000000000000000 | | wethGateway | 0x0000000000000000000000000000000000000000 | ### L3 Contracts | **Contract** | **Address** | | --------------- | ------------------------------------------ | | customGateway | 0x730EcA29f7A17952Fe8B44e324083944f73e4544 | | multicall | 0xf1A7Ff9a701b1d47b3020b7b90EfF8650B53D5Bb | | proxyAdmin | 0x44A4aBC26cEef42B09D67743f2680bF7aE5f82e2 | | router | 0x4E78fAB9C8e6E8BDDf80330F5523116FA8484826 | | standardGateway | 0x8c82825b115ba53A77b1d6b6c72D14C6D95a2AB1 | | weth | 0x0000000000000000000000000000000000000000 | | wethGateway | 0x0000000000000000000000000000000000000000 | # Verify a Smart Contract (Gravity Alpha, L2) Verify your smart contract on Gravity Alpha Mainnet (L2). {% hint style="danger" %} **Legacy network — bridge out before November 1, 2026.** Gravity Alpha Mainnet (L2) is being deprecated in favor of [Gravity Mainnet (L1)](/gravity-networks/l1-mainnet) 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). {% endhint %} {% hint style="info" %} This guide applies to the legacy **Gravity Alpha Mainnet (L2, Arbitrum Nitro rollup, chainId `1625`)**. A separate guide will be published for Gravity Chain (L1) once its explorer verification flow is available. {% endhint %} ## [OKLink](https://www.oklink.com/gravity-alpha) There are four major ways to verify contracts on OKLink: ### 1. Explorer Interface You can verify a deployed contract directly through the [OKLink interface](https://web3.okx.com/explorer/gravity-alpha/verify-contract-preliminary). ### 2. Contract Verification APIs OKLink provides a set of [contract verification APIs](https://www.oklink.com/docs/en/#developer-tools-contract-verification). ### 3. Verify Using Foundry **Prerequisite: Get an OKLink API Key** Apply for an API key:\ <https://www.oklink.com/account/my-api> **Run `forge verify-contract`** To verify a contract, you need to provide: * The deployed contract address * The contract path and name (e.g., `src/MyToken.sol:MyToken`) * The OKLink `verify-url` for your target chain * Your OKLink API key Command format: ```bash forge verify-contract <contract_address> \ src/MyToken.sol:MyToken \ --verifier oklink \ --verifier-url https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/gravity \ --api-key <Your_OKLink_API_Key> \ --watch ``` **Check Verification Status** It is recommended to use the `--watch` flag to continuously poll for verification status. If you didn’t use `--watch`, you can manually check the result using: ```bash forge verify-check <contract_address> --verifier oklink ``` ### 4. Verify Using Hardhat #### Method 1 (Recommended): Using `@okxweb3/hardhat-explorer-verify` Plugin This method uses an official Hardhat plugin provided by OKX. It provides a CLI command (`npx hardhat okverify`) to automate contract verification. **1. Install the Plugin** ```bash npm install @okxweb3/hardhat-explorer-verify ``` **2. Configure `hardhat.config.ts`** Here is a sample configuration for Gravity Chain: ```ts import { HardhatUserConfig } from "hardhat/config"; import "@nomicfoundation/hardhat-toolbox"; import "@okxweb3/hardhat-explorer-verify"; const config: HardhatUserConfig = { solidity: "0.8.24", sourcify: { enabled: true, }, networks: { gravity: { url: "https://rpc.gravity.xyz", accounts: ["<Your Private Key>"], }, }, okxweb3explorer: { apiKey: "<Your OKLink API Key>", customChains: [ { network: "gravity", chainId: 1625, urls: { apiURL: "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/gravity", browserURL: "https://www.oklink.com", }, }, ], }, }; export default config; ``` **3. Verify the Contract** After deployment, verify with: ```bash npx hardhat okverify --network gravity <ContractAddress> ``` **4. Verifying Proxy Contracts** For contracts deployed via `TransparentUpgradeableProxy`, use: ```bash npx hardhat okverify --network gravity --contract contracts/MyContract.sol:MyContract --proxy <ProxyAddress> ``` If you're using the 897 proxy standard, omit `--proxy` and just run the command as normal #### Method 2: Manually Configuring `etherscan.customChains` for OKLink You can also verify contracts using Hardhat's native Etherscan integration by overriding the default verification endpoint. **Configuration Example:** ```js module.exports = { etherscan: { apiKey: "<Your OKLink API Key>", customChains: [ { network: "gravity", chainId: 1625, urls: { apiURL: "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/gravity", browserURL: "https://www.oklink.com", }, }, ], }, }; ``` This enables Hardhat’s built-in `verify` task to interact with OKLink: ```bash npx hardhat verify --network gravity <ContractAddress> <ConstructorArguments...> ``` > ⚠️ You’ll still need to ensure your contract metadata matches what OKLink expects (e.g., compiler version, optimization settings, source flattening if needed). *** ## [Blockscout](https://explorer.gravity.xyz) {% hint style="info" %} Blockscout uses the global blockscout verifier (so that similar contracts get automatically verified), it can sometimes be flaky. Please try again a bit later. For contracts deployed by `create2,` you may ran into *Fail - Unable to verify.* You will have to visit the contract address page after deployment first. Then blockscout will fetch it from the RPC and see that it is a contract, then verification should work.\ Contract address page: `https://explorer.gravity.xyz/address/***` {% endhint %} For [hardhat](https://hardhat.org/) users, you will need to change your `hardhat.config.ts` to something like the following example: ``` etherscan: { apiKey: { // ... // Not required. Can be any non-empty string gravity: "abc", }, customChains: [ // ... { network: "gravity", chainId: 1625, urls: { apiURL: "https://gscan.xyz/api", browserURL: "https://gscan.xyz", // For Blockscout // apiURL: "https://explorer.gravity.xyz/api", // browserURL: "https://explorer.gravity.xyz", }, } ], }, networks: { // ... gravity: { url: "https://rpc.gravity.xyz", chainId: 1625, accounts, }, }, ``` For [foundry](https://book.getfoundry.sh/) users, we recommend you to use [scripts](https://book.getfoundry.sh/tutorials/solidity-scripting) to deploy your contracts. You will need to configure the `foundry.toml` file as the following: ``` [etherscan] # Gravity explorer does not require an API key, any non-empty string will do. # gscan gravity = { key = "abc", url="https://gscan.xyz/api", chain = 1625 } # Blockscout # gravity = { key = "abc", url="https://explorer.gravity.xyz/api", chain = 1625 } ``` Then you when you run your scripts, you can verify contracts deployed with `--verify` option. ``` forge script --chain 1625 script/YOUR_SCRIPT.s.sol:YOUR_SCRIPT --rpc-url $GRAVITY_RPC_URL --broadcast --verify -vvvv ``` NOTE: If contracts were deployed successfully but verification failed, DO NOT delete the `broadcast/` directory. You can resume the verification process by removing the `--broadcast` option and providing the deployment transaction sender's key like below: (or you can configure it in cast): ``` forge script --chain 1625 script/YOUR_SCRIPT.s.sol:YOUR_SCRIPT --private-key $PRIVATE_KEY --rpc-url $GRAVITY_RPC_URL --verify -vvvv ``` # Oracles (legacy L2) Third-party oracle integrations from the legacy Gravity Alpha Mainnet (L2). Gravity Mainnet (L1) is integrating a range of oracle services; Native Oracle is supported by default for now. {% hint style="danger" %} **Legacy network — bridge out before November 1, 2026.** Gravity Alpha Mainnet (L2) is being deprecated in favor of [Gravity Mainnet (L1)](/gravity-networks/l1-mainnet) 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-
프로젝트로 돌아가기