hashgraph / hedera-smart-contracts

Contains Hedera Smart Contract Service supporting files
Apache License 2.0
37 stars 52 forks source link

npm publish #115

Open Nana-EC opened 1 year ago

Nana-EC commented 1 year ago

Problem

Currently we've versioned the repo however other consumers of the precompile functions are forced to copy contracts and compile themselves. This results in inconsistency of the details of the contracts and ads extra work on the consumers

Solution

Publish npm versions of the repo along with releases. We should also support deployment of alpha releases.

Alternatives

No response

app-matt commented 4 months ago

💯 Would definitely love to see an npm package being published for easier use of the SC precompiles!

acuarica commented 1 month ago

In addition to publish the npm package, we should explore how Foundry users can consume the precompile functions.

Foundry uses git submodules to consume dependencies https://book.getfoundry.sh/projects/dependencies.

As an example, solmate https://github.com/transmissions11/solmate allows both Hardhat and Foundry users to consume their contracts.

Nana-EC commented 2 weeks ago

We should have separate packages for

This will allow for other repos to more easily consume the contracts e.g. foundry example as noted above by @acuarica