https://github.com/youaresoroman/chainsafe-technical-test
https://github.com/youaresoroman/chainsafe-technical-test
blockchain chainsafe ethereum ipfs solidity web3
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/youaresoroman/chainsafe-technical-test
- Owner: youaresoroman
- Created: 2021-12-16T09:24:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-02T23:26:43.000Z (over 4 years ago)
- Last Synced: 2025-02-09T12:43:04.694Z (over 1 year ago)
- Topics: blockchain, chainsafe, ethereum, ipfs, solidity, web3
- Language: TypeScript
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eth-ipfs-storage
App for storing IPFS content in Ethereum blockchain.
## Configuration
### node enviroment variables
Path: /.env
```
ETH_NETWORK= ethereum network provider Infura or Ganache
```
### Ethereum solidity contract source code
Path: /contracts/contract.sol
### Ethereum contract address
example: [ropsten network (0x23438910af7a62b2b9257f9fc222d590ceb95eb9)](https://ropsten.etherscan.io/address/0x23438910af7a62b2b9257f9fc222d590ceb95eb9)
## Installation
### Dependencies
```bash
npm install
```
### App installation (Linux)
```bash
npm run install:all
```
## Usage
### Help info
```bash
eth-ipfs-storage --help
```
### add content and set cid to Ethereum contract
```bash
eth-ipfs-storage set --file ./example/chainsafe.json --privateKey
```
### get cid from Ethereum contract
```bash
eth-ipfs-storage get
```
## Credits
Thanks to you for this challenge!