mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-11 02:27:04 +00:00
* Start splitting networks into their own reducers * Split out nodes and networks into their own reducers * Cleanup file structure * Make selectors for new state * Change custom network typing * re-type repo * Fix up components to use selectors, work on fixing sagas * Provide consistency in naming, fix more sagas * Get non web3 node switching working * Split config rehydration off into a different file for store * Inline auth for custom nodes * Include typing for app state * moar selectors * Get web3 working + cleanup sagas * Cleanup tsc errors * Use forof loop instead of foreach for clearing pruning custom networks * Add reducer tests for new redux state * Export needed variables * Add console error * Remove old comment * Work on saga tests * Get passing existing saga tests * Fix more tests * Remove irrlevant tests * add console error * Get rest of tests passing * Fix merge errors * Remove random text * Fix store saving * Fix selector lib only grabbing from static nodes * Fix custom node removal crashing app * Infer selected network via node * Prune custom networks properly on node removal * Infer network name from chainid from selecting state * Cleanup tsc errors * Remove MEW nodes for main and testnet
183 lines
3.4 KiB
Plaintext
183 lines
3.4 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`unlockKeystore* should match put setWallet snapshot 1`] = `
|
|
Object {
|
|
"@@redux-saga/IO": true,
|
|
"PUT": Object {
|
|
"action": Object {
|
|
"payload": Wallet {
|
|
"_privKey": Object {
|
|
"data": Array [
|
|
139,
|
|
203,
|
|
68,
|
|
86,
|
|
239,
|
|
3,
|
|
86,
|
|
206,
|
|
6,
|
|
44,
|
|
133,
|
|
124,
|
|
239,
|
|
221,
|
|
62,
|
|
209,
|
|
186,
|
|
180,
|
|
84,
|
|
50,
|
|
207,
|
|
118,
|
|
214,
|
|
213,
|
|
52,
|
|
8,
|
|
153,
|
|
207,
|
|
208,
|
|
247,
|
|
2,
|
|
232,
|
|
],
|
|
"type": "Buffer",
|
|
},
|
|
"_pubKey": undefined,
|
|
"signMessage": [Function],
|
|
"signRawTransaction": [Function],
|
|
"unlock": [Function],
|
|
},
|
|
"type": "WALLET_SET",
|
|
},
|
|
"channel": null,
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`unlockMnemonic* should match put setWallet snapshot 1`] = `
|
|
Object {
|
|
"@@redux-saga/IO": true,
|
|
"PUT": Object {
|
|
"action": Object {
|
|
"payload": Wallet {
|
|
"_privKey": Object {
|
|
"data": Array [
|
|
49,
|
|
233,
|
|
127,
|
|
57,
|
|
92,
|
|
171,
|
|
198,
|
|
250,
|
|
163,
|
|
125,
|
|
138,
|
|
157,
|
|
107,
|
|
177,
|
|
133,
|
|
24,
|
|
124,
|
|
53,
|
|
112,
|
|
78,
|
|
123,
|
|
151,
|
|
108,
|
|
122,
|
|
17,
|
|
14,
|
|
47,
|
|
14,
|
|
171,
|
|
55,
|
|
195,
|
|
68,
|
|
],
|
|
"type": "Buffer",
|
|
},
|
|
"_pubKey": undefined,
|
|
"signMessage": [Function],
|
|
"signRawTransaction": [Function],
|
|
"unlock": [Function],
|
|
},
|
|
"type": "WALLET_SET",
|
|
},
|
|
"channel": null,
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`unlockPrivateKey should match put setWallet snapshot 1`] = `
|
|
Object {
|
|
"@@redux-saga/IO": true,
|
|
"PUT": Object {
|
|
"action": Object {
|
|
"payload": Wallet {
|
|
"_privKey": Object {
|
|
"data": Array [
|
|
49,
|
|
233,
|
|
127,
|
|
57,
|
|
92,
|
|
171,
|
|
198,
|
|
250,
|
|
163,
|
|
125,
|
|
138,
|
|
157,
|
|
107,
|
|
177,
|
|
133,
|
|
24,
|
|
124,
|
|
53,
|
|
112,
|
|
78,
|
|
123,
|
|
151,
|
|
108,
|
|
122,
|
|
17,
|
|
14,
|
|
47,
|
|
14,
|
|
171,
|
|
55,
|
|
195,
|
|
68,
|
|
],
|
|
"type": "Buffer",
|
|
},
|
|
"_pubKey": undefined,
|
|
"signMessage": [Function],
|
|
"signRawTransaction": [Function],
|
|
"unlock": [Function],
|
|
},
|
|
"type": "WALLET_SET",
|
|
},
|
|
"channel": null,
|
|
},
|
|
}
|
|
`;
|
|
|
|
exports[`unlockWeb3* should match setWallet snapshot 1`] = `
|
|
Object {
|
|
"@@redux-saga/IO": true,
|
|
"PUT": Object {
|
|
"action": Object {
|
|
"payload": Web3Wallet {
|
|
"address": "0xe2EdC95134bbD88443bc6D55b809F7d0C2f0C854",
|
|
"network": undefined,
|
|
},
|
|
"type": "WALLET_SET",
|
|
},
|
|
"channel": null,
|
|
},
|
|
}
|
|
`;
|