Skip to content

Commit 24985f1

Browse files
committed
Add abstract core plugin
1 parent ef8089b commit 24985f1

File tree

6 files changed

+19
-0
lines changed

6 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased (develop)
44

5+
- added: Add Abstract ETH Layer 2 support
6+
57
## 4.22.0 (staging)
68

79
- added: `NotificationCenterScene`

src/constants/WalletAndCurrencyConstants.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,19 @@ export const getSpecialCurrencyInfo = (pluginId: string): SpecialCurrencyInfo =>
183183
export const SPECIAL_CURRENCY_INFO: {
184184
[pluginId: string]: SpecialCurrencyInfo
185185
} = {
186+
abstract: {
187+
allowZeroTx: true,
188+
chainCode: 'ETH',
189+
chainIcon: true,
190+
dummyPublicAddress: '0x0d73358506663d484945ba85d0cd435ad610b0a0',
191+
initWalletName: lstrings.string_first_abstract_wallet_name,
192+
isImportKeySupported: true,
193+
noMaxSpend: true,
194+
walletConnectV2ChainId: {
195+
namespace: 'eip155',
196+
reference: '324'
197+
}
198+
},
186199
amoy: {
187200
allowZeroTx: true,
188201
chainCode: 'ETH',

src/envConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export const asEnvConfig = asObject({
138138
UNSTOPPABLE_DOMAINS_API_KEY: asNullable(asString),
139139

140140
// Core plugin options:
141+
ABSTRACT_INIT: asCorePluginInit(asEvmApiKeys),
141142
ARBITRUM_INIT: asCorePluginInit(asEvmApiKeys),
142143
AMOY_INIT: asCorePluginInit(asEvmApiKeys),
143144
ALGORAND_INIT: asOptional(asBoolean, true),

src/locales/en_US.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ const strings = {
605605
string_first_bobevm_wallet_name: 'My BOB',
606606
string_first_algorand_wallet_name: 'My Algorand',
607607
string_first_zksync_wallet_name: 'My zkSync',
608+
string_first_abstract_wallet_name: 'My Abstract',
608609
string_first_sepolia_wallet_name: 'My Sepolia',
609610
my_crypto_wallet_name: 'My %s',
610611
string_help: 'Help',

src/locales/strings/enUS.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@
537537
"string_first_bobevm_wallet_name": "My BOB",
538538
"string_first_algorand_wallet_name": "My Algorand",
539539
"string_first_zksync_wallet_name": "My zkSync",
540+
"string_first_abstract_wallet_name": "My Abstract",
540541
"string_first_sepolia_wallet_name": "My Sepolia",
541542
"my_crypto_wallet_name": "My %s",
542543
"string_help": "Help",

src/util/corePlugins.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ENV } from '../env'
44

55
export const currencyPlugins: EdgeCorePluginsInit = {
66
// // edge-currency-accountbased:
7+
abstract: ENV.ABSTRACT_INIT,
78
algorand: ENV.ALGORAND_INIT,
89
amoy: ENV.AMOY_INIT,
910
arbitrum: ENV.ARBITRUM_INIT,

0 commit comments

Comments
 (0)