diff --git a/.storybook/test-data.js b/.storybook/test-data.js
index aeb9469b8..766196d2f 100644
--- a/.storybook/test-data.js
+++ b/.storybook/test-data.js
@@ -8,72 +8,74 @@ const state = {
unconnectedAccount: {
state: 'CLOSED',
},
- "activeTab": {
- "id": 113,
- "title": "E2E Test Dapp",
- "origin": "https://metamask.github.io",
- "protocol": "https:",
- "url": "https://metamask.github.io/test-dapp/"
+ activeTab: {
+ id: 113,
+ title: 'E2E Test Dapp',
+ origin: 'https://metamask.github.io',
+ protocol: 'https:',
+ url: 'https://metamask.github.io/test-dapp/',
},
- "metamask": {
- "networkDetails": {
- "EIPS": {
- "1559": true
+ metamask: {
+ networkDetails: {
+ EIPS: {
+ 1559: true,
},
},
- "isInitialized": true,
- "isUnlocked": true,
- "isAccountMenuOpen": false,
- "rpcUrl": "https://rawtestrpc.metamask.io/",
- "identities": {
- "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4": {
- "name": "This is a Really Long Account Name",
- "address": "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4"
+ isInitialized: true,
+ isUnlocked: true,
+ isAccountMenuOpen: false,
+ rpcUrl: 'https://rawtestrpc.metamask.io/',
+ identities: {
+ '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4': {
+ name: 'This is a Really Long Account Name',
+ address: '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
},
- "0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e": {
- "name": "Account 2",
- "address": "0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e"
+ '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e': {
+ name: 'Account 2',
+ address: '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e',
+ },
+ '0x9d0ba4ddac06032527b140912ec808ab9451b788': {
+ name: 'Account 3',
+ address: '0x9d0ba4ddac06032527b140912ec808ab9451b788',
},
- "0x9d0ba4ddac06032527b140912ec808ab9451b788": {
- "name": "Account 3",
- "address": "0x9d0ba4ddac06032527b140912ec808ab9451b788"
- }
},
- "unapprovedTxs": {
- "3111025347726181": {
- "id": 3111025347726181,
- "time": 1620710815484,
- "status": "unapproved",
- "metamaskNetworkId": "3",
- "msgParams": "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4",
- "chainId": "0x3",
- "loadingDefaults": false,
- "txParams": {
- "from": "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4",
- "to": "0xaD6D458402F60fD3Bd25163575031ACDce07538D",
- "value": "0x0",
- "data": "0xa9059cbb000000000000000000000000b19ac54efa18cc3a14a5b821bfec73d284bf0c5e0000000000000000000000000000000000000000000000003782dace9d900000",
- "gas": "0xcb28",
- "gasPrice": "0x77359400"
+ unapprovedTxs: {
+ 3111025347726181: {
+ id: 3111025347726181,
+ time: 1620710815484,
+ status: 'unapproved',
+ metamaskNetworkId: '3',
+ msgParams: '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
+ chainId: '0x3',
+ loadingDefaults: false,
+ txParams: {
+ from: '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
+ to: '0xaD6D458402F60fD3Bd25163575031ACDce07538D',
+ value: '0x0',
+ data:
+ '0xa9059cbb000000000000000000000000b19ac54efa18cc3a14a5b821bfec73d284bf0c5e0000000000000000000000000000000000000000000000003782dace9d900000',
+ gas: '0xcb28',
+ gasPrice: '0x77359400',
},
type: 'standard',
origin: 'metamask',
transactionCategory: 'transfer',
history: [
{
- "id": 7786962153682822,
- "time": 1620710815484,
- "status": "unapproved",
- "metamaskNetworkId": "3",
- "chainId": "0x3",
- "loadingDefaults": true,
- "txParams": {
- "from": "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4",
- "to": "0xaD6D458402F60fD3Bd25163575031ACDce07538D",
- "value": "0x0",
- "data": "0xa9059cbb000000000000000000000000b19ac54efa18cc3a14a5b821bfec73d284bf0c5e0000000000000000000000000000000000000000000000003782dace9d900000",
- "gas": "0xcb28",
- "gasPrice": "0x77359400"
+ id: 7786962153682822,
+ time: 1620710815484,
+ status: 'unapproved',
+ metamaskNetworkId: '3',
+ chainId: '0x3',
+ loadingDefaults: true,
+ txParams: {
+ from: '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
+ to: '0xaD6D458402F60fD3Bd25163575031ACDce07538D',
+ value: '0x0',
+ data:
+ '0xa9059cbb000000000000000000000000b19ac54efa18cc3a14a5b821bfec73d284bf0c5e0000000000000000000000000000000000000000000000003782dace9d900000',
+ gas: '0xcb28',
+ gasPrice: '0x77359400',
},
type: 'standard',
origin: 'metamask',
@@ -101,6 +103,12 @@ const state = {
},
},
},
+ recipient: {
+ address: '0x39a4e4Af7cCB654dB9500F258c64781c8FbD39F0',
+ nickname: 'John Doe',
+ error: '',
+ warning: '',
+ },
addresses: [
{
address: '0x39a4e4Af7cCB654dB9500F258c64781c8FbD39F0',
@@ -114,37 +122,37 @@ const state = {
},
],
contractExchangeRates: {
- '0xad6d458402f60fd3bd25163575031acdce07538d': 0,
+ '0xaD6D458402F60fD3Bd25163575031ACDce07538D': 0,
},
tokens: [
{
- "address": "0xaD6D458402F60fD3Bd25163575031ACDce07538D",
- "symbol": "DAI",
- "decimals": 18
- }
+ address: '0xaD6D458402F60fD3Bd25163575031ACDce07538D',
+ symbol: 'DAI',
+ decimals: 18,
+ },
],
- "pendingTokens": {},
- "customNonceValue": "",
- "send": {
- "gasLimit": "0xcb28",
- "gasPrice": null,
- "gasTotal": null,
- "tokenBalance": "8.7a73149c048545a3fe58",
- "from": "",
- "to": "0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e",
- "amount": "3782dace9d900000",
- "memo": "",
- "errors": {},
- "maxModeOn": false,
- "editingTransactionId": null,
- "toNickname": "Account 2",
- "ensResolution": null,
- "ensResolutionError": "",
- "token": {
- "address": "0xaD6D458402F60fD3Bd25163575031ACDce07538D",
- "symbol": "DAI",
- "decimals": 18
- }
+ pendingTokens: {},
+ customNonceValue: '',
+ send: {
+ gasLimit: '0xcb28',
+ gasPrice: null,
+ gasTotal: null,
+ tokenBalance: '8.7a73149c048545a3fe58',
+ from: '',
+ to: '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e',
+ amount: '3782dace9d900000',
+ memo: '',
+ errors: {},
+ maxModeOn: false,
+ editingTransactionId: null,
+ toNickname: 'Account 2',
+ ensResolution: null,
+ ensResolutionError: '',
+ token: {
+ address: '0xaD6D458402F60fD3Bd25163575031ACDce07538D',
+ symbol: 'DAI',
+ decimals: 18,
+ },
},
useBlockie: false,
featureFlags: {},
@@ -163,17 +171,17 @@ const state = {
name: 'Approve Tokens',
},
},
- "participateInMetaMetrics": true,
- "nextNonce": 71,
- "connectedStatusPopoverHasBeenShown": true,
- "swapsWelcomeMessageHasBeenShown": true,
- "defaultHomeActiveTabName": "Assets",
- "provider": {
- "type": "ropsten",
- "ticker": "ETH",
- "nickname": "",
- "rpcUrl": "",
- "chainId": "0x3"
+ participateInMetaMetrics: true,
+ nextNonce: 71,
+ connectedStatusPopoverHasBeenShown: true,
+ swapsWelcomeMessageHasBeenShown: true,
+ defaultHomeActiveTabName: 'Assets',
+ provider: {
+ type: 'ropsten',
+ ticker: 'ETH',
+ nickname: '',
+ rpcUrl: '',
+ chainId: '0x3',
},
previousProviderStore: {
type: 'ropsten',
@@ -182,550 +190,556 @@ const state = {
rpcUrl: '',
chainId: '0x3',
},
- "network": "3",
- "accounts": {
- "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4": {
- "address": "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4",
- "balance": "0x176e5b6f173ebe66"
+ network: '3',
+ accounts: {
+ '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4': {
+ address: '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
+ balance: '0x176e5b6f173ebe66',
},
- "0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e": {
- "address": "0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e",
- "balance": "0x2d3142f5000"
+ '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e': {
+ address: '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e',
+ balance: '0x2d3142f5000',
+ },
+ '0x9d0ba4ddac06032527b140912ec808ab9451b788': {
+ address: '0x9d0ba4ddac06032527b140912ec808ab9451b788',
+ balance: '0x15f6f0b9d4f8d000',
},
- "0x9d0ba4ddac06032527b140912ec808ab9451b788": {
- "address": "0x9d0ba4ddac06032527b140912ec808ab9451b788",
- "balance": "0x15f6f0b9d4f8d000"
- }
},
- "currentBlockGasLimit": "0x793af4",
- "currentNetworkTxList": [
+ currentBlockGasLimit: '0x793af4',
+ currentNetworkTxList: [
{
- "chainId": "0x38",
- "dappSuggestedGasFees": null,
- "hash": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b",
- "history": [
+ chainId: '0x38',
+ dappSuggestedGasFees: null,
+ firstRetryBlockNumber: '0x9c2686',
+ hash:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ history: [
{
- "chainId": "0x38",
- "dappSuggestedGasFees": null,
- "id": 8450246589751404,
- "loadingDefaults": true,
- "metamaskNetworkId": "56",
- "origin": "metamask",
- "status": "confimed",
- "time": 1630041817677,
- "txParams": {
- "data": "0xa9059cbb0000000000000000000000001cb071e5f0f8fd36b7cb0722c188df5bb54e9bc600000000000000000000000000000000000000000000010f0cf064dd59200000",
- "from": "0x9d0ba4ddac06032527b140912ec808ab9451b788",
- "gas": "0x35bcb",
- "gasPrice": "0x12a05f200",
- "to": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "type": "0x0",
- "value": "0x0"
+ chainId: '0x38',
+ dappSuggestedGasFees: null,
+ id: 2360388496987298,
+ loadingDefaults: true,
+ metamaskNetworkId: '56',
+ origin: 'metamask',
+ status: 'unapproved',
+ time: 1629582710520,
+ txParams: {
+ data:
+ '0xa9059cbb0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c2900000000000000000000000000000000000000000000000029a2241af62c0000',
+ from: '0x17f62b1b2407c41c43e14da0699d6b4b0a521548',
+ gas: '0x2eb27',
+ gasPrice: '0x12a05f200',
+ to: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ type: '0x0',
+ value: '0x0',
},
- "type": "transfer"
+ type: 'transfer',
},
[
{
- "note": "Added new unapproved transaction.",
- "op": "replace",
- "path": "/loadingDefaults",
- "timestamp": 1630041817683,
- "value": false
- }
+ note: 'Added new unapproved transaction.',
+ op: 'replace',
+ path: '/loadingDefaults',
+ timestamp: 1629582710530,
+ value: false,
+ },
],
[
{
- "note": "txStateManager: setting status to approved",
- "op": "replace",
- "path": "/status",
- "timestamp": 1630041821490,
- "value": "approved"
- }
+ note: 'txStateManager: setting status to approved',
+ op: 'replace',
+ path: '/status',
+ timestamp: 1629582711218,
+ value: 'approved',
+ },
],
[
{
- "note": "transactions#approveTransaction",
- "op": "add",
- "path": "/txParams/nonce",
- "timestamp": 1630041821492,
- "value": "0x1d7"
+ note: 'transactions#approveTransaction',
+ op: 'add',
+ path: '/txParams/nonce',
+ timestamp: 1629582711220,
+ value: '0x15b',
},
{
- "op": "add",
- "path": "/nonceDetails",
- "value": {
- "local": {
- "details": {
- "highest": 471,
- "startPoint": 471
+ op: 'add',
+ path: '/nonceDetails',
+ value: {
+ local: {
+ details: {
+ highest: 347,
+ startPoint: 347,
},
- "name": "local",
- "nonce": 471
+ name: 'local',
+ nonce: 347,
},
- "network": {
- "details": {
- "baseCount": 471,
- "blockNumber": "0x9e79fc"
+ network: {
+ details: {
+ baseCount: 347,
+ blockNumber: '0x9c2682',
},
- "name": "network",
- "nonce": 471
+ name: 'network',
+ nonce: 347,
},
- "params": {
- "highestLocallyConfirmed": 471,
- "highestSuggested": 471,
- "nextNetworkNonce": 471
- }
- }
- }
+ params: {
+ highestLocallyConfirmed: 327,
+ highestSuggested: 347,
+ nextNetworkNonce: 347,
+ },
+ },
+ },
],
[
{
- "note": "transactions#signTransaction: add r, s, v values",
- "op": "add",
- "path": "/r",
- "timestamp": 1630041821509,
- "value": "0x55ed06f2e1a85ce46feb865f0dada90c3e351ad155e9a4d21727ca79ae7c365b"
+ note: 'transactions#signTransaction: add r, s, v values',
+ op: 'add',
+ path: '/r',
+ timestamp: 1629582711236,
+ value:
+ '0x90a4dfb0646eef9815454d0ab543b5844acb8772101084565155c93ecce8ed69',
},
{
- "op": "add",
- "path": "/s",
- "value": "0x6944dbc0644498f5d55c3ac865fb758b04bd61e86cb3190150b8f7aef62949e9"
+ op: 'add',
+ path: '/s',
+ value:
+ '0x7fd317c727025490f282c7990b8518a7dab7521b1ada1cb639f887966bc078df',
},
{
- "op": "add",
- "path": "/v",
- "value": "0x93"
- }
+ op: 'add',
+ path: '/v',
+ value: '0x93',
+ },
],
[
{
- "note": "txStateManager: setting status to signed",
- "op": "replace",
- "path": "/status",
- "timestamp": 1630041821510,
- "value": "signed"
- }
+ note: 'txStateManager: setting status to signed',
+ op: 'replace',
+ path: '/status',
+ timestamp: 1629582711236,
+ value: 'signed',
+ },
],
[
{
- "note": "transactions#publishTransaction",
- "op": "add",
- "path": "/rawTx",
- "timestamp": 1630041821511,
- "value": "0xf8ad8201d785012a05f20083035bcb942e8c05582176fa93b4590382e8290c73deb8217680b844a9059cbb0000000000000000000000001cb071e5f0f8fd36b7cb0722c188df5bb54e9bc600000000000000000000000000000000000000000000010f0cf064dd592000008193a055ed06f2e1a85ce46feb865f0dada90c3e351ad155e9a4d21727ca79ae7c365ba06944dbc0644498f5d55c3ac865fb758b04bd61e86cb3190150b8f7aef62949e9"
- }
+ note: 'transactions#publishTransaction',
+ op: 'add',
+ path: '/rawTx',
+ timestamp: 1629582711237,
+ value:
+ '0xf8ad82015b85012a05f2008302eb27942e8c05582176fa93b4590382e8290c73deb8217680b844a9059cbb0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c2900000000000000000000000000000000000000000000000029a2241af62c00008193a090a4dfb0646eef9815454d0ab543b5844acb8772101084565155c93ecce8ed69a07fd317c727025490f282c7990b8518a7dab7521b1ada1cb639f887966bc078df',
+ },
],
[
{
- "note": "transactions#setTxHash",
- "op": "add",
- "path": "/hash",
- "timestamp": 1630041821610,
- "value": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b"
- }
+ note: 'transactions#setTxHash',
+ op: 'add',
+ path: '/hash',
+ timestamp: 1629582711336,
+ value:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ },
],
[
{
- "note": "txStateManager - add submitted time stamp",
- "op": "add",
- "path": "/submittedTime",
- "timestamp": 1630041821611,
- "value": 1630041821611
- }
+ note: 'txStateManager - add submitted time stamp',
+ op: 'add',
+ path: '/submittedTime',
+ timestamp: 1629582711337,
+ value: 1629582711337,
+ },
],
[
{
- "note": "txStateManager: setting status to submitted",
- "op": "replace",
- "path": "/status",
- "timestamp": 1630041821611,
- "value": "submitted"
- }
+ note: 'txStateManager: setting status to submitted',
+ op: 'replace',
+ path: '/status',
+ timestamp: 1629582711338,
+ value: 'submitted',
+ },
],
[
{
- "note": "txStateManager: setting status to confirmed",
- "op": "replace",
- "path": "/status",
- "timestamp": 1630041837261,
- "value": "confirmed"
+ note: 'transactions/pending-tx-tracker#event: tx:block-update',
+ op: 'add',
+ path: '/firstRetryBlockNumber',
+ timestamp: 1629582711878,
+ value: '0x9c2686',
+ },
+ ],
+ [
+ {
+ note: 'txStateManager: setting status to confirmed',
+ op: 'replace',
+ path: '/status',
+ timestamp: 1629582721178,
+ value: 'confirmed',
},
{
- "op": "add",
- "path": "/txReceipt",
- "value": {
- "blockHash": "0x0cb8793361fb2be109e71a6e8799bb47b08fb83b2fed4f3302846365998fc4c5",
- "blockNumber": "9e7a00",
- "contractAddress": null,
- "cumulativeGasUsed": "185c4a7",
- "from": "0x9d0ba4ddac06032527b140912ec808ab9451b788",
- "gasUsed": "23d32",
- "logs": [
+ op: 'add',
+ path: '/txReceipt',
+ value: {
+ blockHash:
+ '0x30bf5dfa12e460a5d121267c00ba3047a14ba286e0c4fe75fa979010f527cba0',
+ blockNumber: '9c2688',
+ contractAddress: null,
+ cumulativeGasUsed: '19a4942',
+ from: '0x17f62b1b2407c41c43e14da0699d6b4b0a521548',
+ gasUsed: '1f21a',
+ logs: [
{
- "address": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "blockHash": "0x0cb8793361fb2be109e71a6e8799bb47b08fb83b2fed4f3302846365998fc4c5",
- "blockNumber": "9e7a00",
- "data": "0x0000000000000000000000000000000000000000000001061b1aa31275ac0000",
- "logIndex": "250",
- "removed": false,
- "topics": [
- "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
- "0x00000000000000000000000017ef4f35a5e4016126dc5e94b8bb3bde4308c2f5",
- "0x0000000000000000000000001cb071e5f0f8fd36b7cb0722c188df5bb54e9bc6"
+ address: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ blockHash:
+ '0x30bf5dfa12e460a5d121267c00ba3047a14ba286e0c4fe75fa979010f527cba0',
+ blockNumber: '9c2688',
+ data:
+ '0x00000000000000000000000000000000000000000000000028426c213d688000',
+ logIndex: '245',
+ removed: false,
+ topics: [
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
+ '0x00000000000000000000000017f62b1b2407c41c43e14da0699d6b4b0a521548',
+ '0x0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c29',
],
- "transactionHash": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b",
- "transactionIndex": "af"
+ transactionHash:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ transactionIndex: 'ae',
},
{
- "address": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "blockHash": "0x0cb8793361fb2be109e71a6e8799bb47b08fb83b2fed4f3302846365998fc4c5",
- "blockNumber": "9e7a00",
- "data": "0x000000000000000000000000000000000000000000000002b5e3af16b1880000",
- "logIndex": "251",
- "removed": false,
- "topics": [
- "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
- "0x00000000000000000000000017ef4f35a5e4016126dc5e94b8bb3bde4308c2f5",
- "0x000000000000000000000000c825413863f677a2012bb8db3a5e4a18bbf29e56"
+ address: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ blockHash:
+ '0x30bf5dfa12e460a5d121267c00ba3047a14ba286e0c4fe75fa979010f527cba0',
+ blockNumber: '9c2688',
+ data:
+ '0x000000000000000000000000000000000000000000000000006a94d74f430000',
+ logIndex: '246',
+ removed: false,
+ topics: [
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
+ '0x00000000000000000000000017f62b1b2407c41c43e14da0699d6b4b0a521548',
+ '0x000000000000000000000000c825413863f677a2012bb8db3a5e4a18bbf29e56',
],
- "transactionHash": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b",
- "transactionIndex": "af"
+ transactionHash:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ transactionIndex: 'ae',
},
{
- "address": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "blockHash": "0x0cb8793361fb2be109e71a6e8799bb47b08fb83b2fed4f3302846365998fc4c5",
- "blockNumber": "9e7a00",
- "data": "0x000000000000000000000000000000000000000000000000d02ab486cedc0000",
- "logIndex": "252",
- "removed": false,
- "topics": [
- "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
- "0x00000000000000000000000017ef4f35a5e4016126dc5e94b8bb3bde4308c2f5",
- "0x0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c29"
+ address: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ blockHash:
+ '0x30bf5dfa12e460a5d121267c00ba3047a14ba286e0c4fe75fa979010f527cba0',
+ blockNumber: '9c2688',
+ data:
+ '0x000000000000000000000000000000000000000000000000001ff973cafa8000',
+ logIndex: '247',
+ removed: false,
+ topics: [
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
+ '0x00000000000000000000000017f62b1b2407c41c43e14da0699d6b4b0a521548',
+ '0x0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c29',
],
- "transactionHash": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b",
- "transactionIndex": "af"
- }
+ transactionHash:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ transactionIndex: 'ae',
+ },
],
- "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000100000000000020000008000000000000000000000000008002000000000000000000000000000000000000000000000000000000000000000000000000040000080000200000010000000000000000000000000000000000000010200000000000000000000000000420000000000000000000000000200000000000000000000800000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000",
- "status": "0x1",
- "to": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "transactionHash": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b",
- "transactionIndex": "af",
- "type": "0x0"
- }
- }
+ logsBloom:
+ '0x20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000100000000000020000000000000000000000000000000008000000000080000000000000000000000000000000000000000040000000000000000000000040000000000200000010000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000200000000000000000000800000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000',
+ status: '0x1',
+ to: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ transactionHash:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ transactionIndex: 'ae',
+ type: '0x0',
+ },
+ },
],
[
{
- "note": "transactions#confirmTransaction - add txReceipt",
- "op": "replace",
- "path": "/txReceipt/transactionIndex",
- "timestamp": 1630041837268,
- "value": "af"
+ note: 'transactions#confirmTransaction - add txReceipt',
+ op: 'replace',
+ path: '/txReceipt/transactionIndex',
+ timestamp: 1629582721183,
+ value: 'ae',
},
{
- "op": "replace",
- "path": "/txReceipt/logs/2/logIndex",
- "value": "252"
+ op: 'replace',
+ path: '/txReceipt/logs/2/logIndex',
+ value: '247',
},
{
- "op": "replace",
- "path": "/txReceipt/logs/2/transactionIndex",
- "value": "af"
+ op: 'replace',
+ path: '/txReceipt/logs/2/transactionIndex',
+ value: 'ae',
},
{
- "op": "replace",
- "path": "/txReceipt/logs/2/blockNumber",
- "value": "9e7a00"
+ op: 'replace',
+ path: '/txReceipt/logs/2/blockNumber',
+ value: '9c2688',
},
{
- "op": "replace",
- "path": "/txReceipt/logs/1/logIndex",
- "value": "251"
+ op: 'replace',
+ path: '/txReceipt/logs/1/logIndex',
+ value: '246',
},
{
- "op": "replace",
- "path": "/txReceipt/logs/1/transactionIndex",
- "value": "af"
+ op: 'replace',
+ path: '/txReceipt/logs/1/transactionIndex',
+ value: 'ae',
},
{
- "op": "replace",
- "path": "/txReceipt/logs/1/blockNumber",
- "value": "9e7a00"
+ op: 'replace',
+ path: '/txReceipt/logs/1/blockNumber',
+ value: '9c2688',
},
{
- "op": "replace",
- "path": "/txReceipt/logs/0/logIndex",
- "value": "250"
+ op: 'replace',
+ path: '/txReceipt/logs/0/logIndex',
+ value: '245',
},
{
- "op": "replace",
- "path": "/txReceipt/logs/0/transactionIndex",
- "value": "af"
+ op: 'replace',
+ path: '/txReceipt/logs/0/transactionIndex',
+ value: 'ae',
},
{
- "op": "replace",
- "path": "/txReceipt/logs/0/blockNumber",
- "value": "9e7a00"
+ op: 'replace',
+ path: '/txReceipt/logs/0/blockNumber',
+ value: '9c2688',
},
{
- "op": "replace",
- "path": "/txReceipt/cumulativeGasUsed",
- "value": "185c4a7"
+ op: 'replace',
+ path: '/txReceipt/cumulativeGasUsed',
+ value: '19a4942',
},
{
- "op": "replace",
- "path": "/txReceipt/blockNumber",
- "value": "9e7a00"
- }
- ]
- ],
- "id": 8450246589751404,
- "loadingDefaults": false,
- "metamaskNetworkId": "56",
- "nonceDetails": {
- "local": {
- "details": {
- "highest": 471,
- "startPoint": 471
+ op: 'replace',
+ path: '/txReceipt/blockNumber',
+ value: '9c2688',
},
- "name": "local",
- "nonce": 471
- },
- "network": {
- "details": {
- "baseCount": 471,
- "blockNumber": "0x9e79fc"
- },
- "name": "network",
- "nonce": 471
- },
- "params": {
- "highestLocallyConfirmed": 471,
- "highestSuggested": 471,
- "nextNetworkNonce": 471
- }
- },
- "origin": "metamask",
- "r": "0x55ed06f2e1a85ce46feb865f0dada90c3e351ad155e9a4d21727ca79ae7c365b",
- "rawTx": "0xf8ad8201d785012a05f20083035bcb942e8c05582176fa93b4590382e8290c73deb8217680b844a9059cbb0000000000000000000000001cb071e5f0f8fd36b7cb0722c188df5bb54e9bc600000000000000000000000000000000000000000000010f0cf064dd592000008193a055ed06f2e1a85ce46feb865f0dada90c3e351ad155e9a4d21727ca79ae7c365ba06944dbc0644498f5d55c3ac865fb758b04bd61e86cb3190150b8f7aef62949e9",
- "s": "0x6944dbc0644498f5d55c3ac865fb758b04bd61e86cb3190150b8f7aef62949e9",
- "status": "confirmed",
- "submittedTime": 1630041821611,
- "time": 1630041817677,
- "txParams": {
- "data": "0xa9059cbb0000000000000000000000001cb071e5f0f8fd36b7cb0722c188df5bb54e9bc600000000000000000000000000000000000000000000010f0cf064dd59200000",
- "from": "0x9d0ba4ddac06032527b140912ec808ab9451b788",
- "gas": "0x35bcb",
- "gasPrice": "0x12a05f200",
- "nonce": "0x1d7",
- "to": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "type": "0x0",
- "value": "0x0"
- },
- "txReceipt": {
- "blockHash": "0x0cb8793361fb2be109e71a6e8799bb47b08fb83b2fed4f3302846365998fc4c5",
- "blockNumber": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 10385920,
- null
- ]
- },
- "contractAddress": null,
- "cumulativeGasUsed": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 25543847,
- null
- ]
- },
- "from": "0x9d0ba4ddac06032527b140912ec808ab9451b788",
- "gasUsed": "23d32",
- "logs": [
- {
- "address": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "blockHash": "0x0cb8793361fb2be109e71a6e8799bb47b08fb83b2fed4f3302846365998fc4c5",
- "blockNumber": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 10385920,
- null
- ]
- },
- "data": "0x0000000000000000000000000000000000000000000001061b1aa31275ac0000",
- "logIndex": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 592,
- null
- ]
- },
- "removed": false,
- "topics": [
- "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
- "0x00000000000000000000000017ef4f35a5e4016126dc5e94b8bb3bde4308c2f5",
- "0x0000000000000000000000001cb071e5f0f8fd36b7cb0722c188df5bb54e9bc6"
- ],
- "transactionHash": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b",
- "transactionIndex": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 175,
- null
- ]
- }
- },
- {
- "address": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "blockHash": "0x0cb8793361fb2be109e71a6e8799bb47b08fb83b2fed4f3302846365998fc4c5",
- "blockNumber": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 10385920,
- null
- ]
- },
- "data": "0x000000000000000000000000000000000000000000000002b5e3af16b1880000",
- "logIndex": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 593,
- null
- ]
- },
- "removed": false,
- "topics": [
- "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
- "0x00000000000000000000000017ef4f35a5e4016126dc5e94b8bb3bde4308c2f5",
- "0x000000000000000000000000c825413863f677a2012bb8db3a5e4a18bbf29e56"
- ],
- "transactionHash": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b",
- "transactionIndex": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 175,
- null
- ]
- }
- },
- {
- "address": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "blockHash": "0x0cb8793361fb2be109e71a6e8799bb47b08fb83b2fed4f3302846365998fc4c5",
- "blockNumber": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 10385920,
- null
- ]
- },
- "data": "0x000000000000000000000000000000000000000000000000d02ab486cedc0000",
- "logIndex": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 594,
- null
- ]
- },
- "removed": false,
- "topics": [
- "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
- "0x00000000000000000000000017ef4f35a5e4016126dc5e94b8bb3bde4308c2f5",
- "0x0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c29"
- ],
- "transactionHash": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b",
- "transactionIndex": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 175,
- null
- ]
- }
- }
],
- "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000100000000000020000008000000000000000000000000008002000000000000000000000000000000000000000000000000000000000000000000000000040000080000200000010000000000000000000000000000000000000010200000000000000000000000000420000000000000000000000000200000000000000000000800000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000",
- "status": "0x1",
- "to": "0x2e8c05582176fa93b4590382e8290c73deb82176",
- "transactionHash": "0xb7357e5bf0524c121a5dcb73df88fc0d6d50cafec763e1f1111fb47640a4ea3b",
- "transactionIndex": {
- "length": 1,
- "negative": 0,
- "red": null,
- "words": [
- 175,
- null
- ]
+ ],
+ id: 7900715443136469,
+ loadingDefaults: false,
+ metamaskNetworkId: '56',
+ nonceDetails: {
+ local: {
+ details: {
+ highest: 347,
+ startPoint: 347,
+ },
+ name: 'local',
+ nonce: 347,
+ },
+ network: {
+ details: {
+ baseCount: 347,
+ blockNumber: '0x9c2682',
+ },
+ name: 'network',
+ nonce: 347,
+ },
+ params: {
+ highestLocallyConfirmed: 327,
+ highestSuggested: 347,
+ nextNetworkNonce: 347,
},
- "type": "0x0"
},
- "type": "transfer",
- "v": "0x93"
+ origin: 'metamask',
+ r: '0x90a4dfb0646eef9815454d0ab543b5844acb8772101084565155c93ecce8ed69',
+ rawTx:
+ '0xf8ad82015b85012a05f2008302eb27942e8c05582176fa93b4590382e8290c73deb8217680b844a9059cbb0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c2900000000000000000000000000000000000000000000000029a2241af62c00008193a090a4dfb0646eef9815454d0ab543b5844acb8772101084565155c93ecce8ed69a07fd317c727025490f282c7990b8518a7dab7521b1ada1cb639f887966bc078df',
+ s: '0x7fd317c727025490f282c7990b8518a7dab7521b1ada1cb639f887966bc078df',
+ status: 'confirmed',
+ submittedTime: 1629582711337,
+ time: 1629582710520,
+ txParams: {
+ data:
+ '0xa9059cbb0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c2900000000000000000000000000000000000000000000000029a2241af62c0000',
+ from: '0x17f62b1b2407c41c43e14da0699d6b4b0a521548',
+ gas: '0x2eb27',
+ gasPrice: '0x12a05f200',
+ nonce: '0x15b',
+ to: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ type: '0x0',
+ value: '0x0',
+ },
+ txReceipt: {
+ blockHash:
+ '0x30bf5dfa12e460a5d121267c00ba3047a14ba286e0c4fe75fa979010f527cba0',
+ blockNumber: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [10233480, null],
+ },
+ contractAddress: null,
+ cumulativeGasUsed: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [26888514, null],
+ },
+ from: '0x17f62b1b2407c41c43e14da0699d6b4b0a521548',
+ gasUsed: '1f21a',
+ logs: [
+ {
+ address: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ blockHash:
+ '0x30bf5dfa12e460a5d121267c00ba3047a14ba286e0c4fe75fa979010f527cba0',
+ blockNumber: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [10233480, null],
+ },
+ data:
+ '0x00000000000000000000000000000000000000000000000028426c213d688000',
+ logIndex: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [581, null],
+ },
+ removed: false,
+ topics: [
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
+ '0x00000000000000000000000017f62b1b2407c41c43e14da0699d6b4b0a521548',
+ '0x0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c29',
+ ],
+ transactionHash:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ transactionIndex: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [174, null],
+ },
+ },
+ {
+ address: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ blockHash:
+ '0x30bf5dfa12e460a5d121267c00ba3047a14ba286e0c4fe75fa979010f527cba0',
+ blockNumber: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [10233480, null],
+ },
+ data:
+ '0x000000000000000000000000000000000000000000000000006a94d74f430000',
+ logIndex: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [582, null],
+ },
+ removed: false,
+ topics: [
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
+ '0x00000000000000000000000017f62b1b2407c41c43e14da0699d6b4b0a521548',
+ '0x000000000000000000000000c825413863f677a2012bb8db3a5e4a18bbf29e56',
+ ],
+ transactionHash:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ transactionIndex: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [174, null],
+ },
+ },
+ {
+ address: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ blockHash:
+ '0x30bf5dfa12e460a5d121267c00ba3047a14ba286e0c4fe75fa979010f527cba0',
+ blockNumber: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [10233480, null],
+ },
+ data:
+ '0x000000000000000000000000000000000000000000000000001ff973cafa8000',
+ logIndex: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [583, null],
+ },
+ removed: false,
+ topics: [
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
+ '0x00000000000000000000000017f62b1b2407c41c43e14da0699d6b4b0a521548',
+ '0x0000000000000000000000004ef2d5a1d056e7c9e8bcdbf2bd9ac0df749a1c29',
+ ],
+ transactionHash:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ transactionIndex: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [174, null],
+ },
+ },
+ ],
+ logsBloom:
+ '0x20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000100000000000020000000000000000000000000000000008000000000080000000000000000000000000000000000000000040000000000000000000000040000000000200000010000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000200000000000000000000800000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000',
+ status: '0x1',
+ to: '0x2e8c05582176fa93b4590382e8290c73deb82176',
+ transactionHash:
+ '0xf45e7a751adfc0fbadccc972816baf33eb34543e52ace51f0f8d0d7f357afdc6',
+ transactionIndex: {
+ length: 1,
+ negative: 0,
+ red: null,
+ words: [174, null],
+ },
+ type: '0x0',
+ },
+ type: 'transfer',
+ v: '0x93',
},
],
- "cachedBalances": {
- "1": {
- "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4": "0x0",
- "0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e": "0xcaf5317161f400",
- "0x9d0ba4ddac06032527b140912ec808ab9451b788": "0x0"
+ cachedBalances: {
+ 1: {
+ '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4': '0x0',
+ '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e': '0xcaf5317161f400',
+ '0x9d0ba4ddac06032527b140912ec808ab9451b788': '0x0',
},
- "3": {
- "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4": "0x18d289d450bace66",
- "0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e": "0x2d3142f5000",
- "0x9d0ba4ddac06032527b140912ec808ab9451b788": "0x15f6f0b9d4f8d000"
+ 3: {
+ '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4': '0x18d289d450bace66',
+ '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e': '0x2d3142f5000',
+ '0x9d0ba4ddac06032527b140912ec808ab9451b788': '0x15f6f0b9d4f8d000',
+ },
+ '0x3': {
+ '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4': '0x176e5b6f173ebe66',
+ '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e': '0x2d3142f5000',
+ '0x9d0ba4ddac06032527b140912ec808ab9451b788': '0x15f6f0b9d4f8d000',
},
- "0x3": {
- "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4": "0x176e5b6f173ebe66",
- "0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e": "0x2d3142f5000",
- "0x9d0ba4ddac06032527b140912ec808ab9451b788": "0x15f6f0b9d4f8d000"
- }
},
- "unapprovedMsgs": {},
- "unapprovedMsgCount": 0,
- "unapprovedPersonalMsgs": {},
- "unapprovedPersonalMsgCount": 0,
- "unapprovedDecryptMsgs": {},
- "unapprovedDecryptMsgCount": 0,
- "unapprovedEncryptionPublicKeyMsgs": {
- "7786962153682822": {
- "id": 7786962153682822,
- "msgParams": "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4",
- "time": 1622687544054,
- "status": "unapproved",
- "type": "eth_getEncryptionPublicKey",
- "origin": "https://metamask.github.io"
- }
+ unapprovedMsgs: {},
+ unapprovedMsgCount: 0,
+ unapprovedPersonalMsgs: {},
+ unapprovedPersonalMsgCount: 0,
+ unapprovedDecryptMsgs: {},
+ unapprovedDecryptMsgCount: 0,
+ unapprovedEncryptionPublicKeyMsgs: {
+ 7786962153682822: {
+ id: 7786962153682822,
+ msgParams: '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
+ time: 1622687544054,
+ status: 'unapproved',
+ type: 'eth_getEncryptionPublicKey',
+ origin: 'https://metamask.github.io',
+ },
},
- "unapprovedEncryptionPublicKeyMsgCount": 0,
- "unapprovedTypedMessages": {},
- "unapprovedTypedMessagesCount": 0,
- "keyringTypes": [
- "Simple Key Pair",
- "HD Key Tree",
- "Trezor Hardware",
- "Ledger Hardware"
+ unapprovedEncryptionPublicKeyMsgCount: 0,
+ unapprovedTypedMessages: {},
+ unapprovedTypedMessagesCount: 0,
+ keyringTypes: [
+ 'Simple Key Pair',
+ 'HD Key Tree',
+ 'Trezor Hardware',
+ 'Ledger Hardware',
],
keyrings: [
{
@@ -762,22 +776,22 @@ const state = {
],
'0x3': [
{
- "address": "0xaD6D458402F60fD3Bd25163575031ACDce07538D",
- "symbol": "DAI",
- "decimals": 18
- }
- ]
+ address: '0xaD6D458402F60fD3Bd25163575031ACDce07538D',
+ symbol: 'DAI',
+ decimals: 18,
+ },
+ ],
},
- "0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e": {},
- "0x9d0ba4ddac06032527b140912ec808ab9451b788": {}
+ '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e': {},
+ '0x9d0ba4ddac06032527b140912ec808ab9451b788': {},
},
accountHiddenTokens: {
'0x64a845a5b02460acf8a3d84503b0d68d028b4bb4': {
'0x3': [],
},
},
- "assetImages": {
- "0xaD6D458402F60fD3Bd25163575031ACDce07538D": "./sai.svg"
+ assetImages: {
+ '0xaD6D458402F60fD3Bd25163575031ACDce07538D': './sai.svg',
},
hiddenTokens: [],
suggestedTokens: {},
@@ -1044,29 +1058,29 @@ const state = {
success: true,
},
],
- "permissionsHistory": {
- "https://metamask.github.io": {
- "eth_accounts": {
- "lastApproved": 1620710693213,
- "accounts": {
- "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4": 1620710693213
- }
- }
- }
- },
- "domainMetadata": {
- "https://metamask.github.io": {
- "name": "E2E Test Dapp",
- "icon": "https://metamask.github.io/test-dapp/metamask-fox.svg",
- "lastUpdated": 1620723443380,
- "host": "metamask.github.io"
+ permissionsHistory: {
+ 'https://metamask.github.io': {
+ eth_accounts: {
+ lastApproved: 1620710693213,
+ accounts: {
+ '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4': 1620710693213,
+ },
+ },
+ },
+ },
+ domainMetadata: {
+ 'https://metamask.github.io': {
+ name: 'E2E Test Dapp',
+ icon: 'https://metamask.github.io/test-dapp/metamask-fox.svg',
+ lastUpdated: 1620723443380,
+ host: 'metamask.github.io',
+ },
+ 'https://app.uniswap.org': {
+ name: 'Uniswap',
+ icon: './UNI.png',
+ lastUpdated: 1620723443380,
+ host: 'app.uniswap.org',
},
- "https://app.uniswap.org": {
- "name": "Uniswap",
- "icon": "./UNI.png",
- "lastUpdated": 1620723443380,
- "host": "app.uniswap.org"
- }
},
threeBoxSyncingAllowed: false,
showRestorePrompt: true,
@@ -1142,50 +1156,52 @@ const state = {
history: {
mostRecentOverviewPage: '/',
},
- "send": {
- "toDropdownOpen": false,
- "gasButtonGroupShown": true,
- "errors": {},
- "asset": {
- "type": "NATIVE",
- "balance": "0x0",
- "details": null
+ send: {
+ toDropdownOpen: false,
+ gasButtonGroupShown: true,
+ errors: {},
+ asset: {
+ type: 'NATIVE',
+ balance: '0x0',
+ details: null,
},
},
- "confirmTransaction": {
- "txData": {
- "id": 3111025347726181,
- "time": 1620723786838,
- "status": "unapproved",
- "metamaskNetworkId": "3",
- "chainId": "0x3",
- "loadingDefaults": false,
- "txParams": {
- "from": "0x64a845a5b02460acf8a3d84503b0d68d028b4bb4",
- "to": "0xaD6D458402F60fD3Bd25163575031ACDce07538D",
- "value": "0x0",
- "data": "0x095ea7b30000000000000000000000009bc5baf874d2da8d216ae9f137804184ee5afef40000000000000000000000000000000000000000000000000000000000011170",
- "gas": "0xea60",
- "gasPrice": "0x4a817c800"
+ confirmTransaction: {
+ txData: {
+ id: 3111025347726181,
+ time: 1620723786838,
+ status: 'unapproved',
+ metamaskNetworkId: '3',
+ chainId: '0x3',
+ loadingDefaults: false,
+ txParams: {
+ from: '0x64a845a5b02460acf8a3d84503b0d68d028b4bb4',
+ to: '0xaD6D458402F60fD3Bd25163575031ACDce07538D',
+ value: '0x0',
+ data:
+ '0x095ea7b30000000000000000000000009bc5baf874d2da8d216ae9f137804184ee5afef40000000000000000000000000000000000000000000000000000000000011170',
+ gas: '0xea60',
+ gasPrice: '0x4a817c800',
},
- "type": "transfer",
- "origin": "https://metamask.github.io",
- "transactionCategory": "approve",
- "history": [
+ type: 'transfer',
+ origin: 'https://metamask.github.io',
+ transactionCategory: 'approve',
+ history: [
{
- "id": 3111025347726181,
- "time": 1620723786838,
- "status": "unapproved",
- "metamaskNetworkId": "3",
- "chainId": "0x3",
- "loadingDefaults": true,
- "txParams": {
- "from": "0x983211ce699ea5ab57cc528086154b6db1ad8e55",
- "to": "0xaD6D458402F60fD3Bd25163575031ACDce07538D",
- "value": "0x0",
- "data": "0x095ea7b30000000000000000000000009bc5baf874d2da8d216ae9f137804184ee5afef40000000000000000000000000000000000000000000000000000000000011170",
- "gas": "0xea60",
- "gasPrice": "0x4a817c800"
+ id: 3111025347726181,
+ time: 1620723786838,
+ status: 'unapproved',
+ metamaskNetworkId: '3',
+ chainId: '0x3',
+ loadingDefaults: true,
+ txParams: {
+ from: '0x983211ce699ea5ab57cc528086154b6db1ad8e55',
+ to: '0xaD6D458402F60fD3Bd25163575031ACDce07538D',
+ value: '0x0',
+ data:
+ '0x095ea7b30000000000000000000000009bc5baf874d2da8d216ae9f137804184ee5afef40000000000000000000000000000000000000000000000000000000000011170',
+ gas: '0xea60',
+ gasPrice: '0x4a817c800',
},
type: 'standard',
origin: 'https://metamask.github.io',
diff --git a/ui/pages/send/send-content/add-recipient/add-recipient.stories.js b/ui/pages/send/send-content/add-recipient/add-recipient.stories.js
new file mode 100644
index 000000000..8f1555989
--- /dev/null
+++ b/ui/pages/send/send-content/add-recipient/add-recipient.stories.js
@@ -0,0 +1,37 @@
+import React from 'react';
+import { Provider } from 'react-redux';
+import { text } from '@storybook/addon-knobs';
+
+import configureStore from '../../../../store/store';
+
+import testData from '../../../../../.storybook/test-data';
+import AddRecipient from './add-recipient.component';
+
+const store = configureStore(testData);
+
+export default {
+ title: 'AddRecipient',
+ id: __filename,
+ decorators: [(story) =>