Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/darwinia-network/darwinia-messages-sol

Darwinia cross-chain messages gateway and protocol for EVM developers 💌
https://github.com/darwinia-network/darwinia-messages-sol

darwinia-bridge ethereum smart-contracts solidity

Last synced: about 3 hours ago
JSON representation

Darwinia cross-chain messages gateway and protocol for EVM developers 💌

Awesome Lists containing this project

README

        

# Darwinia Bridge Solidity

## Packages
```
.
├── contracts
│   ├── bridge
│   ├── deprecated
│   ├── tokens
│   ├── utils
│   └── verify
└── packages
├── addresses
└── assets
```

### Install dependencies

Make sure you are using Yarn v1.22.10. To install using brew:

```bash
brew install [email protected]
```

Then install dependencies

```bash
yarn install
```

### Environment variables (Optional)

`.env` example:

```bash
MAINNET_RPC_URL="https://eth-mainnet.alchemyapi.io/v2/your-api-key"
GOERLI_RPC_URL="https://eth-rinkeby.alchemyapi.io/v2/your-api-key"
PRIVATE_KEY=your private key
```

### Build

To build all packages:

```bash
yarn build
```

To build a specific package:

```bash
PKG=@darwinia/contracts-bridge yarn build
```

To build all contracts packages:

```bash
yarn build:contracts
```

### Clean

Clean all packages:

```bash
yarn clean
```

Clean a specific package

```bash
PKG=@darwinia/contracts-bridge yarn clean
```

### Rebuild

To re-build (clean & build) all packages:

```bash
yarn rebuild
```

To re-build (clean & build) a specific package & it's deps:

```bash
PKG=@darwinia/contracts-bridge yarn rebuild
```