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

Fix kread bundle publishing #112

Merged
merged 3 commits into from
Dec 18, 2023
Merged

Conversation

Pandelissym
Copy link
Contributor

@Pandelissym Pandelissym commented Dec 13, 2023

Description

This PR fixes the issue with publishing the kread bundles. To fix it agoric published has been replaced by the installBundles script in the agoric/contract/scripts/ folder. The script connects to the chain using Cosmos StargateClient library and sends a transaction to the correct endpoint with the bundle as payload. This is along the lines of what happens under the hood of agoric publish as well but for some reason that seems to be broken currently.

For funding the gas fees of the transaction, the same account is used that funds the transactions to publish the committee bundles and sends proposals for the kread-committee and kread.

Also, in this PR:

  • Added some extra steps to make kread-committee (and no-build version) that fetches the address that is to be funded from the AGORIC_SDK_PATH/packages/cosmic-swingset/t1/8000/ folder and funds it. This way we no longer need to run kread-committee, copy the logged address and fund it.
  • Reverted back to the old folder structure where the contract code lives in src instead of the versioned folder structere.

Related Issues

Fixes #111

Checklist

Make sure all items are checked before submitting the pull request. Remove any items that are not applicable.

@Pandelissym Pandelissym self-assigned this Dec 13, 2023
@Pandelissym Pandelissym marked this pull request as ready for review December 14, 2023 14:09
@Pandelissym Pandelissym merged commit 56f72c4 into develop Dec 18, 2023
3 checks passed
@Pandelissym Pandelissym deleted the contract/bundle-publishing-fix branch December 18, 2023 11:05
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.

BUG: CONTRACT: Cannot publish kread bundles to chain
2 participants