-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5388708
commit 00a3535
Showing
6 changed files
with
619 additions
and
733 deletions.
There are no files selected for viewing
278 changes: 38 additions & 240 deletions
278
docs/02-developers/06-integrate/01-rif-relay/architecture.md
Large diffs are not rendered by default.
Oops, something went wrong.
135 changes: 34 additions & 101 deletions
135
docs/02-developers/06-integrate/01-rif-relay/contracts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,112 +1,45 @@ | ||
--- | ||
sidebar_label: Contracts | ||
sidebar_position: 700 | ||
title: RIF Relay - Contracts | ||
sidebar_label: Develop | ||
sidebar_position: 600 | ||
title: RIF Relay Develop >> transformed/develop.md | ||
echo description: RIF Relay deployment process. >> transformed/develop.md | ||
echo tags: [rif, envelope, relay, user, guide] >> transformed/develop.md | ||
echo --- >> transformed/develop.md | ||
echo >> transformed/develop.md | ||
cat temp_develop.md >> transformed/develop.md | ||
# Clean up temporary file | ||
rm temp_develop.md | ||
cp transformed/develop.md devportal/docs/02-developers/06-integrate/01-rif-relay/develop.md | ||
|
||
# Process contracts section | ||
TEMP_FILE=temp_contracts.md | ||
TRANSFORMED_FILE=transformed/contracts.md | ||
# Remove the unwanted first lines from section (title) | ||
tail -n +1 docs/contracts.md > temp_develop.md | ||
echo --- > transformed/develop.md | ||
echo sidebar_label: Contracts >> transformed/develop.md | ||
echo sidebar_position: 700 >> transformed/develop.md | ||
echo title: RIF Relay - Contracts | ||
description: 'RIF Relay Contracts.' | ||
tags: [rif, envelope, relay, integrate] | ||
description: RIF Relay Contracts | ||
--- | ||
|
||
## Mainnet | ||
# RIF Relay Develop | ||
|
||
### Version 1 | ||
|
||
|
||
#### Primary contracts** | ||
## Initializing the project | ||
|
||
| Contract | Address | | ||
|--------------------|--------------------------------------------| | ||
| Penalizer | 0x4fd591b8330d352c57CA1CC1dA172dCa516722E3 | | ||
| RelayHub | 0x438Ce7f1FEC910588Be0fa0fAcD27D82De1DE0bC | | ||
| SmartWallet | 0x59C40304E8a428BF1D17f03a6aE84B635964DB19 | | ||
| SmartWalletFactory | 0x9EEbEC6C5157bEE13b451b1dfE1eE2cB40846323 | | ||
| DeployVerifier | 0x2FD633E358bc50Ccf6bf926D621E8612B55264C9 | | ||
| RelayVerifier | 0x5C9c7d96E6C59E55dA4dCf7F791AE58dAF8DBc86 | | ||
To use RIF Relay, follow these steps to build the project. | ||
|
||
#### For CustomSmartWallet support | ||
## Project structure | ||
|
||
| Contract | Address | | ||
|---------------------------------|--------------------------------------------| | ||
| CustomSmartWallet | 0x4b2464E8d062633D18ba0928c064037Da415eD1f | | ||
| CustomSmartWalletFactory | 0x0002E79883280C1717e41EE5D3705D55960B5bAe | | ||
| CustomSmartWalletDeployVerifier | 0x5910868059431026ACa58a73124DedbEF4cb97db | | ||
| CustomSmartWalletRelayVerifier | 0xb6eFDB335b4D52705e9973069500fd79410BEC01 | | ||
The project is divided into multiple modules that interact with each other. | ||
Each project has its own documentation in its repository. | ||
|
||
#### For Testing purposes | ||
1. [RIF Relay Contracts](https://github.com/rsksmart/rif-relay-contracts) | ||
2. [RIF Relay Client](https://github.com/rsksmart/rif-relay-client) | ||
3. [RIF Relay Server](https://github.com/rsksmart/rif-relay-server) | ||
4. [RIF Relay Sample dApp](https://github.com/rsksmart/rif-relay-sample-dapp) | ||
|
||
| Contract | Address | | ||
|-------------------|--------------------------------------------| | ||
| SampleRecipient | 0x479eA66AAEfC00EdC1590c9da07152def9452cf9 | | ||
| TestToken | 0xe49b8906A3ceFd184621A4193e2451b1c3C3dB0B | | ||
## Committing changes | ||
|
||
## Testnet | ||
|
||
### Version 1 | ||
|
||
#### Primary contracts | ||
|
||
| Contract | Address | | ||
|--------------------|--------------------------------------------| | ||
| Penalizer | 0x8e67406bD3A926b43Fda158C673230B77f874CDd | | ||
| RelayHub | 0xAd525463961399793f8716b0D85133ff7503a7C2 | | ||
| SmartWallet | 0x86bD3006B757614D17786428ADf3B442b2722f59 | | ||
| SmartWalletFactory | 0xCBc3BC24da96Ef5606d3801E13E1DC6E98C5c877 | | ||
| DeployVerifier | 0xc67f193Bb1D64F13FD49E2da6586a2F417e56b16 | | ||
| RelayVerifier | 0xB86c972Ff212838C4c396199B27a0DBe45560df8 | | ||
|
||
#### For CustomSmartWallet support | ||
|
||
| Contract | Address | | ||
|---------------------------------|--------------------------------------------| | ||
| CustomSmartWallet | 0x2c66922D704999Ff9F378838172fe5c5e0Ac2d27 | | ||
| CustomSmartWalletFactory | 0x91C186Dcb11EcBf234c778D7779e8e10f8ADD1a8 | | ||
| CustomSmartWalletDeployVerifier | 0x87421afb27FC680D99E82Bce8Df140E81F5c11a3 | | ||
| CustomSmartWalletRelayVerifier | 0x6e23B72723886b066a5C26Baa2b2AfB0b1d51e5c | | ||
|
||
#### For Testing purposes | ||
|
||
| Contract | Address | | ||
|-------------------|--------------------------------------------| | ||
| SampleRecipient | 0xc4B8B6C02EC34d84630Ba8C684954a0A04C656FC | | ||
| TestToken | 0x3F49BaB0afdC36E9f5784da91b32E3D5156fAa5C | | ||
|
||
### Version 0.2 | ||
|
||
#### Primary contracts | ||
|
||
| Contract | Address | | ||
|--------------------|--------------------------------------------| | ||
| Penalizer | 0x5FdeE07Fa5Fed81bd82e3C067e322B44589362d9 | | ||
| RelayHub | 0xe90592939fE8bb6017A8a533264a5894B41aF7d5 | | ||
| SmartWallet | 0x27646c85F9Ad255989797DB0d99bC4a9DF2EdA68 | | ||
| SmartWalletFactory | 0xEbb8AA43CA09fD39FC712eb57F47A9534F251996 | | ||
| DeployVerifier | 0x345799D90aF318fd2d8CbA87cAD4894feF2f3518 | | ||
| RelayVerifier | 0xDe988dB9a901C29A9f04050eB7ab08f71868a8fc | | ||
|
||
#### For CustomSmartWallet support | ||
|
||
| Contract | Address | | ||
|---------------------------------|--------------------------------------------| | ||
| CustomSmartWallet | 0xB8dB52615B1a94a03C2251fD417cA4d945484530 | | ||
| CustomSmartWalletFactory | 0xA756bD95D8647be254de40B842297c945D8bB9a5 | | ||
| CustomSmartWalletDeployVerifier | 0x3c26685CE3ac89F755D68A81175655b4bBE54AE0 | | ||
| CustomSmartWalletRelayVerifier | 0xBcCA9B8faA9cee911849bFF83B869d230f83f945 | | ||
|
||
### For Testing purposes | ||
|
||
| Contract | Address | | ||
|-------------------|--------------------------------------------| | ||
| SampleRecipient | 0x4De3eB249409e8E40a99e3264a379BCfa10634F5 | | ||
| TestToken | 0x77740cE4d7897430E74D5E06540A9Eac2C2Dee70 | | ||
|
||
#### Version 0.1 | ||
|
||
| Contract | Address | | ||
|----------------|--------------------------------------------| | ||
| StakeManager | 0x4aD91a4315b3C060F60B69Fd0d1eBaf16c14148D | | ||
| Penalizer | 0xd3021763366708d5FD07bD3A7Cd04F94Fc5e1726 | | ||
| RelayHub | 0x3f8e67A0aCc07ff2F4f46dcF173C652765a9CA6C | | ||
| TestRecipient | 0xFBE5bF13F7533F00dF301e752b41c96965c10Bfa | | ||
| SmartWallet | 0xE7552f1FF31670aa36b08c17e3F1F582Af6302d1 | | ||
| ProxyFactory | 0xb7a5370F126d51138d60e20E3F332c81f1507Ce2 | | ||
| DeployVerifier | 0x3AD4EDEc75570c3B03620f84d37EF7F9021665bC | | ||
| RelayVerifier | 0x053b4a77e9d5895920cBF505eB8108F99d929395 | | ||
To contribute to the project, create a branch with the name of the new feature you are implementing (e.g. `gas-optimization`). When you commit to git, a hook is executed. The hook executes a linter and all the tests. |
Oops, something went wrong.