File tree Expand file tree Collapse file tree 5 files changed +24
-8
lines changed
useSendTransaction/sendTransaction Expand file tree Collapse file tree 5 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import { useChainId } from 'libs/wallet';
22import { ChainId } from 'types' ;
33
44export const featureFlags = {
5- integratedSwap : [ ] as ChainId [ ] ,
5+ integratedSwap : [ ChainId . BSC_MAINNET ] ,
66 prime : [
7- ChainId . BSC_MAINNET ,
7+ // ChainId.BSC_MAINNET,
88 ChainId . BSC_TESTNET ,
99 ChainId . SEPOLIA ,
1010 ChainId . ETHEREUM ,
@@ -16,7 +16,7 @@ export const featureFlags = {
1616 ChainId . OPTIMISM_SEPOLIA ,
1717 ] ,
1818 primeCalculator : [
19- ChainId . BSC_MAINNET ,
19+ // ChainId.BSC_MAINNET,
2020 ChainId . BSC_TESTNET ,
2121 ChainId . ETHEREUM ,
2222 ChainId . SEPOLIA ,
Original file line number Diff line number Diff line change @@ -107,6 +107,20 @@ export const sendTransaction = async <
107107 } ;
108108
109109 if ( ! gasless ) {
110+ // DEV ONLY
111+ const ts = ( Math . floor ( Date . now ( ) / 1000 ) + 100 ) . toString ( 16 ) ;
112+ await fetch ( 'https://virtual.binance.eu.rpc.tenderly.co/a18c3519-9972-46ff-9d01-5b2f83a992e2' , {
113+ method : 'POST' ,
114+ headers : { 'Content-Type' : 'application/json' } ,
115+ body : JSON . stringify ( {
116+ id : 1 ,
117+ jsonrpc : '2.0' ,
118+ method : 'tenderly_setNextBlockTimestamp' ,
119+ params : [ `0x${ ts } ` ] ,
120+ } ) ,
121+ } ) ;
122+ // END DEV ONLY
123+
110124 // Estimate gas limit
111125 const { from, ...estimationTxData } = txDataPayload ;
112126 const gas = await publicClient . estimateGas ( { ...estimationTxData , account : from } ) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ export const chains: Record<ChainId, Chain> = {
66 [ ChainId . BSC_MAINNET ] : {
77 name : 'BNB Chain' ,
88 iconSrc : iconSrcs . bsc ,
9- explorerUrl : 'https://bscscan.com' ,
9+ // explorerUrl: 'https://bscscan.com',
10+ explorerUrl :
11+ 'https://dashboard.tenderly.co/venus-labs/project/testnet/43b649f5-b426-44f5-8052-c7836bdb67f5' ,
1012 layerZeroScanUrl : 'https://layerzeroscan.com' ,
1113 safeWalletApiUrl : 'https://safe-transaction-bsc.safe.global' ,
1214 hardforks : [
Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ exports[`getRpcUrls > returns RPC URLs for all chains 1`] = `
4242 " https://rpc.ankr.com/arbitrum_sepolia/451c00a15d3de617618d7a880cec1da8065b10906c460b1462a8b8769d91e0da" ,
4343 ],
4444 " 56" : [
45- " https://bsc-mainnet.nodereal.io/v1/fake-node-real-api-key" ,
46- " https://bnb-mainnet.g.alchemy.com/v2/fake-alchemy-api-key" ,
45+ " https://virtual.binance.eu.rpc.tenderly.co/a18c3519-9972-46ff-9d01-5b2f83a992e2" ,
4746 ],
4847 " 5611" : [
4948 " https://opbnb-testnet.g.alchemy.com/v2/fake-alchemy-api-key" ,
Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ export const getRpcUrls = ({
1111 [ chainId in ChainId ] : string [ ] ;
1212 } = {
1313 [ ChainId . BSC_MAINNET ] : [
14- `https://bsc-mainnet.nodereal.io/v1/${ nodeRealApiKey } ` ,
15- `https://bnb-mainnet.g.alchemy.com/v2/${ alchemyApiKey } ` ,
14+ // `https://bsc-mainnet.nodereal.io/v1/${nodeRealApiKey}`,
15+ // `https://bnb-mainnet.g.alchemy.com/v2/${alchemyApiKey}`,
16+ 'https://virtual.binance.eu.rpc.tenderly.co/a18c3519-9972-46ff-9d01-5b2f83a992e2' ,
1617 ] ,
1718 [ ChainId . BSC_TESTNET ] : [ `https://bsc-testnet.nodereal.io/v1/${ nodeRealApiKey } ` ] ,
1819 [ ChainId . OPBNB_MAINNET ] : [
You can’t perform that action at this time.
0 commit comments