Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct as Parameter creation #119

Open
mrk-hub opened this issue Dec 16, 2024 · 0 comments
Open

Struct as Parameter creation #119

mrk-hub opened this issue Dec 16, 2024 · 0 comments

Comments

@mrk-hub
Copy link

mrk-hub commented Dec 16, 2024

The ability to generate structs used in the sol file to create a json file for use in CLI calls. i.e

Camelot INonfungiblePositionManager.sol function mint(MintParams calldata params)

struct MintParams {
    address token0;
    address token1;
    int24 tickLower;
    int24 tickUpper;
    uint256 amount0Desired;
    uint256 amount1Desired;
    uint256 amount0Min;
    uint256 amount1Min;
    address recipient;
    uint256 deadline;
}

Would need the ability to generate the MintParams as a JSON Object then pass that object into the params? This is one dex operation where each dex operation has their own unique struct as a Param

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant