New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xrpl-binary-codec-prerelease

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xrpl-binary-codec-prerelease - npm Package Compare versions

Comparing version 7.0.1 to 8.0.0

84

dist/enums/src/enums/definitions.json

@@ -2870,3 +2870,87 @@ {

"UNLModify": 102
},
"TRANSACTION_FLAGS_INDICES": {
"AccountSet": {
"asfAccountTxnID": 5,
"asfAuthorizedNFTokenMinter": 10,
"asfDefaultRipple": 8,
"asfDepositAuth": 9,
"asfDisableMaster": 4,
"asfDisallowIncomingCheck": 13,
"asfDisallowIncomingNFTokenOffer": 12,
"asfDisallowIncomingPayChan": 14,
"asfAllowTrustLineClawback": 16,
"asfDisallowIncomingTrustline": 15,
"asfDisallowXRP": 3,
"asfGlobalFreeze": 7,
"asfNoFreeze": 6,
"asfRequireAuth": 2,
"asfRequireDest": 1,
"asfTshCollect": 11
}
},
"TRANSACTION_FLAGS": {
"Universal": {
"FullyCanonicalSig": 2147483648
},
"AccountSet": {
"RequireDestTag": 65536,
"OptionalDestTag": 131072,
"RequireAuth": 262144,
"OptionalAuth": 524288,
"DisallowXRP": 1048576,
"AllowXRP": 2097152
},
"TrustSet": {
"SetAuth": 65536,
"SetNoRipple": 131072,
"ClearNoRipple": 262144,
"SetFreeze": 1048576,
"ClearFreeze": 2097152
},
"OfferCreate": {
"Passive": 65536,
"ImmediateOrCancel": 131072,
"FillOrKill": 262144,
"Sell": 524288
},
"Payment": {
"NoRippleDirect": 65536,
"PartialPayment": 131072,
"LimitQuality": 262144
},
"PaymentChannelClaim": {
"Renew": 65536,
"Close": 131072
},
"NFTokenMint": {
"Burnable": 1,
"OnlyXRP": 2,
"TrustLine": 4,
"Transferable": 8,
"ApproveTransfers": 16,
"IssuerCanCancelOffers": 16,
"IssuerApprovalRequired": 32
},
"NFTokenCreateOffer": {
"SellToken": 1,
"Approved": 2
},
"AMMDeposit": {
"LPToken": 65536,
"SingleAsset": 524288,
"TwoAsset": 1048576,
"OneAssetLPToken": 2097152,
"LimitLPToken": 4194304
},
"AMMWithdraw": {
"LPToken": 65536,
"WithdrawAll": 131072,
"OneAssetWithdrawAll": 262144,
"SingleAsset": 524288,
"TwoAsset": 1048576,
"OneAssetLPToken": 2097152,
"LimitLPToken": 4194304
}
}
}
import { SerializedType } from '../types/serialized-type';
import { Bytes, BytesLookup } from './bytes';
import { FieldInfo, FieldLookup, FieldInstance } from './field';
interface TxFlags {
[TransactionType: string]: {
[Flag: string]: number;
};
}
interface DefinitionsData {

@@ -10,2 +15,4 @@ TYPES: Record<string, number>;

TRANSACTION_TYPES: Record<string, number>;
TRANSACTION_FLAGS_INDICES: TxFlags;
TRANSACTION_FLAGS: TxFlags;
native_currency_code?: string;

@@ -26,2 +33,4 @@ hash?: string;

dataTypes: Record<string, typeof SerializedType>;
transactionFlagsIndices: TxFlags;
transactionFlags: TxFlags;
nativeAsset?: string;

@@ -53,1 +62,2 @@ hash?: string;

export { DefinitionsData, XrplDefinitionsBase, FieldLookup, FieldInfo, FieldInstance, Bytes, BytesLookup, };
export type { TxFlags };

2

dist/enums/xrpl-definitions-base.js

@@ -27,2 +27,4 @@ "use strict";

constructor(enums, types) {
this.transactionFlagsIndices = enums === null || enums === void 0 ? void 0 : enums.TRANSACTION_FLAGS_INDICES;
this.transactionFlags = enums === null || enums === void 0 ? void 0 : enums.TRANSACTION_FLAGS;
this.type = new bytes_1.BytesLookup(enums.TYPES, constants_1.TYPE_WIDTH);

@@ -29,0 +31,0 @@ this.nativeAsset = enums === null || enums === void 0 ? void 0 : enums.native_currency_code;

import { decodeLedgerData } from './ledger-hashes';
import { JsonObject } from './types/serialized-type';
import { XrplDefinitionsBase, TRANSACTION_TYPES, DEFAULT_DEFINITIONS } from './enums';
import { TxFlags } from './enums/xrpl-definitions-base';
import { XrplDefinitions } from './enums/xrpl-definitions';

@@ -66,1 +67,2 @@ import { coreTypes } from './types';

export { decode, encode, encodeForSigning, encodeForSigningClaim, encodeForMultisigning, encodeQuality, decodeQuality, decodeLedgerData, TRANSACTION_TYPES, XrplDefinitions, XrplDefinitionsBase, DEFAULT_DEFINITIONS, coreTypes, nativeAsset, };
export type { TxFlags };

14

package.json
{
"name": "xrpl-binary-codec-prerelease",
"version": "7.0.1",
"description": "XRP Ledger binary codec",
"version": "8.0.0",
"description": "XRP Ledger Protocol Binary Codec - For XRPL, Xahau and other networks (with dynamic definitions)",
"files": [

@@ -29,15 +29,15 @@ "dist/*",

"keywords": [
"ripple",
"xrp",
"xrp ledger",
"xrpl"
"xrpl",
"xahau"
],
"repository": {
"type": "git",
"url": "git@github.com:XRPLF/xrpl.js.git"
"url": "git@github.com:WietseWind/xrpl.js.git"
},
"bugs": {
"url": "https://github.com/XRPLF/xrpl.js/issues"
"url": "https://github.com/WietseWind/xrpl.js/issues"
},
"homepage": "https://github.com/XRPLF/xrpl.js/tree/main/packages/ripple-binary-codec#readme",
"homepage": "https://github.com/WietseWind/xrpl.js/tree/main/packages/ripple-binary-codec#readme",
"license": "ISC",

@@ -44,0 +44,0 @@ "readmeFilename": "README.md",

@@ -2737,2 +2737,78 @@ {

},
"TRANSACTION_FLAGS_INDICES": {
"AccountSet": {
"asfAccountTxnID": 5,
"asfAuthorizedNFTokenMinter": 10,
"asfDefaultRipple": 8,
"asfDepositAuth": 9,
"asfDisableMaster": 4,
"asfDisallowIncomingCheck": 13,
"asfDisallowIncomingNFTokenOffer": 12,
"asfDisallowIncomingPayChan": 14,
"asfDisallowIncomingRemit": 16,
"asfDisallowIncomingTrustline": 15,
"asfDisallowXRP": 3,
"asfGlobalFreeze": 7,
"asfNoFreeze": 6,
"asfRequireAuth": 2,
"asfRequireDest": 1,
"asfTshCollect": 11
}
},
"TRANSACTION_FLAGS": {
"AccountSet": {
"tfAllowXRP": 2097152,
"tfDisallowXRP": 1048576,
"tfOptionalAuth": 524288,
"tfOptionalDestTag": 131072,
"tfRequireAuth": 262144,
"tfRequireDestTag": 65536
},
"ClaimReward": {
"tfOptOut": 1
},
"EnableAmendment": {
"tfGotMajority": 65536,
"tfLostMajority": 131072,
"tfTestSuite": 2147483648
},
"NFTokenCreateOffer": {
"tfSellNFToken": 1
},
"NFTokenMint": {
"tfBurnable": 1,
"tfOnlyXRP": 2,
"tfStrongTSH": 32768,
"tfTransferable": 8,
"tfTrustLine": 4
},
"OfferCreate": {
"tfFillOrKill": 262144,
"tfImmediateOrCancel": 131072,
"tfPassive": 65536,
"tfSell": 524288
},
"Payment": {
"tfLimitQuality": 262144,
"tfNoRippleDirect": 65536,
"tfPartialPayment": 131072
},
"PaymentChannelClaim": {
"tfClose": 131072,
"tfRenew": 65536
},
"TrustSet": {
"tfClearFreeze": 2097152,
"tfClearNoRipple": 262144,
"tfSetFreeze": 1048576,
"tfSetNoRipple": 131072,
"tfSetfAuth": 65536
},
"URITokenMint": {
"tfBurnable": 1
},
"Universal": {
"tfFullyCanonicalSig": 2147483648
}
},
"hash": "5EFE8D2AD3531B7A166FDE52B2642F0266F2567158E5692386679E1D354BF8C7",

@@ -2739,0 +2815,0 @@ "native_currency_code": "XAH",

@@ -2870,3 +2870,87 @@ {

"UNLModify": 102
},
"TRANSACTION_FLAGS_INDICES": {
"AccountSet": {
"asfAccountTxnID": 5,
"asfAuthorizedNFTokenMinter": 10,
"asfDefaultRipple": 8,
"asfDepositAuth": 9,
"asfDisableMaster": 4,
"asfDisallowIncomingCheck": 13,
"asfDisallowIncomingNFTokenOffer": 12,
"asfDisallowIncomingPayChan": 14,
"asfAllowTrustLineClawback": 16,
"asfDisallowIncomingTrustline": 15,
"asfDisallowXRP": 3,
"asfGlobalFreeze": 7,
"asfNoFreeze": 6,
"asfRequireAuth": 2,
"asfRequireDest": 1,
"asfTshCollect": 11
}
},
"TRANSACTION_FLAGS": {
"Universal": {
"FullyCanonicalSig": 2147483648
},
"AccountSet": {
"RequireDestTag": 65536,
"OptionalDestTag": 131072,
"RequireAuth": 262144,
"OptionalAuth": 524288,
"DisallowXRP": 1048576,
"AllowXRP": 2097152
},
"TrustSet": {
"SetAuth": 65536,
"SetNoRipple": 131072,
"ClearNoRipple": 262144,
"SetFreeze": 1048576,
"ClearFreeze": 2097152
},
"OfferCreate": {
"Passive": 65536,
"ImmediateOrCancel": 131072,
"FillOrKill": 262144,
"Sell": 524288
},
"Payment": {
"NoRippleDirect": 65536,
"PartialPayment": 131072,
"LimitQuality": 262144
},
"PaymentChannelClaim": {
"Renew": 65536,
"Close": 131072
},
"NFTokenMint": {
"Burnable": 1,
"OnlyXRP": 2,
"TrustLine": 4,
"Transferable": 8,
"ApproveTransfers": 16,
"IssuerCanCancelOffers": 16,
"IssuerApprovalRequired": 32
},
"NFTokenCreateOffer": {
"SellToken": 1,
"Approved": 2
},
"AMMDeposit": {
"LPToken": 65536,
"SingleAsset": 524288,
"TwoAsset": 1048576,
"OneAssetLPToken": 2097152,
"LimitLPToken": 4194304
},
"AMMWithdraw": {
"LPToken": 65536,
"WithdrawAll": 131072,
"OneAssetWithdrawAll": 262144,
"SingleAsset": 524288,
"TwoAsset": 1048576,
"OneAssetLPToken": 2097152,
"LimitLPToken": 4194304
}
}
}

@@ -11,2 +11,7 @@ import { SerializedType } from '../types/serialized-type'

interface TxFlags {
[TransactionType: string]: {
[Flag: string]: number
}
}
interface DefinitionsData {

@@ -18,2 +23,4 @@ TYPES: Record<string, number>

TRANSACTION_TYPES: Record<string, number>
TRANSACTION_FLAGS_INDICES: TxFlags
TRANSACTION_FLAGS: TxFlags
native_currency_code?: string

@@ -42,2 +49,6 @@ hash?: string

dataTypes: Record<string, typeof SerializedType>
// Tx Set/Unset flags
transactionFlagsIndices: TxFlags
// Tx flags
transactionFlags: TxFlags
// Native asset code (native_currency_code)

@@ -63,2 +74,4 @@ nativeAsset?: string

) {
this.transactionFlagsIndices = enums?.TRANSACTION_FLAGS_INDICES
this.transactionFlags = enums?.TRANSACTION_FLAGS
this.type = new BytesLookup(enums.TYPES, TYPE_WIDTH)

@@ -135,1 +148,3 @@ this.nativeAsset = enums?.native_currency_code

}
export type { TxFlags }

@@ -11,2 +11,3 @@ import * as assert from 'assert'

} from './enums'
import { TxFlags } from './enums/xrpl-definitions-base'
import { XrplDefinitions } from './enums/xrpl-definitions'

@@ -145,1 +146,3 @@ import { coreTypes } from './types'

}
export type { TxFlags }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc