xrp-tx 0.1.0
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/dist/errors.d.ts +20 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +27 -0
- package/dist/errors.js.map +1 -0
- package/dist/groups/account.d.ts +15 -0
- package/dist/groups/account.d.ts.map +1 -0
- package/dist/groups/account.js +17 -0
- package/dist/groups/account.js.map +1 -0
- package/dist/groups/amm.d.ts +7 -0
- package/dist/groups/amm.d.ts.map +1 -0
- package/dist/groups/amm.js +7 -0
- package/dist/groups/amm.js.map +1 -0
- package/dist/groups/credential.d.ts +7 -0
- package/dist/groups/credential.d.ts.map +1 -0
- package/dist/groups/credential.js +7 -0
- package/dist/groups/credential.js.map +1 -0
- package/dist/groups/loan.d.ts +7 -0
- package/dist/groups/loan.d.ts.map +1 -0
- package/dist/groups/loan.js +7 -0
- package/dist/groups/loan.js.map +1 -0
- package/dist/groups/offer.d.ts +9 -0
- package/dist/groups/offer.d.ts.map +1 -0
- package/dist/groups/offer.js +9 -0
- package/dist/groups/offer.js.map +1 -0
- package/dist/groups/oracle.d.ts +7 -0
- package/dist/groups/oracle.d.ts.map +1 -0
- package/dist/groups/oracle.js +7 -0
- package/dist/groups/oracle.js.map +1 -0
- package/dist/groups/payment.d.ts +27 -0
- package/dist/groups/payment.d.ts.map +1 -0
- package/dist/groups/payment.js +23 -0
- package/dist/groups/payment.js.map +1 -0
- package/dist/groups/permissioned-domain.d.ts +7 -0
- package/dist/groups/permissioned-domain.d.ts.map +1 -0
- package/dist/groups/permissioned-domain.js +7 -0
- package/dist/groups/permissioned-domain.js.map +1 -0
- package/dist/groups/token.d.ts +15 -0
- package/dist/groups/token.d.ts.map +1 -0
- package/dist/groups/token.js +10 -0
- package/dist/groups/token.js.map +1 -0
- package/dist/groups/vault.d.ts +7 -0
- package/dist/groups/vault.d.ts.map +1 -0
- package/dist/groups/vault.js +7 -0
- package/dist/groups/vault.js.map +1 -0
- package/dist/groups/xchain.d.ts +7 -0
- package/dist/groups/xchain.d.ts.map +1 -0
- package/dist/groups/xchain.js +7 -0
- package/dist/groups/xchain.js.map +1 -0
- package/dist/index.d.ts +86 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +63 -0
- package/dist/index.js.map +1 -0
- package/dist/registry.d.ts +17 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +95 -0
- package/dist/registry.js.map +1 -0
- package/dist/transaction.d.ts +179 -0
- package/dist/transaction.d.ts.map +1 -0
- package/dist/transaction.js +205 -0
- package/dist/transaction.js.map +1 -0
- package/dist/transactions/account-delete.d.ts +20 -0
- package/dist/transactions/account-delete.d.ts.map +1 -0
- package/dist/transactions/account-delete.js +24 -0
- package/dist/transactions/account-delete.js.map +1 -0
- package/dist/transactions/account-set.d.ts +34 -0
- package/dist/transactions/account-set.d.ts.map +1 -0
- package/dist/transactions/account-set.js +59 -0
- package/dist/transactions/account-set.js.map +1 -0
- package/dist/transactions/check-cancel.d.ts +16 -0
- package/dist/transactions/check-cancel.d.ts.map +1 -0
- package/dist/transactions/check-cancel.js +18 -0
- package/dist/transactions/check-cancel.js.map +1 -0
- package/dist/transactions/check-cash.d.ts +21 -0
- package/dist/transactions/check-cash.d.ts.map +1 -0
- package/dist/transactions/check-cash.js +29 -0
- package/dist/transactions/check-cash.js.map +1 -0
- package/dist/transactions/check-create.d.ts +27 -0
- package/dist/transactions/check-create.d.ts.map +1 -0
- package/dist/transactions/check-create.js +35 -0
- package/dist/transactions/check-create.js.map +1 -0
- package/dist/transactions/clawback.d.ts +20 -0
- package/dist/transactions/clawback.d.ts.map +1 -0
- package/dist/transactions/clawback.js +20 -0
- package/dist/transactions/clawback.js.map +1 -0
- package/dist/transactions/delegate-set.d.ts +18 -0
- package/dist/transactions/delegate-set.d.ts.map +1 -0
- package/dist/transactions/delegate-set.js +22 -0
- package/dist/transactions/delegate-set.js.map +1 -0
- package/dist/transactions/deposit-preauth.d.ts +18 -0
- package/dist/transactions/deposit-preauth.d.ts.map +1 -0
- package/dist/transactions/deposit-preauth.js +26 -0
- package/dist/transactions/deposit-preauth.js.map +1 -0
- package/dist/transactions/did-delete.d.ts +13 -0
- package/dist/transactions/did-delete.d.ts.map +1 -0
- package/dist/transactions/did-delete.js +9 -0
- package/dist/transactions/did-delete.js.map +1 -0
- package/dist/transactions/did-set.d.ts +20 -0
- package/dist/transactions/did-set.d.ts.map +1 -0
- package/dist/transactions/did-set.js +24 -0
- package/dist/transactions/did-set.js.map +1 -0
- package/dist/transactions/escrow-cancel.d.ts +18 -0
- package/dist/transactions/escrow-cancel.d.ts.map +1 -0
- package/dist/transactions/escrow-cancel.js +22 -0
- package/dist/transactions/escrow-cancel.js.map +1 -0
- package/dist/transactions/escrow-create.d.ts +29 -0
- package/dist/transactions/escrow-create.d.ts.map +1 -0
- package/dist/transactions/escrow-create.js +40 -0
- package/dist/transactions/escrow-create.js.map +1 -0
- package/dist/transactions/escrow-finish.d.ts +22 -0
- package/dist/transactions/escrow-finish.d.ts.map +1 -0
- package/dist/transactions/escrow-finish.js +29 -0
- package/dist/transactions/escrow-finish.js.map +1 -0
- package/dist/transactions/mptoken-authorize.d.ts +22 -0
- package/dist/transactions/mptoken-authorize.d.ts.map +1 -0
- package/dist/transactions/mptoken-authorize.js +24 -0
- package/dist/transactions/mptoken-authorize.js.map +1 -0
- package/dist/transactions/mptoken-issuance-create.d.ts +23 -0
- package/dist/transactions/mptoken-issuance-create.d.ts.map +1 -0
- package/dist/transactions/mptoken-issuance-create.js +29 -0
- package/dist/transactions/mptoken-issuance-create.js.map +1 -0
- package/dist/transactions/mptoken-issuance-destroy.d.ts +17 -0
- package/dist/transactions/mptoken-issuance-destroy.d.ts.map +1 -0
- package/dist/transactions/mptoken-issuance-destroy.js +19 -0
- package/dist/transactions/mptoken-issuance-destroy.js.map +1 -0
- package/dist/transactions/mptoken-issuance-set.d.ts +19 -0
- package/dist/transactions/mptoken-issuance-set.d.ts.map +1 -0
- package/dist/transactions/mptoken-issuance-set.js +24 -0
- package/dist/transactions/mptoken-issuance-set.js.map +1 -0
- package/dist/transactions/nftoken-accept-offer.d.ts +22 -0
- package/dist/transactions/nftoken-accept-offer.d.ts.map +1 -0
- package/dist/transactions/nftoken-accept-offer.js +28 -0
- package/dist/transactions/nftoken-accept-offer.js.map +1 -0
- package/dist/transactions/nftoken-burn.d.ts +19 -0
- package/dist/transactions/nftoken-burn.d.ts.map +1 -0
- package/dist/transactions/nftoken-burn.js +24 -0
- package/dist/transactions/nftoken-burn.js.map +1 -0
- package/dist/transactions/nftoken-cancel-offer.d.ts +17 -0
- package/dist/transactions/nftoken-cancel-offer.d.ts.map +1 -0
- package/dist/transactions/nftoken-cancel-offer.js +21 -0
- package/dist/transactions/nftoken-cancel-offer.js.map +1 -0
- package/dist/transactions/nftoken-create-offer.d.ts +29 -0
- package/dist/transactions/nftoken-create-offer.d.ts.map +1 -0
- package/dist/transactions/nftoken-create-offer.js +34 -0
- package/dist/transactions/nftoken-create-offer.js.map +1 -0
- package/dist/transactions/nftoken-mint.d.ts +26 -0
- package/dist/transactions/nftoken-mint.d.ts.map +1 -0
- package/dist/transactions/nftoken-mint.js +34 -0
- package/dist/transactions/nftoken-mint.js.map +1 -0
- package/dist/transactions/nftoken-modify.d.ts +21 -0
- package/dist/transactions/nftoken-modify.d.ts.map +1 -0
- package/dist/transactions/nftoken-modify.js +27 -0
- package/dist/transactions/nftoken-modify.js.map +1 -0
- package/dist/transactions/offer-cancel.d.ts +16 -0
- package/dist/transactions/offer-cancel.d.ts.map +1 -0
- package/dist/transactions/offer-cancel.js +19 -0
- package/dist/transactions/offer-cancel.js.map +1 -0
- package/dist/transactions/offer-create.d.ts +29 -0
- package/dist/transactions/offer-create.d.ts.map +1 -0
- package/dist/transactions/offer-create.js +47 -0
- package/dist/transactions/offer-create.js.map +1 -0
- package/dist/transactions/payment-channel-claim.d.ts +28 -0
- package/dist/transactions/payment-channel-claim.d.ts.map +1 -0
- package/dist/transactions/payment-channel-claim.js +31 -0
- package/dist/transactions/payment-channel-claim.js.map +1 -0
- package/dist/transactions/payment-channel-create.d.ts +29 -0
- package/dist/transactions/payment-channel-create.d.ts.map +1 -0
- package/dist/transactions/payment-channel-create.js +40 -0
- package/dist/transactions/payment-channel-create.js.map +1 -0
- package/dist/transactions/payment-channel-fund.d.ts +21 -0
- package/dist/transactions/payment-channel-fund.d.ts.map +1 -0
- package/dist/transactions/payment-channel-fund.js +26 -0
- package/dist/transactions/payment-channel-fund.js.map +1 -0
- package/dist/transactions/payment.d.ts +42 -0
- package/dist/transactions/payment.d.ts.map +1 -0
- package/dist/transactions/payment.js +66 -0
- package/dist/transactions/payment.js.map +1 -0
- package/dist/transactions/set-regular-key.d.ts +16 -0
- package/dist/transactions/set-regular-key.d.ts.map +1 -0
- package/dist/transactions/set-regular-key.js +19 -0
- package/dist/transactions/set-regular-key.js.map +1 -0
- package/dist/transactions/signer-list-set.d.ts +19 -0
- package/dist/transactions/signer-list-set.d.ts.map +1 -0
- package/dist/transactions/signer-list-set.js +35 -0
- package/dist/transactions/signer-list-set.js.map +1 -0
- package/dist/transactions/ticket-create.d.ts +16 -0
- package/dist/transactions/ticket-create.d.ts.map +1 -0
- package/dist/transactions/ticket-create.js +18 -0
- package/dist/transactions/ticket-create.js.map +1 -0
- package/dist/transactions/trust-set.d.ts +25 -0
- package/dist/transactions/trust-set.d.ts.map +1 -0
- package/dist/transactions/trust-set.js +29 -0
- package/dist/transactions/trust-set.js.map +1 -0
- package/dist/types/amounts.d.ts +49 -0
- package/dist/types/amounts.d.ts.map +1 -0
- package/dist/types/amounts.js +8 -0
- package/dist/types/amounts.js.map +1 -0
- package/dist/types/base.d.ts +96 -0
- package/dist/types/base.d.ts.map +1 -0
- package/dist/types/base.js +2 -0
- package/dist/types/base.js.map +1 -0
- package/dist/types/common.d.ts +81 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/common.js +5 -0
- package/dist/types/common.js.map +1 -0
- package/dist/types/flags.d.ts +180 -0
- package/dist/types/flags.d.ts.map +1 -0
- package/dist/types/flags.js +132 -0
- package/dist/types/flags.js.map +1 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/transaction-types.d.ts +7 -0
- package/dist/types/transaction-types.d.ts.map +1 -0
- package/dist/types/transaction-types.js +2 -0
- package/dist/types/transaction-types.js.map +1 -0
- package/dist/validation/base.d.ts +8 -0
- package/dist/validation/base.d.ts.map +1 -0
- package/dist/validation/base.js +79 -0
- package/dist/validation/base.js.map +1 -0
- package/dist/validation/helpers.d.ts +42 -0
- package/dist/validation/helpers.d.ts.map +1 -0
- package/dist/validation/helpers.js +154 -0
- package/dist/validation/helpers.js.map +1 -0
- package/dist/validation/index.d.ts +3 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +3 -0
- package/dist/validation/index.js.map +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticket-create.js","sourceRoot":"","sources":["../../src/transactions/ticket-create.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAOpD,MAAM,OAAO,cAAe,SAAQ,kBAAkB;IAClC,eAAe,GAAG,cAAuB,CAAC;IACnD,WAAW,CAAS;IAE7B,YAAY,KAAqD;QAC/D,MAAM,CAAC,GAAG,KAAgC,CAAC;QAC3C,KAAK,CAAC,EAAE,GAAG,CAAC,EAAE,eAAe,EAAE,cAAc,EAA2B,CAAC,CAAC;QAC1E,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,aAAa,CAAW,CAAC;IAChD,CAAC;IAEQ,QAAQ;QACf,KAAK,CAAC,QAAQ,EAAE,CAAC;QACjB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,IAAI,CAAC,WAAW,GAAG,GAAG;YAC/E,MAAM,IAAI,eAAe,CAAC,yCAAyC,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TrustSet transaction — create or modify a trust line.
|
|
3
|
+
*/
|
|
4
|
+
import type { IssuedCurrencyAmount } from '../types/amounts.js';
|
|
5
|
+
import type { BaseTransactionFields } from '../types/base.js';
|
|
6
|
+
import type { TrustSetFlagsInterface } from '../types/flags.js';
|
|
7
|
+
import { TokenTransaction } from '../groups/token.js';
|
|
8
|
+
export interface TrustSetTxFields extends BaseTransactionFields {
|
|
9
|
+
readonly TransactionType: 'TrustSet';
|
|
10
|
+
readonly LimitAmount: IssuedCurrencyAmount;
|
|
11
|
+
readonly QualityIn?: number;
|
|
12
|
+
readonly QualityOut?: number;
|
|
13
|
+
readonly Flags?: number | TrustSetFlagsInterface;
|
|
14
|
+
}
|
|
15
|
+
export declare class TrustSetTx extends TokenTransaction {
|
|
16
|
+
readonly TransactionType: "TrustSet";
|
|
17
|
+
readonly LimitAmount: IssuedCurrencyAmount;
|
|
18
|
+
readonly QualityIn?: number;
|
|
19
|
+
readonly QualityOut?: number;
|
|
20
|
+
readonly Flags?: number | TrustSetFlagsInterface;
|
|
21
|
+
constructor(props: TrustSetTxFields | Record<string, unknown>);
|
|
22
|
+
affectsTokenBalance(): boolean;
|
|
23
|
+
validate(): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=trust-set.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust-set.d.ts","sourceRoot":"","sources":["../../src/transactions/trust-set.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,MAAM,WAAW,gBAAiB,SAAQ,qBAAqB;IAC7D,QAAQ,CAAC,eAAe,EAAE,UAAU,CAAC;IACrC,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;CAClD;AAED,qBAAa,UAAW,SAAQ,gBAAgB;IAC9C,SAAkB,eAAe,EAAG,UAAU,CAAU;IACxD,QAAQ,CAAC,WAAW,EAAG,oBAAoB,CAAC;IAC5C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAiB,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;gBAE7C,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOpD,mBAAmB,IAAI,OAAO;IAE9B,QAAQ,IAAI,IAAI;CAW1B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { TokenTransaction } from '../groups/token.js';
|
|
2
|
+
import { assignDefined } from '../transaction.js';
|
|
3
|
+
import { ValidationError } from '../errors.js';
|
|
4
|
+
import { isAmount, isNumber } from '../validation/helpers.js';
|
|
5
|
+
export class TrustSetTx extends TokenTransaction {
|
|
6
|
+
TransactionType = 'TrustSet';
|
|
7
|
+
LimitAmount;
|
|
8
|
+
QualityIn;
|
|
9
|
+
QualityOut;
|
|
10
|
+
constructor(props) {
|
|
11
|
+
const p = props;
|
|
12
|
+
super({ ...p, TransactionType: 'TrustSet' });
|
|
13
|
+
this.LimitAmount = p['LimitAmount'];
|
|
14
|
+
assignDefined(this, p, ['QualityIn', 'QualityOut', 'Flags']);
|
|
15
|
+
}
|
|
16
|
+
affectsTokenBalance() { return true; }
|
|
17
|
+
validate() {
|
|
18
|
+
super.validate();
|
|
19
|
+
if (this.LimitAmount === undefined)
|
|
20
|
+
throw new ValidationError('TrustSet: missing field LimitAmount');
|
|
21
|
+
if (!isAmount(this.LimitAmount))
|
|
22
|
+
throw new ValidationError('TrustSet: invalid LimitAmount');
|
|
23
|
+
if (this.QualityIn !== undefined && !isNumber(this.QualityIn))
|
|
24
|
+
throw new ValidationError('TrustSet: QualityIn must be a number');
|
|
25
|
+
if (this.QualityOut !== undefined && !isNumber(this.QualityOut))
|
|
26
|
+
throw new ValidationError('TrustSet: QualityOut must be a number');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=trust-set.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trust-set.js","sourceRoot":"","sources":["../../src/transactions/trust-set.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU9D,MAAM,OAAO,UAAW,SAAQ,gBAAgB;IAC5B,eAAe,GAAG,UAAmB,CAAC;IAC/C,WAAW,CAAwB;IACnC,SAAS,CAAU;IACnB,UAAU,CAAU;IAG7B,YAAY,KAAiD;QAC3D,MAAM,CAAC,GAAG,KAAgC,CAAC;QAC3C,KAAK,CAAC,EAAE,GAAG,CAAC,EAAE,eAAe,EAAE,UAAU,EAA2B,CAAC,CAAC;QACtE,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,aAAa,CAAyB,CAAC;QAC5D,aAAa,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;IAC/D,CAAC;IAEQ,mBAAmB,KAAc,OAAO,IAAI,CAAC,CAAC,CAAC;IAE/C,QAAQ;QACf,KAAK,CAAC,QAAQ,EAAE,CAAC;QACjB,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS;YAChC,MAAM,IAAI,eAAe,CAAC,qCAAqC,CAAC,CAAC;QACnE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC;YAC7B,MAAM,IAAI,eAAe,CAAC,+BAA+B,CAAC,CAAC;QAC7D,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC;YAC3D,MAAM,IAAI,eAAe,CAAC,sCAAsC,CAAC,CAAC;QACpE,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC;YAC7D,MAAM,IAAI,eAAe,CAAC,uCAAuC,CAAC,CAAC;IACvE,CAAC;CACF"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Amount-related types used across XRPL transactions.
|
|
3
|
+
*
|
|
4
|
+
* These mirror the shapes from xrpl.js but are defined independently
|
|
5
|
+
* so this package has zero dependencies.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Represents an amount of an issued (IOU) currency.
|
|
9
|
+
*/
|
|
10
|
+
export interface IssuedCurrencyAmount {
|
|
11
|
+
readonly currency: string;
|
|
12
|
+
readonly issuer: string;
|
|
13
|
+
readonly value: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Represents an amount of a Multi-Purpose Token.
|
|
17
|
+
*/
|
|
18
|
+
export interface MPTAmount {
|
|
19
|
+
readonly mpt_issuance_id: string;
|
|
20
|
+
readonly value: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* An XRPL Amount — either XRP drops (string), an issued currency, or an MPT.
|
|
24
|
+
*
|
|
25
|
+
* - XRP amounts are strings representing drops (e.g. `"1000000"` = 1 XRP)
|
|
26
|
+
* - Issued currency amounts are objects with `currency`, `issuer`, and `value`
|
|
27
|
+
* - MPT amounts are objects with `mpt_issuance_id` and `value`
|
|
28
|
+
*/
|
|
29
|
+
export type Amount = string | IssuedCurrencyAmount | MPTAmount;
|
|
30
|
+
/**
|
|
31
|
+
* Represents a clawback amount (issued currency or MPT only — not XRP).
|
|
32
|
+
*/
|
|
33
|
+
export type ClawbackAmount = IssuedCurrencyAmount | MPTAmount;
|
|
34
|
+
/**
|
|
35
|
+
* Represents an issued currency specifier (without amount).
|
|
36
|
+
*/
|
|
37
|
+
export interface IssuedCurrency {
|
|
38
|
+
readonly currency: string;
|
|
39
|
+
readonly issuer: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Represents a currency specifier — either XRP, an issued currency, or an MPT.
|
|
43
|
+
*/
|
|
44
|
+
export type Currency = {
|
|
45
|
+
readonly currency: 'XRP';
|
|
46
|
+
} | IssuedCurrency | {
|
|
47
|
+
readonly mpt_issuance_id: string;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=amounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amounts.d.ts","sourceRoot":"","sources":["../../src/types/amounts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAAC;AAE/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,SAAS,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB;IAAE,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAA;CAAE,GAC5B,cAAc,GACd;IAAE,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amounts.js","sourceRoot":"","sources":["../../src/types/amounts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base transaction field interface.
|
|
3
|
+
*
|
|
4
|
+
* Every XRPL transaction shares these common fields. This is the
|
|
5
|
+
* foundational shape that all transaction classes are built from.
|
|
6
|
+
*/
|
|
7
|
+
import type { TransactionType } from './transaction-types.js';
|
|
8
|
+
import type { Memo, Signer } from './common.js';
|
|
9
|
+
import type { GlobalFlagsInterface } from './flags.js';
|
|
10
|
+
/**
|
|
11
|
+
* The common fields present on every XRPL transaction.
|
|
12
|
+
*/
|
|
13
|
+
export interface BaseTransactionFields {
|
|
14
|
+
/** The unique address of the transaction sender. */
|
|
15
|
+
readonly Account: string;
|
|
16
|
+
/** The type of transaction. */
|
|
17
|
+
readonly TransactionType: TransactionType;
|
|
18
|
+
/**
|
|
19
|
+
* Integer amount of XRP, in drops, to be destroyed as a cost for
|
|
20
|
+
* distributing this transaction to the network.
|
|
21
|
+
*/
|
|
22
|
+
readonly Fee?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The sequence number of the account sending the transaction.
|
|
25
|
+
* 0 means the transaction is using a Ticket instead.
|
|
26
|
+
*/
|
|
27
|
+
readonly Sequence?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Hash value identifying another transaction. If provided, this transaction
|
|
30
|
+
* is only valid if the sending account's previously-sent transaction matches
|
|
31
|
+
* the provided hash.
|
|
32
|
+
*/
|
|
33
|
+
readonly AccountTxnID?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Set of bit-flags for this transaction.
|
|
36
|
+
* Can be a numeric bitmask or a boolean flag map.
|
|
37
|
+
*/
|
|
38
|
+
readonly Flags?: number | GlobalFlagsInterface;
|
|
39
|
+
/**
|
|
40
|
+
* Highest ledger index this transaction can appear in.
|
|
41
|
+
* Places a strict upper limit on how long the transaction can wait
|
|
42
|
+
* to be validated or rejected.
|
|
43
|
+
*/
|
|
44
|
+
readonly LastLedgerSequence?: number;
|
|
45
|
+
/** Additional arbitrary information used to identify this transaction. */
|
|
46
|
+
readonly Memos?: Memo[];
|
|
47
|
+
/**
|
|
48
|
+
* Array of objects that represent a multi-signature which authorizes
|
|
49
|
+
* this transaction.
|
|
50
|
+
*/
|
|
51
|
+
readonly Signers?: Signer[];
|
|
52
|
+
/**
|
|
53
|
+
* Arbitrary integer used to identify the reason for this payment,
|
|
54
|
+
* or a sender on whose behalf this transaction is made.
|
|
55
|
+
*/
|
|
56
|
+
readonly SourceTag?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Hex representation of the public key that corresponds to the private key
|
|
59
|
+
* used to sign this transaction. Empty string indicates multi-sig.
|
|
60
|
+
*/
|
|
61
|
+
readonly SigningPubKey?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The sequence number of the ticket to use in place of a Sequence number.
|
|
64
|
+
* If provided, Sequence must be 0.
|
|
65
|
+
*/
|
|
66
|
+
readonly TicketSequence?: number;
|
|
67
|
+
/**
|
|
68
|
+
* The signature that verifies this transaction as originating from
|
|
69
|
+
* the account it says it is from.
|
|
70
|
+
*/
|
|
71
|
+
readonly TxnSignature?: string;
|
|
72
|
+
/** The network id of the transaction. */
|
|
73
|
+
readonly NetworkID?: number;
|
|
74
|
+
/** The delegate account that is sending the transaction. */
|
|
75
|
+
readonly Delegate?: string;
|
|
76
|
+
/** Allow additional fields for forward-compatibility. */
|
|
77
|
+
readonly [key: string]: unknown;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A transaction that has been fully prepared for signing.
|
|
81
|
+
* Fee, Sequence, and LastLedgerSequence are guaranteed present.
|
|
82
|
+
*/
|
|
83
|
+
export type PreparedTransactionFields = BaseTransactionFields & {
|
|
84
|
+
readonly Fee: string;
|
|
85
|
+
readonly Sequence: number;
|
|
86
|
+
readonly LastLedgerSequence: number;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* A transaction that has been signed.
|
|
90
|
+
* SigningPubKey and TxnSignature are guaranteed present.
|
|
91
|
+
*/
|
|
92
|
+
export type SignedTransactionFields = PreparedTransactionFields & {
|
|
93
|
+
readonly SigningPubKey: string;
|
|
94
|
+
readonly TxnSignature: string;
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/types/base.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,oDAAoD;IACpD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,+BAA+B;IAC/B,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAC;IAE1C;;;OAGG;IACH,QAAQ,CAA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AQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/types/base.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common supporting types used across XRPL transactions.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* A Memo attached to a transaction.
|
|
6
|
+
*/
|
|
7
|
+
export interface Memo {
|
|
8
|
+
readonly Memo: {
|
|
9
|
+
readonly MemoData?: string;
|
|
10
|
+
readonly MemoType?: string;
|
|
11
|
+
readonly MemoFormat?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A multi-signature entry.
|
|
16
|
+
*/
|
|
17
|
+
export interface Signer {
|
|
18
|
+
readonly Signer: {
|
|
19
|
+
readonly Account: string;
|
|
20
|
+
readonly TxnSignature: string;
|
|
21
|
+
readonly SigningPubKey: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A single step in a payment path.
|
|
26
|
+
*/
|
|
27
|
+
export interface PathStep {
|
|
28
|
+
readonly account?: string;
|
|
29
|
+
readonly currency?: string;
|
|
30
|
+
readonly issuer?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A payment path — an array of path steps.
|
|
34
|
+
*/
|
|
35
|
+
export type Path = readonly PathStep[];
|
|
36
|
+
/**
|
|
37
|
+
* An XChain bridge specification.
|
|
38
|
+
*/
|
|
39
|
+
export interface XChainBridge {
|
|
40
|
+
readonly LockingChainDoor: string;
|
|
41
|
+
readonly LockingChainIssue: {
|
|
42
|
+
readonly currency: string;
|
|
43
|
+
readonly issuer?: string;
|
|
44
|
+
};
|
|
45
|
+
readonly IssuingChainDoor: string;
|
|
46
|
+
readonly IssuingChainIssue: {
|
|
47
|
+
readonly currency: string;
|
|
48
|
+
readonly issuer?: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* An authorization credential reference.
|
|
53
|
+
*/
|
|
54
|
+
export interface AuthorizeCredential {
|
|
55
|
+
readonly Credential: {
|
|
56
|
+
readonly Issuer: string;
|
|
57
|
+
readonly CredentialType: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* A signer entry for SignerListSet.
|
|
62
|
+
*/
|
|
63
|
+
export interface SignerEntry {
|
|
64
|
+
readonly SignerEntry: {
|
|
65
|
+
readonly Account: string;
|
|
66
|
+
readonly SignerWeight: number;
|
|
67
|
+
readonly WalletLocator?: string;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Oracle data series entry.
|
|
72
|
+
*/
|
|
73
|
+
export interface OracleDataSeries {
|
|
74
|
+
readonly PriceData: {
|
|
75
|
+
readonly BaseAsset: string;
|
|
76
|
+
readonly QuoteAsset: string;
|
|
77
|
+
readonly AssetPrice?: string | number;
|
|
78
|
+
readonly Scale?: number;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,QAAQ,CAAC,IAAI,EAAE;QACb,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;KAC9B,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE;QACf,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;Q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AAM,CAAC;QAC3B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flag enums and interfaces for all XRPL transaction types.
|
|
3
|
+
*
|
|
4
|
+
* Each transaction type that supports flags gets:
|
|
5
|
+
* 1. A numeric enum for bitwise flag values
|
|
6
|
+
* 2. A boolean-map interface for developer-friendly usage
|
|
7
|
+
*/
|
|
8
|
+
export declare enum GlobalFlags {
|
|
9
|
+
tfInnerBatchTxn = 1073741824
|
|
10
|
+
}
|
|
11
|
+
export interface GlobalFlagsInterface {
|
|
12
|
+
tfInnerBatchTxn?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare enum PaymentFlags {
|
|
15
|
+
tfNoRippleDirect = 65536,
|
|
16
|
+
tfPartialPayment = 131072,
|
|
17
|
+
tfLimitQuality = 262144
|
|
18
|
+
}
|
|
19
|
+
export interface PaymentFlagsInterface extends GlobalFlagsInterface {
|
|
20
|
+
tfNoRippleDirect?: boolean;
|
|
21
|
+
tfPartialPayment?: boolean;
|
|
22
|
+
tfLimitQuality?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare enum AccountSetAsfFlags {
|
|
25
|
+
asfRequireDest = 1,
|
|
26
|
+
asfRequireAuth = 2,
|
|
27
|
+
asfDisallowXRP = 3,
|
|
28
|
+
asfDisableMaster = 4,
|
|
29
|
+
asfAccountTxnID = 5,
|
|
30
|
+
asfNoFreeze = 6,
|
|
31
|
+
asfGlobalFreeze = 7,
|
|
32
|
+
asfDefaultRipple = 8,
|
|
33
|
+
asfDepositAuth = 9,
|
|
34
|
+
asfAuthorizedNFTokenMinter = 10,
|
|
35
|
+
asfDisallowIncomingNFTokenOffer = 12,
|
|
36
|
+
asfDisallowIncomingCheck = 13,
|
|
37
|
+
asfDisallowIncomingPayChan = 14,
|
|
38
|
+
asfDisallowIncomingTrustline = 15,
|
|
39
|
+
asfAllowTrustLineClawback = 16,
|
|
40
|
+
asfAllowTrustLineLocking = 17
|
|
41
|
+
}
|
|
42
|
+
export declare enum AccountSetTfFlags {
|
|
43
|
+
tfRequireDestTag = 65536,
|
|
44
|
+
tfOptionalDestTag = 131072,
|
|
45
|
+
tfRequireAuth = 262144,
|
|
46
|
+
tfOptionalAuth = 524288,
|
|
47
|
+
tfDisallowXRP = 1048576,
|
|
48
|
+
tfAllowXRP = 2097152
|
|
49
|
+
}
|
|
50
|
+
export interface AccountSetFlagsInterface extends GlobalFlagsInterface {
|
|
51
|
+
tfRequireDestTag?: boolean;
|
|
52
|
+
tfOptionalDestTag?: boolean;
|
|
53
|
+
tfRequireAuth?: boolean;
|
|
54
|
+
tfOptionalAuth?: boolean;
|
|
55
|
+
tfDisallowXRP?: boolean;
|
|
56
|
+
tfAllowXRP?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export declare enum TrustSetFlags {
|
|
59
|
+
tfSetfAuth = 65536,
|
|
60
|
+
tfSetNoRipple = 131072,
|
|
61
|
+
tfClearNoRipple = 262144,
|
|
62
|
+
tfSetFreeze = 1048576,
|
|
63
|
+
tfClearFreeze = 2097152,
|
|
64
|
+
tfSetDeepFreeze = 4194304,
|
|
65
|
+
tfClearDeepFreeze = 8388608
|
|
66
|
+
}
|
|
67
|
+
export interface TrustSetFlagsInterface extends GlobalFlagsInterface {
|
|
68
|
+
tfSetfAuth?: boolean;
|
|
69
|
+
tfSetNoRipple?: boolean;
|
|
70
|
+
tfClearNoRipple?: boolean;
|
|
71
|
+
tfSetFreeze?: boolean;
|
|
72
|
+
tfClearFreeze?: boolean;
|
|
73
|
+
tfSetDeepFreeze?: boolean;
|
|
74
|
+
tfClearDeepFreeze?: boolean;
|
|
75
|
+
}
|
|
76
|
+
export declare enum OfferCreateFlags {
|
|
77
|
+
tfPassive = 65536,
|
|
78
|
+
tfImmediateOrCancel = 131072,
|
|
79
|
+
tfFillOrKill = 262144,
|
|
80
|
+
tfSell = 524288,
|
|
81
|
+
tfHybrid = 1048576
|
|
82
|
+
}
|
|
83
|
+
export interface OfferCreateFlagsInterface extends GlobalFlagsInterface {
|
|
84
|
+
tfPassive?: boolean;
|
|
85
|
+
tfImmediateOrCancel?: boolean;
|
|
86
|
+
tfFillOrKill?: boolean;
|
|
87
|
+
tfSell?: boolean;
|
|
88
|
+
tfHybrid?: boolean;
|
|
89
|
+
}
|
|
90
|
+
export declare enum NFTokenMintFlags {
|
|
91
|
+
tfBurnable = 1,
|
|
92
|
+
tfOnlyXRP = 2,
|
|
93
|
+
tfTrustLine = 4,
|
|
94
|
+
tfTransferable = 8
|
|
95
|
+
}
|
|
96
|
+
export interface NFTokenMintFlagsInterface extends GlobalFlagsInterface {
|
|
97
|
+
tfBurnable?: boolean;
|
|
98
|
+
tfOnlyXRP?: boolean;
|
|
99
|
+
tfTrustLine?: boolean;
|
|
100
|
+
tfTransferable?: boolean;
|
|
101
|
+
}
|
|
102
|
+
export declare enum NFTokenCreateOfferFlags {
|
|
103
|
+
tfSellNFToken = 1
|
|
104
|
+
}
|
|
105
|
+
export interface NFTokenCreateOfferFlagsInterface extends GlobalFlagsInterface {
|
|
106
|
+
tfSellNFToken?: boolean;
|
|
107
|
+
}
|
|
108
|
+
export declare enum PaymentChannelClaimFlags {
|
|
109
|
+
tfRenew = 65536,
|
|
110
|
+
tfClose = 131072
|
|
111
|
+
}
|
|
112
|
+
export interface PaymentChannelClaimFlagsInterface extends GlobalFlagsInterface {
|
|
113
|
+
tfRenew?: boolean;
|
|
114
|
+
tfClose?: boolean;
|
|
115
|
+
}
|
|
116
|
+
export declare enum AMMDepositFlags {
|
|
117
|
+
tfLPToken = 65536,
|
|
118
|
+
tfSingleAsset = 524288,
|
|
119
|
+
tfTwoAsset = 1048576,
|
|
120
|
+
tfOneAssetLPToken = 2097152,
|
|
121
|
+
tfLimitLPToken = 4194304,
|
|
122
|
+
tfTwoAssetIfEmpty = 8388608
|
|
123
|
+
}
|
|
124
|
+
export interface AMMDepositFlagsInterface extends GlobalFlagsInterface {
|
|
125
|
+
tfLPToken?: boolean;
|
|
126
|
+
tfSingleAsset?: boolean;
|
|
127
|
+
tfTwoAsset?: boolean;
|
|
128
|
+
tfOneAssetLPToken?: boolean;
|
|
129
|
+
tfLimitLPToken?: boolean;
|
|
130
|
+
tfTwoAssetIfEmpty?: boolean;
|
|
131
|
+
}
|
|
132
|
+
export declare enum AMMWithdrawFlags {
|
|
133
|
+
tfLPToken = 65536,
|
|
134
|
+
tfWithdrawAll = 131072,
|
|
135
|
+
tfOneAssetWithdrawAll = 262144,
|
|
136
|
+
tfSingleAsset = 524288,
|
|
137
|
+
tfTwoAsset = 1048576,
|
|
138
|
+
tfOneAssetLPToken = 2097152,
|
|
139
|
+
tfLimitLPToken = 4194304
|
|
140
|
+
}
|
|
141
|
+
export interface AMMWithdrawFlagsInterface extends GlobalFlagsInterface {
|
|
142
|
+
tfLPToken?: boolean;
|
|
143
|
+
tfWithdrawAll?: boolean;
|
|
144
|
+
tfOneAssetWithdrawAll?: boolean;
|
|
145
|
+
tfSingleAsset?: boolean;
|
|
146
|
+
tfTwoAsset?: boolean;
|
|
147
|
+
tfOneAssetLPToken?: boolean;
|
|
148
|
+
tfLimitLPToken?: boolean;
|
|
149
|
+
}
|
|
150
|
+
export declare enum MPTokenAuthorizeFlags {
|
|
151
|
+
tfMPTUnauthorize = 1
|
|
152
|
+
}
|
|
153
|
+
export interface MPTokenAuthorizeFlagsInterface extends GlobalFlagsInterface {
|
|
154
|
+
tfMPTUnauthorize?: boolean;
|
|
155
|
+
}
|
|
156
|
+
export declare enum ClawbackFlags {
|
|
157
|
+
tfClawTwoAssets = 1
|
|
158
|
+
}
|
|
159
|
+
export interface ClawbackFlagsInterface extends GlobalFlagsInterface {
|
|
160
|
+
tfClawTwoAssets?: boolean;
|
|
161
|
+
}
|
|
162
|
+
export declare enum XChainModifyBridgeFlags {
|
|
163
|
+
tfClearAccountCreateAmount = 65536
|
|
164
|
+
}
|
|
165
|
+
export interface XChainModifyBridgeFlagsInterface extends GlobalFlagsInterface {
|
|
166
|
+
tfClearAccountCreateAmount?: boolean;
|
|
167
|
+
}
|
|
168
|
+
export declare enum BatchFlags {
|
|
169
|
+
tfAllOrNothing = 1,
|
|
170
|
+
tfOnlyOne = 2,
|
|
171
|
+
tfUntilFailure = 4,
|
|
172
|
+
tfIndependent = 8
|
|
173
|
+
}
|
|
174
|
+
export interface BatchFlagsInterface extends GlobalFlagsInterface {
|
|
175
|
+
tfAllOrNothing?: boolean;
|
|
176
|
+
tfOnlyOne?: boolean;
|
|
177
|
+
tfUntilFailure?: boolean;
|
|
178
|
+
tfIndependent?: boolean;
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=flags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../../src/types/flags.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,oBAAY,WAAW;IACrB,eAAe,aAAa;CAC7B;AAED,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAID,oBAAY,YAAY;IACtB,gBAAgB,QAAa;IAC7B,gBAAgB,SAAa;IAC7B,cAAc,SAAa;CAC5B;AAED,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAID,oBAAY,kBAAkB;IAC5B,cAAc,IAAI;IAClB,cAAc,IAAI;IAClB,cAAc,IAAI;IAClB,gBAA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