Skip to content

Commit

Permalink
feat: deployed NFT test contract to Linea Sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
Julink-eth committed Aug 26, 2024
1 parent 0ccd987 commit a567680
Show file tree
Hide file tree
Showing 12 changed files with 81,052 additions and 16 deletions.
16 changes: 16 additions & 0 deletions contracts/NFTMock.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pragma solidity 0.8.25;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

contract NFTMock is ERC721 {
uint256 public currentTokenId;

constructor() ERC721("Test", "TST") {
currentTokenId = 1;
}

function mint() external {
_safeMint(msg.sender, currentTokenId);
currentTokenId++;
}
}
58 changes: 58 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,66 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-verify";

import * as dotenv from "dotenv";

dotenv.config();

const deployer =
process.env.DEPLOYER_PRIVATE_KEY ||
"ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";

const config: HardhatUserConfig = {
solidity: "0.8.25",

networks: {
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
chainId: 11155111,
accounts: [deployer],
},
lineaSepolia: {
url: `https://linea-sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
chainId: 59141,
accounts: [deployer],
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
chainId: 1,
accounts: [deployer],
},
lineaMainnet: {
url: `https://linea-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
chainId: 59144,
accounts: [deployer],
},
},
etherscan: {
apiKey: {
lineaSepolia: process.env.LINEASCAN_API_KEY ?? "",
lineaMainnet: process.env.LINEASCAN_API_KEY ?? "",
sepolia: process.env.ETHERSCAN_API_KEY ?? "",
mainnet: process.env.ETHERSCAN_API_KEY ?? "",
},
customChains: [
{
network: "lineaSepolia",
chainId: 59141,
urls: {
apiURL: "https://api-sepolia.lineascan.build/api",
browserURL: "https://sepolia.lineascan.build/",
},
},
{
network: "lineaMainnet",
chainId: 59144,
urls: {
apiURL: "https://api.lineascan.build/api",
browserURL: "https://lineascan.build/",
},
},
],
},
};

export default config;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../build-info/346f95e8f01c7704580fdb4785f590cb.json"
}
Loading

0 comments on commit a567680

Please sign in to comment.