Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
export MANAGER_TAG=
./helper-scripts/run_skale_manager.shexport ETH_PRIVATE_KEY=
export MANAGER_TAG=
./helper-scripts/deploy_test_manager.shexport ETH_PRIVATE_KEY=
export MANAGER_TAG=
./helper-scripts/deploy_test_ima.shexport ETH_PRIVATE_KEY=
export MANAGER_TAG=
export ALLOCATOR_TAG=
./helper-scripts/deploy_test_allocator.shexport ETH_PRIVATE_KEY=
export MANAGER_TAG=
export ENDPOINT=
export NETWORK=
export GAS_PRICE=
./helper-scripts/deploy_manager.shDeploys 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.shexport ETH_PRIVATE_KEY=
export MANAGER_TAG=
export ALLOCATOR_TAG=
export ENDPOINT=
export NETWORK=
./helper-scripts/deploy_manager_allocator.shYou 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.shexport BRANCH=
export VERSION=
./helper-scripts/calculate_version.shAll 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_KEY1.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 --remoteYou 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