Note: this is a very early version, you may need to setup some of the dependencies manually.
- Run
cd aspect
- Run
npm install
to install dependencies of assembly script - Run
npm run asbuild:release
to build Aspect into WASM bytecode - Ignore the warnings for now, find out the
release.wasm
inbuild
folder, that's your aspect bytecode
- Run
git clone https://github.com/artela-network/web3.js.git
to clone the web3.js code to your local folder - By default, the branch should be
1.x
, if not, switch to it - Run
npm install
to install dependencies - Run
npm run build
to build the web3.js files - Run
sh link.sh
to link the packages to your local npm cache
- Start Artela node first
- Run
cd test
- change the value of
web3jsDir
variable inlink.sh
to the path of Artela web3.js - Run
sh link.sh
to link the packages - Run
node index.js
to run the test, the test will do the following things:- deploy an aspect
- bind the aspect to a smart contract
- call smart contract and trigger the aspect
- confirm '$GOPATH/src/github.com/artela-network/artelasdk/'
- install solc
brew tap ethereum/ethereum brew install solidity npm install sloc brew intall buf
sh script/build.sh
cd build
sh run-test.sh