Skip to content

Commit

Permalink
test trongrid
Browse files Browse the repository at this point in the history
  • Loading branch information
BigDealCompany committed Jan 23, 2024
1 parent 5465138 commit 149f1f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
REACT_APP_CHAIN_ID="11111"
REACT_APP_NETWORK_URL='https://imba-exchange.co/lightnode'
REACT_APP_NETWORK_URL='https://api.trongrid.io'
REACT_APP_TRON_NETWORK="mainnet"
TOKEN_LIST_URL='https://intercroneswap.com/troniswap.json'
#TOKEN_LIST_URL_LOCAL="http://localhost:3000/troniswap.json"
Expand Down
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
REACT_APP_CHAIN_ID="11111"
REACT_APP_NETWORK_URL='https://imba-exchange.co/lightnode'
REACT_APP_NETWORK_URL='https://api.trongrid.io'
REACT_APP_TRON_NETWORK="mainnet"
TOKEN_LIST_URL='https://intercroneswap.com/troniswap.json'
#TOKEN_LIST_URL_LOCAL="http://localhost:3000/troniswap.json"
Expand Down
10 changes: 3 additions & 7 deletions src/react-app-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,15 @@ interface tronWeb {
};
fullNode?: {
chainType?: '';
host?: 'https://imba-exchange.co/lightnode';
host?: 'https://api.trongrid.io';
};
}
interface Window {
// ethereum?: {
// isMetaMask?: true
// on?: (...args: any[]) => void
// removeListener?: (...args: any[]) => void
// },
ethereum?: Ethereum;
tronWeb?: tronWeb;
web3?: {};
web3?: Record<string, unknown>; // or use 'unknown' depending on your intent
}

declare const __DEV__: boolean;
declare module 'tronweb';
declare module '@intercroneswap/java-tron-provider';
Expand Down

0 comments on commit 149f1f0

Please sign in to comment.