mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 23:55:49 +00:00
add Incoming Remit flag
This commit is contained in:
@@ -136,6 +136,10 @@ export interface AccountRootFlagsInterface {
|
||||
* Disallow incoming Trustlines from other accounts.
|
||||
*/
|
||||
lsfDisallowIncomingTrustline?: boolean
|
||||
/**
|
||||
* Disallow incoming Trustlines from other accounts.
|
||||
*/
|
||||
lsfDisallowIncomingRemit?: boolean
|
||||
}
|
||||
|
||||
export enum AccountRootFlags {
|
||||
@@ -192,4 +196,12 @@ export enum AccountRootFlags {
|
||||
* Disallow incoming Trustlines from other accounts.
|
||||
*/
|
||||
lsfDisallowIncomingTrustline = 0x20000000,
|
||||
/**
|
||||
* The account has issued a URIToken.
|
||||
*/
|
||||
lsfURITokenIssuer = 0x40000000,
|
||||
/**
|
||||
* Disallow incoming Remits from other accounts.
|
||||
*/
|
||||
lsfDisallowIncomingRemit = 0x80000000,
|
||||
}
|
||||
|
||||
@@ -57,6 +57,8 @@ export enum AccountSetAsfFlags {
|
||||
asfDisallowIncomingPayChan = 14,
|
||||
/** Disallow other accounts from creating incoming Trustlines */
|
||||
asfDisallowIncomingTrustline = 15,
|
||||
/** Disallow other accounts from sending incoming Remits */
|
||||
asfDisallowIncomingRemit = 16,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -166,7 +166,8 @@ describe('Models Utils', function () {
|
||||
AccountRootFlags.lsfDisallowIncomingNFTokenOffer |
|
||||
AccountRootFlags.lsfDisallowIncomingCheck |
|
||||
AccountRootFlags.lsfDisallowIncomingPayChan |
|
||||
AccountRootFlags.lsfDisallowIncomingTrustline
|
||||
AccountRootFlags.lsfDisallowIncomingTrustline |
|
||||
AccountRootFlags.lsfDisallowIncomingRemit
|
||||
|
||||
const parsed = parseAccountRootFlags(accountRootFlags)
|
||||
|
||||
@@ -183,7 +184,8 @@ describe('Models Utils', function () {
|
||||
parsed.lsfDisallowIncomingNFTokenOffer &&
|
||||
parsed.lsfDisallowIncomingCheck &&
|
||||
parsed.lsfDisallowIncomingPayChan &&
|
||||
parsed.lsfDisallowIncomingTrustline,
|
||||
parsed.lsfDisallowIncomingTrustline &&
|
||||
parsed.lsfDisallowIncomingRemit,
|
||||
)
|
||||
})
|
||||
|
||||
@@ -203,6 +205,7 @@ describe('Models Utils', function () {
|
||||
assert.isUndefined(parsed.lsfDisallowIncomingCheck)
|
||||
assert.isUndefined(parsed.lsfDisallowIncomingPayChan)
|
||||
assert.isUndefined(parsed.lsfDisallowIncomingTrustline)
|
||||
assert.isUndefined(parsed.lsfDisallowIncomingRemit)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user