1
+ 'use strict' ;
2
+
3
+ /*eslint no-multi-spaces:0,space-in-brackets:0,key-spacing:0,comma-spacing:0*/
4
+
1
5
/**
2
6
* Data type map.
3
7
*
4
8
* Mapping of type ids to data types. The type id is specified by the high
5
9
*
6
10
* For reference, see rippled's definition:
7
- * https://github.com/ripple/rippled/blob/develop/src/ripple/data/protocol/SField.cpp
11
+ * https://github.com/ripple/rippled/blob/develop/src/ripple/data/protocol
12
+ * /SField.cpp
8
13
*/
9
- var TYPES_MAP = exports . types = [
10
- void ( 0 ) ,
14
+
15
+ exports . types = [
16
+ undefined ,
11
17
12
18
// Common
13
19
'Int16' , // 1
@@ -20,11 +26,11 @@ var TYPES_MAP = exports.types = [
20
26
'Account' , // 8
21
27
22
28
// 9-13 reserved
23
- void ( 0 ) , // 9
24
- void ( 0 ) , // 10
25
- void ( 0 ) , // 11
26
- void ( 0 ) , // 12
27
- void ( 0 ) , // 13
29
+ undefined , // 9
30
+ undefined , // 10
31
+ undefined , // 11
32
+ undefined , // 12
33
+ undefined , // 13
28
34
29
35
'Object' , // 14
30
36
'Array' , // 15
@@ -151,7 +157,7 @@ var FIELDS_MAP = exports.fields = {
151
157
8 : 'RegularKey'
152
158
} ,
153
159
14 : { // Object
154
- 1 : void ( 0 ) , //end of Object
160
+ 1 : undefined , // end of Object
155
161
2 : 'TransactionMetaData' ,
156
162
3 : 'CreatedNode' ,
157
163
4 : 'DeletedNode' ,
@@ -163,7 +169,7 @@ var FIELDS_MAP = exports.fields = {
163
169
10 : 'Memo'
164
170
} ,
165
171
15 : { // Array
166
- 1 : void ( 0 ) , //end of Array
172
+ 1 : undefined , // end of Array
167
173
2 : 'SigningAccounts' ,
168
174
3 : 'TxnSignatures' ,
169
175
4 : 'Signatures' ,
@@ -228,7 +234,9 @@ exports.tx = {
228
234
[ 'WalletSize' , OPTIONAL ] ,
229
235
[ 'MessageKey' , OPTIONAL ] ,
230
236
[ 'Domain' , OPTIONAL ] ,
231
- [ 'TransferRate' , OPTIONAL ]
237
+ [ 'TransferRate' , OPTIONAL ] ,
238
+ [ 'SetFlag' , OPTIONAL ] ,
239
+ [ 'ClearFlag' , OPTIONAL ]
232
240
] ) ,
233
241
TrustSet : [ 20 ] . concat ( base , [
234
242
[ 'LimitAmount' , OPTIONAL ] ,
@@ -238,7 +246,8 @@ exports.tx = {
238
246
OfferCreate : [ 7 ] . concat ( base , [
239
247
[ 'TakerPays' , REQUIRED ] ,
240
248
[ 'TakerGets' , REQUIRED ] ,
241
- [ 'Expiration' , OPTIONAL ]
249
+ [ 'Expiration' , OPTIONAL ] ,
250
+ [ 'OfferSequence' , OPTIONAL ]
242
251
] ) ,
243
252
OfferCancel : [ 8 ] . concat ( base , [
244
253
[ 'OfferSequence' , REQUIRED ]
@@ -270,11 +279,21 @@ exports.tx = {
270
279
EnableFeature : [ 100 ] . concat ( base , [
271
280
[ 'Feature' , REQUIRED ]
272
281
] ) ,
282
+ EnableAmendment : [ 100 ] . concat ( base , [
283
+ [ 'Amendment' , REQUIRED ]
284
+ ] ) ,
273
285
SetFee : [ 101 ] . concat ( base , [
274
286
[ 'BaseFee' , REQUIRED ] ,
275
287
[ 'ReferenceFeeUnits' , REQUIRED ] ,
276
288
[ 'ReserveBase' , REQUIRED ] ,
277
289
[ 'ReserveIncrement' , REQUIRED ]
290
+ ] ) ,
291
+ TicketCreate : [ 10 ] . concat ( base , [
292
+ [ 'Target' , OPTIONAL ] ,
293
+ [ 'Expiration' , OPTIONAL ]
294
+ ] ) ,
295
+ TicketCancel : [ 11 ] . concat ( base , [
296
+ [ 'TicketID' , REQUIRED ]
278
297
] )
279
298
} ;
280
299
@@ -412,5 +431,8 @@ exports.ter = {
412
431
tecNO_TARGET : 138 ,
413
432
tecNO_PERMISSION : 139 ,
414
433
tecNO_ENTRY : 140 ,
415
- tecINSUFFICIENT_RESERVE : 141
434
+ tecINSUFFICIENT_RESERVE : 141 ,
435
+ tecNEED_MASTER_KEY : 142 ,
436
+ tecDST_TAG_NEEDED : 143 ,
437
+ tecINTERNAL : 144
416
438
} ;
0 commit comments