Skip to content

feat: Support Soroban WASM contract upload from URL #131

Description

@dotunv

Overview

Support uploading Soroban WASM contract code from a URL instead of requiring users to upload the binary file directly.

Motivation

Developers often host their compiled WASM contracts on GitHub releases, IPFS, or their own servers. Requiring direct file upload forces them to download the binary first, adding friction to the deployment workflow.

Proposed Design

  1. Extend the contract deploy endpoint to accept a wasm_url field in addition to file upload
  2. Download the WASM binary from the URL with a size limit (e.g., 5MB)
  3. Validate the downloaded content is valid WASM before deployment
  4. Cache downloaded WASM by content hash to avoid re-downloading for duplicate deployments
  5. Support ipfs:// and ar:// URL schemes via gateway resolution

Acceptance Criteria

  • Contract deploy accepts wasm_url parameter
  • Downloaded WASM is validated before deployment
  • File size limit is enforced (5MB default)
  • Content hash caching prevents redundant downloads
  • IPFS and Arweave URLs are resolved via public gateways
  • Error handling covers invalid URLs, timeout, and oversized files
  • Integration tests cover URL-based deployment flow

Labels

enhancement, backend, Maybe Rewarded, GrantFox OSS, Official Campaign

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend / API workenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions