Skip to content

Commit

Permalink
Merge pull request #41 from tokenguardio/dapp-analytics-dev
Browse files Browse the repository at this point in the history
Release 3.3.1
  • Loading branch information
rrozek authored Oct 11, 2024
2 parents ca688dc + 80f9409 commit 075fe96
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dashboard-creator-server",
"private": false,
"version": "3.3.0",
"version": "3.3.1",
"license": "MIT",
"main": "src/server.ts",
"engines": {
Expand Down
2 changes: 2 additions & 0 deletions src/components/dapp-analytics/dapp-analytics.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ export async function fetchDappById(id) {
const response = await axios.get(
`${API_BASE_URL}/dapp-analytics/dapp/${id}`,
);
logger.info(response.data);
// const blockchainData = await
if (response.status === 200) {
return { data: response.data, error: null };
}
Expand Down
23 changes: 14 additions & 9 deletions src/components/node-api/chainstate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@ import { ApiPromise, WsProvider } from '@polkadot/api';
import { ethers } from 'ethers';

const rpcEndpoints: { [key: string]: string } = {
polkadot: 'wss://rpc.polkadot.io',
kusama: 'wss://kusama-rpc.polkadot.io',
'aleph-zero': 'wss://rpc.azero.dev',
moonbeam: 'wss://moonbeam.api.onfinality.io/public-ws',
'arbitrum-one': 'https://arb1.arbitrum.io/rpc',
'arbitrum-nova': 'https://nova.arbitrum.io/rpc',
optimism: 'https://optimism.api.onfinality.io/public',
bifrost: 'wss://bifrost-rpc.dwellir.com',
hydration: 'wss://hydradx-rpc.dwellir.com',
polkadot: process.env.WSS_POLKADOT || 'wss://rpc.polkadot.io',
kusama: process.env.WSS_KUSAMA || 'wss://kusama-rpc.polkadot.io',
'aleph-zero': process.env.WSS_ALEPH_ZERO || 'wss://rpc.azero.dev',
moonbeam:
process.env.WSS_MOONBEAM || 'wss://moonbeam.api.onfinality.io/public-ws',
'arbitrum-one':
process.env.RPC_ARBITRUM_ONE || 'https://arb1.arbitrum.io/rpc',
'arbitrum-nova':
process.env.RPC_ARBITRUM_NOVA || 'https://nova.arbitrum.io/rpc',
ethereum: process.env.RPC_ETHEREUM || 'https://eth.api.onfinality.io/public',
optimism:
process.env.RPC_OPTIMISM || 'https://optimism.api.onfinality.io/public',
bifrost: process.env.WSS_BIFROST || 'wss://bifrost-rpc.dwellir.com',
hydration: process.env.WSS_HYDRATION || 'wss://hydradx-rpc.dwellir.com',
};

export async function getCurrentBlock(chain: string): Promise<number> {
Expand Down

0 comments on commit 075fe96

Please sign in to comment.