Skip to content

Commit 5844517

Browse files
committed
Add MPT flags
1 parent 2d7d855 commit 5844517

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

src/Utilities/Flags.php

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,18 @@ final class Flags
8989
'tfOnlyOne' => 0x00020000,
9090
'tfUntilFailure' => 0x00040000,
9191
'tfIndependent' => 0x00080000,
92-
92+
],
93+
'MPTokenIssuanceCreate' => [
94+
'tfMPTCanLock' => 0x00000002,
95+
'tfMPTRequireAuth' => 0x00000004,
96+
'tfMPTCanEscrow' => 0x00000008,
97+
'tfMPTCanTrade' => 0x00000010,
98+
'tfMPTCanTransfer' => 0x00000020,
99+
'tfMPTCanClawback' => 0x00000040,
100+
],
101+
'MPTokenIssuanceSet' => [
102+
'tfMPTLock' => 0x00000001,
103+
'tfMPTUnlock' => 0x00000002,
93104
],
94105
];
95106

@@ -287,6 +298,32 @@ public static function description(string $transactiontype, string $flagname, bo
287298
case 'Batch_tfIndependent':
288299
$html = 'All transactions will be applied, regardless of failure.';
289300
break;
301+
302+
case 'MPTokenIssuanceCreate_tfMPTCanLock':
303+
$html = 'If set, indicates that the MPT can be locked both individually and globally. If not set, the MPT cannot be locked in any way.';
304+
break;
305+
case 'MPTokenIssuanceCreate_tfMPTRequireAuth':
306+
$html = 'If set, indicates that individual holders must be authorized. This enables issuers to limit who can hold their assets.';
307+
break;
308+
case 'MPTokenIssuanceCreate_tfMPTCanEscrow':
309+
$html = 'If set, indicates that individual holders can place their balances into an escrow.';
310+
break;
311+
case 'MPTokenIssuanceCreate_tfMPTCanTrade':
312+
$html = 'If set, indicates that individual holders can trade their balances using the XRP Ledger DEX.';
313+
break;
314+
case 'MPTokenIssuanceCreate_tfMPTCanTransfer':
315+
$html = 'If set, indicates that tokens can be transferred to other accounts that are not the issuer.';
316+
break;
317+
case 'MPTokenIssuanceCreate_tfMPTCanClawback':
318+
$html = 'If set, indicates that the issuer can use the Clawback transaction to claw back value from individual holders.';
319+
break;
320+
321+
case 'MPTokenIssuanceSet_tfMPTLock':
322+
$html = 'If set, indicates that all MPT balances for this asset should be locked.';
323+
break;
324+
case 'MPTokenIssuanceSet_tfMPTUnlock':
325+
$html = 'If set, indicates that all MPT balances for this asset should be unlocked.';
326+
break;
290327
}
291328

292329
if(!$htmlFormat)

0 commit comments

Comments
 (0)