Agoric / dapp-offer-up

Offer Up is a simple Dapp for the Agoric smart contract platform that permits users to explore items for sale in a marketplace
6 stars 5 forks source link

Test that compressed contract bundles are less than 1MB #36

Closed 0xpatrickdev closed 8 months ago

0xpatrickdev commented 9 months ago

The chain sdk has limitations on a tx message size - approx 1MB. See: https://github.com/Agoric/agoric-sdk/issues/7501.

We should add a test that ensures compressed versions of the generated bundles do not exceed 1MB. Suggested: https://github.com/Agoric/dapp-offer-up/pull/34#discussion_r1441081251

See here for an example of how to compress a bundle: https://github.com/DCFoundation/cosmos-proposal-builder/blob/84318e05322ed46653dbdd6634d0f9f1f304e180/src/lib/compression.ts#L27-L38

And here for a filepath for generated bundles from ci: https://github.com/Agoric/dapp-offer-up/actions/runs/7403614239/job/20143726617#step:6:24