Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
MONAD_RPC_URL: ${{ secrets.URL }}
MONAD_CHAIN_ID: ${{ secrets.CHAIN_ID }}
MONAD_EXPLORER_URL: ${{ secrets.EXPLORER }}
run: yarn deploy --network monadDevnet
run: yarn deploy --network monadTestnet

- name: Run nextjs lint
run: yarn next:lint --max-warnings=0
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"lint": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore ./*.ts ./deploy/**/*.ts ./scripts/**/*.ts ./test/**/*.ts",
"lint-staged": "eslint --config ./.eslintrc.json --ignore-path ./.eslintignore",
"format": "prettier --write ./*.ts ./deploy/**/*.ts ./scripts/**/*.ts ./test/**/*.ts",
"test": "REPORT_GAS=true hardhat test --network monadDevnet",
"test": "REPORT_GAS=true hardhat test --network monadTestnet",
"verify": "hardhat run scripts/verifyContract.ts"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/scaffold.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { monadDevnet } from "./utils/customChains";
import { monadTestnet } from "./utils/customChains";
import * as chains from "viem/chains";

export type ScaffoldConfig = {
Expand All @@ -11,7 +11,7 @@ export type ScaffoldConfig = {

const scaffoldConfig = {
// The networks on which your DApp is live
targetNetworks: [monadDevnet],
targetNetworks: [monadTestnet],

// The interval at which your front-end polls the RPC servers for new data
// it has no effect if you only target the local network (default is 4000)
Expand Down
10 changes: 5 additions & 5 deletions packages/nextjs/utils/customChains.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { defineChain } from "viem";

// TODO: Add Chain details here.
export const monadDevnet = defineChain({
id: 41454,
name: "Monad Devnet",
export const monadTestnet = defineChain({
id: 10143,
name: "Monad Testnet",
nativeCurrency: { name: "Monad", symbol: "MON", decimals: 18 },
rpcUrls: {
default: {
Expand All @@ -13,9 +13,9 @@ export const monadDevnet = defineChain({
},
blockExplorers: {
default: {
name: "Monad Devnet Blockscout",
name: "Monad Testnet Blockscout",
// TODO: Add Explorer URL
url: "<MONAD_BLOCKSCOUT_URL>",
url: "https://testnet.monadexplorer.com",
},
},
});
6 changes: 3 additions & 3 deletions packages/nextjs/utils/scaffold-eth/networks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { monadDevnet } from "../customChains";
import { monadTestnet } from "../customChains";
import * as chains from "viem/chains";
import scaffoldConfig from "~~/scaffold.config";

Expand All @@ -14,7 +14,7 @@ export type ChainWithAttributes = chains.Chain & Partial<ChainAttributes>;

// Mapping of chainId to RPC chain name an format followed by alchemy and infura
export const RPC_CHAIN_NAMES: Record<number, string> = {
[monadDevnet.id]: "monad-devnet",
[monadTestnet.id]: "monad-testnet",
};

export const getAlchemyHttpUrl = (chainId: number) => {
Expand All @@ -24,7 +24,7 @@ export const getAlchemyHttpUrl = (chainId: number) => {
};

export const NETWORKS_EXTRA_DATA: Record<string, ChainAttributes> = {
[monadDevnet.id]: {
[monadTestnet.id]: {
color: "#200052",
},
};
Expand Down
Loading