An online marketplace for second-hand electronic goods with decentralised logistics
Do not use for production!
Medium article: https://medium.com/@tejas23682320/bazaarex-a-decentralised-marketplace-built-on-fluence-4102697377ae Gitbook: https://xpact.gitbook.io/bazaarex/
cd nft_contract
npm install
truffle compile
truffle develop
- This will start the RPC server and development blockchain environmentmigrate
in Truffle console to deploy contract- Note down the ERC721 contract address and owner address
To log requests on the Truffle RPC server, run
truffle develop --log
- Change
CON_OWNER
andCON_ADD
variables to owner and contract address respectively insrc/nft_contract_adapter.rs
./build.sh
Note: For demo purposes, each account registered receives 1 ETH from the contract owner
/src
BazaarEx logic code/curl_adapter
Fluence curl adapter/web3
Custom Web3 library modified from Fluence example/ethereum-tx-sign
- Custom raw transaction signing library modified from ethereum-tx-sign to use libsecp256k1/nft_contract
Truffle project with ERC721 Solidity files