Skip to content

hamzalgz/blockchain_project

Repository files navigation

download Ganache from https://www.trufflesuite.com/ganache

image

####Truffle installation:

Node version manager (nvm):
![image](https://user-images.githubusercontent.com/69525078/137113507-64a442b6-1ee2-4432-a20b-31f0b6298cfb.png)
![image](https://user-images.githubusercontent.com/69525078/137113537-7efd721b-d074-4c17-800f-0957c66d8ea7.png)
![image](https://user-images.githubusercontent.com/69525078/137113550-d411cf85-298b-42de-874e-96ee412d450b.png)
truffle via npm :
![image](https://user-images.githubusercontent.com/69525078/137113596-8224a84a-17a1-48bd-b0fa-369b19ed41de.png)

####Smart contract creation using Solidity:

image

image

the script:

image

####contract Faucet.sol deployment using truffle:

#####truffle repository creation:
![image](https://user-images.githubusercontent.com/69525078/137115659-ea90c98b-1ad6-49c6-bf5b-0590176a1b2e.png)

####dependency installation using npm:

image

image

####Truffle configuration connecting to Ganache:

image

in ganache, adding truffle-config.js file to Ganache:

image

####compile the contract:

image

contract:

image image

in Ganache, we got some changes:

1-account balance:

image

2-contract balance:

image

3-blocs:

image

4-transactions:

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published