Skip to content

Conversation

@willemneal
Copy link
Member

@willemneal willemneal commented Aug 28, 2025

This allows users to fetch the bytes of a publish Wasm and to upgrade deployed contracts.

his allows users to fetch the bytes of a publish Wasm and to upgrade deployed contracts.
@willemneal willemneal marked this pull request as ready for review August 29, 2025 19:43
Copy link
Member

@chadoh chadoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make a better helpdoc, but otherwise this looks good!

Publish(Box<publish::Cmd>),
/// Deploy a named contract from a published Wasm
Deploy(Box<deploy::Cmd>),
/// Fetch a published Wasm
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// Fetch a published Wasm
/// Fetch a published Wasm's bytes, defaulting to the most recent version

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but why? What's this for?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To download a copy of the contract?

Copy link
Member

@chadoh chadoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename some things before we merge!

  • fetch to download
  • install to create-alias

@pselle
Copy link
Member

pselle commented Sep 8, 2025

FYI build needs attention @willemneal

@willemneal willemneal changed the title feat(registry-cli): add fetch and upgrade commands feat(registry-cli): add download, create-alias, upgrade commands Sep 12, 2025
@willemneal
Copy link
Member Author

@pselle I think it's all sorted. THe issues around the resource limits I think have to do with trying to upload the same wasm multiple times. To get around this I added some random bytes to the end of each one so that they are unique. I needed to add an extra dependncy which is why the cache was invalidated. So 🤞

@pselle
Copy link
Member

pselle commented Oct 2, 2025

@willemneal Ah, that's a good thing to remember!

@pselle pselle force-pushed the feat/registry_fetch_and_such branch from 32203ba to e19da8a Compare October 2, 2025 20:33
@willemneal willemneal requested a review from chadoh October 3, 2025 13:50
Copy link
Member

@tupui tupui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, some non blocking suggestions otherwise I had tested this locally and was working good 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case you don't know about this action, I like to use stellar/actions/rust-cache. I sort of delegate using this and sure that I am compatible.

Comment on lines 9 to 10
edition = "2021"
rust-version = "1.70"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we should also do this here as well?

Suggested change
edition = "2024"
rust-version = "1.89"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, yes we should have. I'm running through https://doc.rust-lang.org/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html to see how that does with a full upgrade flow with the current main branch

Comment on lines 9 to 10
edition = "2021"
rust-version = "1.70"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
edition = "2021"
rust-version = "1.70"
edition = "2024"
rust-version = "1.89"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to mention it. I actually have a .config/soroban because it used to be .soroban before the rename 😅 But I guess we can just assume that people using Scaffold would be new and not have that issue.

Comment on lines +224 to +225
.join(".config")
.join("stellar")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elsewhere you do a single join. Not sure that matters.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also call create-alias at the end? Users most likely will want to do that after no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In prepping for the demo video we talked about maybe making this a default behavior! I like it as a "what's next" idea

Copy link
Member

@chadoh chadoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wowowowowow this is a lot to take in but GREAT JOB 👏🏼 👏🏼 👏🏼

Comment on lines +10 to +15
## [0.0.13](https://github.com/theahaco/scaffold-stellar/compare/stellar-scaffold-cli-v0.0.12...stellar-scaffold-cli-v0.0.13) - 2025-10-03

### Fixed

- default to development environment ([#206](https://github.com/theahaco/scaffold-stellar/pull/206))

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this in this PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be my fault 😅 I did not know we were doing that so I did not have it in my PR.

@pselle pselle merged commit f445bfd into main Oct 3, 2025
7 checks passed
@pselle pselle deleted the feat/registry_fetch_and_such branch October 3, 2025 17:31
@pselle pselle mentioned this pull request Oct 3, 2025
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.

5 participants