graft-project / graft-ng

Supernode for GRAFT Network - 2nd layer Monero implementation for instant transactions and service brokers
http://graft.network
Other
20 stars 14 forks source link

Graft-wallet-cli: show_transfers command should display public id for stake txes #377

Open Dju01 opened 5 years ago

Dju01 commented 5 years ago
Proposed delivery date: 2019/07/20
Submit Proposal By:
GRFT reward: 100,000
Task scope: wallet, cli

Brief description:

Graft-wallet-cli command show_transfers should

  345862    out(stake)       2019-06-04 14:32:52     50001.0000000000 ec187cfff349f1ec9643b4e9bd39902e4c6cf710068493bc9d05af5227e1c216 0000000000000000   0.0116199500 F4vPaFH4Q17NEEHE4KzkHRDSed97zqsiB5WrNJJf2hvNWW7AAMLaJA82k7xXE1oNhcWwZPWxz8fvUFWrQ83X9cpuFkfnDCG: 50001.0000000000 0 - b749ef0a580f4d72e8b5d1f01915dc4414f8176782a3ae2d16542c2176be4965

(last field is the public id)

Acceptance test:

N Step Expected Result
1. Run curl --request GET http://localhost:28690/dapi/v2.0/cryptonode/getwalletaddress (supposing supernode configured and running on this address) {"testnet":true, "wallet_public_address":"F7a56E...", "id_key":"4014fcf...", "signature":"45f78..."}
2. Open graft-wallet-cli
3. Run wallet function : payment_id Receive Result: Random payment ID: <baf2633...>
4. Make tx: stake_transfer <wallet address> <amount> <lock_block_count> <Supernode_public_ID_key> <SuperNode Signature> <payment_ID> transfer F7a56E... 50000 60 4014fcf... 45f78... baf2633...
5. Send Tx and wait response Transaction successfully submitted, transaction <ded130...> You can check its status by using the show_transfers command. Height 348065, txid <ded130...>, 90.4643940500, idx 0/0
6. Run wallet command: show_transfer <TxId> Pending outgoing transaction found txid: <479a2....> Timestamp: 2019-06-13 14:39:00 Amount: 50000.0000000000 SN Public ID:4014fc... Payment ID: d081d... Change: 1.0508136600 Fee: 0.0116863400 Note:
7. Run wallet command: show_transfers out You should see the entry with your transaction, out(stake) in direction field and SN Public ID in the last field
8. Open a destination wallet, run wallet command: show_transfers in You should see the entry with your transaction, in(stake) in direction field and SN Public ID in the last field

Community Tasks Guidelines