Test Environment

Our test environment requires Docker and Docker Compose to run. Visit their offical site to setup Docker up on your local machine.

We created a custom test environment to help you test your wrappers with a Tezos sandbox network. The source code for our test env is located under ./tezos/test-env in the polywrap-tezos repository.

To use this for testing your wrapper, locally create an .env file with the following content

TEZOS_POLYWRAP_PORT=20000 
TEZOS_POLYWRAP_BLOCK_TIME=5 
TEZOS_POLYWRAP_PROTOCOL=jakarta
TEZOS_POLYWRAP_PLATFORM=linux/arm64
TEZOS_POLYWRAP_ROOT_PATH=/

Then run yarn to install dependencies and yarn link to create a symlink to the test env package.

Run a test with

npm run test:env:up

Last updated