Ensure an appropriate version of arisen.cdt is installed. Installing arisen.cdt from binaries is sufficient, follow the arisen.cdt installation instructions steps to install it. To verify if you have arisen.cdt installed and its version run the following command
Run the build.sh script in the top directory to build all the contracts.
1.Ensure an appropriate version of arisen has been built from source and installed. Installing arisen from binaries is not sufficient. You can find instructions on how to do it here in section Building from Sources.
2.Run the build.sh script in the top directory with the -t flag to build all the contracts and the unit tests for these contracts.
To build the arisen.contracts execute the following commands.
On all platforms except macOS:
cd you_local_path_to/arisen.contracts/ rm -fr build mkdir build cd build cmake .. make -j$( nproc ) cd ..
cd you_local_path_to/arisen.contracts/ rm -fr build mkdir build cd build cmake .. make -j$(sysctl -n hw.ncpu) cd ..
If the build was configured to also build unit tests, the unit tests executable is placed in the build/tests folder and is named unit_test.
The contracts (both .wasm and .abi files) are built into their corresponding build/contracts/ folder.
Finally, simply use arisecli to set contract by poi
arisecli set contract testerbios you_local_path_to/arisen.contracts/build/contracts/arisen.bios/ -p testerbios
arisecli set contract testermsig you_local_path_to/arisen.contracts/build/contracts/arisen.msig/ -p testermsig
arisecli set contract testersystem you_local_path_to/arisen.contracts/build/contracts/arisen.system/ -p testersystem
arisecli set contract testertoken you_local_path_to/arisen.contracts/build/contracts/arisen.token/ -p testertoken
arisecli set contract testerwrap you_local_path_to/arisen.contracts/build/contracts/arisen.wrap/ -p testerwrap
Updated over 1 year ago