Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luisvid/openlaw-sale-agreement
https://github.com/luisvid/openlaw-sale-agreement
blockchain dapp ethereum ethereum-blockchain openlaw openlaw-markup-language solidity solidity-contracts
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/luisvid/openlaw-sale-agreement
- Owner: luisvid
- License: mit
- Created: 2019-03-26T20:56:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T17:20:08.000Z (about 2 years ago)
- Last Synced: 2024-11-13T00:27:57.431Z (3 months ago)
- Topics: blockchain, dapp, ethereum, ethereum-blockchain, openlaw, openlaw-markup-language, solidity, solidity-contracts
- Language: JavaScript
- Size: 14.3 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## Start a new DApp with Truffle’s React Box
mkdir openlaw-api-tutorial
cd openlaw-api-tutorial
truffle unbox reactTest the Truffle’s React Box in Ganache
run ganache
update files
- truffle-cofig.js (add network config host: "127.0.0.1", port: 7545,)
- client/src/utils/getWeb3.js (line 29)Migrate account in Metamask with Ganche mnemonic
Contract compilation and deploy
truffle compile
truffle migrate --resetRun Dapp
on /client folder
npm run start-------------
## OpenLaw API Sale AgreementOpenLaw template name: “Sale Agreement - LV”
Once the Truffle’s React Box works follow this tutorial:
OpenLaw — Build a complete Dapp with the OpenLaw API + Truffle + React.js.
https://medium.com/@OpenLawOfficial/openlaw-api-tutorial-build-a-complete-dapp-with-the-openlaw-api-truffle-react-js-d064717ad41d?fbclid=IwAR1GTEXx2p9oezQAgyN9sHWvA2dLOioPewi0Y-NAnnjIBf9U6CjiHZ9f2D8In the .env file create a MNEMONIC and INFURA_API_KEY variable. It should be your own mnemoic and Infura API Key (Note: do not put quotes around the mnemonic).
- If there is an error when compiling the contract with truffle-hdwallet-provider, try to execute this:
npm install truffle-hdwallet-provider
instead of this:
npm install truffle-hdwallet-provider@web3-one- Contract compilation and deploy
rm -r build/
truffle compile
truffle migrate --reset --network rinkeby- Run Dapp
on /client folder
npm run startTest Data
Seller Ethereum Address
0xE91B4c3F95DFe54c18874771C7d1C9EE3AE00b8f
[email protected]Buyer Ethereum Address
0xFE3e5D87904EC3A15020232C88b653a997Ffaad0
[email protected]