Add Plasma (PLASMA_WALLET) to Grid public API schema#724
Conversation
Add the public Plasma wallet type (EVM 0x address, USDT asset) mirroring the existing Tron wallet: PlasmaWalletInfo, PaymentPlasmaWalletInfo, and PlasmaWalletExternalAccountInfo, plus PLASMA_WALLET in the account-type enums, PLASMA in CryptoNetwork, and the external-account and payment-instructions discriminator unions. Includes docs and .stainless sync; make build rebundled.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
✱ Stainless preview builds for gridThis PR will update the cli go kotlin openapi php python ruby typescript Edit this comment to update them. They will appear in their respective SDK's changelogs. ✅ grid-typescript studio · code · diff
✅ grid-openapi studio · code · diff
✅ grid-ruby studio · code · diff
✅ grid-go studio · code · diff
✅ grid-kotlin studio · code · diff
✅ grid-python studio · code · diff
✅ grid-php studio · code · diff
✅ grid-cli studio · code · diff
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
⚡ Heads up on the red Detect breaking changes check — this is expected and by design for adding a new wallet type. All 45 findings are The workflow's design is to label such PRs Review response generated using an automated agent. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
@greptile review |
Greptile SummaryThis PR adds Plasma wallet support to the public Grid API. The main changes are:
Confidence Score: 5/5This looks safe to merge.
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/common/PaymentPlasmaWalletInfo.yaml | Adds the USDT payment schema for Plasma wallets. |
| openapi/components/schemas/common/PlasmaWalletInfo.yaml | Defines the Plasma wallet discriminator and address. |
| openapi/components/schemas/common/PaymentInstructions.yaml | Adds Plasma to the payment instruction union and discriminator. |
| openapi/components/schemas/external_accounts/PlasmaWalletExternalAccountInfo.yaml | Adds the Plasma external-account schema. |
| openapi/components/schemas/external_accounts/ExternalAccountCreateInfoOneOf.yaml | Adds Plasma to the external-account creation union and discriminator. |
| openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml | Adds Plasma to the external-account response union and discriminator. |
| .stainless/stainless.yml | Registers the Plasma schemas for SDK generation. |
| mintlify/snippets/internal-accounts.mdx | Documents Plasma USDT funding instructions. |
| openapi.yaml | Updates the generated public OpenAPI bundle with Plasma support. |
| mintlify/openapi.yaml | Updates the generated Mintlify OpenAPI bundle with Plasma support. |
Reviews (2): Last reviewed commit: "feat: add Plasma (PLASMA_WALLET) to Grid..." | Re-trigger Greptile
|
@greptile review |

Summary
Adds the public Plasma wallet type to the Grid API, mirroring the existing Tron wallet. Plasma is an EVM chain, so wallets use
0xaddresses and the asset isUSDT.Changes
PlasmaWalletInfo,PaymentPlasmaWalletInfo(assetUSDT),PlasmaWalletExternalAccountInfoPLASMA_WALLETadded toPaymentAccountTypeandExternalAccountTypePLASMAadded toCryptoNetworkPLASMA_WALLETwired into the external-account and payment-instructions discriminator unions.stainless/stainless.ymlsynced;make buildrebundledopenapi.yaml+mintlify/openapi.yaml;make lint-openapicleanDraft: this is the public surface for USDT-on-Plasma and lands only when we choose to expose Plasma to integrators. The webdev client is regenerated from this schema in a companion PR.
Requested by @jklein24