From 28d3b282decd529930f0f5d121f53ab21772b5ce Mon Sep 17 00:00:00 2001 From: Rui <102453770+ruixhuang@users.noreply.github.com> Date: Mon, 9 Oct 2023 17:10:44 -0700 Subject: [PATCH] Update mobile wallet configs (#96) --- config/prod/walletsV2.json | 105 +++++++++++++++++++++++++++++++++- config/staging/walletsV2.json | 105 +++++++++++++++++++++++++++++++++- scripts/generated/app.ts | 2 +- 3 files changed, 205 insertions(+), 7 deletions(-) diff --git a/config/prod/walletsV2.json b/config/prod/walletsV2.json index e44615b34..c048d59c0 100644 --- a/config/prod/walletsV2.json +++ b/config/prod/walletsV2.json @@ -46,6 +46,12 @@ "native": "metamask:", "universal": "https://metamask.app.link" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData", + "wallet_addEthereumChain" ] }, "userFields": { @@ -97,6 +103,12 @@ "native": "cbwallet:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData", + "wallet_addEthereumChain" ] }, "userFields": { @@ -143,10 +155,15 @@ "imageUrl": "https://v4.testnet.dydx.exchange/wallets/imtoken.png", "connections": [ { - "type": "walletConnect", + "type": "walletConnectV2", "native": "imtokenv2:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -200,6 +217,11 @@ "native": "trust:", "universal": "https://link.trustwallet.com" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -251,6 +273,11 @@ "native": "zerion:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -297,10 +324,15 @@ "imageUrl": "https://v4.testnet.dydx.exchange/wallets/tokenpocket.png", "connections": [ { - "type": "walletConnect", + "type": "walletConnectV2", "native": "tpoutside:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -353,6 +385,11 @@ "native": "rainbow:", "universal": "https://rnbwapp.com" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -401,10 +438,15 @@ "imageUrl": "https://v4.testnet.dydx.exchange/wallets/1inch.png", "connections": [ { - "type": "walletConnect", + "type": "walletConnectV2", "native": "oneinch:", "universal": "https://wallet.1inch.io" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -456,11 +498,68 @@ "native": "huobiwallet:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { "analyticEvent": "HUOBI_WALLET" } + }, + { + "id": "bae74827272509a6d63ea25514d9c68ad235c14e45e183518c7ded4572a1b0c4", + "name": "iToken HD", + "description": "", + "homepage": "https://www.itoken.com/", + "chains": [ + "eip155:1" + ], + "versions": [ + "1" + ], + "app": { + "browser": "", + "ios": "https://apps.apple.com/us/app/itoken-hd-secure-crypto-wallet/id6446674453", + "android": "https://play.google.com/store/apps/details?id=com.huobionchainwallet.itokenhd", + "mac": "", + "windows": "", + "linux": "" + }, + "mobile": { + "native": "itokenhd:", + "universal": "" + }, + "desktop": { + "native": "", + "universal": "" + }, + "metadata": { + "shortName": "iToken HD", + "colors": { + "primary": "rgb(45,101,248)", + "secondary": "" + } + }, + "config": { + "comment": "iToken HD", + "iosMinVersion": "0", + "encoding": "=\"#%/<>?@\\^`{|}:&", + "connections": [ + { + "type": "walletConnectV2", + "native": "itokenhd:", + "universal": "" + } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" + ] + } } ] diff --git a/config/staging/walletsV2.json b/config/staging/walletsV2.json index e44615b34..c048d59c0 100644 --- a/config/staging/walletsV2.json +++ b/config/staging/walletsV2.json @@ -46,6 +46,12 @@ "native": "metamask:", "universal": "https://metamask.app.link" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData", + "wallet_addEthereumChain" ] }, "userFields": { @@ -97,6 +103,12 @@ "native": "cbwallet:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData", + "wallet_addEthereumChain" ] }, "userFields": { @@ -143,10 +155,15 @@ "imageUrl": "https://v4.testnet.dydx.exchange/wallets/imtoken.png", "connections": [ { - "type": "walletConnect", + "type": "walletConnectV2", "native": "imtokenv2:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -200,6 +217,11 @@ "native": "trust:", "universal": "https://link.trustwallet.com" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -251,6 +273,11 @@ "native": "zerion:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -297,10 +324,15 @@ "imageUrl": "https://v4.testnet.dydx.exchange/wallets/tokenpocket.png", "connections": [ { - "type": "walletConnect", + "type": "walletConnectV2", "native": "tpoutside:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -353,6 +385,11 @@ "native": "rainbow:", "universal": "https://rnbwapp.com" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -401,10 +438,15 @@ "imageUrl": "https://v4.testnet.dydx.exchange/wallets/1inch.png", "connections": [ { - "type": "walletConnect", + "type": "walletConnectV2", "native": "oneinch:", "universal": "https://wallet.1inch.io" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { @@ -456,11 +498,68 @@ "native": "huobiwallet:", "universal": "" } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" ] }, "userFields": { "analyticEvent": "HUOBI_WALLET" } + }, + { + "id": "bae74827272509a6d63ea25514d9c68ad235c14e45e183518c7ded4572a1b0c4", + "name": "iToken HD", + "description": "", + "homepage": "https://www.itoken.com/", + "chains": [ + "eip155:1" + ], + "versions": [ + "1" + ], + "app": { + "browser": "", + "ios": "https://apps.apple.com/us/app/itoken-hd-secure-crypto-wallet/id6446674453", + "android": "https://play.google.com/store/apps/details?id=com.huobionchainwallet.itokenhd", + "mac": "", + "windows": "", + "linux": "" + }, + "mobile": { + "native": "itokenhd:", + "universal": "" + }, + "desktop": { + "native": "", + "universal": "" + }, + "metadata": { + "shortName": "iToken HD", + "colors": { + "primary": "rgb(45,101,248)", + "secondary": "" + } + }, + "config": { + "comment": "iToken HD", + "iosMinVersion": "0", + "encoding": "=\"#%/<>?@\\^`{|}:&", + "connections": [ + { + "type": "walletConnectV2", + "native": "itokenhd:", + "universal": "" + } + ], + "methods": [ + "eth_sendTransaction", + "personal_sign", + "eth_signTypedData" + ] + } } ] diff --git a/scripts/generated/app.ts b/scripts/generated/app.ts index b0f615875..071cf9768 100644 --- a/scripts/generated/app.ts +++ b/scripts/generated/app.ts @@ -1,6 +1,6 @@ // !! GENERATED FILE - DO NOT EDIT -// Generated from ../config/localization/en/app.json using ./codegen_localization_app.swift +// Generated from ./config/localization/en/app.json using scripts/codegen_localization_app.swift export const APP_STRING_KEYS = {