Conversation
🦋 Changeset detectedLatest commit: ecc5379 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Pull request overview
This pull request introduces comprehensive schema updates to support new networks, enhance type safety, and add new API fields. The changes include support for EVM chain IDs, multiple token balances, raw TVL values, and additional action arguments, along with dependency updates to their latest versions.
Key Changes:
- Added support for 4 new networks (monad, monad-testnet, plasma, sui) across all relevant schema files
- Enhanced type safety by adding explicit response types to all API function options parameters
- Extended DTOs with new fields for chain IDs, raw TVL values, multiple tokens, output token balances, and additional action arguments
- Updated all MSW mock handlers to accept
RequestHandlerOptionsfor better testing flexibility - Bumped multiple development dependencies to their latest versions
Reviewed changes
Copilot reviewed 22 out of 24 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/api/schemas/yieldsControllerGetYieldsParams.ts |
Added optional chainId parameter for EVM chain filtering |
src/api/schemas/yieldQueryDto.ts |
Added optional chainId field for EVM chain queries |
src/api/schemas/yieldDto.ts |
Added chainId and tokens array fields for multi-token support |
src/api/schemas/yieldStatisticsDto.ts |
Added tvlRaw field for full precision TVL values |
src/api/schemas/validatorDto.ts |
Added tvlRaw field for full precision validator TVL |
src/api/schemas/yieldBalancesDto.ts |
Added outputTokenBalance field with new type definition |
src/api/schemas/yieldBalancesDtoOutputTokenBalance.ts |
New file defining output token balance type |
src/api/schemas/actionArgumentsDto.ts |
Added amounts, useMaxAmount, and useInstantExecution fields |
src/api/schemas/argumentFieldDtoName.ts |
Added field names: amounts, receiverAddress, useMaxAmount, useInstantExecution |
src/api/schemas/rewardDtoYieldSource.ts |
Added vault as a new yield source type |
src/api/schemas/networks.ts |
Added monad, monad-testnet, plasma, and sui networks |
src/api/schemas/networkDtoId.ts |
Added new network IDs for consistency |
src/api/schemas/yieldDtoNetwork.ts |
Added new networks to yield DTO network enum |
src/api/schemas/yieldsControllerGetYieldsNetwork.ts |
Added new networks to controller network enum |
src/api/schemas/yieldQueryDtoNetwork.ts |
Added new networks to query DTO network enum |
src/api/schemas/tokenDtoNetwork.ts |
Added new networks to token DTO network enum |
src/api/schemas/transactionDtoNetwork.ts |
Added new networks to transaction DTO network enum |
src/api/schemas/index.ts |
Exported new yieldBalancesDtoOutputTokenBalance type |
src/api/index.ts |
Enhanced type safety by specifying response types in options parameters |
src/api/index.msw.ts |
Updated all mock handlers to accept RequestHandlerOptions and added new import |
package.json |
Updated 11 development dependencies to latest versions |
.changeset/spotty-coats-deny.md |
Added changeset for schema changes |
.changeset/honest-plants-give.md |
Added changeset for dependency bump |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request introduces schema updates, expands network and reward source support, and improves type safety for API calls. It also bumps several dependencies to their latest versions. The most significant changes are grouped below:
Schema and API improvements
ActionArgumentsDto(such asamounts,useMaxAmount, anduseInstantExecution) and updatedArgumentFieldDtoNameto support these fields, enabling more flexible action argument handling. [1] [2] [3] [4]src/api/index.tsby specifying the expected response type in theoptionsparameter for all exported functions. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]yieldBalancesDtoOutputTokenBalanceinsrc/api/schemas/index.ts.Expanded network and reward source support
monad,monad-testnet,plasma,sui) across all relevant schema files (networkDtoId,networks,tokenDtoNetwork,transactionDtoNetwork). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]vaultas a new yield source inRewardDtoYieldSource.Dependency updates
@biomejs/biome,@faker-js/faker,@rslib/core,msw,orval,typescript,viem) to their latest versions inpackage.json.