-
Notifications
You must be signed in to change notification settings - Fork 560
Support for Dynamic MPTs (XLS-94D) #3081
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
0681e0a
ad316b7
fd1513d
2a56be3
29b8e80
058ad5b
1e0aaa0
fc51d7e
b792695
7e2e712
0876e86
0e07910
02d4a96
d6ec04a
bda0c2e
cbdcbc3
565402b
747bfd2
ce16616
42049ac
13f9ec9
7260f2f
0f3ae2f
9a6c46c
4a3a978
0c228cd
020b895
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,15 @@ export enum MPTokenIssuanceCreateFlags { | |
| * to clawback value from individual holders. | ||
| */ | ||
| tfMPTCanClawback = 0x00000040, | ||
|
|
||
| tfMPTCanMutateCanLock = 0x00000002, | ||
| tfMPTCanMutateRequireAuth = 0x00000004, | ||
| tfMPTCanMutateCanEscrow = 0x00000008, | ||
| tfMPTCanMutateCanTrade = 0x00000010, | ||
| tfMPTCanMutateCanTransfer = 0x00000020, | ||
| tfMPTCanMutateCanClawback = 0x00000040, | ||
| tfMPTCanMutateMetadata = 0x00010000, | ||
| tfMPTCanMutateTransferFee = 0x00020000, | ||
ckeshava marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| /** | ||
|
|
@@ -69,6 +78,15 @@ export interface MPTokenIssuanceCreateFlagsInterface | |
| tfMPTCanTrade?: boolean | ||
| tfMPTCanTransfer?: boolean | ||
| tfMPTCanClawback?: boolean | ||
|
|
||
| tfMPTCanMutateCanLock?: boolean | ||
| tfMPTCanMutateRequireAuth?: boolean | ||
| tfMPTCanMutateCanEscrow?: boolean | ||
| tfMPTCanMutateCanTrade?: boolean | ||
| tfMPTCanMutateCanTransfer?: boolean | ||
| tfMPTCanMutateCanClawback?: boolean | ||
| tfMPTCanMutateMetadata?: boolean | ||
| tfMPTCanMutateTransferFee?: boolean | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -120,6 +138,7 @@ export interface MPTokenIssuanceCreate extends BaseTransaction { | |
| MPTokenMetadata?: string | ||
|
|
||
| Flags?: number | MPTokenIssuanceCreateFlagsInterface | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Flags cannot accept the mutable flags so the above change will be needed
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. code has been changed in ce16616 |
||
| MutableFlags?: number | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add docstring for this?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added a recent commit to fix this. However, I could not find the documentation for the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update: I have added a docstring for the |
||
| } | ||
|
|
||
| export interface MPTokenIssuanceCreateMetadata extends TransactionMetadataBase { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,55 @@ export enum MPTokenIssuanceSetFlags { | |
| * If set, indicates that issuer unlocks the MPT | ||
| */ | ||
| tfMPTUnlock = 0x00000002, | ||
| // The below flags are used in the MutableFlags field | ||
| /* | ||
| ** Sets the lsfMPTCanLock flag. Enables the token to be locked both individually and globally. | ||
| */ | ||
| tfMPTSetCanLock = 0x00000001, | ||
| /* | ||
| ** Clears the lsfMPTCanLock flag. Disables both individual and global locking of the token. | ||
| */ | ||
| tfMPTClearCanLock = 0x00000002, | ||
| /* | ||
| ** Sets the lsfMPTRequireAuth flag. Requires individual holders to be authorized. | ||
| */ | ||
| tfMPTSetRequireAuth = 0x00000004, | ||
| /* | ||
| ** Clears the lsfMPTRequireAuth flag. Holders are not required to be authorized. | ||
| */ | ||
| tfMPTClearRequireAuth = 0x00000008, | ||
| /* | ||
| ** Sets the lsfMPTCanEscrow flag. Allows holders to place balances into escrow. | ||
| */ | ||
| tfMPTSetCanEscrow = 0x00000010, | ||
| /* | ||
| ** Clears the lsfMPTCanEscrow flag. Disallows holders from placing balances into escrow. | ||
| */ | ||
| tfMPTClearCanEscrow = 0x00000020, | ||
| /* | ||
| ** Sets the lsfMPTCanTrade flag. Allows holders to trade balances on the XRPL DEX. | ||
| */ | ||
| tfMPTSetCanTrade = 0x00000040, | ||
| /* | ||
| ** Clears the lsfMPTCanTrade flag. Disallows holders from trading balances on the XRPL DEX. | ||
| */ | ||
| tfMPTClearCanTrade = 0x00000080, | ||
| /* | ||
| ** Sets the lsfMPTCanTransfer flag. Allows tokens to be transferred to non-issuer accounts. | ||
| */ | ||
| tfMPTSetCanTransfer = 0x00000100, | ||
| /* | ||
| ** Clears the lsfMPTCanTransfer flag. Disallows transfers to non-issuer accounts. | ||
| */ | ||
| tfMPTClearCanTransfer = 0x00000200, | ||
| /* | ||
| ** Sets the lsfMPTCanClawback flag. Enables the issuer to claw back tokens via Clawback or AMMClawback transactions. | ||
| */ | ||
| tfMPTSetCanClawback = 0x00000400, | ||
| /* | ||
| ** Clears the lsfMPTCanClawback flag. The token can not be clawed back. | ||
| */ | ||
| tfMPTClearCanClawback = 0x00000800, | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -37,6 +86,55 @@ export enum MPTokenIssuanceSetFlags { | |
| export interface MPTokenIssuanceSetFlagsInterface extends GlobalFlagsInterface { | ||
| tfMPTLock?: boolean | ||
| tfMPTUnlock?: boolean | ||
| // The below flags are used in the MutableFlags field | ||
|
||
| /* | ||
| ** Sets the lsfMPTCanLock flag. Enables the token to be locked both individually and globally. | ||
| */ | ||
| tfMPTSetCanLock?: boolean | ||
| /* | ||
| ** Clears the lsfMPTCanLock flag. Disables both individual and global locking of the token. | ||
| */ | ||
| tfMPTClearCanLock?: boolean | ||
| /* | ||
| ** Sets the lsfMPTRequireAuth flag. Requires individual holders to be authorized. | ||
| */ | ||
| tfMPTSetRequireAuth?: boolean | ||
| /* | ||
| ** Clears the lsfMPTRequireAuth flag. Holders are not required to be authorized. | ||
| */ | ||
| tfMPTClearRequireAuth?: boolean | ||
| /* | ||
| ** Sets the lsfMPTCanEscrow flag. Allows holders to place balances into escrow. | ||
| */ | ||
| tfMPTSetCanEscrow?: boolean | ||
| /* | ||
| ** Clears the lsfMPTCanEscrow flag. Disallows holders from placing balances into escrow. | ||
| */ | ||
| tfMPTClearCanEscrow?: boolean | ||
| /* | ||
| ** Sets the lsfMPTCanTrade flag. Allows holders to trade balances on the XRPL DEX. | ||
| */ | ||
| tfMPTSetCanTrade?: boolean | ||
| /* | ||
| ** Clears the lsfMPTCanTrade flag. Disallows holders from trading balances on the XRPL DEX. | ||
| */ | ||
| tfMPTClearCanTrade?: boolean | ||
| /* | ||
| ** Sets the lsfMPTCanTransfer flag. Allows tokens to be transferred to non-issuer accounts. | ||
| */ | ||
| tfMPTSetCanTransfer?: boolean | ||
| /* | ||
| ** Clears the lsfMPTCanTransfer flag. Disallows transfers to non-issuer accounts. | ||
| */ | ||
| tfMPTClearCanTransfer?: boolean | ||
| /* | ||
| ** Sets the lsfMPTCanClawback flag. Enables the issuer to claw back tokens via Clawback or AMMClawback transactions. | ||
| */ | ||
| tfMPTSetCanClawback?: boolean | ||
| /* | ||
| ** Clears the lsfMPTCanClawback flag. The token can not be clawed back. | ||
| */ | ||
| tfMPTClearCanClawback?: boolean | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -55,6 +153,10 @@ export interface MPTokenIssuanceSet extends BaseTransaction { | |
| */ | ||
| Holder?: Account | ||
| Flags?: number | MPTokenIssuanceSetFlagsInterface | ||
|
|
||
| MPTokenMetadata?: string | ||
| TransferFee?: number | ||
| MutableFlags?: number | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| /** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.