You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge the develop branch to the master branch, preparation to v5.7.0-rc1
This set of changes includes the following improvements and few fixes:
* [Improvement] Earn interest on locked tokens using Compound Protocol (#590)
* [Other] Remove deprecated bridge types (#595)
* [Other] Bump contracts and package version before 5.7.0-rc1 (#597)
Copy file name to clipboardExpand all lines: README.md
-19Lines changed: 0 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,6 @@ The POA bridge contracts consist of several components:
35
35
* The **Home Bridge** smart contract. This is currently deployed in POA.Network.
36
36
* The **Foreign Bridge** smart contract. This is deployed in the Ethereum Mainnet.
37
37
* Depending on the type of relay operations the following components are also used:
38
-
* in `NATIVE-TO-ERC` mode: the ERC20 token (in fact, the ERC677 extension is used) is deployed on the Foreign network;
39
-
* in `AMB-NATIVE-TO-ERC` mode: the ERC20 token (in fact, the ERC677 extension is used) is deployed on the Foreign network;
40
-
* in `ERC-TO-ERC` mode: the ERC20 token (in fact, the ERC677 extension is used) is deployed on the Home network;
41
38
* in `AMB-ERC-TO-ERC` mode: the ERC20 token (in fact, the ERC677 extension is used) is deployed on the Home network;
42
39
* in `ERC-TO-NATIVE` mode: The home network nodes must support consensus engine that allows using a smart contract for block reward calculation;
43
40
* The **Validators** smart contract is deployed in both the POA.Network and the Ethereum Mainnet.
@@ -59,14 +56,9 @@ Responsibilities and roles of the bridge:
59
56
- listen for `UserRequestForAffirmation` or `Transfer` (depending on the bridge mode) events on the Foreign Bridge and send approval to Home Bridge to relay assets from Foreign Network to Home
60
57
-**User** role:
61
58
- sends assets to Bridge contracts:
62
-
- in `NATIVE-TO-ERC` mode: send native coins to the Home Bridge to receive ERC20 tokens from the Foreign Bridge, send ERC20 tokens to the Foreign Bridge to unlock native coins from the Home Bridge;
63
-
- in `ERC-TO-ERC` mode: transfer ERC20 tokens to the Foreign Bridge to mint ERC20 tokens on the Home Network, transfer ERC20 tokens to the Home Bridge to unlock ERC20 tokens on Foreign networks;
64
59
- in `ERC-TO-NATIVE` mode: send ERC20 tokens to the Foreign Bridge to receive native coins from the Home Bridge, send native coins to the Home Bridge to unlock ERC20 tokens from the Foreign Bridge;
65
60
- in `ARBITRARY-MESSAGE` mode: Invoke Home/Foreign Bridge to send a message that will be executed on the other Network as an arbitrary contract method invocation;
66
61
- in `AMB-ERC-TO-ERC` mode: transfer ERC20 tokens to the Foreign Mediator which will interact with Foreign AMB Bridge to mint ERC20 tokens on the Home Network, transfer ERC20 tokens to the Home Mediator which will interact with Home AMB Bridge to unlock ERC20 tokens on Foreign network.
67
-
- in `AMB-NATIVE-TO-ERC` mode: send native coins to the Home Mediator which will interact with Home AMB Bridge to mint ERC20 tokens on the Foreign Network, transfer ERC20 tokens to the Foreign Mediator which will interact with Foreign AMB Bridge to unlock native coins from Home network.
68
-
- in `AMB-ERC-TO-NATIVE` mode: send ERC20 tokens to the Foreign Mediator which will interact with Foreign AMB Bridge to receive native coins from the Home Mediator on the Home Network, send native coins to the Home Mediator which will interact with Home AMB Bridge to unlock ERC20 tokens from the Foreign Mediator.
69
-
- in `MULTI-AMB-ERC-TO-ERC` mode: transfer any ERC20/ERC677 tokens to the Foreign Mediator which will interact with Foreign AMB Bridge to mint ERC677 tokens on the Home Network, transfer ERC677 tokens to the Home Mediator which will interact with Home AMB Bridge to unlock associated ERC20/ERC677 tokens on the Foreign network.
70
62
71
63
## Usage
72
64
@@ -166,17 +158,6 @@ or with Docker:
166
158
./deploy.sh token
167
159
```
168
160
169
-
For testing bridge scripts in ERC20-to-NATIVE mode, you can deploy an interest receiver to the foreign network.
170
-
This can be done by running the following command:
171
-
```bash
172
-
cd deploy
173
-
node testenv-deploy.js interestReceiver
174
-
```
175
-
or with Docker:
176
-
```bash
177
-
./deploy.sh interestReceiver
178
-
```
179
-
180
161
## Contributing
181
162
182
163
See the [CONTRIBUTING](CONTRIBUTING.md) document for contribution, testing and pull request protocol.
0 commit comments