ripple-lib
Version:
Deprecated - consider migrating to xrpl.js: https://xrpl.org/xrpljs2-migration-guide.html
54 lines • 2.26 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AccountFlags = exports.AccountSetFlags = exports.AccountFields = void 0;
const txflags_1 = require("./txflags");
const accountRootFlags = {
DefaultRipple: 0x00800000,
DepositAuth: 0x01000000,
DisableMaster: 0x00100000,
DisallowXRP: 0x00080000,
GlobalFreeze: 0x00400000,
NoFreeze: 0x00200000,
PasswordSpent: 0x00010000,
RequireAuth: 0x00040000,
RequireDestTag: 0x00020000
};
const AccountFlags = {
passwordSpent: accountRootFlags.PasswordSpent,
requireDestinationTag: accountRootFlags.RequireDestTag,
requireAuthorization: accountRootFlags.RequireAuth,
depositAuth: accountRootFlags.DepositAuth,
disallowIncomingXRP: accountRootFlags.DisallowXRP,
disableMasterKey: accountRootFlags.DisableMaster,
noFreeze: accountRootFlags.NoFreeze,
globalFreeze: accountRootFlags.GlobalFreeze,
defaultRipple: accountRootFlags.DefaultRipple
};
exports.AccountFlags = AccountFlags;
const AccountSetFlags = {
requireDestinationTag: txflags_1.txFlagIndices.AccountSet.asfRequireDest,
requireAuthorization: txflags_1.txFlagIndices.AccountSet.asfRequireAuth,
depositAuth: txflags_1.txFlagIndices.AccountSet.asfDepositAuth,
disallowIncomingXRP: txflags_1.txFlagIndices.AccountSet.asfDisallowXRP,
disableMasterKey: txflags_1.txFlagIndices.AccountSet.asfDisableMaster,
enableTransactionIDTracking: txflags_1.txFlagIndices.AccountSet.asfAccountTxnID,
noFreeze: txflags_1.txFlagIndices.AccountSet.asfNoFreeze,
globalFreeze: txflags_1.txFlagIndices.AccountSet.asfGlobalFreeze,
defaultRipple: txflags_1.txFlagIndices.AccountSet.asfDefaultRipple
};
exports.AccountSetFlags = AccountSetFlags;
const AccountFields = {
EmailHash: {
name: 'emailHash',
encoding: 'hex',
length: 32,
defaults: '00000000000000000000000000000000'
},
WalletLocator: { name: 'walletLocator' },
MessageKey: { name: 'messageKey' },
Domain: { name: 'domain', encoding: 'hex' },
TransferRate: { name: 'transferRate', defaults: 0, shift: 9 },
TickSize: { name: 'tickSize', defaults: 0 }
};
exports.AccountFields = AccountFields;
//# sourceMappingURL=constants.js.map