Skip to content

Conversation

@tuler
Copy link
Member

@tuler tuler commented Mar 21, 2025

This PR changes the devnet package to use forge and cannon, and define the import of cartesi-rollups-contracts through cannon publishing.

To not change so much I kept the same strategy of having a @cartesi/devnet npm package, just that its content format changed a bit. Here are the npm package files:

npm pack --dry-run
📦  @cartesi/[email protected]
Tarball Contents
620.4kB anvil_state.json
4.0kB deployments/cartesiRollups.ApplicationFactory.json
2.5kB deployments/cartesiRollups.AuthorityFactory.json
1.7kB deployments/cartesiRollups.ERC20Portal.json
1.8kB deployments/cartesiRollups.ERC721Portal.json
1.9kB deployments/cartesiRollups.ERC1155BatchPortal.json
1.9kB deployments/cartesiRollups.ERC1155SinglePortal.json
1.5kB deployments/cartesiRollups.EtherPortal.json
3.2kB deployments/cartesiRollups.InputBox.json
2.5kB deployments/cartesiRollups.QuorumFactory.json
1.2kB deployments/cartesiRollups.SafeERC20Transfer.json
3.8kB deployments/cartesiRollups.SelfHostedApplicationFactory.json
12.4kB deployments/TestMultiToken.json
12.3kB deployments/TestNFT.json
15.0kB deployments/TestToken.json
421B package.json
Tarball Details
name: @cartesi/devnet
version: 2.0.0-alpha.3
filename: cartesi-devnet-2.0.0-alpha.3.tgz
package size: 98.8 kB
unpacked size: 686.4 kB
shasum: cd10aa13998ddb3ce22342ba20c0b08afa4a0352
integrity: sha512-5cnmOLOvzH0cA[...]WYl5+jUqdxs8Q==
total files: 16

note: the anvil_state.json is a dump for chain 13370.

We will need to then change things in the SDK and in the CLI, but we can first have the new devnet npm package published.

In the future we can reevaluate if we really need a devnet npm package. Maybe it's better to just have cannon projects of independent smart contracts (i.e. test-tokens, alchemy-smart-account, etc, etc), and just use them in the build of sdk.

ps: this temporarily remove ERC-4337 contracts, need to handled in a future PR

@tuler tuler requested a review from endersonmaia March 21, 2025 14:23
@changeset-bot
Copy link

changeset-bot bot commented Mar 21, 2025

🦋 Changeset detected

Latest commit: 0ed225f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cartesi/devnet Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security
Copy link

socket-security bot commented Mar 21, 2025

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@usecannon/[email protected] environment, filesystem, network, shell Transitive: eval, unsafe +218 53 MB mjlescano

🚮 Removed packages: npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

@tuler tuler force-pushed the feature/devnet-rc16 branch 3 times, most recently from ef22f4f to b330a91 Compare March 21, 2025 14:37
@tuler tuler requested a review from guidanoli March 21, 2025 14:37
@tuler tuler force-pushed the feature/devnet-rc16 branch from b330a91 to f1a66f1 Compare March 21, 2025 14:39
@tuler tuler requested a review from endersonmaia March 21, 2025 14:58
@tuler tuler requested a review from guidanoli March 21, 2025 15:12
@socket-security
Copy link

socket-security bot commented Mar 21, 2025

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@tuler tuler force-pushed the feature/devnet-rc16 branch from 0242a14 to 0ed225f Compare March 21, 2025 16:01
@tuler tuler merged commit f338996 into prerelease/v2-alpha Mar 21, 2025
4 checks passed
@tuler tuler deleted the feature/devnet-rc16 branch March 21, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants