Skip to content

refactor(stablecoins): name the stablecoin operation and fee config enums - #1154

Merged
shreyav merged 1 commit into
mainfrom
named-enums-stablecoins
Oct 9, 2026
Merged

shreyav merged 1 commit into
mainfrom
named-enums-stablecoins

Conversation

@shreyav

@shreyav shreyav commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Independent of the quote and transaction enum PRs; this one targets main directly. It gives inline enums on the stablecoin and fee config surface a named schema so generated clients emit enum types instead of plain strings.

What changed

  • StablecoinMintFundingSourceBase.type, StablecoinBurnSourceBase.type, and StablecoinBurnDestinationBase.type now reference StablecoinMintFundingSourceType, StablecoinBurnSourceType, and StablecoinBurnDestinationType. These three are the oneOf discriminators for their families, the same arrangement QuoteSourceType already uses, and the single-value type constants on each subtype are untouched.
  • StablecoinOperationSource.type and StablecoinOperationDestination.rail now reference StablecoinOperationSourceType and StablecoinOperationDestinationRail.
  • RailFeeConfig.direction and RailFeeConfig.originator now reference FeeDirection and FeeOriginator.
  • Rebuilt openapi.yaml and mintlify/openapi.yaml with make build.

SDK impact

The wire format is unchanged. In statically typed SDKs these fields change from string to enum, which can require source changes for callers that construct the request or read the field as a string.

Test plan

  • make lint-openapi: Redocly reports the description valid, Spectral exits 0.
  • oasdiff breaking against main: no breaking changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MYijrrgsrFLJZ5fkmC5XwJ

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
grid-cards-demo Ignored Ignored Preview Oct 9, 2026 5:22pm UTC
grid-flow-builder Ignored Ignored Preview Oct 9, 2026 5:22pm UTC
grid-wallet-demo Ignored Ignored Preview Oct 9, 2026 5:22pm UTC

Request Review

@greptile-apps

greptile-apps Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Critical impact] The PR appears safe to merge; no actionable issues were found.

Summary

Extracts seven inline enums into named schemas for stablecoin requests, operation responses, and fee settings.

  • Preserves allowed values, descriptions, examples, and required fields.
  • Leaves subtype constants and discriminator mappings unchanged.
  • Updates both generated OpenAPI bundles.
  • No actionable issues found. This review used static checks; it did not rerun builds or client generation.

Reviews (1) · Last reviewed commit: "refactor(stablecoins): name the stableco..." · Reviewed by Greptile

@shreyav
shreyav force-pushed the named-enums-cards branch from 3908f26 to 32dd409 Compare October 9, 2026 17:01
@shreyav
shreyav force-pushed the named-enums-stablecoins branch from 2913d21 to 547ed7a Compare October 9, 2026 17:01
@shreyav
shreyav changed the base branch from named-enums-cards to main October 9, 2026 17:02
@mintlify

mintlify Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Grid 🟢 Ready View Preview Oct 9, 2026, 5:23 PM

…nums

The type and rail fields on the stablecoin mint and burn source and
destination schemas, and RailFeeConfig.direction and .originator, declared
their enums inline. Each is now a component schema. The wire format is
unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MYijrrgsrFLJZ5fkmC5XwJ
@shreyav
shreyav force-pushed the named-enums-stablecoins branch from 547ed7a to 809fba0 Compare October 9, 2026 17:22
@shreyav
shreyav merged commit 864d160 into main Oct 9, 2026
8 checks passed
@shreyav
shreyav deleted the named-enums-stablecoins branch October 9, 2026 17:27

This branch was successfully deployed

1 active deployment
staging - mintlify — 809fba09 Deployed Oct 9, 2026 by mintlify[bot]
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