A diamondABI hardhat task has been created to create an ABI file from all the facets used in a diamond.

The diamondABI hardhat task code is here: https://github.com/aavegotchi/aavegotchi-contracts/blob/master/tasks/generateDiamondABI.js‚Äč

The diamondABI hardhat task is executed on the command like this: npx hardhat diamondABI

The resulting ABI file is generated at diamondABI/diamond.json