Skip to content

Conversation

@petar-omni
Copy link
Collaborator

This pull request introduces several enhancements and additions to the @stakekit/api-hooks package, focusing on expanding network and provider support, improving DTOs for admin API key management, and adding new options for actions. The changes also include a version bump to reflect these updates.

Network and Provider Support:

  • Added monad network to EvmNetworks, Networks, and YieldV2YieldsNetwork constants to support the Monad blockchain. [1] [2] [3]
  • Added upshift and curve as yield providers in both YieldProviders and YieldV2YieldsProviderId for broader DeFi support. [1] [2] [3] [4]

Admin API Key Management:

  • Introduced new DTOs and interfaces for admin API key management: AdminApiKey, CreateAdminApiKeyDto, and UpdateAdminApiKeyDto, and exported them in the schemas index. This enables typed support for creating, updating, and representing admin API keys. [1] [2] [3] [4] [5] [6]

Action Arguments Enhancement:

  • Added a new optional boolean property useMaxAmount to the ActionArgumentsDto interface, allowing actions to specify maximum amount usage.

Versioning:

  • Bumped package version from 0.0.112 to 0.0.113 to reflect these changes.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the @stakekit/api-hooks package by expanding blockchain network support, adding new DeFi yield providers, introducing admin API key management DTOs, and adding a new action argument option. The changes follow existing patterns and maintain consistency across related schema files.

Key Changes:

  • Added support for the Monad blockchain mainnet network across all relevant network constants
  • Introduced two new yield providers (upshift and curve) for expanded DeFi protocol coverage
  • Added comprehensive DTOs for admin API key management (create, update, and representation)

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/api-hooks/src/api/schemas/evmNetworks.ts Added monad network to EVM networks list
packages/api-hooks/src/api/schemas/networks.ts Added monad network to general networks list
packages/api-hooks/src/api/schemas/yieldV2YieldsNetwork.ts Added monad network to yield networks list
packages/api-hooks/src/api/schemas/yieldProviders.ts Added upshift and curve yield providers
packages/api-hooks/src/api/schemas/yieldV2YieldsProviderId.ts Added upshift and curve provider IDs
packages/api-hooks/src/api/schemas/adminApiKey.ts New interface for admin API key representation
packages/api-hooks/src/api/schemas/createAdminApiKeyDto.ts New DTO for creating admin API keys
packages/api-hooks/src/api/schemas/updateAdminApiKeyDto.ts New DTO for updating admin API keys
packages/api-hooks/src/api/schemas/index.ts Exported new admin API key DTOs in alphabetical order
packages/api-hooks/src/api/schemas/actionArgumentsDto.ts Added optional useMaxAmount boolean property
packages/api-hooks/package.json Bumped version from 0.0.112 to 0.0.113

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@petar-omni petar-omni merged commit 392e9dc into main Nov 22, 2025
11 checks passed
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