Hello Everybody,
I am still struggeling to get my developer environment up and running.
But I make progress (yey). Here is what I tried so far and where I got stuck:
Docker Container on Windows:
OS: Win10
Shell: PowerShell
Docker: 20.10.5
What did I do?
git clone https://github.com/harmony-one/mcl.git
git clone https://github.com/harmony-one/bls.git
git clone https://github.com/harmony-one/harmony.git
Then I ran as
Result:
> [24/37] RUN eval "$(~/bin/gimme 1.16.3)" ; scripts/go_executable_build.sh -S:
#28 0.348 go version go1.16.3 linux/amd64
#28 0.418 building ./cmd/harmony
#28 0.575 api/service/legacysync/syncing.go:14:2: missing go.sum entry for module providing package github.com/Workiva/go-datastructures/queue (imported by github.com/harmony-one/harmony/api/service/legacysync); to add:
#28 0.575 go get github.com/harmony-one/harmony/api/service/legacysync
#28 0.575 internal/blsgen/kms.go:10:2: missing go.sum entry for module providing package github.com/aws/aws-sdk-go/aws (imported by github.com/harmony-one/harmony/internal/blsgen); to add:
…
executor failed running [/bin/bash -c eval "$(~/bin/gimme ${GIMME_GO_VERSION})" ; scripts/go_executable_build.sh -S]: exit code: 1
Docker Container on Ubuntu
OS: Ubuntu 20.04.2 LTS
Shell: GNU bash, version 4.4.0(1)-release (x86_64-unknown-linux-gnu)
Docker: Docker version 20.10.7, build f0df350
Step 38/57 : RUN eval "$(~/bin/gimme ${GIMME_GO_VERSION})" ; scripts/go_executable_build.sh -S
---> Running in 3192770892e7
go version go1.16.3 linux/amd64
building ./cmd/harmony
api/service/legacysync/syncing.go:14:2: missing go.sum entry for module providing package github.com/Workiva/go-datastructures/queue (imported by github.com/harmony-one/harmony/api/service/legacysync); to add:
go get github.com/harmony-one/harmony/api/service/legacysync
...
The command '/bin/bash -c eval "$(~/bin/gimme ${GIMME_GO_VERSION})" ; scripts/go_executable_build.sh -S' returned a non-zero code: 1
Here also the go_executable_build.sh is fails to run.
In my understanding, this all runs inside the docker container and should
therefore execute no matter of my setup. Or am I mistaken?
Localnet with make debug works, but cannot access Funds
On Ubuntu I get the local net with ‘make debug’ running.
And can create wallets with MetaMask and OneWallet great success!
But then I was in desperate need for Funds and on Discord CatterM had the same Problem and Ganesha already replied, that we may use the preexisting wallets, that are signing blocks, thus generating funds having keystore files @.hmy/keystore without a passphrase.
Importing file into wallet
I couldn’t import those files directly into MetaMask nor One Wallet:
- MetaMask requires a passphrase for keystore files.
- One Wallet (connected to Localnet) told me that the file is invalid.
Extracting private key from files and then importing into wallet
I wrote a small node script to extract the private key from the keystore files with web3:
const Web3 = require('web3');
let web3 = new Web3('ws://localhost:9800');
console.log(web3.eth.accounts.decrypt( keystoreJSON, "" )
Which worked just fine. But the wallet had a ONE balance of 0.
That’s my current learning progess
Greetings,
Sev