Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
109 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PRIVATE_KEY=[YOUR_PRIVATE_KEY] | ||
ETHERSCAN_API_KEY=[YOUR_API_KEY] | ||
MAINNET_URL=https://mainnet.infura.io/v3/<YOUR_KEY> | ||
GOERLI_URL=https://eth-goerli.g.alchemy.com/v2/<YOUR_KEY> | ||
SEPOLIA_URL=https://eth-sepolia.g.alchemy.com/v2/<YOUR_KEY> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
# zkAMM-contracts | ||
# zkAMM-contracts | ||
|
||
Token0 0x1b3631A99A69275bC7E3b539FeD4DaAFaDDfe1B0 | ||
Token1 0x7aBF19CE8696A1D8945F9125758EbCe2F6F0Fd91 | ||
ZkAmmPair 0x94aD21Bf72F0f4ab545E59ea3d5C1F863d74C629 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
|
||
contract MockToken is ERC20 { | ||
constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) {} | ||
|
||
function mint(address to, uint256 amount) external { | ||
_mint(to, amount); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,33 @@ | ||
import { HardhatUserConfig } from "hardhat/config"; | ||
import "@nomicfoundation/hardhat-toolbox"; | ||
import dotenv from "dotenv"; | ||
dotenv.config(); | ||
|
||
const PRIVATE_KEY = process.env.PRIVATE_KEY; | ||
|
||
const config: HardhatUserConfig = { | ||
solidity: "0.8.19", | ||
solidity: { | ||
compilers: [ | ||
{ | ||
version: "0.8.18", | ||
settings: { | ||
optimizer: { | ||
enabled: true, | ||
runs: 200, | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
networks: { | ||
sepolia: { | ||
url: process.env.SEPOLIA_URL, | ||
accounts: [`${PRIVATE_KEY}`], | ||
}, | ||
}, | ||
etherscan: { | ||
apiKey: process.env.ETHERSCAN_API_KEY, | ||
}, | ||
}; | ||
|
||
export default config; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters