rippled
SField.h
1 //------------------------------------------------------------------------------
2 /*
3  This file is part of rippled: https://github.com/ripple/rippled
4  Copyright (c) 2012, 2013 Ripple Labs Inc.
5 
6  Permission to use, copy, modify, and/or distribute this software for any
7  purpose with or without fee is hereby granted, provided that the above
8  copyright notice and this permission notice appear in all copies.
9 
10  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18 //==============================================================================
19 
20 #ifndef RIPPLE_PROTOCOL_SFIELD_H_INCLUDED
21 #define RIPPLE_PROTOCOL_SFIELD_H_INCLUDED
22 
23 #include <ripple/basics/safe_cast.h>
24 #include <ripple/json/json_value.h>
25 #include <cstdint>
26 #include <map>
27 #include <utility>
28 
29 namespace ripple {
30 
31 /*
32 
33 Some fields have a different meaning for their
34  default value versus not present.
35  Example:
36  QualityIn on a TrustLine
37 
38 */
39 
40 //------------------------------------------------------------------------------
41 
42 // Forwards
43 class STAccount;
44 class STAmount;
45 class STBlob;
46 template <std::size_t>
48 template <class>
49 class STInteger;
50 class STVector256;
51 
53  // special types
55  STI_DONE = -1,
57 
58  // // types (common)
65  STI_VL = 7,
67  // 9-13 are reserved
68  STI_OBJECT = 14,
69  STI_ARRAY = 15,
70 
71  // types (uncommon)
72  STI_UINT8 = 16,
76 
77  // high level types
78  // cannot be serialized inside other types
79  STI_TRANSACTION = 10001,
80  STI_LEDGERENTRY = 10002,
81  STI_VALIDATION = 10003,
82  STI_METADATA = 10004,
83 };
84 
85 // constexpr
86 inline int
88 {
89  return (safe_cast<int>(id) << 16) | index;
90 }
91 
92 // constexpr
93 inline int
94 field_code(int id, int index)
95 {
96  return (id << 16) | index;
97 }
98 
109 class SField
110 {
111 public:
112  enum {
113  sMD_Never = 0x00,
114  sMD_ChangeOrig = 0x01, // original value when it changes
115  sMD_ChangeNew = 0x02, // new value when it changes
116  sMD_DeleteFinal = 0x04, // final value when it is deleted
117  sMD_Create = 0x08, // value when it's created
118  sMD_Always = 0x10, // value when node containing it is affected at all
121  };
122 
123  enum class IsSigning : unsigned char { no, yes };
125 
126  int const fieldCode; // (type<<16)|index
127  SerializedTypeID const fieldType; // STI_*
128  int const fieldValue; // Code number for protocol
130  int const fieldMeta;
131  int const fieldNum;
134 
135  SField(SField const&) = delete;
136  SField&
137  operator=(SField const&) = delete;
138  SField(SField&&) = delete;
139  SField&
140  operator=(SField&&) = delete;
141 
142 public:
143  struct private_access_tag_t; // public, but still an implementation detail
144 
145  // These constructors can only be called from SField.cpp
146  SField(
148  SerializedTypeID tid,
149  int fv,
150  const char* fn,
151  int meta = sMD_Default,
152  IsSigning signing = IsSigning::yes);
153  explicit SField(private_access_tag_t, int fc);
154 
155  static const SField&
156  getField(int fieldCode);
157  static const SField&
159  static const SField&
160  getField(int type, int value)
161  {
162  return getField(field_code(type, value));
163  }
164 
165  static const SField&
166  getField(SerializedTypeID type, int value)
167  {
168  return getField(field_code(type, value));
169  }
170 
171  std::string const&
172  getName() const
173  {
174  return fieldName;
175  }
176 
177  bool
178  hasName() const
179  {
180  return fieldCode > 0;
181  }
182 
183  Json::StaticString const&
184  getJsonName() const
185  {
186  return jsonName;
187  }
188 
189  bool
190  isGeneric() const
191  {
192  return fieldCode == 0;
193  }
194  bool
195  isInvalid() const
196  {
197  return fieldCode == -1;
198  }
199  bool
200  isUseful() const
201  {
202  return fieldCode > 0;
203  }
204  bool
205  isKnown() const
206  {
207  return fieldType != STI_UNKNOWN;
208  }
209  bool
210  isBinary() const
211  {
212  return fieldValue < 256;
213  }
214 
215  // A discardable field is one that cannot be serialized, and
216  // should be discarded during serialization,like 'hash'.
217  // You cannot serialize an object's hash inside that object,
218  // but you can have it in the JSON representation.
219  bool
221  {
222  return fieldValue > 256;
223  }
224 
225  int
226  getCode() const
227  {
228  return fieldCode;
229  }
230  int
231  getNum() const
232  {
233  return fieldNum;
234  }
235  static int
237  {
238  return num;
239  }
240 
241  bool
243  {
244  return signingField == IsSigning::yes;
245  }
246  bool
247  shouldMeta(int c) const
248  {
249  return (fieldMeta & c) != 0;
250  }
251 
252  bool
253  shouldInclude(bool withSigningField) const
254  {
255  return (fieldValue < 256) &&
256  (withSigningField || (signingField == IsSigning::yes));
257  }
258 
259  bool
260  operator==(const SField& f) const
261  {
262  return fieldCode == f.fieldCode;
263  }
264 
265  bool
266  operator!=(const SField& f) const
267  {
268  return fieldCode != f.fieldCode;
269  }
270 
271  static int
272  compare(const SField& f1, const SField& f2);
273 
274 private:
275  static int num;
277 };
278 
280 template <class T>
282 {
283  using type = T;
284 
285  template <class... Args>
286  explicit TypedField(Args&&... args) : SField(std::forward<Args>(args)...)
287  {
288  }
289 
290  TypedField(TypedField&& u) : SField(std::move(u))
291  {
292  }
293 };
294 
296 template <class T>
298 {
299  TypedField<T> const* f;
300 
301  explicit OptionaledField(TypedField<T> const& f_) : f(&f_)
302  {
303  }
304 };
305 
306 template <class T>
307 inline OptionaledField<T>
309 {
310  return OptionaledField<T>(f);
311 }
312 
313 //------------------------------------------------------------------------------
314 
315 //------------------------------------------------------------------------------
316 
328 
329 //------------------------------------------------------------------------------
330 
331 extern SField const sfInvalid;
332 extern SField const sfGeneric;
333 extern SField const sfLedgerEntry;
334 extern SField const sfTransaction;
335 extern SField const sfValidation;
336 extern SField const sfMetadata;
337 
338 // 8-bit integers
339 extern SF_UINT8 const sfCloseResolution;
340 extern SF_UINT8 const sfMethod;
341 extern SF_UINT8 const sfTransactionResult;
342 extern SF_UINT8 const sfTickSize;
343 extern SF_UINT8 const sfUNLModifyDisabling;
344 
345 // 16-bit integers
346 extern SF_UINT16 const sfLedgerEntryType;
347 extern SF_UINT16 const sfTransactionType;
348 extern SF_UINT16 const sfSignerWeight;
349 
350 // 16-bit integers (uncommon)
351 extern SF_UINT16 const sfVersion;
352 
353 // 32-bit integers (common)
354 extern SF_UINT32 const sfFlags;
355 extern SF_UINT32 const sfSourceTag;
356 extern SF_UINT32 const sfSequence;
357 extern SF_UINT32 const sfPreviousTxnLgrSeq;
358 extern SF_UINT32 const sfLedgerSequence;
359 extern SF_UINT32 const sfCloseTime;
360 extern SF_UINT32 const sfParentCloseTime;
361 extern SF_UINT32 const sfSigningTime;
362 extern SF_UINT32 const sfExpiration;
363 extern SF_UINT32 const sfTransferRate;
364 extern SF_UINT32 const sfWalletSize;
365 extern SF_UINT32 const sfOwnerCount;
366 extern SF_UINT32 const sfDestinationTag;
367 
368 // 32-bit integers (uncommon)
369 extern SF_UINT32 const sfHighQualityIn;
370 extern SF_UINT32 const sfHighQualityOut;
371 extern SF_UINT32 const sfLowQualityIn;
372 extern SF_UINT32 const sfLowQualityOut;
373 extern SF_UINT32 const sfQualityIn;
374 extern SF_UINT32 const sfQualityOut;
375 extern SF_UINT32 const sfStampEscrow;
376 extern SF_UINT32 const sfBondAmount;
377 extern SF_UINT32 const sfLoadFee;
378 extern SF_UINT32 const sfOfferSequence;
379 extern SF_UINT32 const sfFirstLedgerSequence;
380 extern SF_UINT32 const sfLastLedgerSequence;
381 extern SF_UINT32 const sfTransactionIndex;
382 extern SF_UINT32 const sfOperationLimit;
383 extern SF_UINT32 const sfReferenceFeeUnits;
384 extern SF_UINT32 const sfReserveBase;
385 extern SF_UINT32 const sfReserveIncrement;
386 extern SF_UINT32 const sfSetFlag;
387 extern SF_UINT32 const sfClearFlag;
388 extern SF_UINT32 const sfSignerQuorum;
389 extern SF_UINT32 const sfCancelAfter;
390 extern SF_UINT32 const sfFinishAfter;
391 extern SF_UINT32 const sfSignerListID;
392 extern SF_UINT32 const sfSettleDelay;
393 extern SF_UINT32 const sfTicketCount;
394 extern SF_UINT32 const sfTicketSequence;
395 
396 // 64-bit integers
397 extern SF_UINT64 const sfIndexNext;
398 extern SF_UINT64 const sfIndexPrevious;
399 extern SF_UINT64 const sfBookNode;
400 extern SF_UINT64 const sfOwnerNode;
401 extern SF_UINT64 const sfBaseFee;
402 extern SF_UINT64 const sfExchangeRate;
403 extern SF_UINT64 const sfLowNode;
404 extern SF_UINT64 const sfHighNode;
405 extern SF_UINT64 const sfDestinationNode;
406 extern SF_UINT64 const sfCookie;
407 extern SF_UINT64 const sfServerVersion;
408 
409 // 128-bit
410 extern SF_HASH128 const sfEmailHash;
411 
412 // 160-bit (common)
413 extern SF_HASH160 const sfTakerPaysCurrency;
414 extern SF_HASH160 const sfTakerPaysIssuer;
415 extern SF_HASH160 const sfTakerGetsCurrency;
416 extern SF_HASH160 const sfTakerGetsIssuer;
417 
418 // 256-bit (common)
419 extern SF_HASH256 const sfLedgerHash;
420 extern SF_HASH256 const sfParentHash;
421 extern SF_HASH256 const sfTransactionHash;
422 extern SF_HASH256 const sfAccountHash;
423 extern SF_HASH256 const sfPreviousTxnID;
424 extern SF_HASH256 const sfLedgerIndex;
425 extern SF_HASH256 const sfWalletLocator;
426 extern SF_HASH256 const sfRootIndex;
427 extern SF_HASH256 const sfAccountTxnID;
428 
429 // 256-bit (uncommon)
430 extern SF_HASH256 const sfBookDirectory;
431 extern SF_HASH256 const sfInvoiceID;
432 extern SF_HASH256 const sfNickname;
433 extern SF_HASH256 const sfAmendment;
434 extern SF_HASH256 const sfDigest;
435 extern SF_HASH256 const sfChannel;
436 extern SF_HASH256 const sfConsensusHash;
437 extern SF_HASH256 const sfCheckID;
438 extern SF_HASH256 const sfValidatedHash;
439 
440 // currency amount (common)
441 extern SF_AMOUNT const sfAmount;
442 extern SF_AMOUNT const sfBalance;
443 extern SF_AMOUNT const sfLimitAmount;
444 extern SF_AMOUNT const sfTakerPays;
445 extern SF_AMOUNT const sfTakerGets;
446 extern SF_AMOUNT const sfLowLimit;
447 extern SF_AMOUNT const sfHighLimit;
448 extern SF_AMOUNT const sfFee;
449 extern SF_AMOUNT const sfSendMax;
450 extern SF_AMOUNT const sfDeliverMin;
451 
452 // currency amount (uncommon)
453 extern SF_AMOUNT const sfMinimumOffer;
454 extern SF_AMOUNT const sfRippleEscrow;
455 extern SF_AMOUNT const sfDeliveredAmount;
456 
457 // variable length (common)
458 extern SF_VL const sfPublicKey;
459 extern SF_VL const sfMessageKey;
460 extern SF_VL const sfSigningPubKey;
461 extern SF_VL const sfTxnSignature;
462 extern SF_VL const sfSignature;
463 extern SF_VL const sfDomain;
464 extern SF_VL const sfFundCode;
465 extern SF_VL const sfRemoveCode;
466 extern SF_VL const sfExpireCode;
467 extern SF_VL const sfCreateCode;
468 extern SF_VL const sfMemoType;
469 extern SF_VL const sfMemoData;
470 extern SF_VL const sfMemoFormat;
471 
472 // variable length (uncommon)
473 extern SF_VL const sfFulfillment;
474 extern SF_VL const sfCondition;
475 extern SF_VL const sfMasterSignature;
476 extern SF_VL const sfUNLModifyValidator;
477 extern SF_VL const sfValidatorToDisable;
478 extern SF_VL const sfValidatorToReEnable;
479 
480 // account
481 extern SF_ACCOUNT const sfAccount;
482 extern SF_ACCOUNT const sfOwner;
483 extern SF_ACCOUNT const sfDestination;
484 extern SF_ACCOUNT const sfIssuer;
485 extern SF_ACCOUNT const sfAuthorize;
486 extern SF_ACCOUNT const sfUnauthorize;
487 extern SF_ACCOUNT const sfTarget;
488 extern SF_ACCOUNT const sfRegularKey;
489 
490 // path set
491 extern SField const sfPaths;
492 
493 // vector of 256-bit
494 extern SF_VECTOR256 const sfIndexes;
495 extern SF_VECTOR256 const sfHashes;
496 extern SF_VECTOR256 const sfAmendments;
497 
498 // inner object
499 // OBJECT/1 is reserved for end of object
500 extern SField const sfTransactionMetaData;
501 extern SField const sfCreatedNode;
502 extern SField const sfDeletedNode;
503 extern SField const sfModifiedNode;
504 extern SField const sfPreviousFields;
505 extern SField const sfFinalFields;
506 extern SField const sfNewFields;
507 extern SField const sfTemplateEntry;
508 extern SField const sfMemo;
509 extern SField const sfSignerEntry;
510 extern SField const sfSigner;
511 extern SField const sfMajority;
512 extern SField const sfDisabledValidator;
513 
514 // array of objects
515 // ARRAY/1 is reserved for end of array
516 // extern SField const sfSigningAccounts; // Never been used.
517 extern SField const sfSigners;
518 extern SField const sfSignerEntries;
519 extern SField const sfTemplate;
520 extern SField const sfNecessary;
521 extern SField const sfSufficient;
522 extern SField const sfAffectedNodes;
523 extern SField const sfMemos;
524 extern SField const sfMajorities;
525 extern SField const sfDisabledValidators;
526 //------------------------------------------------------------------------------
527 
528 } // namespace ripple
529 
530 #endif
ripple::sfIndexNext
const SF_UINT64 sfIndexNext
ripple::sfSignerListID
const SF_UINT32 sfSignerListID
ripple::sfHighQualityIn
const SF_UINT32 sfHighQualityIn
ripple::sfOfferSequence
const SF_UINT32 sfOfferSequence
ripple::sfPreviousTxnLgrSeq
const SF_UINT32 sfPreviousTxnLgrSeq
ripple::sfOwnerCount
const SF_UINT32 sfOwnerCount
ripple::sfPreviousTxnID
const SF_HASH256 sfPreviousTxnID
ripple::TypedField::TypedField
TypedField(TypedField &&u)
Definition: SField.h:290
ripple::sfDigest
const SF_HASH256 sfDigest
ripple::sfSignerWeight
const SF_UINT16 sfSignerWeight
ripple::sfPaths
const SField sfPaths
ripple::sfUNLModifyValidator
const SF_VL sfUNLModifyValidator
ripple::sfSourceTag
const SF_UINT32 sfSourceTag
ripple::sfReserveBase
const SF_UINT32 sfReserveBase
ripple::sfCreateCode
const SF_VL sfCreateCode
ripple::SField::IsSigning
IsSigning
Definition: SField.h:123
ripple::sfMetadata
const SField sfMetadata
ripple::sfSendMax
const SF_AMOUNT sfSendMax
std::string
STL class.
ripple::sfSigners
const SField sfSigners
ripple::SField::getField
static const SField & getField(SerializedTypeID type, int value)
Definition: SField.h:166
utility
ripple::sfOwnerNode
const SF_UINT64 sfOwnerNode
ripple::TypedField
A field with a type known at compile time.
Definition: SField.h:281
ripple::sfMinimumOffer
const SF_AMOUNT sfMinimumOffer
ripple::STI_METADATA
@ STI_METADATA
Definition: SField.h:82
ripple::sfGeneric
const SField sfGeneric(access, 0)
Definition: SField.h:332
ripple::SField::fieldValue
const int fieldValue
Definition: SField.h:128
ripple::sfLedgerSequence
const SF_UINT32 sfLedgerSequence
ripple::sfDestination
const SF_ACCOUNT sfDestination
ripple::sfTransactionMetaData
const SField sfTransactionMetaData
ripple::SField::isBinary
bool isBinary() const
Definition: SField.h:210
ripple::sfAmount
const SF_AMOUNT sfAmount
ripple::sfWalletSize
const SF_UINT32 sfWalletSize
ripple::sfFirstLedgerSequence
const SF_UINT32 sfFirstLedgerSequence
ripple::SField::sMD_Always
@ sMD_Always
Definition: SField.h:118
ripple::sfTakerGetsCurrency
const SF_HASH160 sfTakerGetsCurrency
ripple::SField::sMD_DeleteFinal
@ sMD_DeleteFinal
Definition: SField.h:116
ripple::SField::isInvalid
bool isInvalid() const
Definition: SField.h:195
ripple::sfQualityOut
const SF_UINT32 sfQualityOut
ripple::sfBookDirectory
const SF_HASH256 sfBookDirectory
ripple::sfOwner
const SF_ACCOUNT sfOwner
ripple::sfSequence
const SF_UINT32 sfSequence
ripple::sfRegularKey
const SF_ACCOUNT sfRegularKey
ripple::SField::private_access_tag_t
Definition: SField.cpp:34
ripple::sfWalletLocator
const SF_HASH256 sfWalletLocator
ripple::STI_AMOUNT
@ STI_AMOUNT
Definition: SField.h:64
ripple::STI_UINT8
@ STI_UINT8
Definition: SField.h:72
ripple::field_code
int field_code(SerializedTypeID id, int index)
Definition: SField.h:87
ripple::SField::fieldName
const std::string fieldName
Definition: SField.h:129
ripple::STI_PATHSET
@ STI_PATHSET
Definition: SField.h:74
ripple::sfSigningPubKey
const SF_VL sfSigningPubKey
ripple::SField::hasName
bool hasName() const
Definition: SField.h:178
ripple::SerializedTypeID
SerializedTypeID
Definition: SField.h:52
ripple::SField::isUseful
bool isUseful() const
Definition: SField.h:200
ripple::STI_VALIDATION
@ STI_VALIDATION
Definition: SField.h:81
ripple::STI_LEDGERENTRY
@ STI_LEDGERENTRY
Definition: SField.h:80
ripple::SField::signingField
const IsSigning signingField
Definition: SField.h:132
ripple::SField::getField
static const SField & getField(int type, int value)
Definition: SField.h:160
ripple::sfTarget
const SF_ACCOUNT sfTarget
ripple::sfQualityIn
const SF_UINT32 sfQualityIn
ripple::SField::operator!=
bool operator!=(const SField &f) const
Definition: SField.h:266
ripple::STI_DONE
@ STI_DONE
Definition: SField.h:55
ripple::SField::getNum
int getNum() const
Definition: SField.h:231
ripple::sfSetFlag
const SF_UINT32 sfSetFlag
ripple::sfFinalFields
const SField sfFinalFields
ripple::OptionaledField
Indicate std::optional field semantics.
Definition: SField.h:297
ripple::sfEmailHash
const SF_HASH128 sfEmailHash
ripple::sfCloseTime
const SF_UINT32 sfCloseTime
ripple::sfTicketSequence
const SF_UINT32 sfTicketSequence
ripple::sfParentCloseTime
const SF_UINT32 sfParentCloseTime
ripple::SField::getField
static const SField & getField(int fieldCode)
Definition: SField.cpp:321
ripple::STI_ACCOUNT
@ STI_ACCOUNT
Definition: SField.h:66
ripple::sfAmendment
const SF_HASH256 sfAmendment
ripple::STI_ARRAY
@ STI_ARRAY
Definition: SField.h:69
ripple::SField::knownCodeToField
static std::map< int, SField const * > knownCodeToField
Definition: SField.h:276
ripple::sfTransactionHash
const SF_HASH256 sfTransactionHash
ripple::STI_HASH160
@ STI_HASH160
Definition: SField.h:73
ripple::SField::sMD_ChangeOrig
@ sMD_ChangeOrig
Definition: SField.h:114
ripple::SField::getJsonName
Json::StaticString const & getJsonName() const
Definition: SField.h:184
ripple::SField::operator==
bool operator==(const SField &f) const
Definition: SField.h:260
ripple::STBitString
Definition: SField.h:47
ripple::SField::operator=
SField & operator=(SField const &)=delete
ripple::SField::jsonName
const Json::StaticString jsonName
Definition: SField.h:133
ripple::sfDeletedNode
const SField sfDeletedNode
ripple::sfInvalid
const SField sfInvalid(access, -1)
Definition: SField.h:331
ripple::TypedField::TypedField
TypedField(Args &&... args)
Definition: SField.h:286
ripple::SField::sMD_Create
@ sMD_Create
Definition: SField.h:117
ripple::sfTakerGetsIssuer
const SF_HASH160 sfTakerGetsIssuer
ripple::sfValidatedHash
const SF_HASH256 sfValidatedHash
ripple::sfLedgerEntry
const SField sfLedgerEntry
ripple::SField::sMD_Default
@ sMD_Default
Definition: SField.h:119
ripple::sfExpiration
const SF_UINT32 sfExpiration
ripple::sfSignerQuorum
const SF_UINT32 sfSignerQuorum
ripple::sfIndexes
const SF_VECTOR256 sfIndexes
ripple::sfLedgerHash
const SF_HASH256 sfLedgerHash
ripple::SField::fieldType
const SerializedTypeID fieldType
Definition: SField.h:127
ripple::sfVersion
const SF_UINT16 sfVersion
ripple::sfExpireCode
const SF_VL sfExpireCode
ripple::sfLowNode
const SF_UINT64 sfLowNode
ripple::sfTakerPays
const SF_AMOUNT sfTakerPays
ripple::SField::SField
SField(SField const &)=delete
ripple::sfTransactionType
const SF_UINT16 sfTransactionType
ripple::sfDeliverMin
const SF_AMOUNT sfDeliverMin
ripple::sfLowQualityOut
const SF_UINT32 sfLowQualityOut
ripple::sfLimitAmount
const SF_AMOUNT sfLimitAmount
ripple::sfLowLimit
const SF_AMOUNT sfLowLimit
ripple::OptionaledField::OptionaledField
OptionaledField(TypedField< T > const &f_)
Definition: SField.h:301
ripple::sfDeliveredAmount
const SF_AMOUNT sfDeliveredAmount
ripple::sfSettleDelay
const SF_UINT32 sfSettleDelay
ripple::sfUnauthorize
const SF_ACCOUNT sfUnauthorize
ripple::sfMemos
const SField sfMemos
ripple::sfServerVersion
const SF_UINT64 sfServerVersion
ripple::sfBondAmount
const SF_UINT32 sfBondAmount
ripple::sfLoadFee
const SF_UINT32 sfLoadFee
ripple::sfTakerPaysIssuer
const SF_HASH160 sfTakerPaysIssuer
ripple::sfNewFields
const SField sfNewFields
ripple::sfReserveIncrement
const SF_UINT32 sfReserveIncrement
ripple::sfMasterSignature
const SF_VL sfMasterSignature
ripple::sfIndexPrevious
const SF_UINT64 sfIndexPrevious
ripple::sfAffectedNodes
const SField sfAffectedNodes
ripple::sfTemplate
const SField sfTemplate
ripple::sfBookNode
const SF_UINT64 sfBookNode
ripple::sfFundCode
const SF_VL sfFundCode
ripple::SField::notSigning
static const IsSigning notSigning
Definition: SField.h:124
ripple::sfCookie
const SF_UINT64 sfCookie
ripple::sfLowQualityIn
const SF_UINT32 sfLowQualityIn
ripple::STI_UNKNOWN
@ STI_UNKNOWN
Definition: SField.h:54
ripple::sfValidatorToDisable
const SF_VL sfValidatorToDisable
ripple::sfTicketCount
const SF_UINT32 sfTicketCount
ripple::STI_VL
@ STI_VL
Definition: SField.h:65
ripple::sfRippleEscrow
const SF_AMOUNT sfRippleEscrow
ripple::STI_UINT16
@ STI_UINT16
Definition: SField.h:59
ripple::sfModifiedNode
const SField sfModifiedNode
ripple::STI_HASH256
@ STI_HASH256
Definition: SField.h:63
ripple::sfDestinationNode
const SF_UINT64 sfDestinationNode
ripple::sfTakerGets
const SF_AMOUNT sfTakerGets
ripple::sfMajority
const SField sfMajority
ripple::sfLedgerIndex
const SF_HASH256 sfLedgerIndex
cstdint
ripple::sfRemoveCode
const SF_VL sfRemoveCode
ripple::sfTransferRate
const SF_UINT32 sfTransferRate
ripple::sfTickSize
const SF_UINT8 sfTickSize
ripple::SField::fieldCode
const int fieldCode
Definition: SField.h:126
ripple::SField::isKnown
bool isKnown() const
Definition: SField.h:205
ripple::sfAuthorize
const SF_ACCOUNT sfAuthorize
ripple::sfHighLimit
const SF_AMOUNT sfHighLimit
ripple::sfExchangeRate
const SF_UINT64 sfExchangeRate
ripple::STI_VECTOR256
@ STI_VECTOR256
Definition: SField.h:75
ripple::sfStampEscrow
const SF_UINT32 sfStampEscrow
map
ripple::SField::getNumFields
static int getNumFields()
Definition: SField.h:236
ripple::sfSigner
const SField sfSigner
ripple::sfClearFlag
const SF_UINT32 sfClearFlag
ripple::sfSignerEntry
const SField sfSignerEntry
ripple::sfAccountHash
const SF_HASH256 sfAccountHash
ripple::sfTakerPaysCurrency
const SF_HASH160 sfTakerPaysCurrency
ripple::sfChannel
const SF_HASH256 sfChannel
ripple::STInteger
Definition: SField.h:49
ripple::sfCheckID
const SF_HASH256 sfCheckID
ripple::sfUNLModifyDisabling
const SF_UINT8 sfUNLModifyDisabling
ripple::SField::IsSigning::yes
@ yes
ripple::SField::shouldInclude
bool shouldInclude(bool withSigningField) const
Definition: SField.h:253
ripple::TypedField::type
T type
Definition: SField.h:283
ripple::sfPreviousFields
const SField sfPreviousFields
ripple::sfTransactionIndex
const SF_UINT32 sfTransactionIndex
ripple::sfSignerEntries
const SField sfSignerEntries
ripple::sfOperationLimit
const SF_UINT32 sfOperationLimit
ripple::sfBaseFee
const SF_UINT64 sfBaseFee
ripple::sfHashes
const SF_VECTOR256 sfHashes
ripple::sfMemoData
const SF_VL sfMemoData
ripple::STI_UINT32
@ STI_UINT32
Definition: SField.h:60
ripple::sfTxnSignature
const SF_VL sfTxnSignature
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition: RCLCensorshipDetector.h:29
ripple::sfCloseResolution
const SF_UINT8 sfCloseResolution
ripple::sfTransactionResult
const SF_UINT8 sfTransactionResult
ripple::sfTemplateEntry
const SField sfTemplateEntry
ripple::sfLedgerEntryType
const SF_UINT16 sfLedgerEntryType
ripple::sfConsensusHash
const SF_HASH256 sfConsensusHash
ripple::SField
Identifies fields.
Definition: SField.h:109
ripple::sfAccountTxnID
const SF_HASH256 sfAccountTxnID
ripple::sfCondition
const SF_VL sfCondition
ripple::STI_UINT64
@ STI_UINT64
Definition: SField.h:61
ripple::SField::num
static int num
Definition: SField.h:275
ripple::sfIssuer
const SF_ACCOUNT sfIssuer
ripple::SField::getName
std::string const & getName() const
Definition: SField.h:172
Json::StaticString
Lightweight wrapper to tag static string.
Definition: json_value.h:60
ripple::sfFlags
const SF_UINT32 sfFlags
std
STL namespace.
ripple::SField::isDiscardable
bool isDiscardable() const
Definition: SField.h:220
ripple::STI_HASH128
@ STI_HASH128
Definition: SField.h:62
ripple::sfInvoiceID
const SF_HASH256 sfInvoiceID
ripple::sfDisabledValidator
const SField sfDisabledValidator
ripple::sfDestinationTag
const SF_UINT32 sfDestinationTag
ripple::sfCreatedNode
const SField sfCreatedNode
ripple::sfRootIndex
const SF_HASH256 sfRootIndex
ripple::sfSignature
const SF_VL sfSignature
ripple::sfBalance
const SF_AMOUNT sfBalance
ripple::SField::compare
static int compare(const SField &f1, const SField &f2)
Definition: SField.cpp:333
ripple::sfReferenceFeeUnits
const SF_UINT32 sfReferenceFeeUnits
ripple::STVector256
Definition: STVector256.h:29
ripple::sfCancelAfter
const SF_UINT32 sfCancelAfter
ripple::sfMessageKey
const SF_VL sfMessageKey
ripple::sfHighQualityOut
const SF_UINT32 sfHighQualityOut
ripple::SField::getCode
int getCode() const
Definition: SField.h:226
ripple::SField::isGeneric
bool isGeneric() const
Definition: SField.h:190
ripple::sfValidation
const SField sfValidation
ripple::SField::fieldMeta
const int fieldMeta
Definition: SField.h:130
ripple::sfFinishAfter
const SF_UINT32 sfFinishAfter
ripple::OptionaledField::f
TypedField< T > const * f
Definition: SField.h:299
ripple::sfFee
const SF_AMOUNT sfFee
ripple::sfMemo
const SField sfMemo
ripple::sfAccount
const SF_ACCOUNT sfAccount
ripple::STI_OBJECT
@ STI_OBJECT
Definition: SField.h:68
ripple::sfSufficient
const SField sfSufficient
ripple::sfDomain
const SF_VL sfDomain
ripple::sfLastLedgerSequence
const SF_UINT32 sfLastLedgerSequence
ripple::SField::shouldMeta
bool shouldMeta(int c) const
Definition: SField.h:247
ripple::sfNickname
const SF_HASH256 sfNickname
ripple::SField::sMD_ChangeNew
@ sMD_ChangeNew
Definition: SField.h:115
ripple::sfParentHash
const SF_HASH256 sfParentHash
ripple::sfMajorities
const SField sfMajorities
ripple::SField::sMD_Never
@ sMD_Never
Definition: SField.h:113
ripple::sfSigningTime
const SF_UINT32 sfSigningTime
ripple::sfDisabledValidators
const SField sfDisabledValidators
ripple::sfFulfillment
const SF_VL sfFulfillment
ripple::SField::IsSigning::no
@ no
ripple::sfPublicKey
const SF_VL sfPublicKey
ripple::sfNecessary
const SField sfNecessary
ripple::sfHighNode
const SF_UINT64 sfHighNode
ripple::sfTransaction
const SField sfTransaction
ripple::SField::fieldNum
const int fieldNum
Definition: SField.h:131
ripple::sfAmendments
const SF_VECTOR256 sfAmendments
ripple::SField::isSigningField
bool isSigningField() const
Definition: SField.h:242
ripple::sfMethod
const SF_UINT8 sfMethod
ripple::STI_TRANSACTION
@ STI_TRANSACTION
Definition: SField.h:79
ripple::STI_NOTPRESENT
@ STI_NOTPRESENT
Definition: SField.h:56
ripple::sfMemoFormat
const SF_VL sfMemoFormat
ripple::operator~
constexpr ApplyFlags operator~(ApplyFlags const &flags)
Definition: ApplyView.h:71
ripple::sfValidatorToReEnable
const SF_VL sfValidatorToReEnable
ripple::sfMemoType
const SF_VL sfMemoType