|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`BridgeStatusController constructor rehydrates the tx history state 1`] = ` |
| 4 | +Object { |
| 5 | + "bridgeTxMetaId1": Object { |
| 6 | + "account": "0xaccount1", |
| 7 | + "estimatedProcessingTimeInSeconds": 15, |
| 8 | + "hasApprovalTx": false, |
| 9 | + "initialDestAssetBalance": undefined, |
| 10 | + "pricingData": Object { |
| 11 | + "amountSent": "1.234", |
| 12 | + "amountSentInUsd": undefined, |
| 13 | + "quotedGasInUsd": undefined, |
| 14 | + "quotedReturnInUsd": undefined, |
| 15 | + }, |
| 16 | + "quote": Object { |
| 17 | + "bridgeId": "lifi", |
| 18 | + "bridges": Array [ |
| 19 | + "across", |
| 20 | + ], |
| 21 | + "destAsset": Object { |
| 22 | + "address": "0x0000000000000000000000000000000000000000", |
| 23 | + "chainId": 10, |
| 24 | + "coinKey": "ETH", |
| 25 | + "decimals": 18, |
| 26 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 27 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 28 | + "name": "ETH", |
| 29 | + "priceUSD": "2478.63", |
| 30 | + "symbol": "ETH", |
| 31 | + }, |
| 32 | + "destChainId": 10, |
| 33 | + "destTokenAmount": "990654755978612", |
| 34 | + "feeData": Object { |
| 35 | + "metabridge": Object { |
| 36 | + "amount": "8750000000000", |
| 37 | + "asset": Object { |
| 38 | + "address": "0x0000000000000000000000000000000000000000", |
| 39 | + "chainId": 42161, |
| 40 | + "coinKey": "ETH", |
| 41 | + "decimals": 18, |
| 42 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 43 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 44 | + "name": "ETH", |
| 45 | + "priceUSD": "2478.7", |
| 46 | + "symbol": "ETH", |
| 47 | + }, |
| 48 | + }, |
| 49 | + }, |
| 50 | + "requestId": "197c402f-cb96-4096-9f8c-54aed84ca776", |
| 51 | + "srcAsset": Object { |
| 52 | + "address": "0x0000000000000000000000000000000000000000", |
| 53 | + "chainId": 42161, |
| 54 | + "coinKey": "ETH", |
| 55 | + "decimals": 18, |
| 56 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 57 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 58 | + "name": "ETH", |
| 59 | + "priceUSD": "2478.7", |
| 60 | + "symbol": "ETH", |
| 61 | + }, |
| 62 | + "srcChainId": 42161, |
| 63 | + "srcTokenAmount": "991250000000000", |
| 64 | + "steps": Array [ |
| 65 | + Object { |
| 66 | + "action": "bridge", |
| 67 | + "destAmount": "990654755978612", |
| 68 | + "destAsset": Object { |
| 69 | + "address": "0x0000000000000000000000000000000000000000", |
| 70 | + "chainId": 10, |
| 71 | + "coinKey": "ETH", |
| 72 | + "decimals": 18, |
| 73 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 74 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 75 | + "name": "ETH", |
| 76 | + "priceUSD": "2478.63", |
| 77 | + "symbol": "ETH", |
| 78 | + }, |
| 79 | + "destChainId": 10, |
| 80 | + "protocol": Object { |
| 81 | + "displayName": "Across", |
| 82 | + "icon": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png", |
| 83 | + "name": "across", |
| 84 | + }, |
| 85 | + "srcAmount": "991250000000000", |
| 86 | + "srcAsset": Object { |
| 87 | + "address": "0x0000000000000000000000000000000000000000", |
| 88 | + "chainId": 42161, |
| 89 | + "coinKey": "ETH", |
| 90 | + "decimals": 18, |
| 91 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 92 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 93 | + "name": "ETH", |
| 94 | + "priceUSD": "2478.7", |
| 95 | + "symbol": "ETH", |
| 96 | + }, |
| 97 | + "srcChainId": 42161, |
| 98 | + }, |
| 99 | + ], |
| 100 | + }, |
| 101 | + "slippagePercentage": 0, |
| 102 | + "startTime": 1729964825189, |
| 103 | + "status": Object { |
| 104 | + "srcChain": Object { |
| 105 | + "chainId": 42161, |
| 106 | + "txHash": "0xsrcTxHash1", |
| 107 | + }, |
| 108 | + "status": "PENDING", |
| 109 | + }, |
| 110 | + "targetContractAddress": "0x23981fC34e69eeDFE2BD9a0a9fCb0719Fe09DbFC", |
| 111 | + "txMetaId": "bridgeTxMetaId1", |
| 112 | + }, |
| 113 | +} |
| 114 | +`; |
| 115 | + |
| 116 | +exports[`BridgeStatusController startPollingForBridgeTxStatus sets the inital tx history state 1`] = ` |
| 117 | +Object { |
| 118 | + "bridgeTxMetaId1": Object { |
| 119 | + "account": "0xaccount1", |
| 120 | + "estimatedProcessingTimeInSeconds": 15, |
| 121 | + "hasApprovalTx": false, |
| 122 | + "initialDestAssetBalance": undefined, |
| 123 | + "pricingData": Object { |
| 124 | + "amountSent": "1.234", |
| 125 | + "amountSentInUsd": undefined, |
| 126 | + "quotedGasInUsd": undefined, |
| 127 | + "quotedReturnInUsd": undefined, |
| 128 | + }, |
| 129 | + "quote": Object { |
| 130 | + "bridgeId": "lifi", |
| 131 | + "bridges": Array [ |
| 132 | + "across", |
| 133 | + ], |
| 134 | + "destAsset": Object { |
| 135 | + "address": "0x0000000000000000000000000000000000000000", |
| 136 | + "chainId": 10, |
| 137 | + "coinKey": "ETH", |
| 138 | + "decimals": 18, |
| 139 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 140 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 141 | + "name": "ETH", |
| 142 | + "priceUSD": "2478.63", |
| 143 | + "symbol": "ETH", |
| 144 | + }, |
| 145 | + "destChainId": 10, |
| 146 | + "destTokenAmount": "990654755978612", |
| 147 | + "feeData": Object { |
| 148 | + "metabridge": Object { |
| 149 | + "amount": "8750000000000", |
| 150 | + "asset": Object { |
| 151 | + "address": "0x0000000000000000000000000000000000000000", |
| 152 | + "chainId": 42161, |
| 153 | + "coinKey": "ETH", |
| 154 | + "decimals": 18, |
| 155 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 156 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 157 | + "name": "ETH", |
| 158 | + "priceUSD": "2478.7", |
| 159 | + "symbol": "ETH", |
| 160 | + }, |
| 161 | + }, |
| 162 | + }, |
| 163 | + "requestId": "197c402f-cb96-4096-9f8c-54aed84ca776", |
| 164 | + "srcAsset": Object { |
| 165 | + "address": "0x0000000000000000000000000000000000000000", |
| 166 | + "chainId": 42161, |
| 167 | + "coinKey": "ETH", |
| 168 | + "decimals": 18, |
| 169 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 170 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 171 | + "name": "ETH", |
| 172 | + "priceUSD": "2478.7", |
| 173 | + "symbol": "ETH", |
| 174 | + }, |
| 175 | + "srcChainId": 42161, |
| 176 | + "srcTokenAmount": "991250000000000", |
| 177 | + "steps": Array [ |
| 178 | + Object { |
| 179 | + "action": "bridge", |
| 180 | + "destAmount": "990654755978612", |
| 181 | + "destAsset": Object { |
| 182 | + "address": "0x0000000000000000000000000000000000000000", |
| 183 | + "chainId": 10, |
| 184 | + "coinKey": "ETH", |
| 185 | + "decimals": 18, |
| 186 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 187 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 188 | + "name": "ETH", |
| 189 | + "priceUSD": "2478.63", |
| 190 | + "symbol": "ETH", |
| 191 | + }, |
| 192 | + "destChainId": 10, |
| 193 | + "protocol": Object { |
| 194 | + "displayName": "Across", |
| 195 | + "icon": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png", |
| 196 | + "name": "across", |
| 197 | + }, |
| 198 | + "srcAmount": "991250000000000", |
| 199 | + "srcAsset": Object { |
| 200 | + "address": "0x0000000000000000000000000000000000000000", |
| 201 | + "chainId": 42161, |
| 202 | + "coinKey": "ETH", |
| 203 | + "decimals": 18, |
| 204 | + "icon": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 205 | + "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png", |
| 206 | + "name": "ETH", |
| 207 | + "priceUSD": "2478.7", |
| 208 | + "symbol": "ETH", |
| 209 | + }, |
| 210 | + "srcChainId": 42161, |
| 211 | + }, |
| 212 | + ], |
| 213 | + }, |
| 214 | + "slippagePercentage": 0, |
| 215 | + "startTime": 1729964825189, |
| 216 | + "status": Object { |
| 217 | + "srcChain": Object { |
| 218 | + "chainId": 42161, |
| 219 | + "txHash": "0xsrcTxHash1", |
| 220 | + }, |
| 221 | + "status": "PENDING", |
| 222 | + }, |
| 223 | + "targetContractAddress": "0x23981fC34e69eeDFE2BD9a0a9fCb0719Fe09DbFC", |
| 224 | + "txMetaId": "bridgeTxMetaId1", |
| 225 | + }, |
| 226 | +} |
| 227 | +`; |
0 commit comments