Example projects that demonstrate how to interact with the core smart contracts.
function placeMakerOrderForWETH9(uint128 amount) external returns (uint256 orderId);
function placeMakerOrderForUSDC(uint128 amount) external returns (uint256 orderId);
function exactInputSingle(uint256 amountIn, uint256 amountOutMinimum) external returns (uint256 amountOut);
function exactOutputSingle(uint256 amountOut, uint256 amountInMaximum) external returns (uint256 amountIn);
function exactInput(uint256 amountIn, uint256 amountOutMinimum) external returns (uint256 amountOut);
function exactOutput(uint256 amountOut, uint256 amountInMaximum) external returns (uint256 amountIn);
npm install
npx hardhat compile
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts