Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

[ETCM-925] Add wallet state to log export #92

Merged
merged 1 commit into from Jun 9, 2021
Merged

Conversation

conqeror
Copy link
Contributor

@conqeror conqeror commented Jun 8, 2021

Description

Added wallet state to log export. Example data export is below, no sensitive data should be there. I didn't include address book and the keystore seems to be automatically omitted when account data is serialized.

{
  "walletStatus": "LOADED",
  "error": {
    "_tag": "None"
  },
  "syncStatus": {
    "mode": "synced",
    "currentBlock": 116254,
    "lastNewBlockTimestamp": 1623154882576
  },
  "availableBalance": {
    "_tag": "Some",
    "value": "697060000000000000"
  },
  "pendingBalance": "0",
  "transactions": [
    {
      "hash": "0x0cc9855a3aad8b1e967458f61e851ca60af8dc7a4cb76f2a3b083845903005ff",
      "nonce": 0,
      "blockHash": "0x8576db23bd32591d028e1f757a492f211ff65d269200b663ec2013a9a3a7e2b2",
      "blockNumber": 5170,
      "transactionIndex": 0,
      "from": "0x1Ff7FC39F7F4DC79c5867B9514d0e42607741384",
      "to": "0x3acb55450EE0f532C96CEa955AD3e215AC53A923",
      "value": "1000000000000000000",
      "gasPrice": "20000000000",
      "gas": 90000,
      "input": "0x",
      "isOutgoing": false,
      "isCheckpointed": false,
      "isPending": false,
      "gasUsed": "21000",
      "timestamp": "2021-05-20T11:11:11.000Z",
      "fee": "0",
      "direction": "incoming",
      "status": "persisted_depth",
      "contractAddress": null
    },
    {
      "hash": "0x48c2a04ef470f61ea9b9c5492d261ae4756a7323943b6add72a7c9cab87998f7",
      "nonce": 0,
      "blockHash": "0x57a5c86be2fddd0d5244886771957079871454828fee8ac30e36b5a22decaa67",
      "blockNumber": 5404,
      "transactionIndex": 1,
      "from": "0x3acb55450EE0f532C96CEa955AD3e215AC53A923",
      "to": "0x0000000000000000000000000000000000000000",
      "value": "10000000000000000",
      "gasPrice": "20000000000",
      "gas": 21000,
      "input": "0x",
      "isOutgoing": true,
      "isCheckpointed": false,
      "isPending": false,
      "gasUsed": "21000",
      "timestamp": "2021-05-20T12:13:38.000Z",
      "fee": "420000000000000",
      "direction": "outgoing",
      "status": "persisted_depth",
      "contractAddress": null
    },
    ....
  ],
  "accounts": [
    {
      "address": "0x3acb55450ee0f532c96cea955ad3e215ac53a923",
      "index": 0,
      "balance": "697060000000000000",
      "tokens": {}
    }
  ],
  "tncAccepted": true
}

@conqeror conqeror requested a review from qwhex June 9, 2021 14:26
@conqeror conqeror changed the title Add wallet state to log export [ETCM-925] Add wallet state to log export Jun 9, 2021
@conqeror conqeror merged commit 875aa8c into develop Jun 9, 2021
@conqeror conqeror deleted the improve-log-export branch June 9, 2021 15:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants