Remove walletLocator and walletSize from settings

This commit is contained in:
Chris Clark
2015-11-16 12:59:20 -08:00
parent 420413268d
commit 83a85a4549
7 changed files with 4 additions and 35 deletions

View File

@@ -37,9 +37,6 @@ const AccountFlagIndices = {
const AccountFields = { const AccountFields = {
EmailHash: {name: 'emailHash', encoding: 'hex', EmailHash: {name: 'emailHash', encoding: 'hex',
length: 32, defaults: '0'}, length: 32, defaults: '0'},
WalletLocator: {name: 'walletLocator', encoding: 'hex',
length: 64, defaults: '0'},
WalletSize: {name: 'walletSize', defaults: 0},
MessageKey: {name: 'messageKey'}, MessageKey: {name: 'messageKey'},
Domain: {name: 'domain', encoding: 'hex'}, Domain: {name: 'domain', encoding: 'hex'},
TransferRate: {name: 'transferRate', defaults: 0, shift: 9}, TransferRate: {name: 'transferRate', defaults: 0, shift: 9},

View File

@@ -46,17 +46,6 @@
{"$ref": "hash128"} {"$ref": "hash128"}
] ]
}, },
"walletLocator": {
"description": "Hash of wallet in content-addressable storage (CAS) in the Ripple Consensus Ledger (not implemented yet). Use `null` to delete.",
"oneOf": [
{"type": "null"},
{"$ref": "hash256"}
]
},
"walletSize": {
"type": ["integer", "null"],
"description": "Size of wallet in content-addressable storage (CAS) in the Ripple Consensus Ledger (not implemeneted yet). Use `null` to delete."
},
"messageKey": { "messageKey": {
"type": "string", "type": "string",
"description": "Public key for sending encrypted messages to this account. Conventionally, it should be a secp256k1 key, the same encryption that is used by the rest of Ripple." "description": "Public key for sending encrypted messages to this account. Conventionally, it should be a secp256k1 key, the same encryption that is used by the rest of Ripple."

View File

@@ -21,8 +21,6 @@ type GetSettings = {
globalFreeze?: boolean, globalFreeze?: boolean,
defaultRipple?: boolean, defaultRipple?: boolean,
emailHash?: ?string, emailHash?: ?string,
walletLocator?: ?string,
walletSize?: ?number,
messageKey?: string, messageKey?: string,
domain?: string, domain?: string,
transferRate?: ?number, transferRate?: ?number,

View File

@@ -45,8 +45,6 @@ type Settings = {
globalFreeze?: boolean, globalFreeze?: boolean,
defaultRipple?: boolean, defaultRipple?: boolean,
emailHash?: string, emailHash?: string,
walletLocator?: string,
walletSize?: number,
messageKey?: string, messageKey?: string,
domain?: string, domain?: string,
transferRate?: number, transferRate?: number,

View File

@@ -31,12 +31,6 @@ type SettingDefaultRipple = {
type SettingEmailHash = { type SettingEmailHash = {
emailHash?: ?string, emailHash?: ?string,
} }
type SettingWalletLocator = {
walletLocator?: ?string,
}
type SettingWalletSize = {
walletSize?: ?number,
}
type SettingMessageKey = { type SettingMessageKey = {
messageKey?: string, messageKey?: string,
} }
@@ -54,8 +48,8 @@ type SettingRegularKey = {
} }
export type Settings = SettingRegularKey | SettingSigners | export type Settings = SettingRegularKey | SettingSigners |
SettingTransferRate | SettingDomain | SettingMessageKey | SettingWalletSize | SettingTransferRate | SettingDomain | SettingMessageKey |
SettingWalletLocator | SettingEmailHash | SettingDefaultRipple | SettingEmailHash | SettingDefaultRipple |
SettingGlobalFreeze | SettingNoFreeze | SettingEnableTransactionIDTracking | SettingGlobalFreeze | SettingNoFreeze | SettingEnableTransactionIDTracking |
SettingDisableMasterKey | SettingDisallowIncomingXRP | SettingDisableMasterKey | SettingDisallowIncomingXRP |
SettingRequireAuthorization | SettingRequireDestinationTag | SettingRequireAuthorization | SettingRequireDestinationTag |

View File

@@ -138,18 +138,12 @@ describe('RippleAPI', function() {
_.partial(checkResult, responses.prepareSettings.flagClear, 'prepare')); _.partial(checkResult, responses.prepareSettings.flagClear, 'prepare'));
}); });
it('prepareSettings - string field clear', function() {
const settings = {walletLocator: null};
return this.api.prepareSettings(address, settings, instructions).then(
_.partial(checkResult, responses.prepareSettings.fieldClear, 'prepare'));
});
it('prepareSettings - integer field clear', function() { it('prepareSettings - integer field clear', function() {
const settings = {walletSize: null}; const settings = {transferRate: null};
return this.api.prepareSettings(address, settings, instructions) return this.api.prepareSettings(address, settings, instructions)
.then(data => { .then(data => {
assert(data); assert(data);
assert.strictEqual(JSON.parse(data.txJSON).WalletSize, 0); assert.strictEqual(JSON.parse(data.txJSON).TransferRate, 0);
}); });
}); });

View File

@@ -2,7 +2,6 @@
"requireDestinationTag": true, "requireDestinationTag": true,
"disallowIncomingXRP": true, "disallowIncomingXRP": true,
"emailHash": "23463B99B62A72F26ED677CC556C44E8", "emailHash": "23463B99B62A72F26ED677CC556C44E8",
"walletLocator": "00000000000000000000000000000000000000000000000000000000DEADBEEF",
"domain": "example.com", "domain": "example.com",
"transferRate": 1.002 "transferRate": 1.002
} }