@@ -604,6 +604,237 @@ Array [
604
604
]
605
605
` ;
606
606
607
+ exports [` BridgeStatusController submitTx: EVM bridge should delay after submitting base approval 1` ] = `
608
+ Object {
609
+ " chainId" : " 0xa4b1" ,
610
+ " hash" : " 0xevmTxHash" ,
611
+ " id" : " test-tx-id" ,
612
+ " status" : " unapproved" ,
613
+ " time" : 1234567890 ,
614
+ " txParams" : Object {
615
+ " chainId" : " 0xa4b1" ,
616
+ " data" : " 0xdata" ,
617
+ " from" : " 0xaccount1" ,
618
+ " gasLimit" : " 0x5208" ,
619
+ " to" : " 0xbridgeContract" ,
620
+ " value" : " 0x0" ,
621
+ },
622
+ " txReceipt" : Object {
623
+ " effectiveGasPrice" : " 0x1880a" ,
624
+ " gasUsed" : " 0x2c92a" ,
625
+ },
626
+ " type" : " bridge" ,
627
+ }
628
+ ` ;
629
+
630
+ exports [` BridgeStatusController submitTx: EVM bridge should delay after submitting base approval 2` ] = `
631
+ Object {
632
+ " account" : " 0xaccount1" ,
633
+ " approvalTxId" : " test-approval-tx-id" ,
634
+ " batchId" : undefined ,
635
+ " estimatedProcessingTimeInSeconds" : 15 ,
636
+ " hasApprovalTx" : true ,
637
+ " initialDestAssetBalance" : undefined ,
638
+ " isStxEnabled" : false ,
639
+ " pricingData" : Object {
640
+ " amountSent" : " 1.234" ,
641
+ " amountSentInUsd" : " 1.01" ,
642
+ " quotedGasAmount" : " .00055" ,
643
+ " quotedGasInUsd" : " 2.5778" ,
644
+ " quotedReturnInUsd" : " 0.134214" ,
645
+ },
646
+ " quote" : Object {
647
+ " bridgeId" : " lifi" ,
648
+ " bridges" : Array [
649
+ " across" ,
650
+ ],
651
+ " destAsset" : Object {
652
+ " address" : " 0x0000000000000000000000000000000000000000" ,
653
+ " assetId" : " eip155:10/slip44:60" ,
654
+ " chainId" : 10 ,
655
+ " coinKey" : " ETH" ,
656
+ " decimals" : 18 ,
657
+ " icon" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
658
+ " logoURI" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
659
+ " name" : " ETH" ,
660
+ " priceUSD" : " 2478.63" ,
661
+ " symbol" : " ETH" ,
662
+ },
663
+ " destChainId" : 10 ,
664
+ " destTokenAmount" : " 990654755978612" ,
665
+ " feeData" : Object {
666
+ " metabridge" : Object {
667
+ " amount" : " 8750000000000" ,
668
+ " asset" : Object {
669
+ " address" : " 0x0000000000000000000000000000000000000000" ,
670
+ " assetId" : " eip155:42161/slip44:60" ,
671
+ " chainId" : 42161 ,
672
+ " coinKey" : " ETH" ,
673
+ " decimals" : 18 ,
674
+ " icon" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
675
+ " logoURI" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
676
+ " name" : " ETH" ,
677
+ " priceUSD" : " 2478.7" ,
678
+ " symbol" : " ETH" ,
679
+ },
680
+ },
681
+ },
682
+ " minDestTokenAmount" : " 941000000000000" ,
683
+ " requestId" : " 197c402f-cb96-4096-9f8c-54aed84ca776" ,
684
+ " srcAsset" : Object {
685
+ " address" : " 0x0000000000000000000000000000000000000000" ,
686
+ " assetId" : " eip155:42161/slip44:60" ,
687
+ " chainId" : 42161 ,
688
+ " coinKey" : " ETH" ,
689
+ " decimals" : 18 ,
690
+ " icon" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
691
+ " logoURI" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
692
+ " name" : " ETH" ,
693
+ " priceUSD" : " 2478.7" ,
694
+ " symbol" : " ETH" ,
695
+ },
696
+ " srcChainId" : 8453 ,
697
+ " srcTokenAmount" : " 991250000000000" ,
698
+ " steps" : Array [
699
+ Object {
700
+ " action" : " bridge" ,
701
+ " destAmount" : " 990654755978612" ,
702
+ " destAsset" : Object {
703
+ " address" : " 0x0000000000000000000000000000000000000000" ,
704
+ " assetId" : " eip155:10/slip44:60" ,
705
+ " chainId" : 10 ,
706
+ " coinKey" : " ETH" ,
707
+ " decimals" : 18 ,
708
+ " icon" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
709
+ " logoURI" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
710
+ " name" : " ETH" ,
711
+ " priceUSD" : " 2478.63" ,
712
+ " symbol" : " ETH" ,
713
+ },
714
+ " destChainId" : 10 ,
715
+ " protocol" : Object {
716
+ " displayName" : " Across" ,
717
+ " icon" : " https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/bridges/acrossv2.png" ,
718
+ " name" : " across" ,
719
+ },
720
+ " srcAmount" : " 991250000000000" ,
721
+ " srcAsset" : Object {
722
+ " address" : " 0x0000000000000000000000000000000000000000" ,
723
+ " assetId" : " eip155:42161/slip44:60" ,
724
+ " chainId" : 42161 ,
725
+ " coinKey" : " ETH" ,
726
+ " decimals" : 18 ,
727
+ " icon" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
728
+ " logoURI" : " https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png" ,
729
+ " name" : " ETH" ,
730
+ " priceUSD" : " 2478.7" ,
731
+ " symbol" : " ETH" ,
732
+ },
733
+ " srcChainId" : 42161 ,
734
+ },
735
+ ],
736
+ },
737
+ " slippagePercentage" : 0 ,
738
+ " startTime" : 1234567890 ,
739
+ " status" : Object {
740
+ " srcChain" : Object {
741
+ " chainId" : 8453 ,
742
+ " txHash" : " 0xevmTxHash" ,
743
+ },
744
+ " status" : " PENDING" ,
745
+ },
746
+ " targetContractAddress" : undefined ,
747
+ " txMetaId" : " test-tx-id" ,
748
+ }
749
+ ` ;
750
+
751
+ exports [` BridgeStatusController submitTx: EVM bridge should delay after submitting base approval 3` ] = `
752
+ Array [
753
+ Array [
754
+ "BridgeController:stopPollingForQuotes",
755
+ ],
756
+ Array [
757
+ "AccountsController:getSelectedMultichainAccount",
758
+ ],
759
+ Array [
760
+ "BridgeController:trackUnifiedSwapBridgeEvent",
761
+ "Unified SwapBridge Submitted",
762
+ Object {
763
+ " action_type" : " swapbridge-v1" ,
764
+ " chain_id_destination" : " eip155:10" ,
765
+ " chain_id_source" : " eip155:8453" ,
766
+ " custom_slippage" : false ,
767
+ " gas_included" : false ,
768
+ " gas_included_7702" : false ,
769
+ " is_hardware_wallet" : false ,
770
+ " price_impact" : 0 ,
771
+ " provider" : " lifi_across" ,
772
+ " quoted_time_minutes" : 0.25 ,
773
+ " stx_enabled" : false ,
774
+ " swap_type" : " crosschain" ,
775
+ " token_symbol_destination" : " ETH" ,
776
+ " token_symbol_source" : " ETH" ,
777
+ " usd_amount_source" : 1.01 ,
778
+ " usd_quoted_gas" : 2.5778 ,
779
+ " usd_quoted_return" : 0 ,
780
+ } ,
781
+ ],
782
+ Array [
783
+ "AccountsController:getAccountByAddress",
784
+ "0xaccount1",
785
+ ],
786
+ Array [
787
+ "NetworkController:findNetworkClientIdByChainId",
788
+ "0xa4b1",
789
+ ],
790
+ Array [
791
+ "GasFeeController:getState",
792
+ ],
793
+ Array [
794
+ "TransactionController:getState",
795
+ ],
796
+ Array [
797
+ "AccountsController:getAccountByAddress",
798
+ "0xaccount1",
799
+ ],
800
+ Array [
801
+ "NetworkController:findNetworkClientIdByChainId",
802
+ "0xa4b1",
803
+ ],
804
+ Array [
805
+ "GasFeeController:getState",
806
+ ],
807
+ Array [
808
+ "TransactionController:getState",
809
+ ],
810
+ ]
811
+ ` ;
812
+
813
+ exports [` BridgeStatusController submitTx: EVM bridge should delay after submitting base approval 4` ] = `
814
+ Array [
815
+ Array [
816
+ Object {
817
+ " data" : Object {
818
+ " srcChainId" : " eip155:8453" ,
819
+ " stxEnabled" : false ,
820
+ },
821
+ " name" : " Bridge Transaction Completed" ,
822
+ } ,
823
+ [Function],
824
+ ],
825
+ Array [
826
+ Object {
827
+ " data" : Object {
828
+ " srcChainId" : " eip155:8453" ,
829
+ " stxEnabled" : false ,
830
+ },
831
+ " name" : " Bridge Transaction Approval Completed" ,
832
+ } ,
833
+ [Function],
834
+ ],
835
+ ]
836
+ ` ;
837
+
607
838
exports [` BridgeStatusController submitTx: EVM bridge should delay after submitting linea approval 1` ] = `
608
839
Object {
609
840
" chainId" : " 0xa4b1" ,
0 commit comments