mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-08 23:05:49 +00:00
Compare commits
3 Commits
@transia/r
...
@transia/x
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb61711298 | ||
|
|
b449a62c5b | ||
|
|
5183289719 |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@transia/xrpl",
|
||||
"version": "2.7.3-alpha.26",
|
||||
"version": "2.7.3-alpha.27",
|
||||
"license": "ISC",
|
||||
"description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",
|
||||
"files": [
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@ import { isHex } from '../utils'
|
||||
|
||||
import { BaseTransaction, validateBaseTransaction } from './common'
|
||||
|
||||
const MAX_URI_LENGTH = 256
|
||||
const MAX_URI_LENGTH = 512
|
||||
const DIGEST_LENGTH = 64
|
||||
const MAX_ARRAY_LENGTH = 32
|
||||
const MAX_BLOB_LENGTH = 1024
|
||||
|
||||
@@ -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