Skip to content

Feat: schema changes#14

Merged
petar-omni merged 2 commits intomainfrom
feat/schema-changes
Nov 27, 2025
Merged

Feat: schema changes#14
petar-omni merged 2 commits intomainfrom
feat/schema-changes

Conversation

@petar-omni
Copy link
Contributor

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

  • Added new fields to ActionArgumentsDto (such as amounts, useMaxAmount, and useInstantExecution) and updated ArgumentFieldDtoName to support these fields, enabling more flexible action argument handling. [1] [2] [3] [4]
  • Improved type safety for API methods in src/api/index.ts by specifying the expected response type in the options parameter for all exported functions. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]
  • Added export for yieldBalancesDtoOutputTokenBalance in src/api/schemas/index.ts.

Expanded network and reward source support

  • Added support for new networks (e.g., 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]
  • Added vault as a new yield source in RewardDtoYieldSource.

Dependency updates

  • Bumped multiple development dependencies (e.g., @biomejs/biome, @faker-js/faker, @rslib/core, msw, orval, typescript, viem) to their latest versions in package.json.
  • Added changeset entries for dependency bump and schema changes. (.changeset/honest-plants-give.md [1] .changeset/spotty-coats-deny.md [2]

@changeset-bot
Copy link

changeset-bot bot commented Nov 27, 2025

🦋 Changeset detected

Latest 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

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 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 RequestHandlerOptions for 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.

@petar-omni petar-omni merged commit 1013932 into main Nov 27, 2025
10 checks passed
@petar-omni petar-omni deleted the feat/schema-changes branch November 27, 2025 11:11
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.

2 participants