Skip to content

Commit ab1bc46

Browse files
authored
Merge pull request #5562 from EdgeApp/sam/ecash
Add eCash
2 parents 6ac9ffc + a8f232f commit ab1bc46

File tree

9 files changed

+26
-7
lines changed

9 files changed

+26
-7
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 eCash.
6+
57
## 4.28.0 (staging)
68

79
- added: Dismissed promo cards added to `NotificationCenterScene`

ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PODS:
1919
- React-Core
2020
- edge-currency-accountbased (4.47.1):
2121
- React-Core
22-
- edge-currency-plugins (3.7.0):
22+
- edge-currency-plugins (3.8.0):
2323
- React-Core
2424
- edge-exchange-plugins (2.23.0):
2525
- React-Core
@@ -1103,7 +1103,7 @@ SPEC CHECKSUMS:
11031103
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
11041104
edge-core-js: d9378689e1b7304e34a001731fdcbd6affde665f
11051105
edge-currency-accountbased: a948b44a3ccc82e5f873e9bf7b3feb98624f4d90
1106-
edge-currency-plugins: f9fe0c22b0fa3cea0989c36e657a0f5d461552c5
1106+
edge-currency-plugins: 7870a65d6a49b60727abc7c19f8da19614f6bb49
11071107
edge-exchange-plugins: bd1f8ac7999f3608e08daccabbc15d3b395b0b52
11081108
edge-login-ui-rn: 91b4cfca94bc40f6020c88de7580fe1613229832
11091109
EXApplication: 9e02dde69a11d17d394bc89a9ea90c619217bada

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"edge-core-js": "^2.27.4",
103103
"edge-currency-accountbased": "^4.47.1",
104104
"edge-currency-monero": "^1.5.0",
105-
"edge-currency-plugins": "^3.7.0",
105+
"edge-currency-plugins": "^3.8.0",
106106
"edge-exchange-plugins": "^2.23.0",
107107
"edge-info-server": "^3.8.0",
108108
"edge-login-ui-rn": "^3.26.1",

src/constants/WalletAndCurrencyConstants.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,15 @@ export const SPECIAL_CURRENCY_INFO: {
385385
keysOnlyMode: true,
386386
unstoppableDomainsTicker: 'WAXP'
387387
},
388+
ecash: {
389+
maxSpendTargets: UTXO_MAX_SPEND_TARGETS,
390+
initWalletName: lstrings.string_first_ecash_wallet_name,
391+
chainCode: 'ECASH',
392+
displayBuyCrypto: true,
393+
isImportKeySupported: true,
394+
isStakingSupported: false,
395+
unstoppableDomainsTicker: 'ECASH'
396+
},
388397
ethereum: {
389398
initWalletName: lstrings.string_first_ethereum_wallet_name,
390399
chainCode: 'ETH',

src/envConfig.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ export const asEnvConfig = asObject({
198198
nowNodesApiKey: asOptional(asString, '')
199199
})
200200
),
201+
ECASH_INIT: asCorePluginInit(
202+
asObject({
203+
nowNodesApiKey: asOptional(asString, '')
204+
})
205+
),
201206
ETHEREUM_INIT: asCorePluginInit(asEvmApiKeys),
202207
ETHEREUM_POW_INIT: asCorePluginInit(asEvmApiKeys),
203208
EXOLIX_INIT: asCorePluginInit(

src/locales/en_US.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,7 @@ const strings = {
561561
string_first_bitcoin_gold_wallet_name: 'My Bitcoin Gold',
562562
string_first_dash_wallet_name: 'My Dash',
563563
string_first_digibyte_wallet_name: 'My DigiByte',
564+
string_first_ecash_wallet_name: 'My eCash',
564565
string_first_eos_wallet_name: 'My EOS',
565566
string_first_holesky_wallet_name: 'My Holesky',
566567
string_first_telos_wallet_name: 'My Telos',

src/locales/strings/enUS.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@
494494
"string_first_bitcoin_gold_wallet_name": "My Bitcoin Gold",
495495
"string_first_dash_wallet_name": "My Dash",
496496
"string_first_digibyte_wallet_name": "My DigiByte",
497+
"string_first_ecash_wallet_name": "My eCash",
497498
"string_first_eos_wallet_name": "My EOS",
498499
"string_first_holesky_wallet_name": "My Holesky",
499500
"string_first_telos_wallet_name": "My Telos",

src/util/corePlugins.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const currencyPlugins: EdgeCorePluginsInit = {
1919
celo: ENV.CELO_INIT,
2020
coreum: ENV.COREUM_INIT,
2121
cosmoshub: ENV.COSMOSHUB_INIT,
22+
ecash: ENV.ECASH_INIT,
2223
eos: true,
2324
ethereum: ENV.ETHEREUM_INIT,
2425
ethereumclassic: true,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8788,10 +8788,10 @@ edge-currency-monero@^1.5.0:
87888788
buffer "^5.0.6"
87898789
uri-js "^3.0.2"
87908790

8791-
edge-currency-plugins@^3.7.0:
8792-
version "3.7.0"
8793-
resolved "https://registry.yarnpkg.com/edge-currency-plugins/-/edge-currency-plugins-3.7.0.tgz#ab0c2ae59e60371dc7886ed86b29a1dd3d15e4fc"
8794-
integrity sha512-V7fz588MOxaqkUEA7iFFRlWUenOs5KBlO4I4OY3+0EgmYbNaH7c+R9AX6TtaaPYwuxtaW+t4Bu1PmHa0FTomVQ==
8791+
edge-currency-plugins@^3.8.0:
8792+
version "3.8.0"
8793+
resolved "https://registry.yarnpkg.com/edge-currency-plugins/-/edge-currency-plugins-3.8.0.tgz#4a458a3f9aef550e705754467bbb362b2162d0aa"
8794+
integrity sha512-KkbzYljdDCwFpXZi14NFdAM39wb2SHPE7hgboUWyjeiMe9L/IgTbI8iE8aKQVD0YuR6KoKRJ8Ftd7fOoVqzJSw==
87958795
dependencies:
87968796
"@bitcoinerlab/secp256k1" "^1.2.0"
87978797
altcoin-js "^1.0.0"

0 commit comments

Comments
 (0)