{"id":27742597,"url":"https://github.com/astarnetwork/chainbridge-interface","last_synced_at":"2025-07-31T08:08:15.326Z","repository":{"id":103303805,"uuid":"413883535","full_name":"AstarNetwork/chainbridge-interface","owner":"AstarNetwork","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-07T09:41:02.000Z","size":1156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-17T16:45:58.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AstarNetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-10-05T15:53:25.000Z","updated_at":"2021-10-07T09:41:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4b50525-0bbc-4b96-b910-c58f3223943b","html_url":"https://github.com/AstarNetwork/chainbridge-interface","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AstarNetwork/chainbridge-interface","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstarNetwork%2Fchainbridge-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstarNetwork%2Fchainbridge-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstarNetwork%2Fchainbridge-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstarNetwork%2Fchainbridge-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AstarNetwork","download_url":"https://codeload.github.com/AstarNetwork/chainbridge-interface/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstarNetwork%2Fchainbridge-interface/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268010102,"owners_count":24180459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-28T16:43:49.351Z","updated_at":"2025-07-31T08:08:15.317Z","avatar_url":"https://github.com/AstarNetwork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chainbridge UI\n\n## Table of Contents\n\n- [Features](#features)\n- [Install](#install)\n- [Usage](#usage)\n- [Contributing](#contributing)\n\u003c!-- - [License](#license) --\u003e\n\n## Features\n\n### Stack\n\n- JS Framework: [React](https://github.com/facebook/react) + [Typescript](https://github.com/microsoft/TypeScript)\n- Blockchain components: [Ethers.js](https://github.com/ethers-io/ethers.js/) + [web3-context](https://github.com/chainsafe/web3-context)\n- Styling: [JSS](https://cssinjs.org/?v=v10.0.3) + [Chainsafe UI Styling](https://npmjs.com/packages/@chainsafe/common-theme/)\n- Forms \u0026 Validation: [Formik](https://jaredpalmer.com/formik) + [Yup](https://github.com/jquense/yup)\n- Notifications: [Chainsafe UI Components](https://npmjs.com/packages/@chainsafe/common-components/)\n\n## Install\n\n```\nyarn install\n```\n\nCreate a `.env` file based on the `.env.example` file in the root of the project.\nGet a Blocknative DAPP ID (here)[https://explorer.blocknative.com/account] and populate the respective field in the `.env` file\n\n## Usage\n\n### Development\n\nFor running a local instance use the command:\n\n```\nyarn start\n```\n\nThe codebase is configured to be run against the Geth \u003c\u003e Substrate node that can be set up by following the guide [here](https://chainbridge.chainsafe.io/local/) or executing:\n\n- `yarn start:substrate` to start,\n- `yarn setup:example` to initialize\n\nShould the substrate chain you are targetting require different type definitions, the type definitions file should be added to `src/Contexts/Adaptors/SubstrateApis/` and the file name for the types set in the substrate bridge configs.\n\n### Build\n\nUpdate the configs for the bridge in `src/chainbridgeContext.ts`. There should be at least 2 chains configured for correct functioning of the bridge. Each chain accepts the following configuration parameters:\n\n```\nexport type BridgeConfig = {\n  networkId?: number; // The networkId of this chain.\n  chainId: number; // The bridge's chainId.\n  name: string; // The human readable name of this chain.\n  rpcUrl: string; // An RPC URL for this chain.\n  type: ChainType; // The type of chain.\n  tokens: TokenConfig[]; // An object to configure the tokens (see below)\n  nativeTokenSymbol: string; // The native token symbol of this chain.\n  decimals: number;\n};\n```\n\n```\ntype TokenConfig = {\n  address: string; // The address of the ERC20 token\n  name?: string; // The name of the ERC20 token. This can be left out if the token implements the ERC20Detailed standard\n  symbol?: string; // The symbol of the ERC20 token. This can be left out if the token implements the ERC20Detailed standard\n  imageUri?: string; // A URL pointing to the token logo. Can be either locally or externally hosted.\n  resourceId: string; // The resourceId to be used when transferring tokens of this type.\n  isNativeWrappedToken?: boolean // Flag to indicate that this is a wrapped native token (eg wETH on Ethereum). If this flag is not set for any of the tokens provided for this chain, wrapping functionality will be unavailable on that network.\n};\n```\n\nEVM Chains should additionally be configured with the following params\n\n```\nexport type EvmBridgeConfig = BridgeConfig \u0026 {\n  bridgeAddress: string;\n  erc20HandlerAddress: string;\n  type: \"Ethereum\";\n  nativeTokenSymbol: string;\n  // This should be the full path to display a tx hash, without the trailing slash, ie. https://etherscan.io/tx\n  blockExplorer?: string;\n  defaultGasPrice?: number;\n  deployedBlockNumber?: number;\n};\n```\n\nSubstrate chains should be configured with the following\n\n```\nexport type SubstrateBridgeConfig = BridgeConfig \u0026 {\n  type: \"Substrate\";\n  chainbridgePalletName: string; // The name of the chainbridge palette\n  transferPalletName: string; // The name of the pallet that should initiate transfers\n  bridgeFeeFunctionName?: string; // The name of the function to fetch the bridge fee\n  bridgeFeeValue?: number; // The value of the bridge fee, scaled to human readable amounts. If the `bridgeFeeFunctionName` above is provided the onchain value will take preference.\n  transferFunctionName: string; // The name of the method to call to initiate a transfer\n  typesFileName: string; // The name of the Substrate types file. The file should be located in `src/Contexts/Adaptors/SubstrateApis`\n};\n```\n\nRun `yarn build`.\n\nDeploy the contents of the `/build` folder to any static website host (eg. S3, Azure storage) or IPFS.\n\nThe project can also be built and deployed to Netlify, Render.com by configuring the Build command and Publish directory on the respective service.\n\n# ChainSafe Security Policy\n\n## Reporting a Security Bug\n\nWe take all security issues seriously, if you believe you have found a security issue within a ChainSafe\nproject please notify us immediately. If an issue is confirmed, we will take all necessary precautions\nto ensure a statement and patch release is made in a timely manner.\n\nPlease email us a description of the flaw and any related information (e.g. reproduction steps, version) to\n[security at chainsafe dot io](mailto:security@chainsafe.io).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastarnetwork%2Fchainbridge-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastarnetwork%2Fchainbridge-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastarnetwork%2Fchainbridge-interface/lists"}