Skip to content

Hardcode deployment addresses and URLs in SDK for stable deployments (v0.2.1) #9

Description

@coderabbitai

Context

Currently, deployment addresses and URLs are configured via environment variables (see .env.example):

  • RPC_URL
  • GOLDSKY_ENDPOINT
  • PERP_MANAGER_ADDRESS
  • USDC_ADDRESS

This approach was necessary during active development when addresses were frequently redeployed. However, once deployments are frozen/stable, these values should be hardcoded directly in the SDK.

Benefits

  • Simplifies SDK integration for implementors
  • Reduces configuration burden (no need to look up and specify addresses)
  • Provides sensible defaults for production usage

Proposal

Once deployment addresses stabilize, hardcode them in the SDK while maintaining the ability to override via configuration if needed (e.g., for testing or custom deployments).

References

Target Version

0.2.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions