-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Original, draft] Add Elrond coin #1
Conversation
...id/app/src/androidTest/java/com/trustwallet/core/app/blockchains/elrond/TestElrondAddress.kt
Outdated
Show resolved
Hide resolved
tests/Bech32AddressTests.cpp
Outdated
|
||
ASSERT_FALSE(Bech32Address::isValid("", "erd")); | ||
ASSERT_FALSE(Bech32Address::isValid("erd1cux02zersde0l7hhklzhywcxk4u9n4py5tdxyx7vrvhnza2r4gmq4vw35!", "erd")); | ||
ASSERT_FALSE(Bech32Address::isValid("terd19nu5t7hszckwah5nlcadmk5rlchtugzplznskffpwecygcu0520s9tnyy0", "erd")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xerd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
tests/CoinAddressValidationTests.cpp
Outdated
@@ -373,4 +373,10 @@ TEST(Coin, ValidateAddressVeChain) { | |||
EXPECT_EQ(normalizeAddress(TWCoinTypeVeChain, "0x9d8a62f656a8d1615c1294fd71e9cfb3e4855a4f"), "0x9d8A62f656a8d1615C1294fd71e9CFb3E4855A4F"); | |||
} | |||
|
|||
TEST(Coin, ValidateAddressElrond) { | |||
EXPECT_TRUE(validateAddress(TWCoinTypeElrond, "erd1l453hd0gt5gzdp7czpuall8ggt2dcv5zwmfdf3sd3lguxseux2fsmsgldz")); | |||
EXPECT_FALSE(validateAddress(TWCoinTypeElrond, "terd1l453hd0gt5gzdp7czpuall8ggt2dcv5zwmfdf3sd3lguxseux2fsmsgldz")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xerd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
tests/Elrond/AddressTests.cpp
Outdated
ASSERT_FALSE(Address::isValid("")); | ||
ASSERT_FALSE(Address::isValid("foo")); | ||
ASSERT_FALSE(Address::isValid("10z9xdugayn528ksaesdwlhf006fw5sg2qmmm0h52fvxczwgesyvq5pwemr")); | ||
ASSERT_FALSE(Address::isValid("nerd10z9xdugayn528ksaesdwlhf006fw5sg2qmmm0h52fvxczwgesyvq5pwemr")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xerd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
We can close this PR, the official one is against the parent repository. |
Description
Extended Wallet-core with blockchain & coin Elrond.
Testing instructions
walletconsole
Types of changes
Checklist
[WIP]
if necessary.New blockchain checklist
coins.json
.src/Coin.cpp
tests/Elrond/TWCoinTypeTests.cpp
Entry.cpp
Address.cpp
Implement. Was not necessary.Transaction.cpp
if necessarySigner.cpp
CoinTests.cpp
TWHDWalletTests.cpp
.Add stake, unstake, get rewards tests if the blockchain is PoS like.Will be added later in time.Implement C interface inNot applicable.src/interface
TWAnyAddress
TWAnySigner
ElrondTests.swift
CoinAddressDerivationTests.cpp
CoinAddressValidationTests.cpp
TWHRPTests.cpp
CoinAddressDerivationTests.kt
CoinAddressDerivationTests.swift
trustwallet/assets
if necessary.