Skip to content

skalenetwork/helper-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SKALE Helper bash scripts

Export the vars in .env into your shell: export $(egrep -v '^#' .env | xargs)

Direct usage

Available scripts

Run specified version of SKALE Manager and login into it

export MANAGER_TAG=
./helper-scripts/run_skale_manager.sh

Deploy test skale-manager on ganache

export ETH_PRIVATE_KEY=
export MANAGER_TAG=
./helper-scripts/deploy_test_manager.sh

Deploy test skale-manager and IMA on ganache

export ETH_PRIVATE_KEY=
export MANAGER_TAG=
./helper-scripts/deploy_test_ima.sh

Deploy test skale-manager + skale-allocator on ganache

export ETH_PRIVATE_KEY=
export MANAGER_TAG=
export ALLOCATOR_TAG=
./helper-scripts/deploy_test_allocator.sh

Deploy skale-manager

export ETH_PRIVATE_KEY=
export MANAGER_TAG=
export ENDPOINT=
export NETWORK=
export GAS_PRICE=
./helper-scripts/deploy_manager.sh

Deploy IMA

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

Deploy skale-manager and skale-allocator

export ETH_PRIVATE_KEY=
export MANAGER_TAG=
export ALLOCATOR_TAG=
export ENDPOINT=
export NETWORK=
./helper-scripts/deploy_manager_allocator.sh

Deploy skale-allocator and link to skale-manager

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

Calculate version

export BRANCH=
export VERSION=
./helper-scripts/calculate_version.sh

Available functions

All scripts that are available in the main helper file:

  • deploy_manager
  • deploy_allocator
  • run_ganache
  • run_sgx_simulator

Usage example

source ./helper.sh
deploy_manager $MANAGER_TAG $ENDPOINT $ETH_PRIVATE_KEY $ETHERSCAN

Embeded usage

Add helper-scripts to your repo

1.Add git submodule to your repo

git submodule add -b develop https://github.com/skalenetwork/helper-scripts.git
git submodule init
  1. Update submodule later on
git submodule update --remote

Add submodules to your Github Actions build

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

About

No description or website provided.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •