From 8e4e063af719749effa434eaa96ddc1eb6709c78 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Thu, 30 Jul 2026 09:00:42 +0000 Subject: [PATCH] docs: sync Grid Visualizer and Kotlin sample with Plasma/USDT schema changes Add PLASMA_WALLET support and USDT on Ethereum to keep documentation artifacts in sync with recent OpenAPI schema updates: - Grid Visualizer: add PLASMA_WALLET account type spec - Grid Visualizer: add ETHEREUM_WALLET and PLASMA_WALLET to USDT crypto asset - Kotlin sample: add PLASMA_WALLET handler to external account creation Related commits: - 927ce429 Add Plasma (PLASMA_WALLET) to Grid public API schema - 63b759d2 feat(payment-instructions): allow USDT as an Ethereum wallet assetType Co-Authored-By: Claude Opus 4.5 --- components/grid-visualizer/src/data/account-types.ts | 7 +++++++ components/grid-visualizer/src/data/crypto.ts | 2 ++ .../kotlin/com/grid/sample/routes/ExternalAccounts.kt | 8 ++++++++ 3 files changed, 17 insertions(+) diff --git a/components/grid-visualizer/src/data/account-types.ts b/components/grid-visualizer/src/data/account-types.ts index a23a639fb..75f146691 100644 --- a/components/grid-visualizer/src/data/account-types.ts +++ b/components/grid-visualizer/src/data/account-types.ts @@ -260,6 +260,13 @@ export const accountTypeSpecs: Record = { ], beneficiaryRequired: false, }, + PLASMA_WALLET: { + accountType: 'PLASMA_WALLET', + fields: [ + { name: 'address', example: '0xAbCDEF1234567890aBCdEf1234567890ABcDef12' }, + ], + beneficiaryRequired: false, + }, AED_ACCOUNT: { accountType: 'AED_ACCOUNT', fields: [ diff --git a/components/grid-visualizer/src/data/crypto.ts b/components/grid-visualizer/src/data/crypto.ts index 7be2af259..9a37940f9 100644 --- a/components/grid-visualizer/src/data/crypto.ts +++ b/components/grid-visualizer/src/data/crypto.ts @@ -41,6 +41,8 @@ export const cryptoAssets: CryptoAsset[] = [ name: 'Tether', accountTypes: [ { type: 'TRON_WALLET', label: 'Wallet', network: 'Tron' }, + { type: 'ETHEREUM_WALLET', label: 'Wallet', network: 'Ethereum' }, + { type: 'PLASMA_WALLET', label: 'Wallet', network: 'Plasma' }, ], examplePerson: { fullName: 'Sam Chen', nationality: 'US' }, }, diff --git a/samples/kotlin/src/main/kotlin/com/grid/sample/routes/ExternalAccounts.kt b/samples/kotlin/src/main/kotlin/com/grid/sample/routes/ExternalAccounts.kt index ecdcba3fe..217fd0c19 100644 --- a/samples/kotlin/src/main/kotlin/com/grid/sample/routes/ExternalAccounts.kt +++ b/samples/kotlin/src/main/kotlin/com/grid/sample/routes/ExternalAccounts.kt @@ -19,6 +19,7 @@ import com.lightspark.grid.models.customers.externalaccounts.GbpBeneficiary import com.lightspark.grid.models.customers.externalaccounts.InrBeneficiary import com.lightspark.grid.models.customers.externalaccounts.MxnBeneficiary import com.lightspark.grid.models.customers.externalaccounts.PhpBeneficiary +import com.lightspark.grid.models.customers.externalaccounts.PlasmaWalletInfo import com.lightspark.grid.models.customers.externalaccounts.PolygonWalletInfo import com.lightspark.grid.models.customers.externalaccounts.SolanaWalletInfo import com.lightspark.grid.models.customers.externalaccounts.TronWalletInfo @@ -205,6 +206,13 @@ private fun buildAccountInfo(accountType: String, accountInfo: JsonNode): Extern .build() ExternalAccountCreate.AccountInfo.ofTronWallet(info) } + "PLASMA_WALLET" -> { + val info = PlasmaWalletInfo.builder() + .accountType(PlasmaWalletInfo.AccountType.PLASMA_WALLET) + .address(accountInfo.requireText("address")) + .build() + ExternalAccountCreate.AccountInfo.ofPlasmaWallet(info) + } else -> throw IllegalArgumentException("Unsupported account type: $accountType") } }