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

Introduce sol_structname option #20

Open
siburu opened this issue Nov 19, 2021 · 0 comments
Open

Introduce sol_structname option #20

siburu opened this issue Nov 19, 2021 · 0 comments

Comments

@siburu
Copy link
Contributor

siburu commented Nov 19, 2021

As an extension of MessageOptions.

Input (.proto)

package very.long.package.name;

message Foo {
    string x = 1;
    int64 y = 2;
}

message Bar {
    option (.solidity.sol_structname) = "Bar";
    string x = 1;
    int64 y = 2;
}

Output (.sol)

library VeryLongPackageNameFoo {
    struct Data {
        string x;
        int64 y;
    }

    ...
}

library Bar {
    struct Data {
        string x;
        int64 y;
    }

    ...
}
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