mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
04ae92a2c0
We've been using the `eslint-plugin-json` plugin for some time, but we haven't been visiting `.json` files in the lint script. The lint script has now been updated to incude `.json` files, which means any invalid JSON will result in a lint error. Unfortunately this JSON plugin doesn't seem to apply the other eslint rules (such as `key-spacing`) to the JSON files. I wasn't able to find a way to get that to work. Instead I manually auto-formatted each of the locale `message.json` files, which fixed many whitespace inconsistencies. The `states.json` file was deleted completely, as it appears to be unused. It wasn't a valid JSON file anyway, it was JavaScript. It looks like a `states.js` file is automatically generated, but an old copy was accidentally saved as `states.json` and included in the repo. Many duplicate key errors were found and fixed in the `development/states/` JSON files. `package-lock.json` was added to `.eslintignore` because it was very slow to lint, and linting it doesn't provide much value.
107 lines
2.8 KiB
JSON
107 lines
2.8 KiB
JSON
{
|
|
"metamask": {
|
|
"isInitialized": true,
|
|
"isUnlocked": true,
|
|
"rpcTarget": "https://rawtestrpc.metamask.io/",
|
|
"identities": {
|
|
"0xa06599bd35921cfb5b71b4be3869740385b0b306": {
|
|
"address": "0xa06599bd35921cfb5b71b4be3869740385b0b306",
|
|
"name": "Account 1"
|
|
}
|
|
},
|
|
"unapprovedTxs": {
|
|
"1188547363326880": {
|
|
"id": 1188547363326880,
|
|
"time": 1487662234127,
|
|
"status": "unapproved",
|
|
"gasMultiplier": 1,
|
|
"metamaskNetworkId": "3",
|
|
"txParams": {
|
|
"from": "0xa06599bd35921cfb5b71b4be3869740385b0b306",
|
|
"to": "0x18a3462427bcc9133bb46e88bcbe39cd7ef0e761",
|
|
"value": "0xde0b6b3a7640000",
|
|
"metamaskId": 1188547363326880,
|
|
"metamaskNetworkId": "3",
|
|
"gas": "0x5209"
|
|
},
|
|
"gasLimitSpecified": false,
|
|
"estimatedGas": "0x5209",
|
|
"txFee": "17e0186e60800",
|
|
"txValue": "de0b6b3a7640000",
|
|
"maxCost": "de234b52e4a0800"
|
|
}
|
|
},
|
|
"conversionRate": 12.59854817,
|
|
"conversionDate": 1487662141,
|
|
"noActiveNotices": true,
|
|
"network": "3",
|
|
"accounts": {
|
|
"0xa06599bd35921cfb5b71b4be3869740385b0b306": {
|
|
"nonce": "0x0",
|
|
"balance": "0x0",
|
|
"code": "0x",
|
|
"address": "0xa06599bd35921cfb5b71b4be3869740385b0b306"
|
|
}
|
|
},
|
|
"transactions": {},
|
|
"selectedAddressTxList": [
|
|
{
|
|
"id": 1188547363326880,
|
|
"time": 1487662234127,
|
|
"status": "unapproved",
|
|
"gasMultiplier": 1,
|
|
"metamaskNetworkId": "3",
|
|
"txParams": {
|
|
"from": "0xa06599bd35921cfb5b71b4be3869740385b0b306",
|
|
"to": "0x18a3462427bcc9133bb46e88bcbe39cd7ef0e761",
|
|
"value": "0xde0b6b3a7640000",
|
|
"metamaskId": 1188547363326880,
|
|
"metamaskNetworkId": "3",
|
|
"gas": "0x5209"
|
|
},
|
|
"gasLimitSpecified": false,
|
|
"estimatedGas": "0x5209",
|
|
"txFee": "17e0186e60800",
|
|
"txValue": "de0b6b3a7640000",
|
|
"maxCost": "de234b52e4a0800"
|
|
}
|
|
],
|
|
"unapprovedMsgs": {},
|
|
"unapprovedMsgCount": 0,
|
|
"keyringTypes": [
|
|
"Simple Key Pair",
|
|
"HD Key Tree"
|
|
],
|
|
"keyrings": [
|
|
{
|
|
"type": "HD Key Tree",
|
|
"accounts": [
|
|
"a06599bd35921cfb5b71b4be3869740385b0b306"
|
|
]
|
|
}
|
|
],
|
|
"selectedAddress": "0xa06599bd35921cfb5b71b4be3869740385b0b306",
|
|
"currentCurrency": "USD",
|
|
"provider": {
|
|
"type": "testnet"
|
|
},
|
|
"shapeShiftTxList": [],
|
|
"lostAccounts": [],
|
|
"seedWords": null
|
|
},
|
|
"appState": {
|
|
"menuOpen": false,
|
|
"currentView": {
|
|
"name": "confTx",
|
|
"context": 0
|
|
},
|
|
"accountDetail": {
|
|
"subview": "transactions"
|
|
},
|
|
"transForward": true,
|
|
"isLoading": false,
|
|
"warning": null
|
|
},
|
|
"identities": {}
|
|
}
|