xrp-tx 0.1.0 → 0.2.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/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/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,g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AO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,YAAY,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAGpF,OAAO,EAAE,WAAW,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,MA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,6CAA6C,CAAC;AAEvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAGzF,cAAc;AACd,OAAO,EAAE,kBAAkB,EAAE,MAAM,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;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gD;IAC3D,YAAY,EAAE,cAAmD;IAEjE,sBAAsB;IACtB,qBAAqB,EAAE,uBAA4D;IACnF,wBAAwB,EAAE,0BAA+D;IAEzF,QAAQ;IACR,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,CA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,MAAM,IAAI,eAAe,CAAC,wBAAwB,CAAC,CAAC;QACtD,IAAI,IAAI,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YACpC,IAAI,CAAC,OAAO,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amm-clawback.d.ts","sourceRoot":"","sources":["../../src/transactions/amm-clawback.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAKlD,MAAM,WAAW,mBAAoB,SAAQ,qBAAqB;IAChE,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC;IACxC,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,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;CAClD;AAED,qBAAa,aAAc,SAAQ,cAAc;IAC/C,SAAkB,eAAe,EAAG,aAAa,CAAU;IAC3D,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,EAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,SAAiB,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAAC;gBAE7C,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IASvD,QAAQ,IAAI,IAAI;CAQ1B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AMMTransaction } from '../groups/amm.js';
|
|
2
|
+
import { assignDefined } from '../transaction.js';
|
|
3
|
+
import { ValidationError } from '../errors.js';
|
|
4
|
+
import { isAmount, isAccount } from '../validation/helpers.js';
|
|
5
|
+
export class AMMClawbackTx extends AMMTransaction {
|
|
6
|
+
TransactionType = 'AMMClawback';
|
|
7
|
+
Asset;
|
|
8
|
+
Asset2;
|
|
9
|
+
Holder;
|
|
10
|
+
Amount;
|
|
11
|
+
constructor(props) {
|
|
12
|
+
const p = props;
|
|
13
|
+
super({ ...p, TransactionType: 'AMMClawback' });
|
|
14
|
+
this.Asset = p['Asset'];
|
|
15
|
+
this.Asset2 = p['Asset2'];
|
|
16
|
+
this.Holder = p['Holder'];
|
|
17
|
+
assignDefined(this, p, ['Amount', 'Flags']);
|
|
18
|
+
}
|
|
19
|
+
validate() {
|
|
20
|
+
super.validate();
|
|
21
|
+
if (!this.Asset)
|
|
22
|
+
throw new ValidationError('AMMClawback: missing Asset');
|
|
23
|
+
if (!this.Asset2)
|
|
24
|
+
throw new ValidationError('AMMClawback: missing Asset2');
|
|
25
|
+
if (!isAccount(this.Holder))
|
|
26
|
+
throw new ValidationError('AMMClawback: invalid Holder');
|
|
27
|
+
if (this.Amount !== undefined && !isAmount(this.Amount))
|
|
28
|
+
throw new ValidationError('AMMClawback: invalid Amount');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=amm-clawback.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;YACrD,MAAM,IAAI,eAAe,CAAC,6BAA6B,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AMMCreate transaction — create a new Automated Market Maker.
|
|
3
|
+
*/
|
|
4
|
+
import type { BaseTransactionFields } from '../types/base.js';
|
|
5
|
+
import type { Amount } from '../types/amounts.js';
|
|
6
|
+
import { AMMTransaction } from '../groups/amm.js';
|
|
7
|
+
export interface AMMCreateTxFields extends BaseTransactionFields {
|
|
8
|
+
readonly TransactionType: 'AMMCreate';
|
|
9
|
+
readonly Amount: Amount;
|
|
10
|
+
readonly Amount2: Amount;
|
|
11
|
+
readonly TradingFee: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class AMMCreateTx extends AMMTransaction {
|
|
14
|
+
readonly TransactionType: "AMMCreate";
|
|
15
|
+
readonly Amount: Amount;
|
|
16
|
+
readonly Amount2: Amount;
|
|
17
|
+
readonly TradingFee: number;
|
|
18
|
+
constructor(props: AMMCreateTxFields | Record<string, unknown>);
|
|
19
|
+
validate(): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=amm-create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amm-create.d.ts","sourceRoot":"","sources":["../../src/transactions/amm-create.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC9D,QAAQ,CAAC,eAAe,EAAE,WAAW,CAAC;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,qBAAa,WAAY,SAAQ,cAAc;IAC7C,SAAkB,eAAe,EAAG,WAAW,CAAU;IACzD,QAAQ,CAAC,MAAM,EAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAG,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAG,MAAM,CAAC;gBAEjB,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQrD,QAAQ,IAAI,IAAI;CAQ1B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AMMTransaction } from '../groups/amm.js';
|
|
2
|
+
import { ValidationError } from '../errors.js';
|
|
3
|
+
import { isAmount, isNumber } from '../validation/helpers.js';
|
|
4
|
+
export class AMMCreateTx extends AMMTransaction {
|
|
5
|
+
TransactionType = 'AMMCreate';
|
|
6
|
+
Amount;
|
|
7
|
+
Amount2;
|
|
8
|
+
TradingFee;
|
|
9
|
+
constructor(props) {
|
|
10
|
+
const p = props;
|
|
11
|
+
super({ ...p, TransactionType: 'AMMCreate' });
|
|
12
|
+
this.Amount = p['Amount'];
|
|
13
|
+
this.Amount2 = p['Amount2'];
|
|
14
|
+
this.TradingFee = p['TradingFee'];
|
|
15
|
+
}
|
|
16
|
+
validate() {
|
|
17
|
+
super.validate();
|
|
18
|
+
if (!isAmount(this.Amount))
|
|
19
|
+
throw new ValidationError('AMMCreate: invalid Amount');
|
|
20
|
+
if (!isAmount(this.Amount2))
|
|
21
|
+
throw new ValidationError('AMMCreate: invalid Amount2');
|
|
22
|
+
if (!isNumber(this.TradingFee))
|
|
23
|
+
throw new ValidationError('AMMCreate: missing TradingFee');
|
|
24
|
+
if (this.TradingFee < 0 || this.TradingFee > 1000)
|
|
25
|
+
throw new ValidationError('AMMCreate: TradingFee must be between 0 and 1000');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingUR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AAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AMMDelete transaction — delete an Automated Market Maker.
|
|
3
|
+
*/
|
|
4
|
+
import type { BaseTransactionFields } from '../types/base.js';
|
|
5
|
+
import { AMMTransaction } from '../groups/amm.js';
|
|
6
|
+
export interface AMMDeleteTxFields extends BaseTransactionFields {
|
|
7
|
+
readonly TransactionType: 'AMMDelete';
|
|
8
|
+
readonly Asset: {
|
|
9
|
+
currency: string;
|
|
10
|
+
issuer?: string;
|
|
11
|
+
};
|
|
12
|
+
readonly Asset2: {
|
|
13
|
+
currency: string;
|
|
14
|
+
issuer?: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare class AMMDeleteTx extends AMMTransaction {
|
|
18
|
+
readonly TransactionType: "AMMDelete";
|
|
19
|
+
readonly Asset: {
|
|
20
|
+
currency: string;
|
|
21
|
+
issuer?: string;
|
|
22
|
+
};
|
|
23
|
+
readonly Asset2: {
|
|
24
|
+
currency: string;
|
|
25
|
+
issuer?: string;
|
|
26
|
+
};
|
|
27
|
+
constructor(props: AMMDeleteTxFields | Record<string, unknown>);
|
|
28
|
+
validate(): void;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=amm-delete.d.ts.map
|