mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Add test cases for addresses/tags used in ripple-lib tests
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ripple-address-codec",
|
||||
"version": "4.0.0-b5",
|
||||
"version": "4.0.0-b6",
|
||||
"description": "encodes/decodes base58 encoded XRP Ledger identifiers",
|
||||
"files": [
|
||||
"dist/*",
|
||||
|
||||
@@ -18,6 +18,12 @@ const testCases = [
|
||||
'X7AcgcsBL6XDcUb289X4mJ8djcdyKaGZMhc9YTE92ehJ2Fu',
|
||||
'T719a5UwUCnEs54UsxG9CJYYDhwmFCvbJNZbi37gBGkRkbE'
|
||||
],
|
||||
[
|
||||
'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59',
|
||||
14,
|
||||
'X7AcgcsBL6XDcUb289X4mJ8djcdyKaGo2K5VpXpmCqbV2gS',
|
||||
'T719a5UwUCnEs54UsxG9CJYYDhwmFCvqXVCALUGJGSbNV3x'
|
||||
],
|
||||
[
|
||||
'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59',
|
||||
11747,
|
||||
@@ -36,6 +42,12 @@ const testCases = [
|
||||
'X7YenJqxv3L66CwhBSfd3N8RzGXxYqPopMGMsCcpho79rex',
|
||||
'T77wVQzA8ntj9wvCTNiQpNYLT5hmhRsFyXDoMLqYC4BzQtV'
|
||||
],
|
||||
[
|
||||
'rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo',
|
||||
58,
|
||||
'X7YenJqxv3L66CwhBSfd3N8RzGXxYqV56ZkTCa9UCzgaao1',
|
||||
'T77wVQzA8ntj9wvCTNiQpNYLT5hmhR9kej6uxm4jGcQD7rZ'
|
||||
],
|
||||
[
|
||||
'rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW',
|
||||
23480,
|
||||
|
||||
@@ -128,5 +128,5 @@ export {
|
||||
encodeXAddress, // Encode account ID, tag, and network ID to X-address
|
||||
xAddressToClassicAddress, // Decode X-address to account ID, tag, and network ID
|
||||
decodeXAddress, // Convert X-address to classic address, tag, and network ID
|
||||
isValidXAddress, // Check whether an X-address (X...) is valid
|
||||
isValidXAddress // Check whether an X-address (X...) is valid
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user