foundry icon indicating copy to clipboard operation
foundry copied to clipboard

Let deployment scripts support some kind of convenient deployment tracking/export facilities like `hardhat-deploy`

Open Gilgames000 opened this issue 3 years ago • 2 comments

Component

Forge

Describe the feature you would like

Hi! It would be cool if forge deployment scripts supported some kind of convenient deployment tracking/export facilities like hardhat-deploy's export functionality.

As of now, the data/state is already being tracked in out/ and broadcast/ indeed! But it's all scattered around. What hardhat-deploy's export does is aggregate the essential deployment data, for a specific chain or for all, into a single file. You can then just drop this json file in your web app and have access to all the deployed contracts' ABI and addresses on the specified chains. It's just kinda handy and easier to automate updates.

Additional context

No response

Gilgames000 avatar Aug 02 '22 10:08 Gilgames000

I was thinking of implementing this as part of https://github.com/foundry-rs/hardhat

A hardhat task that wraps forge script and then it would generate the hardhat deploy style artifacts. The idea is to make it easy to migrate from hardhat deploy to forge script

tynes avatar Aug 02 '22 16:08 tynes

Would be awesome! I wrote this discussion post months ago but got busy with work obligations. I am a rust noob but would love to help where possible. https://github.com/foundry-rs/foundry/discussions/114

ind-igo avatar Aug 02 '22 20:08 ind-igo

I was thinking of implementing this as part of https://github.com/foundry-rs/hardhat

A hardhat task that wraps forge script and then it would generate the hardhat deploy style artifacts. The idea is to make it easy to migrate from hardhat deploy to forge script

@tynes are you still working on implementing this feature? It would indeed be super useful!

PierrickGT avatar Jan 18 '23 23:01 PierrickGT

No, i've decided that its not the ideal approach and instead opened this issue https://github.com/foundry-rs/foundry/issues/3911

Would rather have a higher level deploy command built into forge itself instead of hacking the hh plugin to work

tynes avatar Jan 19 '23 21:01 tynes

Any objections to closing this in favor of #3911 as the canonical issue to spec out some higher-level functionality over forge script? I think one issue to discuss such a feature makes it easier to keep track of things

mds1 avatar Apr 11 '23 23:04 mds1

Optimistically closing in favor of #3911 and https://github.com/foundry-rs/foundry/issues/4732

mds1 avatar Apr 13 '23 13:04 mds1