-
Notifications
You must be signed in to change notification settings - Fork 0
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
10 changed files
with
996 additions
and
49 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 |
---|---|---|
|
@@ -9,3 +9,4 @@ typechain-types | |
cache | ||
artifacts | ||
|
||
dist |
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,6 @@ | ||
import { Blake2s__factory } from "../typechain-types"; | ||
|
||
|
||
export default { | ||
Blake2s: Blake2s__factory.abi | ||
} |
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,5 @@ | ||
const Blake2s = require("./artifacts/contracts/Blake2s.sol/Blake2s.json"); | ||
|
||
module.exports = { | ||
Blake2s, | ||
}; |
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,12 +1,23 @@ | ||
{ | ||
"name": "hardhat-project", | ||
"name": "blake2s-solidity", | ||
"version": "0.1.0", | ||
"description": "Blake2s hash function for Solidity", | ||
"author": "Alex Plutta - [email protected]", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "hardhat test" | ||
"test": "hardhat test", | ||
"build": "yarn hardhat compile && yarn hardhat typechain && yarn tsc -p tsconfig-build.json" | ||
}, | ||
"devDependencies": { | ||
"@nomicfoundation/hardhat-chai-matchers": "^2.0.0", | ||
"@nomicfoundation/hardhat-ethers": "^3.0.5", | ||
"@nomicfoundation/hardhat-network-helpers": "^1.0.0", | ||
"@nomicfoundation/hardhat-toolbox": "^4.0.0", | ||
"@nomicfoundation/hardhat-verify": "^2.0.0", | ||
"@nomiclabs/hardhat-etherscan": "^3.1.7", | ||
"@openzeppelin/contracts": "^4.6.0", | ||
"@typechain/ethers-v6": "^0.5.0", | ||
"@typechain/hardhat": "^9.0.0", | ||
"@types/chai": "^4.3.4", | ||
"@types/mocha": "^10.0.1", | ||
"chai": "^4.3.7", | ||
|
@@ -15,11 +26,19 @@ | |
"hardhat": "^2.12.4", | ||
"hardhat-gas-reporter": "^1.0.9", | ||
"mocha": "^10.2.0", | ||
"solidity-coverage": "^0.8.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^4.9.5", | ||
"zksync-ethers": "^6.0.0" | ||
"typechain": "^8.3.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
"dependencies": { | ||
"blake2s": "^1.1.0" | ||
} | ||
"files": [ | ||
"dist", | ||
"LICENSE", | ||
"README.md", | ||
"build", | ||
"contracts/**/*.sol", | ||
"abi", | ||
"artifacts", | ||
"typechain" | ||
] | ||
} |
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,21 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2018", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"module": "CommonJS", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"outDir": "dist", | ||
"sourceMap": true | ||
}, | ||
"include": ["abi","contracts"], | ||
"exclude": ["**/*.test.ts"] | ||
} |
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
Oops, something went wrong.