123456789101112131415161718 |
- #!/usr/bin/env bash
- # Must be run on the clean development chain.
- # It prepares an environment, creates a storage bucket and links it to the
- # 'static council bag'.
- SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
- cd $SCRIPT_PATH
- CLI=../bin/run
- ${CLI} dev:init
- ${CLI} leader:update-bag-limit -l 7 --dev
- ${CLI} leader:update-voucher-limits -o 10000 -s 1000000000 --dev
- BUCKET_ID=`${CLI} leader:create-bucket -i=0 -a -n=10000 -s=1000000000 --dev`
- ${CLI} operator:accept-invitation -w=0 -i=${BUCKET_ID} --dev -t=5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- ${CLI} leader:update-bag -a=${BUCKET_ID} -i static:council --dev
- ${CLI} operator:set-metadata -w 0 -i=${BUCKET_ID} -e http://localhost:3333 --dev
|