Closed dckc closed 4 months ago
So now this is progress on 2 issues:
Recording:
"screenshot":
11 2024-03-06T01:58:58.623679523Z PROPOSAL_STATUS_PASSED
{ step: 'run', propsal: '11', delay: 1 } ...
{ step: 'run', propsal: '11', delay: 1 } ...
{ step: 'run', propsal: '11', delay: 1 } ...
{
proposal_id: '11',
content: {
'@type': '/agoric.swingset.CoreEvalProposal',
title: 'postal-service',
description: 'postal-service',
evals: [ [Object] ]
},
status: 'PROPOSAL_STATUS_PASSED',
final_tally_result: { yes: '5000000000', abstain: '0', no: '0', no_with_veto: '0' },
submit_time: '2024-03-06T01:58:48.623679523Z',
deposit_end_time: '2024-03-08T01:58:48.623679523Z',
total_deposit: [ { denom: 'ubld', amount: '60000000' } ],
voting_start_time: '2024-03-06T01:58:48.623679523Z',
voting_end_time: '2024-03-06T01:58:58.623679523Z'
}
Cleaning this up is reaching a point of diminishing returns...
thanks for trying it out...
When I ran
yarn start:contract
I got the following error:Error#1: controller refused message admission: 201250000uist is smaller than 2312200000uistact.js:114:5)
Looks like we need to mint more IST?
201.25 IST should be plenty. That 2312.2 IST corresponds to a pathologically large bundle:
IST | IST / Kb | Kb / Mb | Mb |
---|---|---|---|
2312.2 | 0.02 | 1024 | 112.9 |
What does yarn test test/test-build-proposal.js
say? It tests that bundles, when compressed, are <0.5Mb
I get:
✔ bundles from build:deployer meet 1MB request limit (1.9s)
ℹ {
bundleName: 'postal-service',
compressedSize: '0.277 MB',
originallySize: '1.064 MB',
}
ℹ {
bundleName: 'sell-concert-tickets',
compressedSize: '0.291 MB',
originallySize: '1.123 MB',
}
ℹ {
bundleName: 'swaparoo',
compressedSize: '0.322 MB',
originallySize: '1.236 MB',
}
Bundle compressing seems to be working as expected:
yarn test test/test-build-proposal.js
yarn run v1.22.21
$ yarn workspaces run test test/test-build-proposal.js
> agoric-basics-contract
$ ava --verbose test/test-build-proposal.js
bundles bundle-postal-service.js valid: 134 files bundled at 2024-03-13T21:03:02.648Z
bundles bundle-sell-concert-tickets.js valid: 139 files bundled at 2024-03-13T19:31:55.227Z
bundles bundle-swaparoo.js valid: 162 files bundled at 2024-03-13T21:03:02.018Z
✔ bundles from build:deployer meet 1MB request limit (2.2s)
ℹ {
bundleName: 'postal-service',
compressedSize: '0.277 MB',
originallySize: '1.080 MB',
}
ℹ {
bundleName: 'sell-concert-tickets',
compressedSize: '0.285 MB',
originallySize: '1.103 MB',
}
ℹ {
bundleName: 'swaparoo',
compressedSize: '0.321 MB',
originallySize: '1.251 MB',
}
─
Bundle compressing seems to be working as expected:
bundleName: 'sell-concert-tickets', compressedSize: '0.285 MB', originallySize: '1.103 MB',
@LuqiPan try the refinement I just pushed, please? It logs the size of the bundle at install-time:
installing sell-concert-tickets b1-4da2a 1.178 Mb
$$$ agd tx swingset install-bundle @bundles/bundle-sell-concert-tickets.json --gas auto --keyring-backend test --chain-id agoriclocal --from agoric1ydzxwh6f893jvpaslmaz6l8j2ulup9a7x8qvvq --broadcast-mode block --gas auto --gas-adjustment 1.4 --yes --output json
... I'd also ask for more documentation on the
tools
directory. ... Also what is the concept of-goals
? ... Consider atools/README.md
to explain
added 3 READMEs.
Well, I finally found out why I'm getting this error- my local docker's latest tag is no longer pointing at the actual latest tag from ghcr.io.
I ran a docker prune system --all
and then re-pull the latest tag and that fixed it. On retrospective I could probably just untag the image locally and pull again.
Thanks for getting to the bottom of that.
I think we talked about a flag in docker-compose.yml
that makes it more likely that you'll be current, but I don't recall the details. Maybe you want to open an issue in dapp-offer-up (and/or dapp-agoric-basics)?
closes #15
uses rollup rather than
agoric run
to bundle core eval scriptsSupporting
agoric run
withindeploy-contract.js
is left for future work.refs
15