2019-03-12 21:56:08 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
rm -rf ~/.local/share/nucypher
|
|
|
|
|
|
|
|
# Set Upgrade Secrets
|
2019-06-04 11:41:20 +00:00
|
|
|
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'
|
2019-06-04 11:41:20 +00:00
|
|
|
export NUCYPHER_ADJUDICATOR_SECRET='debuggerdebugger'
|
2019-03-12 21:56:08 +00:00
|
|
|
|
|
|
|
# Deploy Main Contracts
|
2019-07-25 04:26:20 +00:00
|
|
|
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
|
2019-07-25 04:26:20 +00:00
|
|
|
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
|
2019-08-14 02:17:08 +00:00
|
|
|
nucypher ursula stake --value 15000 --lock_periods 30 --force
|
2019-03-12 21:56:08 +00:00
|
|
|
|
|
|
|
# View Active Stakes
|
|
|
|
nucypher ursula stake --list
|