Skip to content

Commit

Permalink
NFT
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanNero committed Jan 23, 2024
1 parent 4b37cec commit aff9968
Show file tree
Hide file tree
Showing 5 changed files with 235 additions and 5 deletions.
24 changes: 23 additions & 1 deletion packages/hardhat/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ const polyscanApiKey = process.env.POLYSCAN_API_KEY || "DNXJA8RX2Q3VZ4URQIWP7Z68

const config: HardhatUserConfig = {
solidity: {
version: "0.8.17",
compilers: [
{
version: "0.8.18",
},
{
version: "0.8.17",
},
],
settings: {
optimizer: {
enabled: true,
Expand All @@ -27,6 +34,16 @@ const config: HardhatUserConfig = {
},
},
},
// solidity: {
// version: "0.8.17",
// settings: {
// optimizer: {
// enabled: true,
// // https://docs.soliditylang.org/en/latest/using-the-compiler.html#optimizer-options
// runs: 200,
// },
// },
// },
defaultNetwork: "localhost",
namedAccounts: {
deployer: {
Expand All @@ -38,16 +55,19 @@ const config: HardhatUserConfig = {
// View the networks that are pre-configured.
// If the network you are looking for is not here you can add new network settings
hardhat: {
chainId: 1337,
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${providerApiKey}`,
enabled: process.env.MAINNET_FORKING_ENABLED === "true",
},
},
mainnet: {
chainId: 1,
url: `https://eth-mainnet.alchemyapi.io/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
sepolia: {
chainId: 11155111,
url: `https://eth-sepolia.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
Expand All @@ -72,10 +92,12 @@ const config: HardhatUserConfig = {
accounts: [deployerPrivateKey],
},
polygon: {
chainId: 137,
url: `https://polygon-mainnet.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
polygonMumbai: {
chainId: 80001,
url: `https://polygon-mumbai.g.alchemy.com/v2/${providerApiKey}`,
accounts: [deployerPrivateKey],
},
Expand Down
1 change: 1 addition & 0 deletions packages/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
},
"dependencies": {
"@openzeppelin/contracts": "^4.8.1",
"@pinata/sdk": "^2.1.0",
"dotenv": "^16.0.3",
"envfile": "^6.18.0",
"qrcode": "^1.5.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/book/chapters/EIPs/EIPList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const EIPData = [
// { href: "/book/EIPs/173_Ownable", text: "EIP 173 - Ownable" }, // This standard is stale and requires 165 currently which isn't commonly used
{ href: "/book/EIPs/191_PersonalMessage", text: "EIP 191 - Personal Messages" },
{ href: "/book/EIPs/712_StructuredMessage", text: "EIP 712 - Structured Messages" },
// { href: "/book/EIPs/721_NonFungibleToken", text: "EIP 721 - Non Fungible Token" },
{ href: "/book/EIPs/721_NFT", text: "EIP 721 - Non Fungible Token" },
// { href: "/book/EIPs/1167_Proxy", text: "EIP 1167 - Proxy" },
// { href: "/book/EIPs/1967_ProxyStorage", text: "EIP 1967 - Proxy Storage" },
// { href: "/book/EIPs/3156_FlashLoans", text: "EIP 3156 - Flash Loans" },
Expand Down
6 changes: 6 additions & 0 deletions packages/nextjs/utils/scaffold-eth/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ export type ChainAttributes = {
structuredMessage?: {
main: string;
};
nft?: {
main: string;
};
};

// To allow your dapp to live on another chain, simply add its chainId to this array.
Expand Down Expand Up @@ -114,6 +117,9 @@ export const chainData: Record<string, ChainAttributes> = {
structuredMessage: {
main: "0x1cc01056Db7815a35c031a94EeA62CCbD5bc34fd",
},
nft: {
main: "0x38469cC60E5d7528edC740E1D749EAe60422bF41",
},
},
[chains.optimismGoerli.id]: {
color: "#f01a37",
Expand Down
Loading

0 comments on commit aff9968

Please sign in to comment.