Skip to content

feat(client): add --contract and --rpc flags with env var fallbacks (closes #183) - #186

Closed
dezzy-music wants to merge 1 commit into
DepRadarOrg:mainfrom
dezzy-music:client/183-contract-rpc-flags
Closed

dezzy-music wants to merge 1 commit into
DepRadarOrg:mainfrom
dezzy-music:client/183-contract-rpc-flags

Conversation

@dezzy-music

Copy link
Copy Markdown

Description

Replaces hard-coded CONTRACT_ID and RPC_URL constants in client/src/index.ts with --contract and --rpc command-line flags, supported by DEPRADAR_CONTRACT_ID and DEPRADAR_RPC_URL environment variables as fallbacks, and defaulting to the live testnet deployment values.

Closes #183


Tasks Completed

  • Added --contract and --rpc flags in client/src/index.ts.
  • Added DEPRADAR_CONTRACT_ID and DEPRADAR_RPC_URL environment variable fallbacks with default constants.
  • Updated client/README.md documenting usage options, flags, and environment variables.
  • Added progress entry in PROGRESS.md.

Acceptance Criteria

  • Documented in the README
  • npm run typecheck passes in client/
  • PROGRESS.md entry added, and the PR description includes Closes #183

Verification

  • npm run typecheck passes with zero errors.
  • Verified live on Stellar testnet:
    • npm start -- --bounty-id 1 successfully queries live contract state.
    • npm start -- --bounty-id 1 --contract <id> --rpc <url> correctly passes and executes custom endpoint overrides.

Stellar Address (Stellar Wave Program)

GDLCJGQLXZGDAAT5QGRF6FM2MBEER3FPYGCSVPXYL47G2ABIOX2M2S6K

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.

[client] Replace the read client's hard-coded contract ID with a flag and env var

2 participants