youaresoroman / chainsafe-technical-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

Installation

Dependencies

npm install

App installation (Linux)

npm run install:all

Usage

Help info

eth-ipfs-storage --help

add content and set cid to Ethereum contract

eth-ipfs-storage set --file ./example/chainsafe.json --privateKey <ethereum account private key>

get cid from Ethereum contract

eth-ipfs-storage get

Credits

Thanks to you for this challenge!

About


Languages

Language:TypeScript 86.5%Language:JavaScript 7.1%Language:Solidity 4.0%Language:Shell 2.4%