Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions components/grid-visualizer/src/data/account-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,13 @@ export const accountTypeSpecs: Record<string, AccountTypeSpec> = {
],
beneficiaryRequired: false,
},
PLASMA_WALLET: {
accountType: 'PLASMA_WALLET',
fields: [
{ name: 'address', example: '0xAbCDEF1234567890aBCdEf1234567890ABcDef12' },
],
beneficiaryRequired: false,
},
AED_ACCOUNT: {
accountType: 'AED_ACCOUNT',
fields: [
Expand Down
2 changes: 2 additions & 0 deletions components/grid-visualizer/src/data/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Comment on lines +44 to +45

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Network options use missing icons

When the USDT network selector renders the new Ethereum and Plasma options, the dropdown derives /networks/ethereum.svg and /networks/plasma.svg, but those assets are absent, causing both options to display broken images.

Knowledge Base Used: Demo Apps and Samples

Prompt To Fix With AI
This is a comment left during a code review.
Path: components/grid-visualizer/src/data/crypto.ts
Line: 44-45

Comment:
**Network options use missing icons**

When the USDT network selector renders the new Ethereum and Plasma options, the dropdown derives `/networks/ethereum.svg` and `/networks/plasma.svg`, but those assets are absent, causing both options to display broken images.

**Knowledge Base Used:** [Demo Apps and Samples](https://app.greptile.com/lightspark/-/custom-context/knowledge-base/lightsparkdev/grid-api/-/docs/demo-apps-and-samples.md)

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

],
examplePerson: { fullName: 'Sam Chen', nationality: 'US' },
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")
}
}
Expand Down
Loading