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

Add cargo contract generate-interface --target solidity #807

Open
cmichi opened this issue Nov 5, 2022 · 1 comment
Open

Add cargo contract generate-interface --target solidity #807

cmichi opened this issue Nov 5, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request OpenZeppelin

Comments

@cmichi
Copy link
Collaborator

cmichi commented Nov 5, 2022

Motivation

For proper cross-contract communication between ink! and Solang-compiled Solidity contracts we need the ability to generate a Solidity interface for a contract.

ToDo

As part of this issue a new sub-command cargo contract generate-interface should be added. This command should have two flags:

  • --metadata-path: the contract to which we want to generate an accessor interface.
  • --target: denoting which language the interface would be generated in. For this issue we only add solidity as a target, outputting Solidity code for accessing the contract from the metadata.
@cmichi cmichi added the enhancement New feature or request label Nov 5, 2022
@xermicus xermicus self-assigned this Nov 5, 2022
@xermicus
Copy link
Contributor

xermicus commented Nov 8, 2022

Related: hyperledger/solang#976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request OpenZeppelin
Projects
None yet
Development

No branches or pull requests

2 participants