solidity-protobuf icon indicating copy to clipboard operation
solidity-protobuf copied to clipboard

Introduce sol_structname option

Open siburu opened this issue 3 years ago • 0 comments

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

    ...
}

siburu avatar Nov 19 '21 03:11 siburu