Example projects that demonstrate how to interact with the core smart contracts.
OTHER License
Example projects that demonstrate how to interact with the core smart contracts.
WETH9
function placeMakerOrderForWETH9(uint128 amount) external returns (uint256 orderId);
USDC
function placeMakerOrderForUSDC(uint128 amount) external returns (uint256 orderId);
USDC
for as much as possible of WETH9
function exactInputSingle(uint256 amountIn, uint256 amountOutMinimum) external returns (uint256 amountOut);
WETH9
for a specified amount of USDC
function exactOutputSingle(uint256 amountOut, uint256 amountInMaximum) external returns (uint256 amountIn);
USDC
for as much as possible of WETH9
function exactInput(uint256 amountIn, uint256 amountOutMinimum) external returns (uint256 amountOut);
WETH9
for a specified amount of USDC
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