updated the image links

This commit is contained in:
Aditya Sharma 2020-06-09 17:00:11 +05:30 committed by GitHub
parent 41774ae1ae
commit 920f4260bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ ganache-cli --fork https://mainnet.infura.io/v3/{Project_Id} --unlock {Ethereum_
</table>
![alt text](https://github.com/destroyersrt/InstaDapp_Compound/blob/master/Screenshot%202020-06-09%20at%2012.19.55%20AM.png)
![alt text](https://github.com/InstaDApp/dsa-developers/blob/master/img/forkMainnet/infura.png)
If you want to fork mainnet at a particular block number you can do that by providing value of Block_Number after infura Project_ID
@ -44,7 +44,7 @@ ganache-cli --fork https://mainnet.infura.io/v3/{Project_Id}@{Block_Number} --un
```
After running the command, it will fork the mainnet for you and it will return you something like this:
![alt text](https://github.com/destroyersrt/InstaDapp_Compound/blob/master/Screenshot%202020-06-09%20at%2012.30.06%20AM.png)
![alt text](https://github.com/InstaDApp/dsa-developers/blob/master/img/forkMainnet/ganache.png)
And as you can see it is mentioning that it is Forked Chain and also provides details about chain like Block number you forked that mainnet from and also the network id.
@ -58,10 +58,10 @@ After cloning run ```javascript npm install``` in the cloned repo directory.
Before interacting with DSA make sure you have configured .env file which contains the private key, Ethereum address and Infura project Id.
Now, open `dsa.js` file and check if the port number of your ganache-cli matches with the web3 providers.
![alt text](https://github.com/destroyersrt/InstaDapp_Compound/blob/master/Screenshot%202020-06-09%20at%201.07.52%20AM.png)
![alt text](https://github.com/InstaDApp/dsa-developers/blob/master/img/forkMainnet/web3.png)
Now, you can interact with the DSA by using the `dsa.js` file. If you dont have any DSA account you can create one by uncommenting this section from `dsa.js` file.
![alt text](https://github.com/destroyersrt/InstaDapp_Compound/blob/master/Screenshot%202020-06-09%20at%201.34.30%20PM.png)
![alt text](https://github.com/InstaDApp/dsa-developers/blob/master/img/forkMainnet/buildFunc.png)
The file contains a section where you can add your spells by default it contains spells for deposit and withdraw methods of Compound Connector.
@ -69,7 +69,7 @@ File also contains methods for account setup and transfer.
**Step 3:** Executing the file
![alt text](https://github.com/destroyersrt/InstaDapp_Compound/blob/master/Screenshot%202020-06-09%20at%201.10.45%20AM.png)
![alt text](https://github.com/InstaDApp/dsa-developers/blob/master/img/forkMainnet/spells.png)
After making all the changes in the file execute the file using command:
```javascript
@ -94,7 +94,7 @@ Step 3: In the truffle console, run
```javascript
receipt = await web3.eth.getTransactionReceipt({txHash})
```
![alt text](https://github.com/destroyersrt/InstaDapp_Compound/blob/master/Screenshot%202020-06-09%20at%201.33.36%20PM.png)
![alt text](https://github.com/InstaDApp/dsa-developers/blob/master/img/forkMainnet/txHash.png)
This will return you something like this, if your transaction went through.
@ -103,6 +103,6 @@ If you want to use any particular token then you can unlock address which holds
ethplorer.
If you encounter error saying : “Error: Returned error: Returned error: project ID does not have access to archive state”. Trying reloading the ganache-cli as this will most probably fix this.
![alt text](https://github.com/destroyersrt/InstaDapp_Compound/blob/master/Screenshot%202020-06-09%20at%201.33.05%20PM.png)
![alt text](https://github.com/InstaDApp/dsa-developers/blob/master/img/forkMainnet/data.png)
**Note:** This is not the best way to interact with DSA as you might face a lot of errors in the process of interacting on forked mainnet. The best way is still the Ethereum Mainnet.