feat(payment-instructions): allow USDT as an Ethereum wallet assetType - #767
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
✱ Stainless preview builds for gridThis PR will update the cli go kotlin openapi php python ruby typescript ✅ grid-ruby studio · code
|
Greptile SummaryUnleash the stablecoin riffs upon Ethereum L1.
Confidence Score: 5/5The PR appears safe to merge, with the source schema and both generated bundles consistently allowing USDT for Ethereum wallet payment instructions. The enum expansion is consistent with sibling chain-specific wallet schemas, and the generated OpenAPI artifacts match the canonical source change without introducing a security or behavioral defect.
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/common/PaymentEthereumWalletInfo.yaml | Expands the canonical Ethereum wallet payment-instruction schema to permit both USDC and USDT. |
| openapi.yaml | Keeps the root generated OpenAPI bundle synchronized with the source schema. |
| mintlify/openapi.yaml | Keeps the generated Mintlify OpenAPI bundle synchronized with the source schema. |
Reviews (1): Last reviewed commit: "feat(payment-instructions): allow USDT a..." | Re-trigger Greptile
…changes (#771) ## Summary - Add PLASMA_WALLET account type to Grid Visualizer data - Add ETHEREUM_WALLET and PLASMA_WALLET networks for USDT in Grid Visualizer - Add PLASMA_WALLET handler to Kotlin sample external account creation ## Context Recent OpenAPI schema changes added PLASMA_WALLET support and USDT on Ethereum. This PR syncs the documentation artifacts (Grid Visualizer, Kotlin sample) with these changes. Related commits: - 927ce42 Add Plasma (PLASMA_WALLET) to Grid public API schema (#724) - 63b759d feat(payment-instructions): allow USDT as an Ethereum wallet assetType (#767) ## Other schema changes reviewed (no doc updates needed) The following recent schema changes were reviewed and require no documentation updates: - SCA_SESSION_REQUIRED (409) and ACCOUNT_LOCKED (423) on quote authorize - already documented in OpenAPI spec - SCA_NOT_COMPLETED outgoing transaction failure reason - already documented in OpenAPI spec - Error400.details.errors[] array for field validation - already documented in OpenAPI spec Mintlify docs already include PLASMA_WALLET in `snippets/internal-accounts.mdx`. ## Test plan - [ ] Grid Visualizer TypeScript compiles without errors - [ ] Kotlin sample compiles without errors - [ ] Verify PLASMA_WALLET appears in Grid Visualizer crypto selection for USDT 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>

Summary
Allows
USDTas anassetTypeon the Ethereum wallet payment-instruction schema, so an internal account denominated in USDT can return Ethereum L1 funding instructions. PreviouslyPaymentEthereumWalletInfo.assetTypeaccepted onlyUSDC, which meant a USDT balance had no way to express an Ethereum L1 deposit address.USDT is already a valid
assetTypeon the Tron wallet schema; this brings Ethereum in line.Changes
openapi/components/schemas/common/PaymentEthereumWalletInfo.yaml— addUSDTto theassetTypeenumopenapi.yaml,mintlify/openapi.yaml— rebundled viamake buildNo change to
EthereumWalletExternalAccountInfo: external accounts carry noassetType, and their currency comes from the request body, which already accepts USDT.Test plan
make lint-openapi— 0 errors (the 136 warnings / 494 infos are pre-existing repo-wideschema-properties-have-{examples,descriptions}noise; none reference this schema)oasdiff breaking <main> <head> --format singleline --fail-on ERR— 0 errors, 37 warnings, allresponse-property-enum-value-addedfor the operations that return payment instructions. Adding a value to a response enum is non-breaking, soinfo.versionis intentionally unchanged.Reply with a comment (e.g. LGTM) to approve — emoji reactions don't notify me here.
Requested by @jklein24
Original PR: #766