Skip to content

chore: add SigningMode config and refactor KeyProviderClient HTTP layer#198

Merged
pranishnepal merged 1 commit into
masterfrom
WCN-397
May 5, 2026
Merged

chore: add SigningMode config and refactor KeyProviderClient HTTP layer#198
pranishnepal merged 1 commit into
masterfrom
WCN-397

Conversation

@pranishnepal
Copy link
Copy Markdown
Contributor

What

Introduces SigningMode enum (local/external) as a first-class config field on AdvancedWalletManagerConfig, wired through initConfig with env var validation. Refactors KeyProviderClient to eliminate repeated HTTP boilerplate via a generic call() helper using conditional types.

Ticket: WCN-397

Testing

  • New tests for the config update
  • Existing Tests cover the refactor

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 5, 2026

Comment thread src/advancedWalletManager/keyProviderClient/keyProviderClient.ts Dismissed
Comment thread src/advancedWalletManager/keyProviderClient/keyProviderClient.ts Dismissed
@pranishnepal pranishnepal marked this pull request as ready for review May 5, 2026 14:15
@pranishnepal pranishnepal requested a review from a team as a code owner May 5, 2026 14:15
@pranishnepal pranishnepal requested a review from bdesoky May 5, 2026 14:15
Introduces SigningMode enum (local/external) as a first-class config field
on AdvancedWalletManagerConfig, wired through initConfig with env var
validation. Refactors KeyProviderClient to eliminate repeated HTTP
boilerplate via a generic call<M>() helper using conditional types.

Ticket: WCN-397
} catch (error: any) {
this.errorHandler(error, 'Error posting key to key provider');
}
const response = await this.call('post', `${this.url}/key`, {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the reason for these call changes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate code.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

Copy link
Copy Markdown
Contributor

@margueriteblair margueriteblair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pranishnepal pranishnepal merged commit ade43be into master May 5, 2026
20 checks passed
@pranishnepal pranishnepal deleted the WCN-397 branch May 5, 2026 15:58
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.

3 participants