diff --git a/README.md b/README.md index c36d484..3fb60d9 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ $ npm install -g gnet ``` Send transaction -$ gnet send
+$ gnet send
``` @@ -59,7 +59,7 @@ Be sure you launch the Gallactic and put all contracts on the contract folder be ``` Call smart contract's functions: -$ gnet call +$ gnet call // Yet to be implemented The parameters are pretty clear the only thing you need to care is parameters_list, its format must be like this: var1,var2,...,varK (comma separated) @@ -141,19 +141,19 @@ The parameters are pretty clear the only thing you need to care is parameters_li (Unsafe!) Do regular transaction to a contract, you need pass the private key of sender and address of contract you need to initialize a project before using this command. - bond|bnd [options]
- (safe) Do Bond transaction, you need pass the private key of sender and address of reciever + bond|bnd [options] + (safe) To do Bond transaction, you need pass the validator publickey, stake amount, transaction fee, and private key of sender you may need to initialize a project before using this command. - unbond|ubnd [options]
- (safe) Do Unbond transaction, you need pass the private key of sender and address of reciever + unbond|ubnd [options]
+ (safe) To do Unbond transaction, you need pass account address, stake amount, transaction fee and private key of the validator you may need to initialize a project before using this command. send|snd [options]
- (safe) Do regular transaction, you need pass the private key of sender and address of reciever + (safe) To do regular transaction, you need to pass the address of the receiver, amount and the private key of sender you need to initialize a project before using this command. - call|calf [parameters_list] + call|calf [parameters_list] //Yet to be implemented Calls the function of specefic contract, you need to pass the list of parameters like this var1,var2,...,varK ,comma separated, You need to initialize a project before using this command. diff --git a/index.js b/index.js index bdadafe..a7fde10 100755 --- a/index.js +++ b/index.js @@ -146,21 +146,21 @@ program .action((priv_key,data,address,fee,gas_limit,cmd) => actions.transact(priv_key,data,address,fee,gas_limit,cmd.unsafe)); program - .command('bond ') + .command('bond ') .option('-u, --unsafe', 'unsafe transaction') //TODO (unsafe should be implemented using privatekey) .alias('bnd') .description('\n(safe) Do Bond transaction, you need pass the validator publickey, stake amount, transaction fee, and private key of sender \ \nyou may need to initialize a project before using this command.\n\n') - .action((public_key,amount,fee,priv_key) => actions.broadcastBond(public_key,parseInt(amount),parseInt(fee),priv_key)); + .action((public_key,stakes,fee,priv_key) => actions.broadcastBond(public_key,parseInt(stakes),parseInt(fee),priv_key)); program - .command('unbond
') + .command('unbond
') .option('-u, --unsafe', 'unsafe sending transaction') .alias('ubnd') .description('\n(safe) Do Unbond transaction, you need pass account address, stake amount, transaction fee and private key of the validator \ \nyou may need to initialize a project before using this command.\ \nNote: you should be a validator to do unbond transaction.\n\n') - .action((address,amount,fee,priv_key) => actions.broadcastUnbond(address,parseInt(amount),parseInt(fee),priv_key)); + .action((address,stakes,fee,priv_key) => actions.broadcastUnbond(address,parseInt(stakes),parseInt(fee),priv_key)); program .command('send
')