Skip to content

Commit f89f598

Browse files
committed
Change back mendoza into infurademo network
1 parent f99b179 commit f89f598

File tree

13 files changed

+38
-31
lines changed

13 files changed

+38
-31
lines changed

backend/get-stats.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { formatGwei } from "viem";
22
import {
33
getAggregatedDataSinceTimestamp,
44
getBlocksSinceTimestamp,
5+
getEntityCountOnNetwork,
56
getLatestBlockNumber,
67
getOldestBlockNumber,
78
} from "./src/arkiv";
@@ -86,6 +87,10 @@ async function getGLMTransfers(fromBlock?: bigint, toBlock?: bigint) {
8687
});
8788
}
8889

89-
getStats();
90-
getBlocks();
91-
getGLMTransfers();
90+
await getStats();
91+
await getBlocks();
92+
// getGLMTransfers();
93+
const entityCount = await getEntityCountOnNetwork();
94+
console.log("Entity count on network:", entityCount);
95+
const latestBlockNumber = await getLatestBlockNumber();
96+
console.log("Latest block number:", latestBlockNumber);

backend/src/arkiv.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,3 +318,7 @@ export async function getAggregatedDataSinceTimestamp({
318318
aggregatedDataSchema.parse(entity.toJson()),
319319
);
320320
}
321+
322+
export async function getEntityCountOnNetwork(): Promise<number> {
323+
return arkivPublicClient.getEntityCount();
324+
}

frontend/react-example/src/features/arkiv-client/constants.ts

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
import type { Chain } from "@arkiv-network/sdk";
2-
import { mendoza } from "@arkiv-network/sdk/chains";
32

4-
export const ARKIV_CHAIN: Chain = mendoza;
5-
// export const ARKIV_CHAIN: Chain = {
6-
// id: 60138453045,
7-
// name: "Arkiv EthDemo Testnet",
8-
// nativeCurrency: {
9-
// decimals: 18,
10-
// name: "Ether",
11-
// symbol: "ETH",
12-
// },
13-
// rpcUrls: {
14-
// default: {
15-
// http: [`https://infurademo.hoodi.arkiv.network/rpc`],
16-
// webSocket: [`wss://infurademo.hoodi.arkiv.network/rpc/ws`],
17-
// },
18-
// },
19-
// };
3+
export const ARKIV_CHAIN: Chain = {
4+
id: 60138453045,
5+
name: "Arkiv EthDemo Testnet",
6+
nativeCurrency: {
7+
decimals: 18,
8+
name: "Ether",
9+
symbol: "ETH",
10+
},
11+
rpcUrls: {
12+
default: {
13+
http: [`https://infurademo.hoodi.arkiv.network/rpc`],
14+
webSocket: [`wss://infurademo.hoodi.arkiv.network/rpc/ws`],
15+
},
16+
},
17+
};
2018

2119
export const ENTITY_OWNER = "0xF46E23f6a6F6336D4C64D5D1c95599bF77a536f0";
2220

frontend/react-example/src/features/blocks/components/BlockSearchCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function BlockSearchCard({ className }: BlockSearchCardProps) {
9292
value: `${data.arkivEntityKey.slice(0, 8)}${data.arkivEntityKey.slice(
9393
-6,
9494
)}`,
95-
linkTo: `https://explorer.mendoza.hoodi.arkiv.network/entity/${data.arkivEntityKey}?tab=data`,
95+
linkTo: `https://explorer.infurademo.hoodi.arkiv.network/entity/${data.arkivEntityKey}?tab=data`,
9696
},
9797
];
9898

frontend/react-example/src/features/blocks/components/LatestBlocksCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export function LatestBlocksCard({ className }: LatestBlocksCardProps) {
174174
</TableCell>
175175
<TableCell>
176176
<a
177-
href={`https://explorer.mendoza.hoodi.arkiv.network/entity/${block.arkivEntityKey}?tab=data`}
177+
href={`https://explorer.infurademo.hoodi.arkiv.network/entity/${block.arkivEntityKey}?tab=data`}
178178
target="_blank"
179179
rel="noreferrer"
180180
className="inline-flex items-center justify-center text-sky-700 hover:text-sky-900 gap-1"

frontend/react-example/src/features/gas-price/components/GasPriceHeatmapCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export function GasPriceHeatmapCard({ className }: GasPriceHeatmapCardProps) {
158158
alwaysShowRange
159159
getCellHref={(datum) =>
160160
datum.meta?.arkivEntityKey
161-
? `https://explorer.mendoza.hoodi.arkiv.network/entity/${datum.meta.arkivEntityKey}?tab=data`
161+
? `https://explorer.infurademo.hoodi.arkiv.network/entity/${datum.meta.arkivEntityKey}?tab=data`
162162
: undefined
163163
}
164164
cellLinkTarget="_blank"

frontend/react-example/src/features/gas-price/components/GasPriceTrendCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function GasPriceTrendCard({ className }: GasPriceTrendCardProps) {
5959
return;
6060
}
6161

62-
const explorerUrl = `https://explorer.mendoza.hoodi.arkiv.network/entity/${entityKey}?tab=data`;
62+
const explorerUrl = `https://explorer.infurademo.hoodi.arkiv.network/entity/${entityKey}?tab=data`;
6363

6464
window.open(explorerUrl, "_blank", "noopener,noreferrer");
6565
},

frontend/react-example/src/features/glm-transfers/components/GlmTransferDesktopChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function GlmTransferDesktopChart({
8787
return;
8888
}
8989

90-
const explorerUrl = `https://explorer.mendoza.hoodi.arkiv.network/entity/${entityKey}?tab=data`;
90+
const explorerUrl = `https://explorer.infurademo.hoodi.arkiv.network/entity/${entityKey}?tab=data`;
9191

9292
window.open(explorerUrl, "_blank", "noopener,noreferrer");
9393
},

frontend/react-example/src/features/glm-transfers/components/GlmTransferMobileChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function ChartWithSelector({
208208
return;
209209
}
210210

211-
const explorerUrl = `https://explorer.mendoza.hoodi.arkiv.network/entity/${entityKey}?tab=data`;
211+
const explorerUrl = `https://explorer.infurademo.hoodi.arkiv.network/entity/${entityKey}?tab=data`;
212212

213213
window.open(explorerUrl, "_blank", "noopener,noreferrer");
214214
},

frontend/react-example/src/features/transactions/components/TransactionHeatmapCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export function TransactionHeatmapCard({
158158
alwaysShowRange
159159
getCellHref={(datum) =>
160160
datum.meta?.arkivEntityKey
161-
? `https://explorer.mendoza.hoodi.arkiv.network/entity/${datum.meta.arkivEntityKey}?tab=data`
161+
? `https://explorer.infurademo.hoodi.arkiv.network/entity/${datum.meta.arkivEntityKey}?tab=data`
162162
: undefined
163163
}
164164
cellLinkTarget="_blank"

0 commit comments

Comments
 (0)