Skip to content
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

tooling to deploy / start multiple contracts #15

Closed
dckc opened this issue Mar 4, 2024 · 3 comments · Fixed by #16
Closed

tooling to deploy / start multiple contracts #15

dckc opened this issue Mar 4, 2024 · 3 comments · Fixed by #16
Assignees

Comments

@dckc
Copy link
Member

dckc commented Mar 4, 2024

In the work on swap, pay, and vote contracts (#9), swap an pay are nearly ready to land, but our code from Agoric/dapp-offer-up#5 to deploy and start a contract with yarn start:contract doesn't generalize straightforwardly from 1 contract to many.

@dckc
Copy link
Member Author

dckc commented Mar 7, 2024

installing pay contract works, but mint contract is "too large"

details: Agoric/agoric-sdk#6454 (comment)

Perhaps there are duplicated modules that I can get rid of with more of the resolutions work-around for...

@dckc
Copy link
Member Author

dckc commented Mar 7, 2024

de-dup'd bundles using resolutions

Bundle before dedup'd
postal-service 1.609 MB (0.408 MB gzip'd) 0.947 MB (0.257 MB gzip'd)
sell-concert-tickets 2.413 MB (0.607 MB gzip'd) 1.006 MB (0.270 MB gzip'd)

I upgraded to agoric-upgrade-14 packages too:

  • 2024-03-07 14:14 712c107 build(contract): upgrade @Agoric deps to upgrade-14
  • 2024-03-07 14:14 4d71dd6 build: match resolutions to agoric-upgrade-14

bonus:

  • 2024-03-07 14:15 2f2b5de chore: vats package no longer needed as of agoric-upgrade-14
  • 2024-03-07 14:17 2671e47 build: patch-package no longer required for vats
  ✔ build:deployer package script generates compressed bundles less than 1MB (516ms)
    ℹ {
        bundleName: 'postal-service',
        compressedSize: '0.257 MB',
        originallySize: '0.947 MB',
      }
    ℹ {
        bundleName: 'sell-concert-tickets',
        compressedSize: '0.270 MB',
        originallySize: '1.006 MB',
      }

@dckc
Copy link
Member Author

dckc commented Mar 10, 2024

Somebody in discord #dev said they have a contract and asked how to deploy it to devnet. I took it as a prompt to write docs for deployment using these tools:

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 a pull request may close this issue.

1 participant