mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +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.
84 lines
2.4 KiB
JSON
84 lines
2.4 KiB
JSON
{
|
|
"metamask": {
|
|
"isInitialized": true,
|
|
"isUnlocked": true,
|
|
"rpcTarget": "https://rawtestrpc.metamask.io/",
|
|
"identities": {
|
|
"0xfdea65c8e26263f6d9a1b5de9555d2931a33b825": {
|
|
"name": "Account 1",
|
|
"address": "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825",
|
|
"mayBeFauceting": false
|
|
},
|
|
"0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb": {
|
|
"name": "Account 2",
|
|
"address": "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb",
|
|
"mayBeFauceting": false
|
|
}
|
|
},
|
|
"unconfTxs": {},
|
|
"currentCurrency": "USD",
|
|
"conversionRate": 9.52855776,
|
|
"conversionDate": 1479756513,
|
|
"accounts": {
|
|
"0xfdea65c8e26263f6d9a1b5de9555d2931a33b825": {
|
|
"balance": "0x0",
|
|
"nonce": "0x0",
|
|
"code": "0x0",
|
|
"address": "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825"
|
|
},
|
|
"0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb": {
|
|
"balance": "0x0",
|
|
"nonce": "0x0",
|
|
"code": "0x0",
|
|
"address": "0xc5b8dbac4c1d3f152cdeb400e2313f309c410acb"
|
|
}
|
|
},
|
|
"transactions": [
|
|
{
|
|
"id": 5551995700357153,
|
|
"txParams": {
|
|
"from": "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825",
|
|
"to": "0x48ff0cbac0acefedf152281ee80e9a0a01d5da63",
|
|
"data": "0x90b98a11000000000000000000000000c5b8dbac4c1d3f152cdeb400e2313f309c410acb000000000000000000000000000000000000000000000000000000000000000a",
|
|
"metamaskId": 5551995700357153,
|
|
"metamaskNetworkId": "1479490588308"
|
|
},
|
|
"time": 1479498745949,
|
|
"status": "confirmed",
|
|
"gasMultiplier": 1,
|
|
"metamaskNetworkId": "1479490588308",
|
|
"containsDelegateCall": true,
|
|
"estimatedGas": "0x24b33",
|
|
"hash": "0xad609a6931f54a575ad71222ffc27cd6746017106d5b89f4ad300b37b273f8ac"
|
|
}
|
|
],
|
|
"network": "1479753732793",
|
|
"isEthConfirmed": true,
|
|
"unconfMsgs": {},
|
|
"messages": [],
|
|
"shapeShiftTxList": [],
|
|
"gasMultiplier": false,
|
|
"provider": {
|
|
"type": "rpc",
|
|
"rpcTarget": "http://localhost:8545"
|
|
},
|
|
"selectedAddress": "0xfdea65c8e26263f6d9a1b5de9555d2931a33b825"
|
|
},
|
|
"appState": {
|
|
"menuOpen": false,
|
|
"currentView": {
|
|
"name": "accountDetail"
|
|
},
|
|
"accountDetail": {
|
|
"subview": "transactions",
|
|
"accountExport": "none",
|
|
"privateKey": ""
|
|
},
|
|
"transForward": false,
|
|
"isLoading": false,
|
|
"warning": null,
|
|
"scrollToBottom": false
|
|
},
|
|
"identities": {}
|
|
}
|