Skip to content

feat: add config presets for local, testnet, and production environments#59

Open
tobiadewola41-eng wants to merge 1 commit into
zkpayroll:mainfrom
tobiadewola41-eng:feature/41-config-presets
Open

feat: add config presets for local, testnet, and production environments#59
tobiadewola41-eng wants to merge 1 commit into
zkpayroll:mainfrom
tobiadewola41-eng:feature/41-config-presets

Conversation

@tobiadewola41-eng

Copy link
Copy Markdown

Closes #41

  • Add SdkConfig interface extending ClientConfig with wasmUrl/zkeyUrl
  • Add localPreset, testnetPreset, productionPreset factory functions
  • Add validateConfig with fast-fail ValidationError on missing fields
  • Export new symbols from package index
  • Fix pre-existing broken errors.ts (missing core/errors module, duplicate identifiers)
  • Add 17 tests covering presets, validation, and error shape

Closes #41

- Add SdkConfig interface extending ClientConfig with wasmUrl/zkeyUrl
- Add localPreset, testnetPreset, productionPreset factory functions
- Add validateConfig with fast-fail ValidationError on missing fields
- Export new symbols from package index
- Fix pre-existing broken errors.ts (missing core/errors module, duplicate identifiers)
- Add 17 tests covering presets, validation, and error shape

Closes zkpayroll#41
@edehvictor

Copy link
Copy Markdown
Contributor

@tobiadewola41-eng Kindly resolve conflicts.

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.

[SDK] Add config presets for local, testnet, and production environments

2 participants