IT As Energy Shop is a jumpscale package allows to exchange bitcoins and (later) more coins like eth to TFT.
rm -r ~/.electrum/ # Avoid using this if u already using any stored wallet
electrum daemon -d --testnet # Start daemon on testnet server
Clone Project
git clone [email protected]:threefoldfoundation/tftshop.git
cd tftshop
poetry shell
poetry install
-
Create new wallet
# Make sure to store output electrum create -w ~/.electrum/testnet/WALLET_NAME --testnet
-
Load Wallet
electrum load_wallet -w ~/.electrum/testnet/WALLET_NAME --testnet
-
Generate [Master Public Key]
mpk
for wallet# output is the master public key that we are looking for. electrum getmpk -w ~/.electrum/testnet/WALLET_NAME --testnet
-
Using
jsng shell
and add your# Run jsng on terminal inside `poetry shell` j.core.config.set("tftshop_mpk", "YOUR MASTER PUBLIC KEY") # Register your stellar *tft wallet* IMPORTANT!! j.clients.stellar.new("tftshop_wallet", "your secret")
We are using the same mechanism from threebot backup service, so to have a threebot system backup, you need to configure a restic client
with the name systembackupclient
systembackupclient = j.tools.restic.get("systembackupclient", repo="$repo_url", password="$backup_password", extra_env={"AWS_ACCESS_KEY_ID": "$AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY": "$AWS_ACCESS_KEY_ID"})"
and it will make sure to backup
~/.config/jumpscale/
, "~/sandbox/cfg/
and ~/.ssh/
exclulding the ~/.config/jumpscale/logs
directory
On OSX, after installing the Electrum app, the run_electrum
command is avalable in the /Applications/Electrum.app/Contents/MacOS
folder.
threebot start --local
Check UI: https://localhost:8443/
-
Login using ThreeFold Connector
-
Go to Packages Page
-
Click on
+ ADD
button on top right corner. -
Add package path for e.g
/home/mohamed/Desktop/tftshop/jumpscale/packages/gettft
-
Click
submit
button -
Visit Ui on https://localhost:8443/gettft/
build the docker image
docker build -t tftshop:$(git describe --abbrev=0 --tags | sed 's/^v//') .
Upload the image to the kubernetes machine or to a repository and override the image in your values.yaml then.
helm install tftshop -f <yourvaluesfile.yaml> helmcharts/tftshop
It is important that the jsngmodel and the electrum wallet data are not lost. If so, we do not know who sent the other crypto or deposit addresses can be distributed multiple times.
To send emails after each successful operation, this uses notifier service in admin panel
- ENV:
- email_host: example: "smtp.gmail.com"
- email_port: example: "587"
- email_username
- email_password
- Edit in
limits.json