Skip to content

Commit 2d7d855

Browse files
authored
Update Flags.php
1 parent 3b4b9de commit 2d7d855

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

src/Utilities/Flags.php

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,14 @@ final class Flags
8383
],
8484
'XChainModifyBridge' => [
8585
'tfClearAccountCreateAmount' => 0x00010000,
86-
]
86+
],
87+
'Batch' => [
88+
'tfAllOrNothing' => 0x00010000,
89+
'tfOnlyOne' => 0x00020000,
90+
'tfUntilFailure' => 0x00040000,
91+
'tfIndependent' => 0x00080000,
92+
93+
],
8794
];
8895

8996
//todo account set asf flags... https://js.xrpl.org/enums/AccountSetAsfFlags.html
@@ -268,11 +275,23 @@ public static function description(string $transactiontype, string $flagname, bo
268275
case 'XChainModifyBridge_tfClearAccountCreateAmount':
269276
$html = 'Clears the MinAccountCreateAmount of the bridge.';
270277
break;
278+
case 'Batch_tfAllOrNothing':
279+
$html = 'All transactions must succeed or else the whole batch fails.';
280+
break;
281+
case 'Batch_tfOnlyOne':
282+
$html = 'Only the first successful transaction is applied. All transactions afterward fail or are skipped.';
283+
break;
284+
case 'Batch_tfUntilFailure':
285+
$html = 'All transactions are applied until the first failure; subsequent transactions are skipped.';
286+
break;
287+
case 'Batch_tfIndependent':
288+
$html = 'All transactions will be applied, regardless of failure.';
289+
break;
271290
}
272291

273292
if(!$htmlFormat)
274293
return \strip_tags($html);
275294

276295
return $html;
277296
}
278-
}
297+
}

0 commit comments

Comments
 (0)