kopia lustrzana https://github.com/bugout-dev/dao
1.6 KiB
1.6 KiB
Set up the Terminus contract
This checklist describes how to activate the Terminus contract so that projects can start using it for decentralized authorization.
Environment variables
export DAO_NETWORK=polygon-test
export DAO_OWNER=.secrets/dao-dev.json
export DAO_OWNER_ADDRESS=$(jq -r .address $DAO_OWNER)
export GAS_PRICE="35 gwei"
export CONFIRMATIONS=2
export MOONSTREAM_DIAMOND=$(jq -r .Diamond .secrets/moonstream-mumbai-diamond.json)
export TERMINUS_DIAMOND=$(jq -r .Diamond .secrets/terminus-mumbai-diamond.json)
export TERMINUS_POOL_BASE_PRICE=1000000000000000000
Set up Terminus so that people can create pools
- Set pool base price:
dao terminus set-pool-base-price \
--network $DAO_NETWORK \
--address $TERMINUS_DIAMOND \
--sender $DAO_OWNER \
--gas-price "$GAS_PRICE" \
--confirmations $CONFIRMATIONS \
--new-base-price $TERMINUS_POOL_BASE_PRICE
-
Check pool base price:
dao terminus pool-base-price --network $DAO_NETWORK --address $TERMINUS_DIAMOND
-
Pool base price should be same as
$TERMINUS_POOL_BASE_PRICE
-
Set up payment token:
dao terminus set-payment-token \
--network $DAO_NETWORK \
--address $TERMINUS_DIAMOND \
--sender $DAO_OWNER \
--gas-price "$GAS_PRICE" \
--confirmations $CONFIRMATIONS \
--new-payment-token $MOONSTREAM_DIAMOND
-
Check payment token:
dao terminus payment-token --network $DAO_NETWORK --address $TERMINUS_DIAMOND
-
Payment token should be same as
$MOONSTREAM_DIAMOND