-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: streamline Google Tag Manager integration and update token …
…inspector initialization
- Loading branch information
Showing
8 changed files
with
31 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import { Inspector } from "@oraichain/orai-token-inspector"; | ||
import { Inspector } from '@oraichain/orai-token-inspector'; | ||
|
||
export const tokenInspector = await Inspector.create({ | ||
oraiRpcUrl: "https://indexer.orai.io", | ||
bscRpcUrl: "https://bsc-dataseed.binance.org", | ||
ethRpcUrl: "https://eth.llamarpc.com", | ||
tronRpcUrl: "https://api.trongrid.io/", | ||
solanaRpcUrl: "https://mainnet.helius-rpc.com/?api-key=3b28a0fc-0ef6-48ef-b55c-c55ae74cb6a6" | ||
}); | ||
console.time('load-inspector'); | ||
|
||
export const getTokenInspectorInstance = async () => { | ||
if (!window.tokenInspector) { | ||
window.tokenInspector = await Inspector.create({ | ||
oraiRpcUrl: 'https://indexer.orai.io', | ||
bscRpcUrl: 'https://bsc-dataseed.binance.org', | ||
ethRpcUrl: 'https://eth.llamarpc.com', | ||
tronRpcUrl: 'https://api.trongrid.io/', | ||
solanaRpcUrl: 'https://mainnet.helius-rpc.com/?api-key=3b28a0fc-0ef6-48ef-b55c-c55ae74cb6a6' | ||
}); | ||
} | ||
return window.tokenInspector; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters