@bithomp/xrpl-api 3.2.2 → 3.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/faucet.d.ts CHANGED
@@ -38,15 +38,11 @@ export declare const FaucetNetworks: {
38
38
  url: string;
39
39
  format: string;
40
40
  };
41
- beta: {
42
- url: string;
43
- format: string;
44
- };
45
- "hooks-testnet-v3": {
41
+ "xahau-test": {
46
42
  url: string;
47
43
  format: string;
48
44
  };
49
- "xahau-test": {
45
+ "xahau-jshooks": {
50
46
  url: string;
51
47
  format: string;
52
48
  };
package/lib/faucet.js CHANGED
@@ -19,16 +19,12 @@ exports.FaucetNetworks = {
19
19
  url: "https://faucet.devnet.rippletest.net/accounts",
20
20
  format: "xrpl",
21
21
  },
22
- beta: {
23
- url: "https://hooks-testnet-v3.xrpl-labs.com/newcreds",
24
- format: "xrpl-labs",
25
- },
26
- "hooks-testnet-v3": {
27
- url: "https://hooks-testnet-v3.xrpl-labs.com/newcreds",
22
+ "xahau-test": {
23
+ url: "https://xahau-test.net/newcreds",
28
24
  format: "xrpl-labs",
29
25
  },
30
- "xahau-test": {
31
- url: "https://hooks-testnet-v3.xrpl-labs.com/newcreds",
26
+ "xahau-jshooks": {
27
+ url: "https://jshooks.xahau-test.net/newcreds",
32
28
  format: "xrpl-labs",
33
29
  },
34
30
  };
@@ -20,7 +20,6 @@ export declare const AccountRootFlagsKeys: {
20
20
  disallowIncomingTrustline: LedgerEntry.AccountRootFlags;
21
21
  };
22
22
  export declare const XRPLAccountRootFlagsKeys: {
23
- amm: LedgerEntry.AccountRootFlags;
24
23
  allowTrustLineClawback: LedgerEntry.AccountRootFlags;
25
24
  passwordSpent: LedgerEntry.AccountRootFlags;
26
25
  requireDestTag: LedgerEntry.AccountRootFlags;
@@ -107,9 +106,6 @@ export declare const AccountFields: {
107
106
  length: number;
108
107
  defaults: string;
109
108
  };
110
- WalletLocator: {
111
- name: string;
112
- };
113
109
  MessageKey: {
114
110
  name: string;
115
111
  };
@@ -132,6 +128,9 @@ export declare const AccountFields: {
132
128
  NFTokenMinter: {
133
129
  name: string;
134
130
  };
131
+ WalletLocator: {
132
+ name: string;
133
+ };
135
134
  };
136
135
  export interface AccountInfoResponse extends AccountSignerListResponse {
137
136
  account_data: AccountInfoDataResponse;
@@ -148,13 +147,13 @@ export interface AccountInfoDataResponse extends LedgerEntry.AccountRoot, Accoun
148
147
  export interface AccountFieldsInterface {
149
148
  blackholed?: boolean;
150
149
  emailHash?: string;
151
- walletLocator?: string;
152
150
  messageKey?: string;
153
151
  domain?: string;
154
152
  transferRate?: number;
155
153
  tickSize?: number;
156
154
  regularKey?: string;
157
155
  nftokenMinter?: string;
156
+ walletLocator?: string;
158
157
  }
159
158
  export interface AccountSettingsInterface extends AccountFieldsInterface, AccountRootFlagsKeysInterface {
160
159
  }
@@ -36,7 +36,6 @@ exports.AccountRootFlagsKeys = {
36
36
  };
37
37
  exports.XRPLAccountRootFlagsKeys = {
38
38
  ...exports.AccountRootFlagsKeys,
39
- amm: xrpl_1.LedgerEntry.AccountRootFlags.lsfAMM,
40
39
  allowTrustLineClawback: xrpl_1.LedgerEntry.AccountRootFlags.lsfAllowTrustLineClawback,
41
40
  };
42
41
  exports.XahauAccountRootFlagsKeys = {
@@ -80,13 +79,13 @@ exports.SignerListFlagsKeys = {
80
79
  };
81
80
  exports.AccountFields = {
82
81
  EmailHash: { name: "emailHash", encoding: "hex", length: 32, defaults: "00000000000000000000000000000000" },
83
- WalletLocator: { name: "walletLocator" },
84
82
  MessageKey: { name: "messageKey" },
85
83
  Domain: { name: "domain", encoding: "hex" },
86
84
  TransferRate: { name: "transferRate", defaults: 0, shift: 9 },
87
85
  TickSize: { name: "tickSize", defaults: 0 },
88
86
  RegularKey: { name: "regularKey" },
89
87
  NFTokenMinter: { name: "nftokenMinter" },
88
+ WalletLocator: { name: "walletLocator" },
90
89
  };
91
90
  function getSettings(accountInfo, excludeFalse = true) {
92
91
  const parsedFlags = parseAccountFlags(accountInfo.Flags, { excludeFalse });
@@ -0,0 +1,5 @@
1
+ import { AMMClawbackFlagsKeysInterface } from "../../types/amm";
2
+ declare function parseAmmClawbackFlags(value: number, options?: {
3
+ excludeFalse?: boolean;
4
+ }): AMMClawbackFlagsKeysInterface;
5
+ export default parseAmmClawbackFlags;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const amm_1 = require("../../types/amm");
4
+ const flags_1 = require("./flags");
5
+ function parseAmmClawbackFlags(value, options = {}) {
6
+ return (0, flags_1.parseFlags)(value, amm_1.AMMClawbackFlagsKeys, options);
7
+ }
8
+ exports.default = parseAmmClawbackFlags;
@@ -41,7 +41,6 @@ const common_1 = require("../../common");
41
41
  const amount_1 = __importDefault(require("../ledger/amount"));
42
42
  const asset_1 = __importDefault(require("../ledger/asset"));
43
43
  const auth_accounts_1 = __importDefault(require("../ledger/auth-accounts"));
44
- const emit_details_1 = require("../ledger/emit_details");
45
44
  const memos_1 = require("../ledger/memos");
46
45
  const account_1 = require("../ledger/account");
47
46
  function parseAmmBid(tx) {
@@ -57,7 +56,6 @@ function parseAmmBid(tx) {
57
56
  bidMin: tx.BidMin ? (0, amount_1.default)(tx.BidMin) : undefined,
58
57
  bidMax: tx.BidMax ? (0, amount_1.default)(tx.BidMax) : undefined,
59
58
  authAccounts: (0, auth_accounts_1.default)(tx.AuthAccounts),
60
- emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
61
59
  memos: (0, memos_1.parseMemos)(tx),
62
60
  });
63
61
  }
@@ -0,0 +1,3 @@
1
+ import { FormattedAmmClawbackSpecification } from "../../types/amm";
2
+ declare function parseAmmClawback(tx: any): FormattedAmmClawbackSpecification;
3
+ export default parseAmmClawback;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ const assert = __importStar(require("assert"));
40
+ const common_1 = require("../../common");
41
+ const amount_1 = __importDefault(require("../ledger/amount"));
42
+ const asset_1 = __importDefault(require("../ledger/asset"));
43
+ const memos_1 = require("../ledger/memos");
44
+ const account_1 = require("../ledger/account");
45
+ const amm_clawback_flags_1 = __importDefault(require("../ledger/amm-clawback-flags"));
46
+ function parseAmmClawback(tx) {
47
+ assert.ok(tx.TransactionType === "AMMClawback");
48
+ const source = (0, common_1.removeUndefined)({
49
+ address: (0, account_1.parseAccount)(tx.Account),
50
+ tag: tx.SourceTag,
51
+ });
52
+ return (0, common_1.removeUndefined)({
53
+ source: Object.keys(source).length > 0 ? source : undefined,
54
+ asset: (0, asset_1.default)(tx.Asset),
55
+ asset2: (0, asset_1.default)(tx.Asset2),
56
+ amount: tx.Amount ? (0, amount_1.default)(tx.Amount) : undefined,
57
+ holder: tx.Holder ? (0, account_1.parseAccount)(tx.Holder) : undefined,
58
+ flags: (0, amm_clawback_flags_1.default)(tx.Flags),
59
+ memos: (0, memos_1.parseMemos)(tx),
60
+ });
61
+ }
62
+ exports.default = parseAmmClawback;
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const amount_1 = __importDefault(require("../ledger/amount"));
42
- const emit_details_1 = require("../ledger/emit_details");
43
42
  const memos_1 = require("../ledger/memos");
44
43
  const account_1 = require("../ledger/account");
45
44
  function parseAmmCreate(tx) {
@@ -53,7 +52,6 @@ function parseAmmCreate(tx) {
53
52
  amount: (0, amount_1.default)(tx.Amount),
54
53
  amount2: (0, amount_1.default)(tx.Amount2),
55
54
  tradingFee: tx.TradingFee,
56
- emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
57
55
  memos: (0, memos_1.parseMemos)(tx),
58
56
  });
59
57
  }
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const asset_1 = __importDefault(require("../ledger/asset"));
42
- const emit_details_1 = require("../ledger/emit_details");
43
42
  const memos_1 = require("../ledger/memos");
44
43
  const account_1 = require("../ledger/account");
45
44
  function parseAmmDelete(tx) {
@@ -52,7 +51,6 @@ function parseAmmDelete(tx) {
52
51
  source: Object.keys(source).length > 0 ? source : undefined,
53
52
  asset: (0, asset_1.default)(tx.Asset),
54
53
  asset2: (0, asset_1.default)(tx.Asset2),
55
- emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
56
54
  memos: (0, memos_1.parseMemos)(tx),
57
55
  });
58
56
  }
@@ -40,7 +40,6 @@ const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const amount_1 = __importDefault(require("../ledger/amount"));
42
42
  const asset_1 = __importDefault(require("../ledger/asset"));
43
- const emit_details_1 = require("../ledger/emit_details");
44
43
  const memos_1 = require("../ledger/memos");
45
44
  const account_1 = require("../ledger/account");
46
45
  const amm_deposit_flags_1 = __importDefault(require("../ledger/amm-deposit-flags"));
@@ -59,7 +58,6 @@ function parseAmmDeposit(tx) {
59
58
  ePrice: tx.EPrice ? (0, amount_1.default)(tx.EPrice) : undefined,
60
59
  lpTokenOut: tx.LPTokenOut ? (0, amount_1.default)(tx.LPTokenOut) : undefined,
61
60
  flags: (0, amm_deposit_flags_1.default)(tx.Flags),
62
- emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
63
61
  memos: (0, memos_1.parseMemos)(tx),
64
62
  });
65
63
  }
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const asset_1 = __importDefault(require("../ledger/asset"));
42
- const emit_details_1 = require("../ledger/emit_details");
43
42
  const memos_1 = require("../ledger/memos");
44
43
  const account_1 = require("../ledger/account");
45
44
  function parseAmmVote(tx) {
@@ -53,7 +52,6 @@ function parseAmmVote(tx) {
53
52
  asset: (0, asset_1.default)(tx.Asset),
54
53
  asset2: (0, asset_1.default)(tx.Asset2),
55
54
  tradingFee: tx.TradingFee,
56
- emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
57
55
  memos: (0, memos_1.parseMemos)(tx),
58
56
  });
59
57
  }
@@ -40,7 +40,6 @@ const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const amount_1 = __importDefault(require("../ledger/amount"));
42
42
  const asset_1 = __importDefault(require("../ledger/asset"));
43
- const emit_details_1 = require("../ledger/emit_details");
44
43
  const memos_1 = require("../ledger/memos");
45
44
  const account_1 = require("../ledger/account");
46
45
  const amm_withdraw_flags_1 = __importDefault(require("../ledger/amm-withdraw-flags"));
@@ -59,7 +58,6 @@ function parseAmmDeposit(tx) {
59
58
  ePrice: tx.EPrice ? (0, amount_1.default)(tx.EPrice) : undefined,
60
59
  lpTokenIn: tx.LPTokenOut ? (0, amount_1.default)(tx.LPTokenIn) : undefined,
61
60
  flags: (0, amm_withdraw_flags_1.default)(tx.Flags),
62
- emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
63
61
  memos: (0, memos_1.parseMemos)(tx),
64
62
  });
65
63
  }
@@ -17,7 +17,7 @@ import { FormattedInvokeSpecification } from "../types/invoke";
17
17
  import { FormattedUNLReportSpecification } from "../types/unl_reports";
18
18
  import { FormattedRemitsSpecification } from "../types/remits";
19
19
  import { FormattedClawbackSpecification } from "../types/clawback";
20
- import { FormattedAmmBidSpecification, FormattedAmmCreateSpecification, FormattedAmmDeleteSpecification, FormattedAmmDepositSpecification, FormattedAmmWithdrawSpecification, FormattedAmmVoteSpecification } from "../types/amm";
20
+ import { FormattedAmmBidSpecification, FormattedAmmCreateSpecification, FormattedAmmDeleteSpecification, FormattedAmmDepositSpecification, FormattedAmmWithdrawSpecification, FormattedAmmVoteSpecification, FormattedAmmClawbackSpecification } from "../types/amm";
21
21
  import { FormattedDIDSetSpecification, FormattedDIDDeleteSpecification } from "../types/did";
22
22
  import { FormattedOracleSetSpecification, FormattedOracleDeleteSpecification } from "../types/oracle";
23
23
  import { FormattedMPTokenIssuanceCreateSpecification, FormattedMPTokenAuthorizeSpecification, FormattedMPTokenIssuanceSetSpecification, FormattedMPTokenIssuanceDestroySpecification } from "../types/mptokens";
@@ -25,7 +25,7 @@ import { FormattedGenesisMintSpecification } from "../types/genesis_mint";
25
25
  import { FormattedAmendmentSpecification } from "../types/amendments";
26
26
  import { FormattedFeeUpdateSpecification } from "../types/fees";
27
27
  declare function parseTransactionType(type: string): string;
28
- export type FormattedSpecification = FormattedSettingsSpecification | FormattedAccountDeleteSpecification | FormattedCheckCancelSpecification | FormattedCheckCashSpecification | FormattedCheckCreateSpecification | FormattedDepositPreauthSpecification | FormattedEscrowCancelSpecification | FormattedEscrowCreateSpecification | FormattedEscrowFinishSpecification | FormattedOfferCancelSpecification | FormattedOfferCreateSpecification | FormattedPaymentSpecification | FormattedPaymentChannelClaimSpecification | FormattedPaymentChannelCreateSpecification | FormattedPaymentChannelFundSpecification | FormattedTicketCreateSpecification | FormattedTrustlineSpecification | FormattedNFTokenBurnSpecification | FormattedNFTokenMintSpecification | FormattedNFTokenCancelOfferSpecification | FormattedNFTokenCreateOfferSpecification | FormattedNFTokenAcceptOfferSpecification | FormattedURITokenBurnSpecification | FormattedURITokenBuySpecification | FormattedURITokenCreateSellOfferSpecification | FormattedURITokenCancelSellOfferSpecification | FormattedURITokenMintSpecification | FormattedImportSpecification | FormattedInvokeSpecification | FormattedUNLReportSpecification | FormattedRemitsSpecification | FormattedClawbackSpecification | FormattedAmmBidSpecification | FormattedAmmCreateSpecification | FormattedAmmDeleteSpecification | FormattedAmmDepositSpecification | FormattedAmmWithdrawSpecification | FormattedAmmVoteSpecification | FormattedGenesisMintSpecification | FormattedAmendmentSpecification | FormattedFeeUpdateSpecification | FormattedDIDSetSpecification | FormattedDIDDeleteSpecification | FormattedOracleSetSpecification | FormattedOracleDeleteSpecification | FormattedMPTokenIssuanceCreateSpecification | FormattedMPTokenAuthorizeSpecification | FormattedMPTokenIssuanceSetSpecification | FormattedMPTokenIssuanceDestroySpecification;
28
+ export type FormattedSpecification = FormattedSettingsSpecification | FormattedAccountDeleteSpecification | FormattedCheckCancelSpecification | FormattedCheckCashSpecification | FormattedCheckCreateSpecification | FormattedDepositPreauthSpecification | FormattedEscrowCancelSpecification | FormattedEscrowCreateSpecification | FormattedEscrowFinishSpecification | FormattedOfferCancelSpecification | FormattedOfferCreateSpecification | FormattedPaymentSpecification | FormattedPaymentChannelClaimSpecification | FormattedPaymentChannelCreateSpecification | FormattedPaymentChannelFundSpecification | FormattedTicketCreateSpecification | FormattedTrustlineSpecification | FormattedNFTokenBurnSpecification | FormattedNFTokenMintSpecification | FormattedNFTokenCancelOfferSpecification | FormattedNFTokenCreateOfferSpecification | FormattedNFTokenAcceptOfferSpecification | FormattedURITokenBurnSpecification | FormattedURITokenBuySpecification | FormattedURITokenCreateSellOfferSpecification | FormattedURITokenCancelSellOfferSpecification | FormattedURITokenMintSpecification | FormattedImportSpecification | FormattedInvokeSpecification | FormattedUNLReportSpecification | FormattedRemitsSpecification | FormattedClawbackSpecification | FormattedAmmBidSpecification | FormattedAmmCreateSpecification | FormattedAmmDeleteSpecification | FormattedAmmDepositSpecification | FormattedAmmWithdrawSpecification | FormattedAmmVoteSpecification | FormattedAmmClawbackSpecification | FormattedGenesisMintSpecification | FormattedAmendmentSpecification | FormattedFeeUpdateSpecification | FormattedDIDSetSpecification | FormattedDIDDeleteSpecification | FormattedOracleSetSpecification | FormattedOracleDeleteSpecification | FormattedMPTokenIssuanceCreateSpecification | FormattedMPTokenAuthorizeSpecification | FormattedMPTokenIssuanceSetSpecification | FormattedMPTokenIssuanceDestroySpecification;
29
29
  export interface FormattedTransaction {
30
30
  type: string;
31
31
  address: string;
@@ -46,6 +46,7 @@ const amm_delete_1 = __importDefault(require("./specification/amm-delete"));
46
46
  const amm_deposit_1 = __importDefault(require("./specification/amm-deposit"));
47
47
  const amm_withdraw_1 = __importDefault(require("./specification/amm-withdraw"));
48
48
  const amm_vote_1 = __importDefault(require("./specification/amm-vote"));
49
+ const amm_clawback_1 = __importDefault(require("./specification/amm-clawback"));
49
50
  const did_set_1 = __importDefault(require("./specification/did-set"));
50
51
  const did_delete_1 = __importDefault(require("./specification/did-delete"));
51
52
  const oracle_set_1 = __importDefault(require("./specification/oracle-set"));
@@ -98,6 +99,7 @@ const transactionTypeToType = {
98
99
  AMMDeposit: "ammDeposit",
99
100
  AMMWithdraw: "ammWithdraw",
100
101
  AMMVote: "ammVote",
102
+ AMMClawback: "AMMClawback",
101
103
  DIDSet: "didSet",
102
104
  DIDDelete: "didDelete",
103
105
  OracleSet: "oracleSet",
@@ -152,6 +154,7 @@ const parserTypeFunc = {
152
154
  ammDeposit: amm_deposit_1.default,
153
155
  ammWithdraw: amm_withdraw_1.default,
154
156
  ammVote: amm_vote_1.default,
157
+ AMMClawback: amm_clawback_1.default,
155
158
  didSet: did_set_1.default,
156
159
  didDelete: did_delete_1.default,
157
160
  oracleSet: oracle_set_1.default,
@@ -41,6 +41,15 @@ export interface AMMWithdrawFlagsKeysInterface {
41
41
  oneAssetLPToken?: boolean;
42
42
  limitLPToken?: boolean;
43
43
  }
44
+ export declare enum AMMClawbackFlags {
45
+ tfClawTwoAssets = 1
46
+ }
47
+ export declare const AMMClawbackFlagsKeys: {
48
+ clawTwoAssets: AMMClawbackFlags;
49
+ };
50
+ export interface AMMClawbackFlagsKeysInterface {
51
+ clawTwoAssets?: boolean;
52
+ }
44
53
  export type FormattedAmmBidSpecification = {
45
54
  asset?: FormattedIssuedCurrency;
46
55
  asset2?: FormattedIssuedCurrency;
@@ -80,3 +89,9 @@ export type FormattedAmmVoteSpecification = {
80
89
  asset2?: FormattedIssuedCurrency;
81
90
  tradingFee: Number;
82
91
  } & FormattedBaseSpecification;
92
+ export type FormattedAmmClawbackSpecification = {
93
+ asset?: FormattedIssuedCurrency;
94
+ asset2?: FormattedIssuedCurrency;
95
+ amount?: FormattedAmount;
96
+ holder?: string;
97
+ } & FormattedBaseSpecification;
package/lib/types/amm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AMMWithdrawFlagsKeys = exports.AMMDepositFlagsKeys = void 0;
3
+ exports.AMMClawbackFlagsKeys = exports.AMMClawbackFlags = exports.AMMWithdrawFlagsKeys = exports.AMMDepositFlagsKeys = void 0;
4
4
  const xrpl_1 = require("xrpl");
5
5
  exports.AMMDepositFlagsKeys = {
6
6
  lpToken: xrpl_1.AMMDepositFlags.tfLPToken,
@@ -19,3 +19,10 @@ exports.AMMWithdrawFlagsKeys = {
19
19
  oneAssetLPToken: xrpl_1.AMMWithdrawFlags.tfOneAssetLPToken,
20
20
  limitLPToken: xrpl_1.AMMWithdrawFlags.tfLimitLPToken,
21
21
  };
22
+ var AMMClawbackFlags;
23
+ (function (AMMClawbackFlags) {
24
+ AMMClawbackFlags[AMMClawbackFlags["tfClawTwoAssets"] = 1] = "tfClawTwoAssets";
25
+ })(AMMClawbackFlags || (exports.AMMClawbackFlags = AMMClawbackFlags = {}));
26
+ exports.AMMClawbackFlagsKeys = {
27
+ clawTwoAssets: AMMClawbackFlags.tfClawTwoAssets,
28
+ };
@@ -17,7 +17,6 @@ export interface AccountRootLedgerEntry {
17
17
  TickSize?: number;
18
18
  TransferRate?: number;
19
19
  WalletLocator?: string;
20
- WalletSize?: number;
21
20
  }
22
21
  export interface AmendmentsLedgerEntry {
23
22
  LedgerEntryType: "Amendments";
@@ -18,7 +18,6 @@ export type FormattedSettingsSpecification = {
18
18
  disallowIncomingTrustline?: boolean;
19
19
  domain?: string;
20
20
  emailHash?: string | null;
21
- walletLocator?: string | null;
22
21
  enableTransactionIDTracking?: boolean;
23
22
  globalFreeze?: boolean;
24
23
  messageKey?: string;
@@ -31,4 +30,5 @@ export type FormattedSettingsSpecification = {
31
30
  transferRate?: number | null;
32
31
  tickSize?: number;
33
32
  nftokenMinter?: string;
33
+ walletLocator?: string | null;
34
34
  } & FormattedBaseSpecification;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bithomp/xrpl-api",
3
- "version": "3.2.2",
3
+ "version": "3.2.4",
4
4
  "description": "A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -68,9 +68,9 @@
68
68
  "@types/lodash": "^4.17.14",
69
69
  "@types/mocha": "^10.0.10",
70
70
  "@types/nconf": "^0.10.7",
71
- "@types/node": "^22.10.10",
72
- "@typescript-eslint/eslint-plugin": "^8.21.0",
73
- "@typescript-eslint/parser": "^8.21.0",
71
+ "@types/node": "^22.13.0",
72
+ "@typescript-eslint/eslint-plugin": "^8.22.0",
73
+ "@typescript-eslint/parser": "^8.22.0",
74
74
  "chai": "^4.5.0",
75
75
  "chai-as-promised": "^7.1.2",
76
76
  "eslint": "^9.19.0",
@@ -79,10 +79,10 @@
79
79
  "eslint-plugin-import": "^2.31.0",
80
80
  "eslint-plugin-n": "^17.15.1",
81
81
  "eslint-plugin-promise": "^7.2.1",
82
- "mocha": "^11.0.1",
82
+ "mocha": "^11.1.0",
83
83
  "nconf": "^0.12.1",
84
84
  "ts-jest": "^29.2.5",
85
85
  "ts-node": "^10.9.2",
86
- "typescript": "^5.7.2"
86
+ "typescript": "^5.7.3"
87
87
  }
88
88
  }