Agoric / dapp-agoric-basics

This is a simple app for the Agoric smart contract platform.
0 stars 3 forks source link

tooling to deploy / start multiple contracts #15

Closed dckc closed 4 months ago

dckc commented 4 months ago

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

dckc commented 4 months ago

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

details: https://github.com/Agoric/agoric-sdk/issues/6454#issuecomment-1984246915

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

dckc commented 4 months ago

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:

bonus:

  ✔ 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 commented 4 months ago

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: