Skip to content
Open
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
1 change: 0 additions & 1 deletion packages/hardhat/deployments/monadDevnet/.chainId

This file was deleted.

8 changes: 4 additions & 4 deletions packages/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const Home: NextPage = () => {
<BoltIcon className="h-8 w-8" />
<p>
Get testnet funds from the{" "}
<Link href="#" passHref className="link">
{/* TODO: Add Faucet link here */}Faucet
<Link href="https://testnet.monad.xyz" passHref className="link" target="_blank">
Faucet
</Link>{" "}
</p>
</div>
Expand All @@ -64,8 +64,8 @@ const Home: NextPage = () => {
<MagnifyingGlassIcon className="h-8 w-8" />
<p>
Explore your local transactions with the{" "}
<Link href="" passHref className="link">
{/* TODO: Add Explorer link here */}Block Explorer
<Link href="https://testnet.monadexplorer.com" passHref className="link" target="_blank">
Block Explorer
</Link>{" "}
tab.
</p>
Expand Down
16 changes: 12 additions & 4 deletions packages/nextjs/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ export const Footer = () => {
<ul className="menu menu-horizontal w-full">
<div className="flex justify-center items-center gap-2 text-sm w-full">
<div className="text-center">
{/* TODO: add the scaffold-eth-monad repo link */}
<a href="https://github.com/scaffold-eth/se-2" target="_blank" rel="noreferrer" className="link">
<a
href="https://github.com/monad-developers/scaffold-eth-monad"
target="_blank"
rel="noreferrer"
className="link"
>
Fork me
</a>
</div>
Expand Down Expand Up @@ -78,8 +82,12 @@ export const Footer = () => {
</div>
<span>·</span>
<div className="text-center">
<a href="https://t.me/joinchat/KByvmRe5wkR-8F_zz6AjpA" target="_blank" rel="noreferrer" className="link">
{/* TODO: Add link to github repo to create issue */}
<a
href="https://github.com/monad-developers/scaffold-eth-monad/issues"
target="_blank"
rel="noreferrer"
className="link"
>
Support
</a>
</div>
Expand Down
148 changes: 147 additions & 1 deletion packages/nextjs/contracts/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,152 @@
*/
import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract";

const deployedContracts = {} as const;
const deployedContracts = {
10143: {
YourContract: {
address: "0x0e3C28aBCFF06D243788C9ef321a2D72715fC249",
abi: [
{
inputs: [
{
internalType: "address",
name: "_owner",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "greetingSetter",
type: "address",
},
{
indexed: false,
internalType: "string",
name: "newGreeting",
type: "string",
},
{
indexed: false,
internalType: "bool",
name: "premium",
type: "bool",
},
{
indexed: false,
internalType: "uint256",
name: "value",
type: "uint256",
},
],
name: "GreetingChange",
type: "event",
},
{
inputs: [],
name: "greeting",
outputs: [
{
internalType: "string",
name: "",
type: "string",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "premium",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "_newGreeting",
type: "string",
},
],
name: "setGreeting",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [],
name: "totalCounter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "userGreetingCounter",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "withdraw",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
stateMutability: "payable",
type: "receive",
},
],
inheritedFunctions: {},
},
},
} as const;

export default deployedContracts satisfies GenericContractsDeclaration;
7 changes: 2 additions & 5 deletions packages/nextjs/utils/customChains.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { defineChain } from "viem";

// TODO: Add Chain details here.
export const monadTestnet = defineChain({
id: 10143,
name: "Monad Testnet",
nativeCurrency: { name: "Monad", symbol: "MON", decimals: 18 },
rpcUrls: {
default: {
// TODO: Add Monad RPC URL
http: ["<MONAD_RPC_URL>"],
http: ["https://testnet-rpc.monad.xyz"],
},
},
blockExplorers: {
default: {
name: "Monad Testnet Blockscout",
// TODO: Add Explorer URL
name: "Monad Testnet Explorer",
url: "https://testnet.monadexplorer.com",
},
},
Expand Down
Loading