Skip to content

SixerrAI/sixerr-contracts

Repository files navigation

Permit2 Terminal

Uniswap Permit2 processing contract.

This project is built with Solidstate. See the solidstate-solidity documentation for information about contract integration and testing.

Development

Install dependencies via Pnpm:

pnpm install

Setup Husky to format code on commit:

pnpm prepare

Compile contracts via Hardhat:

pnpm hardhat compile

The Hardhat environment relies on the following environment variables. The dotenv package will attempt to read them from the .env and .env.secret files, if they are present.

Key Description
API_KEY_ETHERSCAN Etherscan API key for source code verification
NODE_URL_MAINNET JSON-RPC node URL for mainnet network
NODE_URL_TESTNET JSON-RPC node URL for testnet network
PKEY_TESTNET private key for test/development use on testnet network
PKEY_MAINNET private key for production use on mainnet network

Networks

By default, Hardhat uses the Hardhat Network in-process. Two additional networks, mainnet and testnet are available, and their behavior is determined by the configuration of environment variables.

Testing

Test contracts via Hardhat:

pnpm hardhat test