From 34753b044c7498a3dabc2c6af556c3d615e97b2b Mon Sep 17 00:00:00 2001 From: Micaela Estabillo Date: Thu, 10 Oct 2024 17:26:58 -0700 Subject: [PATCH] Revert "test: local changes" This reverts commit 3fa253affd2e3561d97f73df4740622780c28eb1. --- app/scripts/controllers/bridge/constants.ts | 100 +------------------- lavamoat/build-system/policy.json | 10 +- ui/store/store.ts | 10 -- 3 files changed, 2 insertions(+), 118 deletions(-) diff --git a/app/scripts/controllers/bridge/constants.ts b/app/scripts/controllers/bridge/constants.ts index 0a6580c1bc65..b723c8d612c8 100644 --- a/app/scripts/controllers/bridge/constants.ts +++ b/app/scripts/controllers/bridge/constants.ts @@ -26,105 +26,7 @@ export const DEFAULT_BRIDGE_CONTROLLER_STATE: BridgeControllerState = { srcTopAssets: [], destTokens: {}, destTopAssets: [], - quotes: [ - // { - // quote: { - // requestId: 'a750458d-910a-4f9d-8a76-19ffe7d4e89c', - // srcChainId: 10, - // srcAsset: { - // chainId: 10, - // address: '0x0b2c639c533813f4aa9d7837caf62653d097ff85', - // symbol: 'USDC', - // name: 'USD Coin', - // decimals: 6, - // icon: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // logoURI: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // chainAgnosticId: null, - // }, - // srcTokenAmount: '14000000', - // destChainId: 42161, - // destAsset: { - // chainId: 42161, - // address: '0xaf88d065e77c8cc2239327c5edb3a432268e5831', - // symbol: 'USDC', - // name: 'USD Coin', - // decimals: 6, - // icon: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // logoURI: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // chainAgnosticId: null, - // }, - // destTokenAmount: '13600000', - // feeData: { - // metabridge: { - // amount: '0', - // asset: { - // chainId: 10, - // address: '0x0b2c639c533813f4aa9d7837caf62653d097ff85', - // symbol: 'USDC', - // name: 'USD Coin', - // decimals: 6, - // icon: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // logoURI: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // chainAgnosticId: null, - // }, - // }, - // }, - // bridgeId: 'socket', - // bridges: ['celercircle'], - // steps: [ - // { - // action: 'bridge', - // srcChainId: 10, - // destChainId: 42161, - // protocol: { - // name: 'cctp', - // displayName: 'Circle CCTP', - // icon: 'https://movricons.s3.ap-south-1.amazonaws.com/CCTP.svg', - // }, - // srcAsset: { - // chainId: 10, - // address: '0x0b2c639c533813f4aa9d7837caf62653d097ff85', - // symbol: 'USDC', - // name: 'USD Coin', - // decimals: 6, - // icon: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // logoURI: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // chainAgnosticId: null, - // }, - // destAsset: { - // chainId: 42161, - // address: '0xaf88d065e77c8cc2239327c5edb3a432268e5831', - // symbol: 'USDC', - // name: 'USD Coin', - // decimals: 6, - // icon: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // logoURI: 'https://assets.polygon.technology/tokenAssets/usdc.svg', - // chainAgnosticId: null, - // }, - // srcAmount: '14000000', - // destAmount: '13600000', - // }, - // ], - // }, - // approval: { - // chainId: 10, - // to: '0x0b2c639c533813f4aa9d7837caf62653d097ff85', - // from: '0x141d32a89a1e0a5ef360034a2f60a4b917c18838', - // value: '0x00', - // data: '0x095ea7b3000000000000000000000000b90357f2b86dbfd59c3502215d4060f71df8ca0e0000000000000000000000000000000000000000000000000000000000d59f80', - // gasLimit: 61865, - // }, - // trade: { - // chainId: 10, - // to: '0xB90357f2b86dbfD59c3502215d4060f71DF8ca0e', - // from: '0x141d32a89a1e0a5ef360034a2f60a4b917c18838', - // value: '0x00', - // data: '0x3ce33bff00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000b2c639c533813f4aa9d7837caf62653d097ff850000000000000000000000000000000000000000000000000000000000d59f8000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000f736f636b6574416461707465725632000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000003a23f943181408eac424116af7b7790c94cb97a50000000000000000000000003a23f943181408eac424116af7b7790c94cb97a5000000000000000000000000000000000000000000000000000000000000a4b10000000000000000000000000b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000af88d065e77c8cc2239327c5edb3a432268e58310000000000000000000000000000000000000000000000000000000000d59f8000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000716a8b9dd056055c84b7a2ba0a016099465a518700000000000000000000000000000000000000000000000000000000000000e80000018cb7dfe9d00000000000000000000000000000000000000000000000000000000000d59f8000000000000000000000000000000000000000000000000000000000000000c4000000000000000000000000141d32a89a1e0a5ef360034a2f60a4b917c188380000000000000000000000000b2c639c533813f4aa9d7837caf62653d097ff85000000000000000000000000000000000000000000000000000000000000a4b100000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000061a8000000000000000000000000000000000000000000000000037c4e6d05ade63f74fc570e26c4e28f1ef3d39829e4aaab4eab15701586d9c98159a5806a9681bb9f1e7bb60a29f02b43d3067e4953aa05a748b0647f71440301c', - // gasLimit: 290954, - // }, - // estimatedProcessingTimeInSeconds: 1500, - // }, - ], + quotes: [], quoteRequest: { walletAddress: undefined, srcTokenAddress: zeroAddress(), diff --git a/lavamoat/build-system/policy.json b/lavamoat/build-system/policy.json index 3d31e465d90f..6e3b319da1e8 100644 --- a/lavamoat/build-system/policy.json +++ b/lavamoat/build-system/policy.json @@ -2131,8 +2131,7 @@ "chokidar>normalize-path": true, "chokidar>readdirp": true, "del>is-glob": true, - "eslint>glob-parent": true, - "tsx>fsevents": true + "eslint>glob-parent": true } }, "chokidar>anymatch": { @@ -8884,13 +8883,6 @@ "typescript": true } }, - "tsx>fsevents": { - "globals": { - "console.assert": true, - "process.platform": true - }, - "native": true - }, "typescript": { "builtin": { "buffer.Buffer": true, diff --git a/ui/store/store.ts b/ui/store/store.ts index f8921532a383..8433511380e7 100644 --- a/ui/store/store.ts +++ b/ui/store/store.ts @@ -152,16 +152,6 @@ export default function configureStore(preloadedState: any) { * performance due to the Redux state growing larger. */ immutableCheck: false, - }).concat((store) => (next) => (action) => { - console.groupCollapsed(action.type); - console.log('dispatching', action); - const result = next(action); - console.log('next state', { - bridgeState: store.getState().metamask.bridgeState, - bridge: store.getState().bridge, - }); - console.groupEnd(action.type); - return result; }), devTools: false, enhancers,