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

Support abi-files as a source for code generation #63

Open
zebraofjustice opened this issue Apr 8, 2021 · 1 comment
Open

Support abi-files as a source for code generation #63

zebraofjustice opened this issue Apr 8, 2021 · 1 comment

Comments

@zebraofjustice
Copy link
Contributor

No description provided.

@zebraofjustice
Copy link
Contributor Author

  1. Add configuration section for abi-files:
<plugin>
    <groupId>org.web3j</groupId>
    <artifactId>web3j-maven-plugin</artifactId>
    <version>4.8.1</version>
    <configuration>
        <abiSourceFiles>
        	<directory>src/main/resources</directory>
        	<includes>
        		<include>**/*.json</include>
        	</includes>
        </abiSourceFiles>
    </configuration>
</plugin>
  1. Add ability to set parent contract class for java output:
<plugin>
    <groupId>org.web3j</groupId>
    <artifactId>web3j-maven-plugin</artifactId>
    <version>4.8.1</version>
    <configuration>
          <outputJavaParentContractClassName>sample.CustomContract</outputJavaParentContractClassName>
    </configuration>
</plugin>

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