diff --git a/scripts/auth.sh b/scripts/auth.sh deleted file mode 100644 index c20cd38..0000000 --- a/scripts/auth.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -set -euo pipefail -pushd $(dirname "$0")/.. - -need_cmd() { - if ! check_cmd "$1"; then - printf "need '$1' (command not found)" - exit 1 - fi -} - -check_cmd() { - command -v "$1" &>/dev/null -} - -need_cmd jq - -export RPC_URL="http://0.0.0.0:5050" - -export WORLD_ADDRESS=$(cat ./manifests/dev/deployment/manifest.json | jq -r '.world.address') - -echo "---------------------------------------------------------------------------" -echo world : $WORLD_ADDRESS -echo "---------------------------------------------------------------------------" - -# enable system -> models authorizations -sozo auth grant --world $WORLD_ADDRESS --wait writer \ - Beast,bytebeasts::systems::actions::actions\ - >/dev/null - -echo "Default authorizations have been successfully set."