-
Notifications
You must be signed in to change notification settings - Fork 124
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Following on from #58, we should support generating of metadata for the non-root contract in a multi contract workspace.
For example, the delegator example hosts multiple contracts which are dependencies of the main contract.
Proposal
- All metadata files will be written to the
targetdirectory of the workspace root, with the file name the same as the contract module name e.g.delegator.json,incrementer.jsonetc. cargo contract generate-metadatain the root workspace dir generates just the metadata for the root contract (in this case thedelegator- Sub contracts: e.g
cd adder && cargo contract generate-metadatagenerates just the metadata for that sub contract. - Alternatively
cargo contract generate-metadata -p adderfrom the root does the same, mirroringcargofunctionality. cargo contract generate-metadata --allwill generate metadata files for all contracts in the workspace, e.g.delegator.json, adder.json, subber.json
Implementation notes
- Need to auto remove the
ink-as-dependencyfeature in the root workspace manifest for the sub contracts
Robbepop
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request