How to build arisen.contracts

Preconditions

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

arisen-cpp -v

Build contracts using the build script

To build contracts alone

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.

Build contracts manually

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 ..

After build:

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

How to deploy the arisen.contracts

To deploy arisen.bios contract execute the following command:

arisecli set contract testerbios you_local_path_to/arisen.contracts/build/contracts/arisen.bios/ -p testerbios

To deploy arisen.msig contract execute the following command:

arisecli set contract testermsig you_local_path_to/arisen.contracts/build/contracts/arisen.msig/ -p testermsig

To deploy arisen.system contract execute the following command:

arisecli set contract testersystem you_local_path_to/arisen.contracts/build/contracts/arisen.system/ -p testersystem

To deploy arisen.token contract execute the following command:

arisecli set contract testertoken you_local_path_to/arisen.contracts/build/contracts/arisen.token/ -p testertoken

To deploy arisen.wrap contract execute the following command:

arisecli set contract testerwrap you_local_path_to/arisen.contracts/build/contracts/arisen.wrap/ -p testerwrap