This repo contains the Second State SSVM runtime for the Oasis platform. The runtime implements an Ethereum flavored WebAssembly(ewasm) execution environment defined here.
Use second-state/oasis-ssvm-runtime (official example-runtime will build fail because Cargo.lock outdated).
In the following instructions, the top-level directory is the directory where the code has been checked out.
We use official docker image(oasisprotocol/oasis-core-dev
) for developing and testing.
If you want to setup the environment manually, please refer to the instructions from oasis-core repository.
> git clone --single-branch --branch master [email protected]:second-state/oasis-ssvm-runtime.git
Folder struct
./
└── oasis-ssvm-runtime
Inside official build environment
command come from oasis-core/Makefile target
docker-shell
> docker run -t -i \
--name oasis-core \
--security-opt apparmor:unconfined \
--security-opt seccomp=unconfined \
-v $(pwd):/code \
-w /code \
oasisprotocol/oasis-core-dev:master \
bash
We need prepare the oasis-core-tools
before run oasis-ssvm-runtime
(docker) cd /code/oasis-ssvm-runtime && make download-artifacts
To build everything required for running the runtime, simply execute in the top-level directory:
(docker) cd /code/oasis-ssvm-runtime && make
To run a local Oasis network "cluster," deploy the runtime, and run the test client, run:
Run test-e2e
(docker) cd /code/oasis-ssvm-runtime && make test-e2e