xrp-tx 0.1.0 → 0.2.1
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/LICENSE +21 -0
- package/README.md +121 -0
- package/dist/index.d.ts +84 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -0
- package/dist/index.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +92 -0
- package/dist/registry.js.map +1 -1
- package/dist/transactions/amm-bid.d.ts +38 -0
- package/dist/transactions/amm-bid.d.ts.map +1 -0
- package/dist/transactions/amm-bid.js +43 -0
- package/dist/transactions/amm-bid.js.map +1 -0
- package/dist/transactions/amm-clawback.d.ts +38 -0
- package/dist/transactions/amm-clawback.d.ts.map +1 -0
- package/dist/transactions/amm-clawback.js +31 -0
- package/dist/transactions/amm-clawback.js.map +1 -0
- package/dist/transactions/amm-create.d.ts +21 -0
- package/dist/transactions/amm-create.d.ts.map +1 -0
- package/dist/transactions/amm-create.js +28 -0
- package/dist/transactions/amm-create.js.map +1 -0
- package/dist/transactions/amm-delete.d.ts +30 -0
- package/dist/transactions/amm-delete.d.ts.map +1 -0
- package/dist/transactions/amm-delete.js +21 -0
- package/dist/transactions/amm-delete.js.map +1 -0
- package/dist/transactions/amm-deposit.d.ts +42 -0
- package/dist/transactions/amm-deposit.d.ts.map +1 -0
- package/dist/transactions/amm-deposit.js +36 -0
- package/dist/transactions/amm-deposit.js.map +1 -0
- package/dist/transactions/amm-vote.d.ts +32 -0
- package/dist/transactions/amm-vote.d.ts.map +1 -0
- package/dist/transactions/amm-vote.js +28 -0
- package/dist/transactions/amm-vote.js.map +1 -0
- package/dist/transactions/amm-withdraw.d.ts +42 -0
- package/dist/transactions/amm-withdraw.d.ts.map +1 -0
- package/dist/transactions/amm-withdraw.js +36 -0
- package/dist/transactions/amm-withdraw.js.map +1 -0
- package/dist/transactions/batch.d.ts +23 -0
- package/dist/transactions/batch.d.ts.map +1 -0
- package/dist/transactions/batch.js +21 -0
- package/dist/transactions/batch.js.map +1 -0
- package/dist/transactions/credential-accept.d.ts +18 -0
- package/dist/transactions/credential-accept.d.ts.map +1 -0
- package/dist/transactions/credential-accept.js +22 -0
- package/dist/transactions/credential-accept.js.map +1 -0
- package/dist/transactions/credential-create.d.ts +22 -0
- package/dist/transactions/credential-create.d.ts.map +1 -0
- package/dist/transactions/credential-create.js +26 -0
- package/dist/transactions/credential-create.js.map +1 -0
- package/dist/transactions/credential-delete.d.ts +20 -0
- package/dist/transactions/credential-delete.d.ts.map +1 -0
- package/dist/transactions/credential-delete.js +26 -0
- package/dist/transactions/credential-delete.js.map +1 -0
- package/dist/transactions/loan-broker-cover-clawback.d.ts +19 -0
- package/dist/transactions/loan-broker-cover-clawback.d.ts.map +1 -0
- package/dist/transactions/loan-broker-cover-clawback.js +23 -0
- package/dist/transactions/loan-broker-cover-clawback.js.map +1 -0
- package/dist/transactions/loan-broker-cover-deposit.d.ts +19 -0
- package/dist/transactions/loan-broker-cover-deposit.d.ts.map +1 -0
- package/dist/transactions/loan-broker-cover-deposit.js +22 -0
- package/dist/transactions/loan-broker-cover-deposit.js.map +1 -0
- package/dist/transactions/loan-broker-cover-withdraw.d.ts +19 -0
- package/dist/transactions/loan-broker-cover-withdraw.d.ts.map +1 -0
- package/dist/transactions/loan-broker-cover-withdraw.js +22 -0
- package/dist/transactions/loan-broker-cover-withdraw.js.map +1 -0
- package/dist/transactions/loan-broker-delete.d.ts +13 -0
- package/dist/transactions/loan-broker-delete.d.ts.map +1 -0
- package/dist/transactions/loan-broker-delete.js +9 -0
- package/dist/transactions/loan-broker-delete.js.map +1 -0
- package/dist/transactions/loan-broker-set.d.ts +16 -0
- package/dist/transactions/loan-broker-set.d.ts.map +1 -0
- package/dist/transactions/loan-broker-set.js +18 -0
- package/dist/transactions/loan-broker-set.js.map +1 -0
- package/dist/transactions/loan-delete.d.ts +16 -0
- package/dist/transactions/loan-delete.d.ts.map +1 -0
- package/dist/transactions/loan-delete.js +17 -0
- package/dist/transactions/loan-delete.js.map +1 -0
- package/dist/transactions/loan-manage.d.ts +18 -0
- package/dist/transactions/loan-manage.d.ts.map +1 -0
- package/dist/transactions/loan-manage.js +21 -0
- package/dist/transactions/loan-manage.js.map +1 -0
- package/dist/transactions/loan-pay.d.ts +19 -0
- package/dist/transactions/loan-pay.d.ts.map +1 -0
- package/dist/transactions/loan-pay.js +22 -0
- package/dist/transactions/loan-pay.js.map +1 -0
- package/dist/transactions/loan-set.d.ts +23 -0
- package/dist/transactions/loan-set.d.ts.map +1 -0
- package/dist/transactions/loan-set.js +30 -0
- package/dist/transactions/loan-set.js.map +1 -0
- package/dist/transactions/oracle-delete.d.ts +16 -0
- package/dist/transactions/oracle-delete.d.ts.map +1 -0
- package/dist/transactions/oracle-delete.js +18 -0
- package/dist/transactions/oracle-delete.js.map +1 -0
- package/dist/transactions/oracle-set.d.ts +27 -0
- package/dist/transactions/oracle-set.d.ts.map +1 -0
- package/dist/transactions/oracle-set.js +39 -0
- package/dist/transactions/oracle-set.js.map +1 -0
- package/dist/transactions/permissioned-domain-delete.d.ts +13 -0
- package/dist/transactions/permissioned-domain-delete.d.ts.map +1 -0
- package/dist/transactions/permissioned-domain-delete.js +9 -0
- package/dist/transactions/permissioned-domain-delete.js.map +1 -0
- package/dist/transactions/permissioned-domain-set.d.ts +26 -0
- package/dist/transactions/permissioned-domain-set.d.ts.map +1 -0
- package/dist/transactions/permissioned-domain-set.js +19 -0
- package/dist/transactions/permissioned-domain-set.js.map +1 -0
- package/dist/transactions/vault-clawback.d.ts +21 -0
- package/dist/transactions/vault-clawback.d.ts.map +1 -0
- package/dist/transactions/vault-clawback.js +27 -0
- package/dist/transactions/vault-clawback.js.map +1 -0
- package/dist/transactions/vault-create.d.ts +18 -0
- package/dist/transactions/vault-create.d.ts.map +1 -0
- package/dist/transactions/vault-create.js +23 -0
- package/dist/transactions/vault-create.js.map +1 -0
- package/dist/transactions/vault-delete.d.ts +16 -0
- package/dist/transactions/vault-delete.d.ts.map +1 -0
- package/dist/transactions/vault-delete.js +17 -0
- package/dist/transactions/vault-delete.js.map +1 -0
- package/dist/transactions/vault-deposit.d.ts +19 -0
- package/dist/transactions/vault-deposit.d.ts.map +1 -0
- package/dist/transactions/vault-deposit.js +22 -0
- package/dist/transactions/vault-deposit.js.map +1 -0
- package/dist/transactions/vault-set.d.ts +18 -0
- package/dist/transactions/vault-set.d.ts.map +1 -0
- package/dist/transactions/vault-set.js +23 -0
- package/dist/transactions/vault-set.js.map +1 -0
- package/dist/transactions/vault-withdraw.d.ts +23 -0
- package/dist/transactions/vault-withdraw.d.ts.map +1 -0
- package/dist/transactions/vault-withdraw.js +26 -0
- package/dist/transactions/vault-withdraw.js.map +1 -0
- package/dist/transactions/xchain-account-create-commit.d.ts +23 -0
- package/dist/transactions/xchain-account-create-commit.d.ts.map +1 -0
- package/dist/transactions/xchain-account-create-commit.js +30 -0
- package/dist/transactions/xchain-account-create-commit.js.map +1 -0
- package/dist/transactions/xchain-add-account-create-attestation.d.ts +32 -0
- package/dist/transactions/xchain-add-account-create-attestation.d.ts.map +1 -0
- package/dist/transactions/xchain-add-account-create-attestation.js +42 -0
- package/dist/transactions/xchain-add-account-create-attestation.js.map +1 -0
- package/dist/transactions/xchain-add-claim-attestation.d.ts +32 -0
- package/dist/transactions/xchain-add-claim-attestation.d.ts.map +1 -0
- package/dist/transactions/xchain-add-claim-attestation.js +42 -0
- package/dist/transactions/xchain-add-claim-attestation.js.map +1 -0
- package/dist/transactions/xchain-claim.d.ts +26 -0
- package/dist/transactions/xchain-claim.d.ts.map +1 -0
- package/dist/transactions/xchain-claim.js +31 -0
- package/dist/transactions/xchain-claim.js.map +1 -0
- package/dist/transactions/xchain-commit.d.ts +24 -0
- package/dist/transactions/xchain-commit.d.ts.map +1 -0
- package/dist/transactions/xchain-commit.js +29 -0
- package/dist/transactions/xchain-commit.js.map +1 -0
- package/dist/transactions/xchain-create-bridge.d.ts +21 -0
- package/dist/transactions/xchain-create-bridge.d.ts.map +1 -0
- package/dist/transactions/xchain-create-bridge.js +25 -0
- package/dist/transactions/xchain-create-bridge.js.map +1 -0
- package/dist/transactions/xchain-create-claim-id.d.ts +21 -0
- package/dist/transactions/xchain-create-claim-id.d.ts.map +1 -0
- package/dist/transactions/xchain-create-claim-id.js +26 -0
- package/dist/transactions/xchain-create-claim-id.js.map +1 -0
- package/dist/transactions/xchain-modify-bridge.d.ts +24 -0
- package/dist/transactions/xchain-modify-bridge.d.ts.map +1 -0
- package/dist/transactions/xchain-modify-bridge.js +22 -0
- package/dist/transactions/xchain-modify-bridge.js.map +1 -0
- package/dist/types/common.d.ts +64 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jonathan Dobson
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# xrp-tx
|
|
2
|
+
|
|
3
|
+
A standalone, zero-dependency, class-based transaction builder for the XRP Ledger.
|
|
4
|
+
|
|
5
|
+
`xrp-tx` is designed to provide a premium developer experience for constructing, validating, and manipulating XRPL transactions. It replaces the legacy union-of-interfaces pattern with a robust class hierarchy, enabling inherited properties, logical grouping, and strict runtime validation.
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/xrp-tx)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
- **🚀 Zero Dependencies:** No reliance on `xrpl.js`, `ripple-binary-codec`, or any other runtime libraries.
|
|
13
|
+
- **🏗️ Class-Based API:** 71+ transaction types implemented as concrete classes.
|
|
14
|
+
- **🛡️ Strict Type Safety:** Built from the ground up for TypeScript, supporting `exactOptionalPropertyTypes`.
|
|
15
|
+
- **🧪 Built-in Validation:** Every transaction class includes a `validate()` method for ledger-compliant checks.
|
|
16
|
+
- **💎 Immutable Updates:** Use the `.with()` pattern to create modified copies of transactions without side effects.
|
|
17
|
+
- **🔌 Registry Pattern:** Easily instantiate transactions from JSON using the central registry or factory methods.
|
|
18
|
+
- **🤝 XRPL.js Compatible:** `toJSON()` output matches the exact shape required by `xrpl.js` and the XRPL ledger.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install xrp-tx
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
### Creating a Transaction
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { Transaction, PaymentTx } from 'xrp-tx';
|
|
32
|
+
|
|
33
|
+
// Option 1: Using the convenience factory
|
|
34
|
+
const tx = Transaction.payment({
|
|
35
|
+
Account: 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
|
|
36
|
+
Destination: 'rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe',
|
|
37
|
+
Amount: '1000000', // 1 XRP in drops
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// Option 2: Using the concrete class
|
|
41
|
+
const payment = new PaymentTx({
|
|
42
|
+
Account: 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
|
|
43
|
+
Destination: 'rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe',
|
|
44
|
+
Amount: '1000000',
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// Validation
|
|
48
|
+
payment.validate(); // Throws ValidationError if invalid
|
|
49
|
+
|
|
50
|
+
// Serialization
|
|
51
|
+
const json = payment.toJSON();
|
|
52
|
+
console.log(json);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Immutable Updates with `.with()`
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
const tx1 = Transaction.payment({
|
|
59
|
+
Account: 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
|
|
60
|
+
Destination: 'rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe',
|
|
61
|
+
Amount: '1000000',
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
// Create a new transaction with a Fee and Sequence
|
|
65
|
+
const tx2 = tx1.with({
|
|
66
|
+
Fee: '12',
|
|
67
|
+
Sequence: 42,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
console.log(tx2.Fee); // '12'
|
|
71
|
+
console.log(tx1.Fee); // undefined (tx1 remains unchanged)
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Dynamic Instantiation from JSON
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import { Transaction } from 'xrp-tx';
|
|
78
|
+
|
|
79
|
+
const blob = {
|
|
80
|
+
TransactionType: 'AccountSet',
|
|
81
|
+
Account: 'rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh',
|
|
82
|
+
SetFlag: 8,
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const tx = Transaction.create(blob.TransactionType, blob);
|
|
86
|
+
// tx is an instance of AccountSetTx
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Supported Transaction Types (71)
|
|
90
|
+
|
|
91
|
+
`xrp-tx` provides 100% coverage for standard and experimental XRPL transaction types, including:
|
|
92
|
+
|
|
93
|
+
- **Core:** `Payment`, `AccountSet`, `TrustSet`, `OfferCreate`, `OfferCancel`, `Check*`, `Escrow*`, `SignerListSet`, etc.
|
|
94
|
+
- **NFTs:** `NFTokenMint`, `NFTokenBurn`, `NFTokenCreateOffer`, `NFTokenAcceptOffer`, etc.
|
|
95
|
+
- **AMM:** `AMMCreate`, `AMMDeposit`, `AMMWithdraw`, `AMMVote`, `AMMBid`, etc.
|
|
96
|
+
- **MPT:** `MPTokenIssuanceCreate`, `MPTokenAuthorize`, etc.
|
|
97
|
+
- **Sidechains:** `XChainCreateBridge`, `XChainCommit`, `XChainClaim`, etc.
|
|
98
|
+
- **Niche:** `Vault*`, `Loan*`, `Oracle*`, `Credential*`, `DID*`, `Batch`, etc.
|
|
99
|
+
|
|
100
|
+
## Why use xrp-tx?
|
|
101
|
+
|
|
102
|
+
Modern XRPL development often requires high-fidelity transaction construction without the overhead of a full ledger library. `xrp-tx` is ideal for:
|
|
103
|
+
|
|
104
|
+
1. **Lightweight Clients:** Perfect for mobile apps or edge functions where bundle size matters.
|
|
105
|
+
2. **Transaction Builders:** Provides a clean UI-to-JSON mapping with instant validation.
|
|
106
|
+
3. **Backend Services:** Robust, typed transaction generation for high-throughput environments.
|
|
107
|
+
4. **Tooling:** A solid foundation for explorers, wallets, and signing tools.
|
|
108
|
+
|
|
109
|
+
## Architecture
|
|
110
|
+
|
|
111
|
+
The library uses a structured hierarchy to maximize code reuse and provide logical groupings:
|
|
112
|
+
|
|
113
|
+
- `Transaction` (Abstract Base)
|
|
114
|
+
- `AccountTransaction` (Shared account logic)
|
|
115
|
+
- `PaymentTransaction` (Shared value transfer logic)
|
|
116
|
+
- `TokenTransaction` (NFT/MPT/TrustSet logic)
|
|
117
|
+
- `AMMTransaction` / `XChainTransaction` / etc.
|
|
118
|
+
|
|
119
|
+
## License
|
|
120
|
+
|
|
121
|
+
MIT
|
package/dist/index.d.ts
CHANGED
|
@@ -10,12 +10,19 @@ import './registry.js';
|
|
|
10
10
|
export { Transaction } from './transaction.js';
|
|
11
11
|
export { TransactionRegistry } from './registry.js';
|
|
12
12
|
export { ValidationError, TransactionError } from './errors.js';
|
|
13
|
-
export type { Amount, IssuedCurrencyAmount, MPTAmount, ClawbackAmount, IssuedCurrency, Currency, Memo, Signer, PathStep, Path, XChainBridge, AuthorizeCredential, SignerEntry, OracleDataSeries, BaseTransactionFields, PreparedTransactionFields, SignedTransactionFields, TransactionType, GlobalFlagsInterface, PaymentFlagsInterface, AccountSetFlagsInterface, TrustSetFlagsInterface, OfferCreateFlagsInterface, NFTokenMintFlagsInterface, NFTokenCreateOfferFlagsInterface, PaymentChannelClaimFlagsInterface, AMMDepositFlagsInterface, AMMWithdrawFlagsInterface, MPTokenAuthorizeFlagsInterface, ClawbackFlagsInterface, XChainModifyBridgeFlagsInterface, BatchFlagsInterface, } from './types/index.js';
|
|
13
|
+
export type { Amount, IssuedCurrencyAmount, MPTAmount, ClawbackAmount, IssuedCurrency, Currency, Memo, Signer, PathStep, Path, XChainBridge, AuthorizeCredential, SignerEntry, OracleDataSeries, AuthAccount, XChainClaimAttestation, XChainAccountCreateAttestation, BaseTransactionFields, PreparedTransactionFields, SignedTransactionFields, TransactionType, GlobalFlagsInterface, PaymentFlagsInterface, AccountSetFlagsInterface, TrustSetFlagsInterface, OfferCreateFlagsInterface, NFTokenMintFlagsInterface, NFTokenCreateOfferFlagsInterface, PaymentChannelClaimFlagsInterface, AMMDepositFlagsInterface, AMMWithdrawFlagsInterface, MPTokenAuthorizeFlagsInterface, ClawbackFlagsInterface, XChainModifyBridgeFlagsInterface, BatchFlagsInterface, } from './types/index.js';
|
|
14
14
|
export { GlobalFlags, PaymentFlags, AccountSetAsfFlags, AccountSetTfFlags, TrustSetFlags, OfferCreateFlags, NFTokenMintFlags, NFTokenCreateOfferFlags, PaymentChannelClaimFlags, AMMDepositFlags, AMMWithdrawFlags, MPTokenAuthorizeFlags, ClawbackFlags, XChainModifyBridgeFlags, BatchFlags, } from './types/index.js';
|
|
15
15
|
export { AccountTransaction } from './groups/account.js';
|
|
16
16
|
export { PaymentTransaction } from './groups/payment.js';
|
|
17
17
|
export { TokenTransaction } from './groups/token.js';
|
|
18
18
|
export { OfferTransaction } from './groups/offer.js';
|
|
19
|
+
export { AMMTransaction } from './groups/amm.js';
|
|
20
|
+
export { XChainTransaction } from './groups/xchain.js';
|
|
21
|
+
export { VaultTransaction } from './groups/vault.js';
|
|
22
|
+
export { LoanTransaction } from './groups/loan.js';
|
|
23
|
+
export { CredentialTransaction } from './groups/credential.js';
|
|
24
|
+
export { OracleTransaction } from './groups/oracle.js';
|
|
25
|
+
export { PermissionedDomainTransaction } from './groups/permissioned-domain.js';
|
|
19
26
|
export { PaymentTx } from './transactions/payment.js';
|
|
20
27
|
export type { PaymentTxFields } from './transactions/payment.js';
|
|
21
28
|
export { AccountSetTx } from './transactions/account-set.js';
|
|
@@ -78,6 +85,82 @@ export { MPTokenIssuanceSetTx } from './transactions/mptoken-issuance-set.js';
|
|
|
78
85
|
export type { MPTokenIssuanceSetTxFields } from './transactions/mptoken-issuance-set.js';
|
|
79
86
|
export { MPTokenAuthorizeTx } from './transactions/mptoken-authorize.js';
|
|
80
87
|
export type { MPTokenAuthorizeTxFields } from './transactions/mptoken-authorize.js';
|
|
88
|
+
export { AMMCreateTx } from './transactions/amm-create.js';
|
|
89
|
+
export type { AMMCreateTxFields } from './transactions/amm-create.js';
|
|
90
|
+
export { AMMDepositTx } from './transactions/amm-deposit.js';
|
|
91
|
+
export type { AMMDepositTxFields } from './transactions/amm-deposit.js';
|
|
92
|
+
export { AMMWithdrawTx } from './transactions/amm-withdraw.js';
|
|
93
|
+
export type { AMMWithdrawTxFields } from './transactions/amm-withdraw.js';
|
|
94
|
+
export { AMMVoteTx } from './transactions/amm-vote.js';
|
|
95
|
+
export type { AMMVoteTxFields } from './transactions/amm-vote.js';
|
|
96
|
+
export { AMMBidTx } from './transactions/amm-bid.js';
|
|
97
|
+
export type { AMMBidTxFields } from './transactions/amm-bid.js';
|
|
98
|
+
export { AMMClawbackTx } from './transactions/amm-clawback.js';
|
|
99
|
+
export type { AMMClawbackTxFields } from './transactions/amm-clawback.js';
|
|
100
|
+
export { AMMDeleteTx } from './transactions/amm-delete.js';
|
|
101
|
+
export type { AMMDeleteTxFields } from './transactions/amm-delete.js';
|
|
102
|
+
export { XChainCreateBridgeTx } from './transactions/xchain-create-bridge.js';
|
|
103
|
+
export type { XChainCreateBridgeTxFields } from './transactions/xchain-create-bridge.js';
|
|
104
|
+
export { XChainModifyBridgeTx } from './transactions/xchain-modify-bridge.js';
|
|
105
|
+
export type { XChainModifyBridgeTxFields } from './transactions/xchain-modify-bridge.js';
|
|
106
|
+
export { XChainCommitTx } from './transactions/xchain-commit.js';
|
|
107
|
+
export type { XChainCommitTxFields } from './transactions/xchain-commit.js';
|
|
108
|
+
export { XChainClaimTx } from './transactions/xchain-claim.js';
|
|
109
|
+
export type { XChainClaimTxFields } from './transactions/xchain-claim.js';
|
|
110
|
+
export { XChainAccountCreateCommitTx } from './transactions/xchain-account-create-commit.js';
|
|
111
|
+
export type { XChainAccountCreateCommitTxFields } from './transactions/xchain-account-create-commit.js';
|
|
112
|
+
export { XChainCreateClaimIDTx } from './transactions/xchain-create-claim-id.js';
|
|
113
|
+
export type { XChainCreateClaimIDTxFields } from './transactions/xchain-create-claim-id.js';
|
|
114
|
+
export { XChainAddClaimAttestationTx } from './transactions/xchain-add-claim-attestation.js';
|
|
115
|
+
export type { XChainAddClaimAttestationTxFields } from './transactions/xchain-add-claim-attestation.js';
|
|
116
|
+
export { XChainAddAccountCreateAttestationTx } from './transactions/xchain-add-account-create-attestation.js';
|
|
117
|
+
export type { XChainAddAccountCreateAttestationTxFields } from './transactions/xchain-add-account-create-attestation.js';
|
|
118
|
+
export { VaultCreateTx } from './transactions/vault-create.js';
|
|
119
|
+
export type { VaultCreateTxFields } from './transactions/vault-create.js';
|
|
120
|
+
export { VaultDepositTx } from './transactions/vault-deposit.js';
|
|
121
|
+
export type { VaultDepositTxFields } from './transactions/vault-deposit.js';
|
|
122
|
+
export { VaultWithdrawTx } from './transactions/vault-withdraw.js';
|
|
123
|
+
export type { VaultWithdrawTxFields } from './transactions/vault-withdraw.js';
|
|
124
|
+
export { VaultSetTx } from './transactions/vault-set.js';
|
|
125
|
+
export type { VaultSetTxFields } from './transactions/vault-set.js';
|
|
126
|
+
export { VaultDeleteTx } from './transactions/vault-delete.js';
|
|
127
|
+
export type { VaultDeleteTxFields } from './transactions/vault-delete.js';
|
|
128
|
+
export { VaultClawbackTx } from './transactions/vault-clawback.js';
|
|
129
|
+
export type { VaultClawbackTxFields } from './transactions/vault-clawback.js';
|
|
130
|
+
export { LoanSetTx } from './transactions/loan-set.js';
|
|
131
|
+
export type { LoanSetTxFields } from './transactions/loan-set.js';
|
|
132
|
+
export { LoanDeleteTx } from './transactions/loan-delete.js';
|
|
133
|
+
export type { LoanDeleteTxFields } from './transactions/loan-delete.js';
|
|
134
|
+
export { LoanManageTx } from './transactions/loan-manage.js';
|
|
135
|
+
export type { LoanManageTxFields } from './transactions/loan-manage.js';
|
|
136
|
+
export { LoanPayTx } from './transactions/loan-pay.js';
|
|
137
|
+
export type { LoanPayTxFields } from './transactions/loan-pay.js';
|
|
138
|
+
export { LoanBrokerSetTx } from './transactions/loan-broker-set.js';
|
|
139
|
+
export type { LoanBrokerSetTxFields } from './transactions/loan-broker-set.js';
|
|
140
|
+
export { LoanBrokerDeleteTx } from './transactions/loan-broker-delete.js';
|
|
141
|
+
export type { LoanBrokerDeleteTxFields } from './transactions/loan-broker-delete.js';
|
|
142
|
+
export { LoanBrokerCoverClawbackTx } from './transactions/loan-broker-cover-clawback.js';
|
|
143
|
+
export type { LoanBrokerCoverClawbackTxFields } from './transactions/loan-broker-cover-clawback.js';
|
|
144
|
+
export { LoanBrokerCoverDepositTx } from './transactions/loan-broker-cover-deposit.js';
|
|
145
|
+
export type { LoanBrokerCoverDepositTxFields } from './transactions/loan-broker-cover-deposit.js';
|
|
146
|
+
export { LoanBrokerCoverWithdrawTx } from './transactions/loan-broker-cover-withdraw.js';
|
|
147
|
+
export type { LoanBrokerCoverWithdrawTxFields } from './transactions/loan-broker-cover-withdraw.js';
|
|
148
|
+
export { CredentialCreateTx } from './transactions/credential-create.js';
|
|
149
|
+
export type { CredentialCreateTxFields } from './transactions/credential-create.js';
|
|
150
|
+
export { CredentialAcceptTx } from './transactions/credential-accept.js';
|
|
151
|
+
export type { CredentialAcceptTxFields } from './transactions/credential-accept.js';
|
|
152
|
+
export { CredentialDeleteTx } from './transactions/credential-delete.js';
|
|
153
|
+
export type { CredentialDeleteTxFields } from './transactions/credential-delete.js';
|
|
154
|
+
export { OracleSetTx } from './transactions/oracle-set.js';
|
|
155
|
+
export type { OracleSetTxFields } from './transactions/oracle-set.js';
|
|
156
|
+
export { OracleDeleteTx } from './transactions/oracle-delete.js';
|
|
157
|
+
export type { OracleDeleteTxFields } from './transactions/oracle-delete.js';
|
|
158
|
+
export { PermissionedDomainSetTx } from './transactions/permissioned-domain-set.js';
|
|
159
|
+
export type { PermissionedDomainSetTxFields } from './transactions/permissioned-domain-set.js';
|
|
160
|
+
export { PermissionedDomainDeleteTx } from './transactions/permissioned-domain-delete.js';
|
|
161
|
+
export type { PermissionedDomainDeleteTxFields } from './transactions/permissioned-domain-delete.js';
|
|
162
|
+
export { BatchTx } from './transactions/batch.js';
|
|
163
|
+
export type { BatchTxFields } from './transactions/batch.js';
|
|
81
164
|
export { DIDSetTx } from './transactions/did-set.js';
|
|
82
165
|
export type { DIDSetTxFields } from './transactions/did-set.js';
|
|
83
166
|
export { DIDDeleteTx } from './transactions/did-delete.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,eAAe,CAAC;AAGvB,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGhE,YAAY,EACV,MAAM,EAAE,oBAAoB,EAAE,SAAS,EAAE,cAAc,EACvD,cAAc,EAAE,QAAQ,EACxB,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAC1C,mBAAmB,EAAE,WAAW,EAAE,gBAAgB,EAClD,qBAAqB,EAAE,yBAAyB,EAAE,uBAAuB,EACzE,eAAe,EACf,oBAAoB,EAAE,qBAAqB,EAAE,wBAAwB,EACrE,sBAAsB,EAAE,yBAAyB,EACjD,yBAAyB,EAAE,gCAAgC,EAC3D,iCAAiC,EACjC,wBAAwB,EAAE,yBAAyB,EACnD,8BAA8B,EAAE,sBAAsB,EACtD,gCAAgC,EAAE,mBAAmB,GACtD,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,WAAW,EAAE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAChE,aAAa,EAAE,gBAAgB,EAC/B,gBAAgB,EAAE,uBAAuB,EACzC,wBAAwB,EACxB,eAAe,EAAE,gBAAgB,EACjC,qBAAqB,EAAE,aAAa,EACpC,uBAAuB,EAAE,UAAU,GACp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AW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,YAAY,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAG5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,YAAY,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC/F,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC1F,YAAY,EAAE,gCAAgC,EAAE,MAAM,8CAA8C,CAAC;AAGrG,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,OAAO,EACL,QAAQ,EAAE,sBAAsB,EAAE,WAAW,EAC7C,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAClC,UAAU,EAAE,aAAa,GAC1B,MAAM,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,13 @@ export { AccountTransaction } from './groups/account.js';
|
|
|
18
18
|
export { PaymentTransaction } from './groups/payment.js';
|
|
19
19
|
export { TokenTransaction } from './groups/token.js';
|
|
20
20
|
export { OfferTransaction } from './groups/offer.js';
|
|
21
|
+
export { AMMTransaction } from './groups/amm.js';
|
|
22
|
+
export { XChainTransaction } from './groups/xchain.js';
|
|
23
|
+
export { VaultTransaction } from './groups/vault.js';
|
|
24
|
+
export { LoanTransaction } from './groups/loan.js';
|
|
25
|
+
export { CredentialTransaction } from './groups/credential.js';
|
|
26
|
+
export { OracleTransaction } from './groups/oracle.js';
|
|
27
|
+
export { PermissionedDomainTransaction } from './groups/permissioned-domain.js';
|
|
21
28
|
// ─── Concrete transaction classes ────────────────────────────────────
|
|
22
29
|
// Account management
|
|
23
30
|
export { PaymentTx } from './transactions/payment.js';
|
|
@@ -55,6 +62,52 @@ export { MPTokenIssuanceCreateTx } from './transactions/mptoken-issuance-create.
|
|
|
55
62
|
export { MPTokenIssuanceDestroyTx } from './transactions/mptoken-issuance-destroy.js';
|
|
56
63
|
export { MPTokenIssuanceSetTx } from './transactions/mptoken-issuance-set.js';
|
|
57
64
|
export { MPTokenAuthorizeTx } from './transactions/mptoken-authorize.js';
|
|
65
|
+
// AMM
|
|
66
|
+
export { AMMCreateTx } from './transactions/amm-create.js';
|
|
67
|
+
export { AMMDepositTx } from './transactions/amm-deposit.js';
|
|
68
|
+
export { AMMWithdrawTx } from './transactions/amm-withdraw.js';
|
|
69
|
+
export { AMMVoteTx } from './transactions/amm-vote.js';
|
|
70
|
+
export { AMMBidTx } from './transactions/amm-bid.js';
|
|
71
|
+
export { AMMClawbackTx } from './transactions/amm-clawback.js';
|
|
72
|
+
export { AMMDeleteTx } from './transactions/amm-delete.js';
|
|
73
|
+
// XChain
|
|
74
|
+
export { XChainCreateBridgeTx } from './transactions/xchain-create-bridge.js';
|
|
75
|
+
export { XChainModifyBridgeTx } from './transactions/xchain-modify-bridge.js';
|
|
76
|
+
export { XChainCommitTx } from './transactions/xchain-commit.js';
|
|
77
|
+
export { XChainClaimTx } from './transactions/xchain-claim.js';
|
|
78
|
+
export { XChainAccountCreateCommitTx } from './transactions/xchain-account-create-commit.js';
|
|
79
|
+
export { XChainCreateClaimIDTx } from './transactions/xchain-create-claim-id.js';
|
|
80
|
+
export { XChainAddClaimAttestationTx } from './transactions/xchain-add-claim-attestation.js';
|
|
81
|
+
export { XChainAddAccountCreateAttestationTx } from './transactions/xchain-add-account-create-attestation.js';
|
|
82
|
+
// Vaults
|
|
83
|
+
export { VaultCreateTx } from './transactions/vault-create.js';
|
|
84
|
+
export { VaultDepositTx } from './transactions/vault-deposit.js';
|
|
85
|
+
export { VaultWithdrawTx } from './transactions/vault-withdraw.js';
|
|
86
|
+
export { VaultSetTx } from './transactions/vault-set.js';
|
|
87
|
+
export { VaultDeleteTx } from './transactions/vault-delete.js';
|
|
88
|
+
export { VaultClawbackTx } from './transactions/vault-clawback.js';
|
|
89
|
+
// Loans
|
|
90
|
+
export { LoanSetTx } from './transactions/loan-set.js';
|
|
91
|
+
export { LoanDeleteTx } from './transactions/loan-delete.js';
|
|
92
|
+
export { LoanManageTx } from './transactions/loan-manage.js';
|
|
93
|
+
export { LoanPayTx } from './transactions/loan-pay.js';
|
|
94
|
+
export { LoanBrokerSetTx } from './transactions/loan-broker-set.js';
|
|
95
|
+
export { LoanBrokerDeleteTx } from './transactions/loan-broker-delete.js';
|
|
96
|
+
export { LoanBrokerCoverClawbackTx } from './transactions/loan-broker-cover-clawback.js';
|
|
97
|
+
export { LoanBrokerCoverDepositTx } from './transactions/loan-broker-cover-deposit.js';
|
|
98
|
+
export { LoanBrokerCoverWithdrawTx } from './transactions/loan-broker-cover-withdraw.js';
|
|
99
|
+
// Credentials
|
|
100
|
+
export { CredentialCreateTx } from './transactions/credential-create.js';
|
|
101
|
+
export { CredentialAcceptTx } from './transactions/credential-accept.js';
|
|
102
|
+
export { CredentialDeleteTx } from './transactions/credential-delete.js';
|
|
103
|
+
// Oracles
|
|
104
|
+
export { OracleSetTx } from './transactions/oracle-set.js';
|
|
105
|
+
export { OracleDeleteTx } from './transactions/oracle-delete.js';
|
|
106
|
+
// Permissioned Domain
|
|
107
|
+
export { PermissionedDomainSetTx } from './transactions/permissioned-domain-set.js';
|
|
108
|
+
export { PermissionedDomainDeleteTx } from './transactions/permissioned-domain-delete.js';
|
|
109
|
+
// Batch
|
|
110
|
+
export { BatchTx } from './transactions/batch.js';
|
|
58
111
|
// DID
|
|
59
112
|
export { DIDSetTx } from './transactions/did-set.js';
|
|
60
113
|
export { DIDDeleteTx } from './transactions/did-delete.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,0EAA0E;AAC1E,OAAO,eAAe,CAAC;AAEvB,wEAAwE;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,0EAA0E;AAC1E,OAAO,eAAe,CAAC;AAEvB,wEAAwE;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAoBhE,OAAO,EACL,WAAW,EAAE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAChE,aAAa,EAAE,gBAAgB,EAC/B,gBAAgB,EAAE,uBAAuB,EACzC,wBAAwB,EACxB,eAAe,EAAE,gBAAgB,EACjC,qBAAqB,EAAE,aAAa,EACpC,uBAAuB,EAAE,UAAU,GACpC,MAAM,kBAAkB,CAAC;AAE1B,wEAAwE;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAA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,qCAAqC,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAGzE,UAAU;AACV,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE,sBAAsB;AACtB,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAG1F,QAAQ;AACR,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGlD,MAAM;AACN,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG3D,wEAAwE;AACxE,OAAO,EACL,QAAQ,EAAE,sBAAsB,EAAE,WAAW,EAC7C,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAClC,UAAU,EAAE,aAAa,GAC1B,MAAM,uBAAuB,CAAC"}
|
package/dist/registry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAgB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAgB,MAAM,kBAAkB,CAAC;AA6F7D,KAAK,sBAAsB,GAAG,KAAK,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,WAAW,CAAC;AA2GlF,qBAAa,mBAAmB;IAC9B,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,eAAe,GAAG,sBAAsB,GAAG,SAAS;IAIrE,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,sBAAsB,GAAG,IAAI;IAI1E,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO;IAI1C,MAAM,CAAC,KAAK,IAAI,eAAe,EAAE;CAGlC"}
|
package/dist/registry.js
CHANGED
|
@@ -33,6 +33,52 @@ import { ClawbackTx } from './transactions/clawback.js';
|
|
|
33
33
|
import { DelegateSetTx } from './transactions/delegate-set.js';
|
|
34
34
|
import { DIDSetTx } from './transactions/did-set.js';
|
|
35
35
|
import { DIDDeleteTx } from './transactions/did-delete.js';
|
|
36
|
+
// AMM
|
|
37
|
+
import { AMMCreateTx } from './transactions/amm-create.js';
|
|
38
|
+
import { AMMDepositTx } from './transactions/amm-deposit.js';
|
|
39
|
+
import { AMMWithdrawTx } from './transactions/amm-withdraw.js';
|
|
40
|
+
import { AMMVoteTx } from './transactions/amm-vote.js';
|
|
41
|
+
import { AMMBidTx } from './transactions/amm-bid.js';
|
|
42
|
+
import { AMMClawbackTx } from './transactions/amm-clawback.js';
|
|
43
|
+
import { AMMDeleteTx } from './transactions/amm-delete.js';
|
|
44
|
+
// XChain
|
|
45
|
+
import { XChainCreateBridgeTx } from './transactions/xchain-create-bridge.js';
|
|
46
|
+
import { XChainModifyBridgeTx } from './transactions/xchain-modify-bridge.js';
|
|
47
|
+
import { XChainCommitTx } from './transactions/xchain-commit.js';
|
|
48
|
+
import { XChainClaimTx } from './transactions/xchain-claim.js';
|
|
49
|
+
import { XChainAccountCreateCommitTx } from './transactions/xchain-account-create-commit.js';
|
|
50
|
+
import { XChainCreateClaimIDTx } from './transactions/xchain-create-claim-id.js';
|
|
51
|
+
import { XChainAddClaimAttestationTx } from './transactions/xchain-add-claim-attestation.js';
|
|
52
|
+
import { XChainAddAccountCreateAttestationTx } from './transactions/xchain-add-account-create-attestation.js';
|
|
53
|
+
// Vaults
|
|
54
|
+
import { VaultCreateTx } from './transactions/vault-create.js';
|
|
55
|
+
import { VaultDepositTx } from './transactions/vault-deposit.js';
|
|
56
|
+
import { VaultWithdrawTx } from './transactions/vault-withdraw.js';
|
|
57
|
+
import { VaultSetTx } from './transactions/vault-set.js';
|
|
58
|
+
import { VaultDeleteTx } from './transactions/vault-delete.js';
|
|
59
|
+
import { VaultClawbackTx } from './transactions/vault-clawback.js';
|
|
60
|
+
// Loans
|
|
61
|
+
import { LoanSetTx } from './transactions/loan-set.js';
|
|
62
|
+
import { LoanDeleteTx } from './transactions/loan-delete.js';
|
|
63
|
+
import { LoanManageTx } from './transactions/loan-manage.js';
|
|
64
|
+
import { LoanPayTx } from './transactions/loan-pay.js';
|
|
65
|
+
import { LoanBrokerSetTx } from './transactions/loan-broker-set.js';
|
|
66
|
+
import { LoanBrokerDeleteTx } from './transactions/loan-broker-delete.js';
|
|
67
|
+
import { LoanBrokerCoverClawbackTx } from './transactions/loan-broker-cover-clawback.js';
|
|
68
|
+
import { LoanBrokerCoverDepositTx } from './transactions/loan-broker-cover-deposit.js';
|
|
69
|
+
import { LoanBrokerCoverWithdrawTx } from './transactions/loan-broker-cover-withdraw.js';
|
|
70
|
+
// Credentials
|
|
71
|
+
import { CredentialCreateTx } from './transactions/credential-create.js';
|
|
72
|
+
import { CredentialAcceptTx } from './transactions/credential-accept.js';
|
|
73
|
+
import { CredentialDeleteTx } from './transactions/credential-delete.js';
|
|
74
|
+
// Oracles
|
|
75
|
+
import { OracleSetTx } from './transactions/oracle-set.js';
|
|
76
|
+
import { OracleDeleteTx } from './transactions/oracle-delete.js';
|
|
77
|
+
// Permissioned Domain
|
|
78
|
+
import { PermissionedDomainSetTx } from './transactions/permissioned-domain-set.js';
|
|
79
|
+
import { PermissionedDomainDeleteTx } from './transactions/permissioned-domain-delete.js';
|
|
80
|
+
// Batch
|
|
81
|
+
import { BatchTx } from './transactions/batch.js';
|
|
36
82
|
const registryMap = {
|
|
37
83
|
// Account management
|
|
38
84
|
AccountSet: AccountSetTx,
|
|
@@ -71,6 +117,52 @@ const registryMap = {
|
|
|
71
117
|
MPTokenIssuanceDestroy: MPTokenIssuanceDestroyTx,
|
|
72
118
|
MPTokenIssuanceSet: MPTokenIssuanceSetTx,
|
|
73
119
|
MPTokenAuthorize: MPTokenAuthorizeTx,
|
|
120
|
+
// AMM
|
|
121
|
+
AMMCreate: AMMCreateTx,
|
|
122
|
+
AMMDeposit: AMMDepositTx,
|
|
123
|
+
AMMWithdraw: AMMWithdrawTx,
|
|
124
|
+
AMMVote: AMMVoteTx,
|
|
125
|
+
AMMBid: AMMBidTx,
|
|
126
|
+
AMMClawback: AMMClawbackTx,
|
|
127
|
+
AMMDelete: AMMDeleteTx,
|
|
128
|
+
// XChain
|
|
129
|
+
XChainCreateBridge: XChainCreateBridgeTx,
|
|
130
|
+
XChainModifyBridge: XChainModifyBridgeTx,
|
|
131
|
+
XChainCommit: XChainCommitTx,
|
|
132
|
+
XChainClaim: XChainClaimTx,
|
|
133
|
+
XChainAccountCreateCommit: XChainAccountCreateCommitTx,
|
|
134
|
+
XChainCreateClaimID: XChainCreateClaimIDTx,
|
|
135
|
+
XChainAddClaimAttestation: XChainAddClaimAttestationTx,
|
|
136
|
+
XChainAddAccountCreateAttestation: XChainAddAccountCreateAttestationTx,
|
|
137
|
+
// Vaults
|
|
138
|
+
VaultCreate: VaultCreateTx,
|
|
139
|
+
VaultDeposit: VaultDepositTx,
|
|
140
|
+
VaultWithdraw: VaultWithdrawTx,
|
|
141
|
+
VaultSet: VaultSetTx,
|
|
142
|
+
VaultDelete: VaultDeleteTx,
|
|
143
|
+
VaultClawback: VaultClawbackTx,
|
|
144
|
+
// Loans
|
|
145
|
+
LoanSet: LoanSetTx,
|
|
146
|
+
LoanDelete: LoanDeleteTx,
|
|
147
|
+
LoanManage: LoanManageTx,
|
|
148
|
+
LoanPay: LoanPayTx,
|
|
149
|
+
LoanBrokerSet: LoanBrokerSetTx,
|
|
150
|
+
LoanBrokerDelete: LoanBrokerDeleteTx,
|
|
151
|
+
LoanBrokerCoverClawback: LoanBrokerCoverClawbackTx,
|
|
152
|
+
LoanBrokerCoverDeposit: LoanBrokerCoverDepositTx,
|
|
153
|
+
LoanBrokerCoverWithdraw: LoanBrokerCoverWithdrawTx,
|
|
154
|
+
// Credentials
|
|
155
|
+
CredentialCreate: CredentialCreateTx,
|
|
156
|
+
CredentialAccept: CredentialAcceptTx,
|
|
157
|
+
CredentialDelete: CredentialDeleteTx,
|
|
158
|
+
// Oracles
|
|
159
|
+
OracleSet: OracleSetTx,
|
|
160
|
+
OracleDelete: OracleDeleteTx,
|
|
161
|
+
// Permissioned Domain
|
|
162
|
+
PermissionedDomainSet: PermissionedDomainSetTx,
|
|
163
|
+
PermissionedDomainDelete: PermissionedDomainDeleteTx,
|
|
164
|
+
// Batch
|
|
165
|
+
Batch: BatchTx,
|
|
74
166
|
// DID
|
|
75
167
|
DIDSet: DIDSetTx,
|
|
76
168
|
DIDDelete: DIDDeleteTx,
|
package/dist/registry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE7D,wEAAwE;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,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ACR,KAAK,EAAE,OAA4C;IAEnD,MAAM;IACN,MAAM,EAAE,QAA6C;IACrD,SAAS,EAAE,WAAgD;CAC5D,CAAC;AAEF,wEAAwE;AAExE,MAAM,OAAO,mBAAmB;IAC9B,MAAM,CAAC,GAAG,CAAC,IAAqB;QAC9B,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,IAAqB,EAAE,IAA4B;QACjE,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC3B,CAAC;IAED,MAAM,CAAC,GAAG,CAAC,IAAqB;QAC9B,OAAO,IAAI,IAAI,WAAW,CAAC;IAC7B,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAsB,CAAC;IACvD,CAAC;CACF;AAED,wEAAwE;AACxE,YAAY,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AMMBid transaction — bid on an Automated Market Maker's auction slot.
|
|
3
|
+
*/
|
|
4
|
+
import type { BaseTransactionFields } from '../types/base.js';
|
|
5
|
+
import type { IssuedCurrencyAmount } from '../types/amounts.js';
|
|
6
|
+
import type { AuthAccount } from '../types/common.js';
|
|
7
|
+
import { AMMTransaction } from '../groups/amm.js';
|
|
8
|
+
export interface AMMBidTxFields extends BaseTransactionFields {
|
|
9
|
+
readonly TransactionType: 'AMMBid';
|
|
10
|
+
readonly Asset: {
|
|
11
|
+
currency: string;
|
|
12
|
+
issuer?: string;
|
|
13
|
+
};
|
|
14
|
+
readonly Asset2: {
|
|
15
|
+
currency: string;
|
|
16
|
+
issuer?: string;
|
|
17
|
+
};
|
|
18
|
+
readonly BidMin?: IssuedCurrencyAmount;
|
|
19
|
+
readonly BidMax?: IssuedCurrencyAmount;
|
|
20
|
+
readonly AuthAccounts?: AuthAccount[];
|
|
21
|
+
}
|
|
22
|
+
export declare class AMMBidTx extends AMMTransaction {
|
|
23
|
+
readonly TransactionType: "AMMBid";
|
|
24
|
+
readonly Asset: {
|
|
25
|
+
currency: string;
|
|
26
|
+
issuer?: string;
|
|
27
|
+
};
|
|
28
|
+
readonly Asset2: {
|
|
29
|
+
currency: string;
|
|
30
|
+
issuer?: string;
|
|
31
|
+
};
|
|
32
|
+
readonly BidMin?: IssuedCurrencyAmount;
|
|
33
|
+
readonly BidMax?: IssuedCurrencyAmount;
|
|
34
|
+
readonly AuthAccounts?: AuthAccount[];
|
|
35
|
+
constructor(props: AMMBidTxFields | Record<string, unknown>);
|
|
36
|
+
validate(): void;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=amm-bid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amm-bid.d.ts","sourceRoot":"","sources":["../../src/transactions/amm-bid.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKlD,MAAM,WAAW,cAAe,SAAQ,qBAAqB;IAC3D,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtD,QAAQ,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CACvC;AASD,qBAAa,QAAS,SAAQ,cAAc;IAC1C,SAAkB,eAAe,EAAG,QAAQ,CAAU;IACtD,QAAQ,CAAC,KAAK,EAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,QAAQ,CAAC,MAAM,EAAG;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxD,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;gBAE1B,KAAK,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQlD,QAAQ,IAAI,IAAI;CAa1B"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AMMTransaction } from '../groups/amm.js';
|
|
2
|
+
import { assignDefined } from '../transaction.js';
|
|
3
|
+
import { ValidationError } from '../errors.js';
|
|
4
|
+
import { isIssuedCurrencyAmount, isArray, isRecord, isString } from '../validation/helpers.js';
|
|
5
|
+
function isAuthAccount(value) {
|
|
6
|
+
if (!isRecord(value))
|
|
7
|
+
return false;
|
|
8
|
+
const auth = value['AuthAccount'];
|
|
9
|
+
if (!isRecord(auth))
|
|
10
|
+
return false;
|
|
11
|
+
return isString(auth['Account']);
|
|
12
|
+
}
|
|
13
|
+
export class AMMBidTx extends AMMTransaction {
|
|
14
|
+
TransactionType = 'AMMBid';
|
|
15
|
+
Asset;
|
|
16
|
+
Asset2;
|
|
17
|
+
BidMin;
|
|
18
|
+
BidMax;
|
|
19
|
+
AuthAccounts;
|
|
20
|
+
constructor(props) {
|
|
21
|
+
const p = props;
|
|
22
|
+
super({ ...p, TransactionType: 'AMMBid' });
|
|
23
|
+
this.Asset = p['Asset'];
|
|
24
|
+
this.Asset2 = p['Asset2'];
|
|
25
|
+
assignDefined(this, p, ['BidMin', 'BidMax', 'AuthAccounts']);
|
|
26
|
+
}
|
|
27
|
+
validate() {
|
|
28
|
+
super.validate();
|
|
29
|
+
if (!this.Asset)
|
|
30
|
+
throw new ValidationError('AMMBid: missing Asset');
|
|
31
|
+
if (!this.Asset2)
|
|
32
|
+
throw new ValidationError('AMMBid: missing Asset2');
|
|
33
|
+
if (this.BidMin !== undefined && !isIssuedCurrencyAmount(this.BidMin))
|
|
34
|
+
throw new ValidationError('AMMBid: invalid BidMin');
|
|
35
|
+
if (this.BidMax !== undefined && !isIssuedCurrencyAmount(this.BidMax))
|
|
36
|
+
throw new ValidationError('AMMBid: invalid BidMax');
|
|
37
|
+
if (this.AuthAccounts !== undefined) {
|
|
38
|
+
if (!isArray(this.AuthAccounts) || !this.AuthAccounts.every(isAuthAccount))
|
|
39
|
+
throw new ValidationError('AMMBid: invalid AuthAccounts');
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=amm-bid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amm-bid.js","sourceRoot":"","sources":["../../src/transactions/amm-bid.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAW/F,SAAS,aAAa,CAAC,KAAc;IACnC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACnC,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;IAClC,IAAI,CAAC,QAAQ,CAAC,IAAI,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AAO,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC;gBACxE,MAAM,IAAI,eAAe,CAAC,8BAA8B,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AMMClawback transaction — claw back liquidity from an Automated Market Maker.
|
|
3
|
+
*/
|
|
4
|
+
import type { BaseTransactionFields } from '../types/base.js';
|
|
5
|
+
import type { Amount } from '../types/amounts.js';
|
|
6
|
+
import type { ClawbackFlagsInterface } from '../types/flags.js';
|
|
7
|
+
import { AMMTransaction } from '../groups/amm.js';
|
|
8
|
+
export interface AMMClawbackTxFields extends BaseTransactionFields {
|
|
9
|
+
readonly TransactionType: 'AMMClawback';
|
|
10
|
+
readonly Asset: {
|
|
11
|
+
currency: string;
|
|
12
|
+
issuer?: string;
|
|
13
|
+
};
|
|
14
|
+
readonly Asset2: {
|
|
15
|
+
currency: string;
|
|
16
|
+
issuer?: string;
|
|
17
|
+
};
|
|
18
|
+
readonly Holder: string;
|
|
19
|
+
readonly Amount?: Amount;
|
|
20
|
+
readonly Flags?: number | ClawbackFlagsInterface;
|
|
21
|
+
}
|
|
22
|
+
export declare class AMMClawbackTx extends AMMTransaction {
|
|
23
|
+
readonly TransactionType: "AMMClawback";
|
|
24
|
+
readonly Asset: {
|
|
25
|
+
currency: string;
|
|
26
|
+
issuer?: string;
|
|
27
|
+
};
|
|
28
|
+
readonly Asset2: {
|
|
29
|
+
currency: string;
|
|
30
|
+
issuer?: string;
|
|
31
|
+
};
|
|
32
|
+
readonly Holder: string;
|
|
33
|
+
readonly Amount?: Amount;
|
|
34
|
+
readonly Flags?: number | ClawbackFlagsInterface;
|
|
35
|
+
constructor(props: AMMClawbackTxFields | Record<string, unknown>);
|
|
36
|
+
validate(): void;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=amm-clawback.d.ts.map
|