You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.AccountFlags = exports.AccountSetFlags = exports.AccountFields = void 0;
  4. const txflags_1 = require("./txflags");
  5. const accountRootFlags = {
  6. DefaultRipple: 0x00800000,
  7. DepositAuth: 0x01000000,
  8. DisableMaster: 0x00100000,
  9. DisallowXRP: 0x00080000,
  10. GlobalFreeze: 0x00400000,
  11. NoFreeze: 0x00200000,
  12. PasswordSpent: 0x00010000,
  13. RequireAuth: 0x00040000,
  14. RequireDestTag: 0x00020000
  15. };
  16. const AccountFlags = {
  17. passwordSpent: accountRootFlags.PasswordSpent,
  18. requireDestinationTag: accountRootFlags.RequireDestTag,
  19. requireAuthorization: accountRootFlags.RequireAuth,
  20. depositAuth: accountRootFlags.DepositAuth,
  21. disallowIncomingXRP: accountRootFlags.DisallowXRP,
  22. disableMasterKey: accountRootFlags.DisableMaster,
  23. noFreeze: accountRootFlags.NoFreeze,
  24. globalFreeze: accountRootFlags.GlobalFreeze,
  25. defaultRipple: accountRootFlags.DefaultRipple
  26. };
  27. exports.AccountFlags = AccountFlags;
  28. const AccountSetFlags = {
  29. requireDestinationTag: txflags_1.txFlagIndices.AccountSet.asfRequireDest,
  30. requireAuthorization: txflags_1.txFlagIndices.AccountSet.asfRequireAuth,
  31. depositAuth: txflags_1.txFlagIndices.AccountSet.asfDepositAuth,
  32. disallowIncomingXRP: txflags_1.txFlagIndices.AccountSet.asfDisallowXRP,
  33. disableMasterKey: txflags_1.txFlagIndices.AccountSet.asfDisableMaster,
  34. enableTransactionIDTracking: txflags_1.txFlagIndices.AccountSet.asfAccountTxnID,
  35. noFreeze: txflags_1.txFlagIndices.AccountSet.asfNoFreeze,
  36. globalFreeze: txflags_1.txFlagIndices.AccountSet.asfGlobalFreeze,
  37. defaultRipple: txflags_1.txFlagIndices.AccountSet.asfDefaultRipple
  38. };
  39. exports.AccountSetFlags = AccountSetFlags;
  40. const AccountFields = {
  41. EmailHash: {
  42. name: 'emailHash',
  43. encoding: 'hex',
  44. length: 32,
  45. defaults: '00000000000000000000000000000000'
  46. },
  47. WalletLocator: { name: 'walletLocator' },
  48. MessageKey: { name: 'messageKey' },
  49. Domain: { name: 'domain', encoding: 'hex' },
  50. TransferRate: { name: 'transferRate', defaults: 0, shift: 9 },
  51. TickSize: { name: 'tickSize', defaults: 0 }
  52. };
  53. exports.AccountFields = AccountFields;
  54. //# sourceMappingURL=constants.js.map