Skip to content

Instantly share code, notes, and snippets.

@Pishoy
Last active June 3, 2019 10:01
Show Gist options
  • Save Pishoy/8c1c5383ac34ff08f5223ecb91c64827 to your computer and use it in GitHub Desktop.
Save Pishoy/8c1c5383ac34ff08f5223ecb91c64827 to your computer and use it in GitHub Desktop.
JSX> c = j.clients.tfchain.new(name='my_client', network_type='TEST')
JSX> w = c.wallets.new("my_wallet2")
JSX> w.see
JSX> w.seed
'lift sheriff ocean apology word direct turkey hood section shrimp when easy law fall school excite hurry carpet found quick leisure lumber soft lift'
JSX> w.address
'011835c154e9aef8d8989b8ea3f65327dae63f1d5da2bfe4606f4274b96e23da18d07b540e47d6'
JSX> w.balance
wallet balance on height 289270 at 2019/06/03 08:27:46
0 TFT available and 0 TFT locked
Unconfirmed: 1500 TFT available 0 TFT locked
JSX> w.balance
wallet balance on height 289270 at 2019/06/03 08:27:46
0 TFT available and 0 TFT locked
Unconfirmed: 1500 TFT available 0 TFT locked
JSX> w.balance
wallet balance on height 289273 at 2019/06/03 08:37:54
1500 TFT available and 0 TFT locked
JSX> res
JSX>
JSX> result = w.threebot.record_new(months=1,names=["my3botmywallet2.example"],addresses=["example.org"],key_index=0)
JSX> w.balance
wallet balance on height 289275 at 2019/06/03 08:39:00
1200 TFT available and 0 TFT locked
Unconfirmed: 199.9 TFT available 0 TFT locked
Unconfirmed Balance Deduction: -300 TFT
JSX> w.balance
wallet balance on height 289276 at 2019/06/03 08:41:58
1399.9 TFT available and 0 TFT locked
JSX> result = w.capacity.reserve_zos_vm(email='abdelmab@codescalers.com',threebot_id='my3botmywallet2.example',location='cairo_office',size=1)
Mon 03 08:43:01 GedisClient.py - 138 - j.clients.gedis:gedisclient : redisclient: notary.grid.tf:5000
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/sandbox/lib/jumpscale/Jumpscale/clients/blockchain/tfchain/TFChainCapacity.py", line 125, in reserve_zos_vm
return self._process_reservation(reservation, threebot_id, source=source, refund=refund)
File "/sandbox/lib/jumpscale/Jumpscale/clients/blockchain/tfchain/TFChainCapacity.py", line 225, in _process_reservation
response = self._notary_client.register(threebot_id, signature.message, signature.signature)
File "/sandbox/lib/jumpscale/Jumpscale/clients/blockchain/tfchain/TFChainCapacity.py", line 27, in _notary_client
self._notary_client_ = c.actors.notary_actor
File "/sandbox/lib/jumpscale/DigitalMe/clients/gedis/GedisClient.py", line 84, in actors
self._actorsmeta[actor_name] = j.servers.gedis._cmds_get(key, data)
File "/sandbox/lib/jumpscale/DigitalMe/servers/gedis/GedisFactory.py", line 41, in _cmds_get
return GedisCmds(namespace=namespace, name=name, data=data)
File "/sandbox/lib/jumpscale/DigitalMe/servers/gedis/GedisCmds.py", line 50, in __init__
self.data = self.schema.get(data=data)
File "/sandbox/lib/jumpscale/Jumpscale/data/schema/Schema.py", line 300, in get
return j.data.serializers.jsxdata.loads(data)
File "/sandbox/lib/jumpscale/Jumpscale/data/serializers/SerializerJSXDataObj.py", line 36, in loads
raise RuntimeError("could not find schema with md5:%s" % md5)
RuntimeError: could not find schema with md5:7f4004110d42110d6a11111611cd267f
could not find schema with md5:7f4004110d42110d6a11111611cd267f
root@d6acd5153fab:/#
root@d6acd5153fab:/# cd /sandbox/code/github/threefoldtech/jumpscaleX/
root@d6acd5153fab:/sandbox/code/github/threefoldtech/jumpscaleX# git pull
remote: Enumerating objects: 241, done.
remote: Counting objects: 100% (65/65), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 25 (delta 20), reused 25 (delta 20), pack-reused 0
Unpacking objects: 100% (25/25), done.
From https://github.com/threefoldtech/jumpscaleX
* [new branch] development_simple -> origin/development_simple
Already up to date.
root@d6acd5153fab:/sandbox/code/github/threefoldtech/jumpscaleX# git log -1
commit 48171a74ec9c0a53b261041a63fcab48cdb997cb (HEAD -> development, origin/development)
Author: Christophe de Carvalho <christophe.dcpm@gmail.com>
Date: Tue May 28 12:42:59 2019 +0200
change explorer node schema field to list of string
root@d6acd5153fab:/sandbox/code/github/threefoldtech/jumpscaleX# cd log -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment