Skip to content

Deploy contract to Stellar testnet and publish the contract ID #64

Description

@grantfox-oss

Suggested area: Rust, TypeScript, Deployment

Summary

The contract exists in contracts/anonvote/src/lib.rs and the deploy
steps are documented in the README but the contract has never actually
been deployed. There is no contract ID recorded anywhere in the repo.
sorobanService.ts references a SOROBAN_CONTRACT_ID environment
variable that has no default value and no working testnet ID to test
against. Any contributor trying to wire sorobanService.ts into core
hits a blank env var immediately.

Scope

  • Build the contract WASM — cargo build --target wasm32-unknown-unknown --release
    and confirm it compiles cleanly with no warnings
  • Deploy to Stellar testnet using the stellar contract deploy command
    documented in the README
  • Run initialize with an AnonVote testnet admin public key
  • Record the deployed contract ID in a DEPLOYMENTS.md file at the repo
    root — include network, contract ID, admin address, and deploy date
  • Add the testnet contract ID as the default value in service/.env.example
    so contributors can run sorobanService.ts against a real deployed
    contract without manual setup
  • Confirm cargo test passes against the deployed contract ID

Relevant files

  • contracts/anonvote/src/lib.rs
  • service/sorobanService.ts
  • README.md

Acceptance Criteria

  • Contract WASM builds cleanly with no warnings
  • Contract deployed and initialized on Stellar testnet
  • Contract ID recorded in DEPLOYMENTS.md with network, admin
    address, and deploy date
  • service/.env.example contains the testnet contract ID as a default
  • cargo test passes against the deployed instance
  • README deploy steps verified to work exactly as written — update
    any step that does not

Out of scope

  • Mainnet deployment
  • Changes to contract logic or function signatures

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official CampaignenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions