Repository for ethlance.com
Ethereum Smart Contracts are at
Running on localhost
To start autocompiling smart contracts (requires solc installed):
lein auto compile-solidity
testrpc --port 8549
Start Clojurescript browser REPL, first start a clojure repl
When a clojure prompt is present, type:
The clojurescript repl will appear once you navigate to http:://localhost:6229
ethlance.el on how to run the above commands in Emacs via
Make sure in ethlance.db/default-db you have the following configuration:
:load-node-addresses? true :node-url "http://localhost:8549"
Visit localhost:6229 in your browser without MetaMask. I use the Chrome Incognito window.
To redeploy all smart contracts, run the following in REPL.
(in-ns 'ethlance.events) (dispatch [:reinitialize])
After you see in browser console all contracts have been deployed, refresh the page.
To redeploy only single or few specific smart contracts run:
;; Redeploys and hot swaps EthlanceUser smart contract. No need to refresh page. (dispatch [:reinitialize [:ethlance-user]])
To build advanced compilation run:
lein clean && lein cljsbuild once min
Anyone is welcome to contribute to the ethlance project, here are some brief guidelines:
- Squash commits
- Reference issue numbers in your pull request
- Rebase your changes on upstream (
git remote add upstream https://github.com/madvas/ethlance.git) master before pushing (
git pull --rebase upstream master)
- Make changes in a separate well-named branch in your forked repo like