Tested with Flextesa. Tezos client commands reminder: https://chrispinnock.com/tezos/octezclient/
docker run --rm --name tezos-sandbox --detach -p 20000:20000 \
-e block_time=10 \
-e flextesa_node_cors_origin='*' \
oxheadalpha/flextesa:latest nairobibox start
(Replace nairobibox
withe the current Flextesa's box)
Check current running version:
docker exec tezos-sandbox octez-node --version
Check available accounts:
docker exec tezos-sandbox octez-client list known contracts
It should list the 3 embedded accounts:
baker0: tz1YPSCGWXwBdTncK2aCctSZAXWvGsGwVJqU
bob: tz1aSkwEot3L2kmUvcoxzjMomb9mvBNuzFK6
alice: tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb
Set env var to start app:
REACT_APP_NETWORK=custom
Inject proposal using baker0
default Flextesa baker account.
docker exec tezos-sandbox octez-client submit proposals for baker0 PtTezocracyTestDoNotUpvotexxxxxxxxxxxxxxxxxxxBg1e2s --force
Another one, if needed: PtTezocracyTestDoNotUpvoteyyyyyyyyyyyyyyyyyyy7FsxXb
.
You can get Alice's private key with the following command:
docker exec tezos-sandbox nairobibox info
(Replace nairobibox
withe the current Flextesa's box)
And use it to import Alice's account in your favorite wallet.
You can now connect Tezocracy UI with your wallet.
baker0
has injected the proposal, so he can't vote any more. We register alice
as delegate to vote.
(Don't forget to import alice account in your wallet)
docker exec tezos-sandbox octez-client register key alice as delegate
You can now vote as Alice.
It is not possible to import Ledger account in Flextesa because of Docker limitations regarding USB connection. We will use a workaround to do that.
- Install octez-client (https://tezos.gitlab.io/introduction/howtoget.html) on your computer. For ledger operation, you will run it using
--endpoint http://localhost:20000
to be connected to Flextesa network. - Run Flextesa as usual with Docker
- In the octez-client terminal, import your Ledger account with
octez-client --endpoint http://localhost:20000 list connected ledgers
then follow instructions at https://tezos.gitlab.io/user/key-management.html - In Flextesa terminal, send at least 6000 tez to your Ledger from any other account
- In octez-client terminal, register your Ledger as delegate
- In Flextesa terminal, inject proposal
- You can now connect on UI with your Ledger and vote.