Compare commits
No commits in common. "1bbf26ceb1c8676fd061f081ffbe5c292dc7e3cc" and "d1a794fe3776a77446bedbff6d438f47ac150793" have entirely different histories.
1bbf26ceb1
...
d1a794fe37
5
commands_two.txt
Normal file
5
commands_two.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
KEY_CREATE - userkeyA custodialstore
|
||||||
|
KEY_CREATE - userkeyB custodialstore
|
||||||
|
VOUCHER_CREATE - KFS KenyaForestService 6
|
||||||
|
VOUCHER_MINT - KFS 50000000 userkeyA
|
||||||
|
VOUCHER_TRANSFER - KFS 5000000 userkeyB userkeyA
|
||||||
6
parse.py
6
parse.py
@ -311,7 +311,6 @@ class Router:
|
|||||||
pi = Pipe(False)
|
pi = Pipe(False)
|
||||||
po = Process(target=self.__wrap, args=(cmd.i, fn, cmd,))
|
po = Process(target=self.__wrap, args=(cmd.i, fn, cmd,))
|
||||||
self.__r[cmd.i] = (po, pi,)
|
self.__r[cmd.i] = (po, pi,)
|
||||||
time.sleep(5)
|
|
||||||
po.start()
|
po.start()
|
||||||
|
|
||||||
|
|
||||||
@ -374,6 +373,7 @@ def load_gas(address,nonce):
|
|||||||
command = (
|
command = (
|
||||||
f'cast send {address} '
|
f'cast send {address} '
|
||||||
f'--value {gas_topup} '
|
f'--value {gas_topup} '
|
||||||
|
f'--nonce {nonce} '
|
||||||
f'--private-key {master_private_key} '
|
f'--private-key {master_private_key} '
|
||||||
f'--rpc-url {rpc} '
|
f'--rpc-url {rpc} '
|
||||||
f' --json '
|
f' --json '
|
||||||
@ -381,7 +381,7 @@ def load_gas(address,nonce):
|
|||||||
result = subprocess.run(command, shell=True, capture_output=True, text=True)
|
result = subprocess.run(command, shell=True, capture_output=True, text=True)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
raise subprocess.CalledProcessError(result.returncode, command, output=result.stdout, stderr=result.stderr)
|
raise subprocess.CalledProcessError(result.returncode, command, output=result.stdout, stderr=result.stderr)
|
||||||
|
|
||||||
message = f"Added some gas to {address}"
|
message = f"Added some gas to {address}"
|
||||||
printMessage(message)
|
printMessage(message)
|
||||||
|
|
||||||
@ -421,7 +421,7 @@ def key_create_handler(cmd):
|
|||||||
else:
|
else:
|
||||||
private_key = cmd.k
|
private_key = cmd.k
|
||||||
address = w3.eth.account.from_key(private_key).address
|
address = w3.eth.account.from_key(private_key).address
|
||||||
time.sleep(5)
|
|
||||||
load_gas(address,nonce)
|
load_gas(address,nonce)
|
||||||
store_key_in_keystore(private_key, key_name, address)
|
store_key_in_keystore(private_key, key_name, address)
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
KEY_CREATE - userkeyA custodialstore
|
|
||||||
KEY_CREATE - userkeyB custodialstore
|
|
||||||
VOUCHER_CREATE - FDR FARMDRIVE 6
|
|
||||||
VOUCHER_MINT - FDR 50000000 userkeyB
|
|
||||||
VOUCHER_TRANSFER - FDR 5000000 userkeyA userkeyB
|
|
||||||
Loading…
Reference in New Issue
Block a user