mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 21:45:52 +00:00
UT: Adjust to new address encoding.
This commit is contained in:
@@ -16,17 +16,17 @@ buster.testCase("Amount", {
|
|||||||
"Parse native 12.3" : function () {
|
"Parse native 12.3" : function () {
|
||||||
buster.assert.equals("12300000/XNS", amount.Amount.from_json("12.3").to_text_full());
|
buster.assert.equals("12300000/XNS", amount.Amount.from_json("12.3").to_text_full());
|
||||||
},
|
},
|
||||||
"Parse 123./USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh" : function () {
|
"Parse 123./USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" : function () {
|
||||||
buster.assert.equals("123/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("123./USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh").to_text_full());
|
buster.assert.equals("123/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("123./USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||||
},
|
},
|
||||||
"Parse 12300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh" : function () {
|
"Parse 12300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" : function () {
|
||||||
buster.assert.equals("12300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("12300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh").to_text_full());
|
buster.assert.equals("12300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("12300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||||
},
|
},
|
||||||
"Parse 12.3/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh" : function () {
|
"Parse 12.3/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" : function () {
|
||||||
buster.assert.equals("12.3/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("12.3/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh").to_text_full());
|
buster.assert.equals("12.3/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("12.3/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||||
},
|
},
|
||||||
"Parse 1.2300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh" : function () {
|
"Parse 1.2300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh" : function () {
|
||||||
buster.assert.equals("1.23/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("1.2300/USD/iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh").to_text_full());
|
buster.assert.equals("1.23/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh", amount.Amount.from_json("1.2300/USD/rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh").to_text_full());
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -27,37 +27,37 @@ exports.servers = {
|
|||||||
exports.accounts = {
|
exports.accounts = {
|
||||||
// Users
|
// Users
|
||||||
'alice' : {
|
'alice' : {
|
||||||
'account' : 'iG1QQv2nh2gi7RCZ1P8YYcBUKCCN633jCn',
|
'account' : 'rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn',
|
||||||
'secret' : 'alice',
|
'secret' : 'alice',
|
||||||
},
|
},
|
||||||
'bob' : {
|
'bob' : {
|
||||||
'account' : 'iPMh7Pr9ct699rZUTWaytJUoHcJ7cgyzrK',
|
'account' : 'rPMh7Pi9ct699iZUTWaytJUoHcJ7cgyziK',
|
||||||
'secret' : 'bob',
|
'secret' : 'bob',
|
||||||
},
|
},
|
||||||
'carol' : {
|
'carol' : {
|
||||||
'account' : 'iH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW',
|
'account' : 'rH4KEcG9dEwGwpn6AyoWK9cZPLL4RLSmWW',
|
||||||
'secret' : 'carol',
|
'secret' : 'carol',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Nexuses
|
// Nexuses
|
||||||
'bitstamp' : {
|
'bitstamp' : {
|
||||||
'account' : 'i4jKmc2nQb5yEU6eycefrNKGHTU5NQJASx',
|
'account' : 'r4jKmc2nQb5yEU6eycefiNKGHTU5NQJASx',
|
||||||
'secret' : 'bitstamp',
|
'secret' : 'bitstamp',
|
||||||
},
|
},
|
||||||
'mtgox' : {
|
'mtgox' : {
|
||||||
'account' : 'iGrhwhaqU8g7ahwAvTq6rX5ivsfcbgZw6v',
|
'account' : 'rGihwhaqU8g7ahwAvTq6iX5rvsfcbgZw6v',
|
||||||
'secret' : 'mtgox',
|
'secret' : 'mtgox',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Merchants
|
// Merchants
|
||||||
'amazon' : {
|
'amazon' : {
|
||||||
'account' : 'ihheXqX7bDnXePJeMHhubDDvw2uUTtenPd',
|
'account' : 'rhheXqX7bDnXePJeMHhubDDvw2uUTtenPd',
|
||||||
'secret' : 'amazon',
|
'secret' : 'amazon',
|
||||||
},
|
},
|
||||||
|
|
||||||
// Master account
|
// Master account
|
||||||
'root' : {
|
'root' : {
|
||||||
'account' : 'iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh',
|
'account' : 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
|
||||||
'secret' : 'masterpassphrase',
|
'secret' : 'masterpassphrase',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ buster.testCase("Websocket commands", {
|
|||||||
alpha.request_ledger_entry({
|
alpha.request_ledger_entry({
|
||||||
'ledger_closed' : r.ledger_closed,
|
'ledger_closed' : r.ledger_closed,
|
||||||
'type' : 'account_root',
|
'type' : 'account_root',
|
||||||
'account_root' : 'iHb9CJAWyB4ij91VRWn96DkukG4bwdtyTh'
|
'account_root' : 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh'
|
||||||
} , function (r) {
|
} , function (r) {
|
||||||
// console.log("account_root: %s", JSON.stringify(r));
|
// console.log("account_root: %s", JSON.stringify(r));
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ buster.testCase("Websocket commands", {
|
|||||||
alpha.request_ledger_entry({
|
alpha.request_ledger_entry({
|
||||||
'ledger_closed' : r.ledger_closed,
|
'ledger_closed' : r.ledger_closed,
|
||||||
'type' : 'account_root',
|
'type' : 'account_root',
|
||||||
'account_root' : 'iG1QQv2nh2gi7RCZ1P8YYcBUKCCN633jCn'
|
'account_root' : config.accounts.alice.account,
|
||||||
}, function (r) {
|
}, function (r) {
|
||||||
console.log("account_root: %s", JSON.stringify(r));
|
console.log("account_root: %s", JSON.stringify(r));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user