nucypher/scripts/deploy_then_stake.sh

25 lines
735 B
Bash
Raw Normal View History

2019-03-12 21:56:08 +00:00
#!/usr/bin/env bash
rm -rf ~/.local/share/nucypher
# Set Upgrade Secrets
export NUCYPHER_STAKING_ESCROW_SECRET='debuggerdebugger'
2019-03-12 21:56:08 +00:00
export NUCYPHER_POLICY_MANAGER_SECRET='debuggerdebugger'
export NUCYPHER_USER_ESCROW_PROXY_SECRET='debuggerdebugger'
export NUCYPHER_ADJUDICATOR_SECRET='debuggerdebugger'
2019-03-12 21:56:08 +00:00
# Deploy Main Contracts
nucypher-deploy contracts --provider ipc:///tmp/geth.ipc --poa
2019-03-12 21:56:08 +00:00
# Set Ursula Password
export NUCYPHER_KEYRING_PASSWORD='debuggerdebuggerdebugger'
# Initialize New Ursula
nucypher ursula init --provider ipc:///tmp/geth.ipc --poa --network TEMPORARY_DOMAIN --rest-host 0.0.0.0
2019-03-12 21:56:08 +00:00
# Inline Staking
nucypher ursula stake --value 15000 --lock_periods 30 --force
2019-03-12 21:56:08 +00:00
# View Active Stakes
nucypher ursula stake --list