mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* remove sdk/tests (#622) * remove sdk/tests * chore: update yarn.lock --------- Co-authored-by: Ayman <aymanshaik1015@gmail.com> * fix: add range check on paddedInLength of shaBytesDynamic (#623) * fix ci (#626) * implement self uups upgradeable (#592) * implement self uups upgradeable * small changes in identityVerificationHubImplV2 * delete aderyn.toml * chore: add custom verifier * chnage return output * feat: use self structs and a Generic output struct * feat: add userIdentifier, nullifier, forbiddencountries to returned output * add root view functions from registry * fix: build and compilation errors * add userDefined data into selfVerificationRoot * "resolve conflicts" * fix compilation problem * fix how to register verification config * test: CustomVerifier * fix verification root and hub integration * add scope check in hub impl * replace poseidon hash to ripemd+sha256 * add todo list * feat: refactor and add test cases for generic formatter * add performUserIdentifierCheck in basicVerification * change how to handle additionalData and fix stack too deep * start adding test codes * fix dependency problems in monorepo * fix: forbidden countries (#612) LGTM! * able to run test code * pass happy path * delete unused codes * change error code name, add caller address validation and add scripts to run test and build in monorepo * add all test cases in vcAndDisclose flow * remove comment out * chore: use actual user identifier outputs * success in registration tests * cover all cases * pass contractVersion instead of circuitVersion * fix disclose test * chore: add natspecs for ImplHubV2, CustomVerifier and GenericFormatter * change val name and remove unused lines * add val name change * remove userIdentifier from return data * feat: use GenericDiscloseOutput struct in verfication hook fix test cases for user identifier * chore: change the function order for Hub Impl V2 (#625) * fix nat specs * add nat spec in SelfStructs --------- Co-authored-by: Ayman <aymanshaik1015@gmail.com> Co-authored-by: Nesopie <87437291+Nesopie@users.noreply.github.com> * prettier (#629) --------- Co-authored-by: Ayman <aymanshaik1015@gmail.com> Co-authored-by: Vishalkulkarni45 <109329073+Vishalkulkarni45@users.noreply.github.com> Co-authored-by: nicoshark <i.am.nicoshark@gmail.com> Co-authored-by: Nesopie <87437291+Nesopie@users.noreply.github.com>
90 lines
2.3 KiB
TypeScript
90 lines
2.3 KiB
TypeScript
import { HardhatUserConfig } from "hardhat/config";
|
|
import "@nomicfoundation/hardhat-toolbox";
|
|
require("dotenv").config({
|
|
path: process.env.CI ? ".env.test" : ".env",
|
|
});
|
|
import "hardhat-contract-sizer";
|
|
import "@nomicfoundation/hardhat-ignition-ethers";
|
|
import "solidity-coverage";
|
|
import "hardhat-gas-reporter";
|
|
import "hardhat-contract-sizer";
|
|
|
|
const config: HardhatUserConfig = {
|
|
solidity: {
|
|
version: "0.8.28",
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200,
|
|
},
|
|
metadata: {
|
|
bytecodeHash: "none",
|
|
},
|
|
},
|
|
},
|
|
contractSizer: {
|
|
runOnCompile: true,
|
|
},
|
|
paths: {
|
|
sources: "./contracts",
|
|
tests: "./test",
|
|
cache: "./cache",
|
|
artifacts: "./artifacts",
|
|
},
|
|
defaultNetwork: "hardhat",
|
|
networks: {
|
|
localhost: {
|
|
chainId: 31337,
|
|
url: "http://127.0.0.1:8545",
|
|
accounts: {
|
|
mnemonic: "test test test test test test test test test test test test",
|
|
count: 20,
|
|
},
|
|
},
|
|
mainnet: {
|
|
chainId: 1,
|
|
url: process.env.MAINNET_RPC_URL || "https://eth.llamarpc.com",
|
|
accounts: [process.env.PRIVATE_KEY as string],
|
|
},
|
|
sepolia: {
|
|
chainId: 11155111,
|
|
url: process.env.SEPOLIA_RPC_URL || "https://eth-sepolia.public.blastapi.io",
|
|
accounts: [process.env.PRIVATE_KEY as string],
|
|
},
|
|
celo: {
|
|
chainId: 42220,
|
|
url: process.env.CELO_RPC_URL || "https://forno.celo.org",
|
|
accounts: [process.env.CELO_KEY as string],
|
|
},
|
|
celoAlfajores: {
|
|
chainId: 44787,
|
|
url: process.env.CELO_ALFAJORES_RPC_URL || "https://alfajores-forno.celo-testnet.org",
|
|
accounts: [process.env.PRIVATE_KEY as string],
|
|
},
|
|
celoBaklava: {
|
|
chainId: 62320,
|
|
url: process.env.CELO_BAKLAVA_RPC_URL || "https://baklava-forno.celo-testnet.org",
|
|
accounts: [process.env.PRIVATE_KEY as string],
|
|
},
|
|
},
|
|
etherscan: {
|
|
apiKey: {
|
|
sepolia: process.env.ETHERSCAN_API_KEY as string,
|
|
ethereum: process.env.ETHERSCAN_API_KEY as string,
|
|
celo: process.env.CELOSCAN_API_KEY as string,
|
|
},
|
|
customChains: [
|
|
{
|
|
network: "celo",
|
|
chainId: 42220,
|
|
urls: {
|
|
apiURL: "https://api.celoscan.io/api",
|
|
browserURL: "https://celoscan.io",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default config;
|