Skip to content

[Feature] Add json path as const field of sol! generated mod #962

Open
@alexfertel

Description

@alexfertel

Component

sol! macro

Describe the feature you would like

Say we have the following macro invocation:

alloy::sol!(
    #[sol(abi)]
    UniswapV2Reader,
    "src/abis/UniswapV2Reader.json"
);

There is no way to recover "src/abis/UniswapV2Reader.json" from UniswapV2Reader. It would be nice to be able to access the path to the json file that generated a given module.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions