-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
496 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,3 +189,4 @@ fixInnerObjTemplate2 | |
fixEnforceNFTokenTrustline | ||
fixReducedOffersV2 | ||
DynamicNFT | ||
PermissionedDomains |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { AuthorizeCredential } from '../common' | ||
|
||
import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry' | ||
|
||
export default interface PermissionedDomain | ||
extends BaseLedgerEntry, | ||
HasPreviousTxnID { | ||
/* The ledger object's type (PermissionedDomain). */ | ||
LedgerEntryType: 'PermissionedDomain' | ||
|
||
/* The account that controls the settings of the domain. */ | ||
Owner: string | ||
|
||
/* The credentials that are accepted by the domain. | ||
Ownership of one of these credentials automatically | ||
makes you a member of the domain. */ | ||
AcceptedCredentials: AuthorizeCredential[] | ||
|
||
/* Flag values associated with this object. */ | ||
Flags: 0 | ||
|
||
/* Owner account's directory page containing the PermissionedDomain object. */ | ||
OwnerNode: string | ||
|
||
/* The Sequence value of the PermissionedDomainSet | ||
transaction that created this domain. Used in combination | ||
with the Account to identify this domain. */ | ||
Sequence: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/xrpl/src/models/transactions/permissionedDomainDelete.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { | ||
BaseTransaction, | ||
isString, | ||
validateBaseTransaction, | ||
validateRequiredField, | ||
} from './common' | ||
|
||
export interface PermissionedDomainDelete extends BaseTransaction { | ||
/* The transaction type (PermissionedDomainDelete). */ | ||
TransactionType: 'PermissionedDomainDelete' | ||
|
||
/* The domain to delete. */ | ||
DomainID: string | ||
} | ||
|
||
/** | ||
* Verify the form and type of a PermissionedDomainDelete transaction. | ||
* | ||
* @param tx - The transaction to verify. | ||
* @throws When the transaction is malformed. | ||
*/ | ||
export function validatePermissionedDomainDelete( | ||
tx: Record<string, unknown>, | ||
): void { | ||
validateBaseTransaction(tx) | ||
|
||
validateRequiredField(tx, 'DomainID', isString) | ||
} |
Oops, something went wrong.