-
Notifications
You must be signed in to change notification settings - Fork 13
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
Release PRT smart contract artifacts #87
Comments
@guidanoli can you clarify the difference between PRT "core" and PRT "for Cartesi Rollups"? Are these contracts today all under |
Cant we release the deployment artifacts compressed as artifacts for the release just like we added for rollups-contracts? Then we can wait to see if other projects are demanding some specific package repository before adding a bunch of npm dependencies to our code base. |
So, I'm calling PRT "core" all the contracts under The question about whether |
We are currently distributing two different compressed artifacts for
For either artifact, we need Hardhat, and therefore to set up a |
Currently, regarding the PRT smart contracts, we provide the following artifacts:
In addition to those, we would like to also provide:
In order to provide these artifacts, we need to have a way to deploy smart contracts to different networks and have a way to distribute their addresses to other projects that might need them. Forge has support for Solidity scripts, which can do pretty much anything, but therefore don't have a defined deployment artifact format. Meanwhile, Hardhat Deploy has a defined format, and can be used to reutilize deployed contracts from other projects without redeployment.
To avoid friction with the Cartesi Rollups contracts, we can use Hardhat Deploy to deploy the PRT smart contracts and distribute their deployment artifacts. In order to do so, we will need to make
prt/contracts
annpm
package, and addhardhat-deploy
(among other packages) as dependencies. The deployment scripts will be written in TypeScript. The release process can be later made automatic through GitHub workflows. Thenpm
package would have a structure similar to that of@cartesi/rollups
.Later, we can make the same thing for the PRT smart contracts for Cartesi Rollups. To do so, we can make the whole
dave
repo annpm
workspace, with two packages (PRT "core", and PRT for Cartesi Rollups).The text was updated successfully, but these errors were encountered: