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") } }