Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ChainSafe/chainbridge-solidity
⚙️ Solidity contracts for Sygma (ChainBridge)
https://github.com/ChainSafe/chainbridge-solidity
Last synced: about 2 months ago
JSON representation
⚙️ Solidity contracts for Sygma (ChainBridge)
- Host: GitHub
- URL: https://github.com/ChainSafe/chainbridge-solidity
- Owner: ChainSafe
- License: lgpl-3.0
- Archived: true
- Created: 2020-03-25T14:35:06.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T13:29:08.000Z (over 1 year ago)
- Last Synced: 2024-07-19T21:00:53.168Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.44 MB
- Stars: 136
- Watchers: 20
- Forks: 168
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chainbridge-solidity
[![Coverage Status](https://coveralls.io/repos/github/ChainSafe/chainbridge-solidity/badge.svg?branch=master)](https://coveralls.io/github/ChainSafe/chainbridge-solidity?branch=master)
ChainBridge uses Solidity smart contracts to enable transfers to and from EVM compatible chains. These contracts consist of a core bridge contract (Bridge.sol) and a set of handler contracts (ERC20Handler.sol, ERC721Handler.sol, and GenericHandler.sol). The bridge contract is responsible for initiating, voting on, and executing proposed transfers. The handlers are used by the bridge contract to interact with other existing contracts.
Read more [here](https://chainbridge.chainsafe.io/).
A CLI to deploy and interact with these contracts can be found [here](https://github.com/ChainSafe/chainbridge-deploy/tree/master/cb-sol-cli).
## Dependencies
Requires `nodejs` and `npm`.
## Commands
`make install-deps`: Installs truffle and ganache globally, fetches local dependencies. Also installs `abigen` from `go-ethereum`.
`make bindings`: Creates go bindings in `./build/bindings/go`
`PORT= SILENT= make start-ganache`: Starts a ganache instance, default `PORT=8545 SILENT=false`
`QUIET= make start-geth`: Starts a geth instance with test keys
`PORT= make deploy`: Deploys all contract instances, default `PORT=8545`
`make test`: Runs truffle tests.
`make compile`: Compile contracts.
# ChainSafe Security Policy
## Reporting a Security Bug
We take all security issues seriously, if you believe you have found a security issue within a ChainSafe
project please notify us immediately. If an issue is confirmed, we will take all necessary precautions
to ensure a statement and patch release is made in a timely manner.Please email us a description of the flaw and any related information (e.g. reproduction steps, version) to
[security at chainsafe dot io](mailto:[email protected]).