Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
export MANAGER_TAG=
./helper-scripts/run_skale_manager.sh
export ETH_PRIVATE_KEY=
export MANAGER_TAG=
./helper-scripts/deploy_test_manager.sh
export ETH_PRIVATE_KEY=
export MANAGER_TAG=
./helper-scripts/deploy_test_ima.sh
export ETH_PRIVATE_KEY=
export MANAGER_TAG=
export ALLOCATOR_TAG=
./helper-scripts/deploy_test_allocator.sh
export ETH_PRIVATE_KEY=
export MANAGER_TAG=
export ENDPOINT=
export NETWORK=
export GAS_PRICE=
./helper-scripts/deploy_manager.sh
Deploys IMA contracts and links them to already deployed skale-manager. Place SM ABIs to the helper-scripts/contracts_data/manager.json
to deploy IMA.
export ETH_PRIVATE_KEY=
export IMA_TAG=
export ENDPOINT=
export NETWORK=
export GAS_PRICE=
./helper-scripts/deploy_ima.sh
export ETH_PRIVATE_KEY=
export MANAGER_TAG=
export ALLOCATOR_TAG=
export ENDPOINT=
export NETWORK=
./helper-scripts/deploy_manager_allocator.sh
You should put manager.json
(ABI of skale-manager) to contracts_data
folder in this repo
export ETH_PRIVATE_KEY=
export ALLOCATOR_TAG=
export ENDPOINT=
export GAS_PRICE=
export NETWORK=
./helper-scripts/deploy_allocator.sh
export BRANCH=
export VERSION=
./helper-scripts/calculate_version.sh
All scripts that are available in the main helper file:
- deploy_manager
- deploy_allocator
- run_ganache
- run_sgx_simulator
source ./helper.sh
deploy_manager $MANAGER_TAG $ENDPOINT $ETH_PRIVATE_KEY
1.Add git submodule to your repo
git submodule add -b develop https://github.com/skalenetwork/helper-scripts.git
git submodule init
- Update submodule later on
git submodule update --remote
You can use this package: https://github.com/marketplace/actions/checkout-submodules
Just add those lines to the pipeline:
steps:
- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@master
with:
remote: true