-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Description
- git clone https://github.com/Uniswap/uniswap-v3-core.git --depth 1
- cd uniswap-v3-core
- npx solidity-docgen --solc-module solc-0.7
Then let's check some file. I've took IUniswapV3Factory.sol as example.
This is how item is documented:
/// @notice Creates a pool for the given two tokens and fee
/// @param tokenA One of the two tokens in the desired pool
/// @param tokenB The other of the two tokens in the desired pool
/// @param fee The desired fee for the pool
/// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved
/// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments
/// are invalid.
/// @return pool The address of the newly created pool
function createPool(
address tokenA,
address tokenB,
uint24 fee
) external returns (address pool);
And this is actual result of npx solidity-docgen
output:
### `createPool(address tokenA, address tokenB, uint24 fee) → address pool` (external)
Creates a pool for the given two tokens and fee
tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved
from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments
are invalid.
You can see that only notice
message got rendered.
Expected result:
# Function `createPool(address tokenA, address tokenB, uint24 fee) → address pool` (external) {#IUniswapV3Factory-createPool-address-address-uint24-}
Creates a pool for the given two tokens and fee
tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments are invalid.
## Parameters:
- `tokenA`: One of the two tokens in the desired pool
- `tokenB`: The other of the two tokens in the desired pool
- `fee`: The desired fee for the pool
## Return Values:
- pool The address of the newly created pool
Used version: solidity-docgen/0.5.13 win32-x64 node-v16.0.0
I'm not sure how you're using solc internally (as I asked in another comment out there) but from what I've seen it only returns some comments in --devdoc
and some only in --userdoc
, so I'd propose tool to merge calls to both (possibly behind similarly named flags?)
Metadata
Metadata
Assignees
Labels
No labels