xrpl 2.12.0-beta.0 → 2.13.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/README.md +114 -5
- package/build/xrpl-latest-min.js +1 -1
- package/build/xrpl-latest-min.js.map +1 -1
- package/build/xrpl-latest.js +7248 -7657
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.js +0 -3
- package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/client/partialPayment.js.map +1 -1
- package/dist/npm/models/common/index.d.ts +2 -1
- package/dist/npm/models/common/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/AMM.d.ts +5 -5
- package/dist/npm/models/ledger/AMM.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.d.ts +3 -4
- package/dist/npm/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/models/ledger/Amendments.d.ts +2 -2
- package/dist/npm/models/ledger/Amendments.d.ts.map +1 -1
- package/dist/npm/models/ledger/BaseLedgerEntry.d.ts +9 -1
- package/dist/npm/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/ledger/Bridge.d.ts +2 -4
- package/dist/npm/models/ledger/Bridge.d.ts.map +1 -1
- package/dist/npm/models/ledger/Check.d.ts +2 -2
- package/dist/npm/models/ledger/Check.d.ts.map +1 -1
- package/dist/npm/models/ledger/DepositPreauth.d.ts +2 -4
- package/dist/npm/models/ledger/DepositPreauth.d.ts.map +1 -1
- package/dist/npm/models/ledger/DirectoryNode.d.ts +2 -2
- package/dist/npm/models/ledger/DirectoryNode.d.ts.map +1 -1
- package/dist/npm/models/ledger/Escrow.d.ts +2 -4
- package/dist/npm/models/ledger/Escrow.d.ts.map +1 -1
- package/dist/npm/models/ledger/FeeSettings.d.ts +2 -2
- package/dist/npm/models/ledger/FeeSettings.d.ts.map +1 -1
- package/dist/npm/models/ledger/Ledger.d.ts +3 -3
- package/dist/npm/models/ledger/Ledger.d.ts.map +1 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts +2 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/ledger/LedgerHashes.d.ts +2 -2
- package/dist/npm/models/ledger/LedgerHashes.d.ts.map +1 -1
- package/dist/npm/models/ledger/NFTokenOffer.d.ts +2 -4
- package/dist/npm/models/ledger/NFTokenOffer.d.ts.map +1 -1
- package/dist/npm/models/ledger/NFTokenPage.d.ts +2 -4
- package/dist/npm/models/ledger/NFTokenPage.d.ts.map +1 -1
- package/dist/npm/models/ledger/NegativeUNL.d.ts +2 -2
- package/dist/npm/models/ledger/NegativeUNL.d.ts.map +1 -1
- package/dist/npm/models/ledger/Offer.d.ts +2 -4
- package/dist/npm/models/ledger/Offer.d.ts.map +1 -1
- package/dist/npm/models/ledger/Offer.js.map +1 -1
- package/dist/npm/models/ledger/PayChannel.d.ts +2 -4
- package/dist/npm/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/models/ledger/RippleState.d.ts +2 -4
- package/dist/npm/models/ledger/RippleState.d.ts.map +1 -1
- package/dist/npm/models/ledger/RippleState.js.map +1 -1
- package/dist/npm/models/ledger/SignerList.d.ts +2 -4
- package/dist/npm/models/ledger/SignerList.d.ts.map +1 -1
- package/dist/npm/models/ledger/SignerList.js.map +1 -1
- package/dist/npm/models/ledger/Ticket.d.ts +2 -4
- package/dist/npm/models/ledger/Ticket.d.ts.map +1 -1
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts +13 -5
- package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts.map +1 -1
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +12 -5
- package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.d.ts +3 -2
- package/dist/npm/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.js.map +1 -1
- package/dist/npm/models/methods/accountObjects.d.ts +4 -3
- package/dist/npm/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/models/methods/ammInfo.d.ts +4 -3
- package/dist/npm/models/methods/ammInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/ledger.d.ts +2 -0
- package/dist/npm/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerData.d.ts +2 -1
- package/dist/npm/models/methods/ledgerData.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +6 -6
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/serverInfo.d.ts +6 -0
- package/dist/npm/models/methods/serverInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/tx.d.ts +2 -1
- package/dist/npm/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMBid.d.ts +3 -3
- package/dist/npm/models/transactions/AMMBid.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMBid.js.map +1 -1
- package/dist/npm/models/transactions/AMMDeposit.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMDeposit.js.map +1 -1
- package/dist/npm/models/transactions/AMMWithdraw.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMWithdraw.js.map +1 -1
- package/dist/npm/models/transactions/NFTokenBurn.d.ts +3 -3
- package/dist/npm/models/transactions/NFTokenBurn.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenBurn.js +2 -4
- package/dist/npm/models/transactions/NFTokenBurn.js.map +1 -1
- package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts +3 -3
- package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenCreateOffer.js +2 -0
- package/dist/npm/models/transactions/NFTokenCreateOffer.js.map +1 -1
- package/dist/npm/models/transactions/NFTokenMint.d.ts +2 -2
- package/dist/npm/models/transactions/NFTokenMint.d.ts.map +1 -1
- package/dist/npm/models/transactions/NFTokenMint.js +1 -0
- package/dist/npm/models/transactions/NFTokenMint.js.map +1 -1
- package/dist/npm/models/transactions/UNLModify.d.ts +2 -1
- package/dist/npm/models/transactions/UNLModify.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts +2 -2
- package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js +4 -26
- package/dist/npm/models/transactions/XChainAccountCreateCommit.js.map +1 -1
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts +5 -5
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js +11 -68
- package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -1
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts +5 -5
- package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js +10 -59
- package/dist/npm/models/transactions/XChainAddClaimAttestation.js.map +1 -1
- package/dist/npm/models/transactions/XChainClaim.d.ts +2 -2
- package/dist/npm/models/transactions/XChainClaim.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainClaim.js +5 -30
- package/dist/npm/models/transactions/XChainClaim.js.map +1 -1
- package/dist/npm/models/transactions/XChainCommit.d.ts +2 -2
- package/dist/npm/models/transactions/XChainCommit.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainCommit.js +4 -24
- package/dist/npm/models/transactions/XChainCommit.js.map +1 -1
- package/dist/npm/models/transactions/XChainCreateBridge.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainCreateBridge.js +3 -17
- package/dist/npm/models/transactions/XChainCreateBridge.js.map +1 -1
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts +2 -2
- package/dist/npm/models/transactions/XChainCreateClaimID.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainCreateClaimID.js +3 -19
- package/dist/npm/models/transactions/XChainCreateClaimID.js.map +1 -1
- package/dist/npm/models/transactions/XChainModifyBridge.d.ts.map +1 -1
- package/dist/npm/models/transactions/XChainModifyBridge.js +3 -14
- package/dist/npm/models/transactions/XChainModifyBridge.js.map +1 -1
- package/dist/npm/models/transactions/accountDelete.d.ts +2 -2
- package/dist/npm/models/transactions/accountDelete.d.ts.map +1 -1
- package/dist/npm/models/transactions/accountDelete.js +2 -11
- package/dist/npm/models/transactions/accountDelete.js.map +1 -1
- package/dist/npm/models/transactions/accountSet.d.ts +2 -2
- package/dist/npm/models/transactions/accountSet.d.ts.map +1 -1
- package/dist/npm/models/transactions/accountSet.js +1 -5
- package/dist/npm/models/transactions/accountSet.js.map +1 -1
- package/dist/npm/models/transactions/checkCash.d.ts.map +1 -1
- package/dist/npm/models/transactions/checkCash.js.map +1 -1
- package/dist/npm/models/transactions/checkCreate.d.ts +2 -2
- package/dist/npm/models/transactions/checkCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/checkCreate.js +2 -10
- package/dist/npm/models/transactions/checkCreate.js.map +1 -1
- package/dist/npm/models/transactions/common.d.ts +7 -1
- package/dist/npm/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/models/transactions/common.js +39 -38
- package/dist/npm/models/transactions/common.js.map +1 -1
- package/dist/npm/models/transactions/depositPreauth.d.ts.map +1 -1
- package/dist/npm/models/transactions/depositPreauth.js.map +1 -1
- package/dist/npm/models/transactions/escrowCancel.d.ts +3 -3
- package/dist/npm/models/transactions/escrowCancel.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowCancel.js +5 -8
- package/dist/npm/models/transactions/escrowCancel.js.map +1 -1
- package/dist/npm/models/transactions/escrowCreate.d.ts +2 -2
- package/dist/npm/models/transactions/escrowCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowCreate.js +2 -10
- package/dist/npm/models/transactions/escrowCreate.js.map +1 -1
- package/dist/npm/models/transactions/escrowFinish.d.ts +3 -3
- package/dist/npm/models/transactions/escrowFinish.d.ts.map +1 -1
- package/dist/npm/models/transactions/escrowFinish.js +5 -8
- package/dist/npm/models/transactions/escrowFinish.js.map +1 -1
- package/dist/npm/models/transactions/index.d.ts +1 -1
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/offerCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/offerCreate.js.map +1 -1
- package/dist/npm/models/transactions/payment.d.ts +2 -2
- package/dist/npm/models/transactions/payment.d.ts.map +1 -1
- package/dist/npm/models/transactions/payment.js +2 -9
- package/dist/npm/models/transactions/payment.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/models/transactions/paymentChannelClaim.js.map +1 -1
- package/dist/npm/models/transactions/paymentChannelCreate.d.ts +2 -2
- package/dist/npm/models/transactions/paymentChannelCreate.d.ts.map +1 -1
- package/dist/npm/models/transactions/paymentChannelCreate.js +2 -10
- package/dist/npm/models/transactions/paymentChannelCreate.js.map +1 -1
- package/dist/npm/models/transactions/signerListSet.d.ts.map +1 -1
- package/dist/npm/models/transactions/signerListSet.js.map +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +4 -0
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/models/utils/flags.js +17 -28
- package/dist/npm/models/utils/flags.js.map +1 -1
- package/dist/npm/snippets/src/bridgeTransfer.js +16 -13
- package/dist/npm/snippets/src/bridgeTransfer.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.js +0 -3
- package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/src/client/partialPayment.js.map +1 -1
- package/dist/npm/src/models/common/index.d.ts +2 -1
- package/dist/npm/src/models/common/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AMM.d.ts +5 -5
- package/dist/npm/src/models/ledger/AMM.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.d.ts +3 -4
- package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/AccountRoot.js.map +1 -1
- package/dist/npm/src/models/ledger/Amendments.d.ts +2 -2
- package/dist/npm/src/models/ledger/Amendments.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts +9 -1
- package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Bridge.d.ts +2 -4
- package/dist/npm/src/models/ledger/Bridge.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Check.d.ts +2 -2
- package/dist/npm/src/models/ledger/Check.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/DepositPreauth.d.ts +2 -4
- package/dist/npm/src/models/ledger/DepositPreauth.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/DirectoryNode.d.ts +2 -2
- package/dist/npm/src/models/ledger/DirectoryNode.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Escrow.d.ts +2 -4
- package/dist/npm/src/models/ledger/Escrow.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/FeeSettings.d.ts +2 -2
- package/dist/npm/src/models/ledger/FeeSettings.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Ledger.d.ts +3 -3
- package/dist/npm/src/models/ledger/Ledger.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts +2 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/LedgerHashes.d.ts +2 -2
- package/dist/npm/src/models/ledger/LedgerHashes.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/NFTokenOffer.d.ts +2 -4
- package/dist/npm/src/models/ledger/NFTokenOffer.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/NFTokenPage.d.ts +2 -4
- package/dist/npm/src/models/ledger/NFTokenPage.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/NegativeUNL.d.ts +2 -2
- package/dist/npm/src/models/ledger/NegativeUNL.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Offer.d.ts +2 -4
- package/dist/npm/src/models/ledger/Offer.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Offer.js.map +1 -1
- package/dist/npm/src/models/ledger/PayChannel.d.ts +2 -4
- package/dist/npm/src/models/ledger/PayChannel.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/RippleState.d.ts +2 -4
- package/dist/npm/src/models/ledger/RippleState.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/RippleState.js.map +1 -1
- package/dist/npm/src/models/ledger/SignerList.d.ts +2 -4
- package/dist/npm/src/models/ledger/SignerList.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/SignerList.js.map +1 -1
- package/dist/npm/src/models/ledger/Ticket.d.ts +2 -4
- package/dist/npm/src/models/ledger/Ticket.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts +13 -5
- package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +12 -5
- package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.d.ts +3 -2
- package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.js.map +1 -1
- package/dist/npm/src/models/methods/accountObjects.d.ts +4 -3
- package/dist/npm/src/models/methods/accountObjects.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ammInfo.d.ts +4 -3
- package/dist/npm/src/models/methods/ammInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledger.d.ts +2 -0
- package/dist/npm/src/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerData.d.ts +2 -1
- package/dist/npm/src/models/methods/ledgerData.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +6 -6
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/serverInfo.d.ts +6 -0
- package/dist/npm/src/models/methods/serverInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/tx.d.ts +2 -1
- package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMBid.d.ts +3 -3
- package/dist/npm/src/models/transactions/AMMBid.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMBid.js.map +1 -1
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -1
- package/dist/npm/src/models/transactions/AMMWithdraw.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMWithdraw.js.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenBurn.d.ts +3 -3
- package/dist/npm/src/models/transactions/NFTokenBurn.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenBurn.js +2 -4
- package/dist/npm/src/models/transactions/NFTokenBurn.js.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.d.ts +3 -3
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.js +2 -0
- package/dist/npm/src/models/transactions/NFTokenCreateOffer.js.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenMint.d.ts +2 -2
- package/dist/npm/src/models/transactions/NFTokenMint.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/NFTokenMint.js +1 -0
- package/dist/npm/src/models/transactions/NFTokenMint.js.map +1 -1
- package/dist/npm/src/models/transactions/UNLModify.d.ts +2 -1
- package/dist/npm/src/models/transactions/UNLModify.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts +2 -2
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js +4 -26
- package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts +5 -5
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js +11 -68
- package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts +5 -5
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js +10 -59
- package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainClaim.d.ts +2 -2
- package/dist/npm/src/models/transactions/XChainClaim.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainClaim.js +5 -30
- package/dist/npm/src/models/transactions/XChainClaim.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainCommit.d.ts +2 -2
- package/dist/npm/src/models/transactions/XChainCommit.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainCommit.js +4 -24
- package/dist/npm/src/models/transactions/XChainCommit.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainCreateBridge.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainCreateBridge.js +3 -17
- package/dist/npm/src/models/transactions/XChainCreateBridge.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts +2 -2
- package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js +3 -19
- package/dist/npm/src/models/transactions/XChainCreateClaimID.js.map +1 -1
- package/dist/npm/src/models/transactions/XChainModifyBridge.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/XChainModifyBridge.js +3 -14
- package/dist/npm/src/models/transactions/XChainModifyBridge.js.map +1 -1
- package/dist/npm/src/models/transactions/accountDelete.d.ts +2 -2
- package/dist/npm/src/models/transactions/accountDelete.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/accountDelete.js +2 -11
- package/dist/npm/src/models/transactions/accountDelete.js.map +1 -1
- package/dist/npm/src/models/transactions/accountSet.d.ts +2 -2
- package/dist/npm/src/models/transactions/accountSet.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/accountSet.js +1 -5
- package/dist/npm/src/models/transactions/accountSet.js.map +1 -1
- package/dist/npm/src/models/transactions/checkCash.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/checkCash.js.map +1 -1
- package/dist/npm/src/models/transactions/checkCreate.d.ts +2 -2
- package/dist/npm/src/models/transactions/checkCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/checkCreate.js +2 -10
- package/dist/npm/src/models/transactions/checkCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/common.d.ts +7 -1
- package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/common.js +39 -38
- package/dist/npm/src/models/transactions/common.js.map +1 -1
- package/dist/npm/src/models/transactions/depositPreauth.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/depositPreauth.js.map +1 -1
- package/dist/npm/src/models/transactions/escrowCancel.d.ts +3 -3
- package/dist/npm/src/models/transactions/escrowCancel.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowCancel.js +5 -8
- package/dist/npm/src/models/transactions/escrowCancel.js.map +1 -1
- package/dist/npm/src/models/transactions/escrowCreate.d.ts +2 -2
- package/dist/npm/src/models/transactions/escrowCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowCreate.js +2 -10
- package/dist/npm/src/models/transactions/escrowCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/escrowFinish.d.ts +3 -3
- package/dist/npm/src/models/transactions/escrowFinish.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/escrowFinish.js +5 -8
- package/dist/npm/src/models/transactions/escrowFinish.js.map +1 -1
- package/dist/npm/src/models/transactions/index.d.ts +1 -1
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js.map +1 -1
- package/dist/npm/src/models/transactions/offerCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/offerCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/payment.d.ts +2 -2
- package/dist/npm/src/models/transactions/payment.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/payment.js +2 -9
- package/dist/npm/src/models/transactions/payment.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelClaim.js.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts +2 -2
- package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/paymentChannelCreate.js +2 -10
- package/dist/npm/src/models/transactions/paymentChannelCreate.js.map +1 -1
- package/dist/npm/src/models/transactions/signerListSet.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/signerListSet.js.map +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +4 -0
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js.map +1 -1
- package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
- package/dist/npm/src/models/utils/flags.js +17 -28
- package/dist/npm/src/models/utils/flags.js.map +1 -1
- package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/src/utils/getXChainClaimID.d.ts +3 -0
- package/dist/npm/src/utils/getXChainClaimID.d.ts.map +1 -0
- package/dist/npm/src/utils/getXChainClaimID.js +29 -0
- package/dist/npm/src/utils/getXChainClaimID.js.map +1 -0
- package/dist/npm/src/utils/hashes/hashLedger.d.ts +2 -1
- package/dist/npm/src/utils/hashes/hashLedger.d.ts.map +1 -1
- package/dist/npm/src/utils/hashes/hashLedger.js.map +1 -1
- package/dist/npm/src/utils/index.d.ts +2 -1
- package/dist/npm/src/utils/index.d.ts.map +1 -1
- package/dist/npm/src/utils/index.js +3 -1
- package/dist/npm/src/utils/index.js.map +1 -1
- package/dist/npm/src/utils/signPaymentChannelClaim.d.ts +1 -1
- package/dist/npm/src/utils/signPaymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/src/utils/signPaymentChannelClaim.js +2 -2
- package/dist/npm/src/utils/signPaymentChannelClaim.js.map +1 -1
- package/dist/npm/src/utils/verifyPaymentChannelClaim.d.ts +1 -1
- package/dist/npm/src/utils/verifyPaymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/src/utils/verifyPaymentChannelClaim.js +2 -2
- package/dist/npm/src/utils/verifyPaymentChannelClaim.js.map +1 -1
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/dist/npm/utils/getXChainClaimID.d.ts +3 -0
- package/dist/npm/utils/getXChainClaimID.d.ts.map +1 -0
- package/dist/npm/utils/getXChainClaimID.js +29 -0
- package/dist/npm/utils/getXChainClaimID.js.map +1 -0
- package/dist/npm/utils/hashes/hashLedger.d.ts +2 -1
- package/dist/npm/utils/hashes/hashLedger.d.ts.map +1 -1
- package/dist/npm/utils/hashes/hashLedger.js.map +1 -1
- package/dist/npm/utils/index.d.ts +2 -1
- package/dist/npm/utils/index.d.ts.map +1 -1
- package/dist/npm/utils/index.js +3 -1
- package/dist/npm/utils/index.js.map +1 -1
- package/dist/npm/utils/signPaymentChannelClaim.d.ts +1 -1
- package/dist/npm/utils/signPaymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/utils/signPaymentChannelClaim.js +2 -2
- package/dist/npm/utils/signPaymentChannelClaim.js.map +1 -1
- package/dist/npm/utils/verifyPaymentChannelClaim.d.ts +1 -1
- package/dist/npm/utils/verifyPaymentChannelClaim.d.ts.map +1 -1
- package/dist/npm/utils/verifyPaymentChannelClaim.js +2 -2
- package/dist/npm/utils/verifyPaymentChannelClaim.js.map +1 -1
- package/package.json +14 -6
- package/src/Wallet/defaultFaucets.ts +0 -4
- package/src/client/partialPayment.ts +6 -2
- package/src/models/common/index.ts +2 -1
- package/src/models/ledger/AMM.ts +5 -5
- package/src/models/ledger/AccountRoot.ts +8 -12
- package/src/models/ledger/Amendments.ts +4 -2
- package/src/models/ledger/BaseLedgerEntry.ts +25 -1
- package/src/models/ledger/Bridge.ts +2 -14
- package/src/models/ledger/Check.ts +2 -2
- package/src/models/ledger/DepositPreauth.ts +4 -12
- package/src/models/ledger/DirectoryNode.ts +4 -2
- package/src/models/ledger/Escrow.ts +2 -12
- package/src/models/ledger/FeeSettings.ts +2 -2
- package/src/models/ledger/Ledger.ts +9 -3
- package/src/models/ledger/LedgerEntry.ts +22 -1
- package/src/models/ledger/LedgerHashes.ts +4 -2
- package/src/models/ledger/NFTokenOffer.ts +2 -4
- package/src/models/ledger/NFTokenPage.ts +2 -4
- package/src/models/ledger/NegativeUNL.ts +4 -2
- package/src/models/ledger/Offer.ts +2 -12
- package/src/models/ledger/PayChannel.ts +2 -12
- package/src/models/ledger/RippleState.ts +2 -12
- package/src/models/ledger/SignerList.ts +2 -12
- package/src/models/ledger/Ticket.ts +2 -12
- package/src/models/ledger/XChainOwnedClaimID.ts +22 -14
- package/src/models/ledger/XChainOwnedCreateAccountClaimID.ts +19 -14
- package/src/models/ledger/index.ts +5 -1
- package/src/models/methods/accountObjects.ts +10 -41
- package/src/models/methods/ammInfo.ts +8 -3
- package/src/models/methods/ledger.ts +5 -0
- package/src/models/methods/ledgerData.ts +5 -1
- package/src/models/methods/ledgerEntry.ts +6 -6
- package/src/models/methods/serverInfo.ts +21 -0
- package/src/models/methods/tx.ts +4 -2
- package/src/models/transactions/AMMBid.ts +5 -6
- package/src/models/transactions/AMMDeposit.ts +0 -1
- package/src/models/transactions/AMMWithdraw.ts +0 -1
- package/src/models/transactions/NFTokenBurn.ts +13 -9
- package/src/models/transactions/NFTokenCreateOffer.ts +8 -2
- package/src/models/transactions/NFTokenMint.ts +11 -2
- package/src/models/transactions/UNLModify.ts +3 -1
- package/src/models/transactions/XChainAccountCreateCommit.ts +10 -48
- package/src/models/transactions/XChainAddAccountCreateAttestation.ts +40 -142
- package/src/models/transactions/XChainAddClaimAttestation.ts +39 -120
- package/src/models/transactions/XChainClaim.ts +18 -42
- package/src/models/transactions/XChainCommit.ts +17 -36
- package/src/models/transactions/XChainCreateBridge.ts +7 -29
- package/src/models/transactions/XChainCreateClaimID.ts +9 -33
- package/src/models/transactions/XChainModifyBridge.ts +7 -23
- package/src/models/transactions/accountDelete.ts +12 -18
- package/src/models/transactions/accountSet.ts +10 -13
- package/src/models/transactions/checkCash.ts +0 -1
- package/src/models/transactions/checkCreate.ts +8 -16
- package/src/models/transactions/common.ts +102 -54
- package/src/models/transactions/depositPreauth.ts +0 -1
- package/src/models/transactions/escrowCancel.ts +16 -12
- package/src/models/transactions/escrowCreate.ts +12 -17
- package/src/models/transactions/escrowFinish.ts +16 -12
- package/src/models/transactions/index.ts +6 -1
- package/src/models/transactions/offerCreate.ts +0 -1
- package/src/models/transactions/payment.ts +8 -15
- package/src/models/transactions/paymentChannelClaim.ts +0 -1
- package/src/models/transactions/paymentChannelCreate.ts +12 -22
- package/src/models/transactions/signerListSet.ts +0 -1
- package/src/models/transactions/transaction.ts +5 -1
- package/src/models/utils/flags.ts +18 -29
- package/src/sugar/autofill.ts +0 -2
- package/src/utils/getXChainClaimID.ts +64 -0
- package/src/utils/hashes/hashLedger.ts +4 -1
- package/src/utils/index.ts +2 -0
- package/src/utils/signPaymentChannelClaim.ts +3 -3
- package/src/utils/verifyPaymentChannelClaim.ts +3 -3
@@ -1,35 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validateXChainAccountCreateCommit = void 0;
|
4
|
-
const errors_1 = require("../../errors");
|
5
4
|
const common_1 = require("./common");
|
6
5
|
function validateXChainAccountCreateCommit(tx) {
|
7
6
|
(0, common_1.validateBaseTransaction)(tx);
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field XChainBridge');
|
13
|
-
}
|
14
|
-
if (tx.SignatureReward == null) {
|
15
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field SignatureReward');
|
16
|
-
}
|
17
|
-
if (typeof tx.SignatureReward !== 'number' &&
|
18
|
-
typeof tx.SignatureReward !== 'string') {
|
19
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field SignatureReward');
|
20
|
-
}
|
21
|
-
if (tx.Destination == null) {
|
22
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Destination');
|
23
|
-
}
|
24
|
-
if (typeof tx.Destination !== 'string') {
|
25
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field Destination');
|
26
|
-
}
|
27
|
-
if (tx.Amount == null) {
|
28
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: missing field Amount');
|
29
|
-
}
|
30
|
-
if (!(0, common_1.isAmount)(tx.Amount)) {
|
31
|
-
throw new errors_1.ValidationError('XChainAccountCreateCommit: invalid field Amount');
|
32
|
-
}
|
7
|
+
(0, common_1.validateRequiredField)(tx, 'XChainBridge', common_1.isXChainBridge);
|
8
|
+
(0, common_1.validateRequiredField)(tx, 'SignatureReward', common_1.isAmount);
|
9
|
+
(0, common_1.validateRequiredField)(tx, 'Destination', common_1.isAccount);
|
10
|
+
(0, common_1.validateRequiredField)(tx, 'Amount', common_1.isAmount);
|
33
11
|
}
|
34
12
|
exports.validateXChainAccountCreateCommit = validateXChainAccountCreateCommit;
|
35
13
|
//# sourceMappingURL=XChainAccountCreateCommit.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainAccountCreateCommit.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAccountCreateCommit.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"XChainAccountCreateCommit.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAccountCreateCommit.ts"],"names":[],"mappings":";;;AAEA,qCAQiB;AA8CjB,SAAgB,iCAAiC,CAC/C,EAA2B;IAE3B,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAA,8BAAqB,EAAC,EAAE,EAAE,cAAc,EAAE,uBAAc,CAAC,CAAA;IAEzD,IAAA,8BAAqB,EAAC,EAAE,EAAE,iBAAiB,EAAE,iBAAQ,CAAC,CAAA;IAEtD,IAAA,8BAAqB,EAAC,EAAE,EAAE,aAAa,EAAE,kBAAS,CAAC,CAAA;IAEnD,IAAA,8BAAqB,EAAC,EAAE,EAAE,QAAQ,EAAE,iBAAQ,CAAC,CAAA;AAC/C,CAAC;AAZD,8EAYC"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common';
|
2
|
-
import { BaseTransaction } from './common';
|
2
|
+
import { Account, BaseTransaction } from './common';
|
3
3
|
export interface XChainAddAccountCreateAttestation extends BaseTransaction {
|
4
4
|
TransactionType: 'XChainAddAccountCreateAttestation';
|
5
5
|
Amount: Amount;
|
6
|
-
AttestationRewardAccount:
|
7
|
-
AttestationSignerAccount:
|
8
|
-
Destination:
|
9
|
-
OtherChainSource:
|
6
|
+
AttestationRewardAccount: Account;
|
7
|
+
AttestationSignerAccount: Account;
|
8
|
+
Destination: Account;
|
9
|
+
OtherChainSource: Account;
|
10
10
|
PublicKey: string;
|
11
11
|
Signature: string;
|
12
12
|
SignatureReward: Amount;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainAddAccountCreateAttestation.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddAccountCreateAttestation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"XChainAddAccountCreateAttestation.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddAccountCreateAttestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EACL,OAAO,EACP,eAAe,EAQhB,MAAM,UAAU,CAAA;AASjB,MAAM,WAAW,iCAAkC,SAAQ,eAAe;IACxE,eAAe,EAAE,mCAAmC,CAAA;IAMpD,MAAM,EAAE,MAAM,CAAA;IAKd,wBAAwB,EAAE,OAAO,CAAA;IAKjC,wBAAwB,EAAE,OAAO,CAAA;IAKjC,WAAW,EAAE,OAAO,CAAA;IAMpB,gBAAgB,EAAE,OAAO,CAAA;IAKzB,SAAS,EAAE,MAAM,CAAA;IAKjB,SAAS,EAAE,MAAM,CAAA;IAKjB,eAAe,EAAE,MAAM,CAAA;IAKvB,mBAAmB,EAAE,CAAC,GAAG,CAAC,CAAA;IAK1B,wBAAwB,EAAE,MAAM,GAAG,MAAM,CAAA;IAKzC,YAAY,EAAE,YAAY,CAAA;CAC3B;AAQD,wBAAgB,yCAAyC,CACvD,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1B,IAAI,CAgCN"}
|
@@ -1,77 +1,20 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validateXChainAddAccountCreateAttestation = void 0;
|
4
|
-
const errors_1 = require("../../errors");
|
5
4
|
const common_1 = require("./common");
|
6
5
|
function validateXChainAddAccountCreateAttestation(tx) {
|
7
6
|
(0, common_1.validateBaseTransaction)(tx);
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
20
|
-
if (tx.AttestationSignerAccount == null) {
|
21
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field AttestationSignerAccount');
|
22
|
-
}
|
23
|
-
if (typeof tx.AttestationSignerAccount !== 'string') {
|
24
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field AttestationSignerAccount');
|
25
|
-
}
|
26
|
-
if (tx.Destination == null) {
|
27
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Destination');
|
28
|
-
}
|
29
|
-
if (typeof tx.Destination !== 'string') {
|
30
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Destination');
|
31
|
-
}
|
32
|
-
if (tx.OtherChainSource == null) {
|
33
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field OtherChainSource');
|
34
|
-
}
|
35
|
-
if (typeof tx.OtherChainSource !== 'string') {
|
36
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field OtherChainSource');
|
37
|
-
}
|
38
|
-
if (tx.PublicKey == null) {
|
39
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field PublicKey');
|
40
|
-
}
|
41
|
-
if (typeof tx.PublicKey !== 'string') {
|
42
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field PublicKey');
|
43
|
-
}
|
44
|
-
if (tx.Signature == null) {
|
45
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field Signature');
|
46
|
-
}
|
47
|
-
if (typeof tx.Signature !== 'string') {
|
48
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field Signature');
|
49
|
-
}
|
50
|
-
if (tx.SignatureReward == null) {
|
51
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field SignatureReward');
|
52
|
-
}
|
53
|
-
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
54
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field SignatureReward');
|
55
|
-
}
|
56
|
-
if (tx.WasLockingChainSend == null) {
|
57
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field WasLockingChainSend');
|
58
|
-
}
|
59
|
-
if (tx.WasLockingChainSend !== 0 && tx.WasLockingChainSend !== 1) {
|
60
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field WasLockingChainSend');
|
61
|
-
}
|
62
|
-
if (tx.XChainAccountCreateCount == null) {
|
63
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field XChainAccountCreateCount');
|
64
|
-
}
|
65
|
-
if (typeof tx.XChainAccountCreateCount !== 'string' &&
|
66
|
-
typeof tx.XChainAccountCreateCount !== 'number') {
|
67
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field XChainAccountCreateCount');
|
68
|
-
}
|
69
|
-
if (tx.XChainBridge == null) {
|
70
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: missing field XChainBridge');
|
71
|
-
}
|
72
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
73
|
-
throw new errors_1.ValidationError('XChainAddAccountCreateAttestation: invalid field XChainBridge');
|
74
|
-
}
|
7
|
+
(0, common_1.validateRequiredField)(tx, 'Amount', common_1.isAmount);
|
8
|
+
(0, common_1.validateRequiredField)(tx, 'AttestationRewardAccount', common_1.isAccount);
|
9
|
+
(0, common_1.validateRequiredField)(tx, 'AttestationSignerAccount', common_1.isAccount);
|
10
|
+
(0, common_1.validateRequiredField)(tx, 'Destination', common_1.isAccount);
|
11
|
+
(0, common_1.validateRequiredField)(tx, 'OtherChainSource', common_1.isAccount);
|
12
|
+
(0, common_1.validateRequiredField)(tx, 'PublicKey', common_1.isString);
|
13
|
+
(0, common_1.validateRequiredField)(tx, 'Signature', common_1.isString);
|
14
|
+
(0, common_1.validateRequiredField)(tx, 'SignatureReward', common_1.isAmount);
|
15
|
+
(0, common_1.validateRequiredField)(tx, 'WasLockingChainSend', (inp) => inp === 0 || inp === 1);
|
16
|
+
(0, common_1.validateRequiredField)(tx, 'XChainAccountCreateCount', (inp) => (0, common_1.isNumber)(inp) || (0, common_1.isString)(inp));
|
17
|
+
(0, common_1.validateRequiredField)(tx, 'XChainBridge', common_1.isXChainBridge);
|
75
18
|
}
|
76
19
|
exports.validateXChainAddAccountCreateAttestation = validateXChainAddAccountCreateAttestation;
|
77
20
|
//# sourceMappingURL=XChainAddAccountCreateAttestation.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainAddAccountCreateAttestation.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddAccountCreateAttestation.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"XChainAddAccountCreateAttestation.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddAccountCreateAttestation.ts"],"names":[],"mappings":";;;AAEA,qCAUiB;AA4EjB,SAAgB,yCAAyC,CACvD,EAA2B;IAE3B,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAA,8BAAqB,EAAC,EAAE,EAAE,QAAQ,EAAE,iBAAQ,CAAC,CAAA;IAE7C,IAAA,8BAAqB,EAAC,EAAE,EAAE,0BAA0B,EAAE,kBAAS,CAAC,CAAA;IAEhE,IAAA,8BAAqB,EAAC,EAAE,EAAE,0BAA0B,EAAE,kBAAS,CAAC,CAAA;IAEhE,IAAA,8BAAqB,EAAC,EAAE,EAAE,aAAa,EAAE,kBAAS,CAAC,CAAA;IAEnD,IAAA,8BAAqB,EAAC,EAAE,EAAE,kBAAkB,EAAE,kBAAS,CAAC,CAAA;IAExD,IAAA,8BAAqB,EAAC,EAAE,EAAE,WAAW,EAAE,iBAAQ,CAAC,CAAA;IAEhD,IAAA,8BAAqB,EAAC,EAAE,EAAE,WAAW,EAAE,iBAAQ,CAAC,CAAA;IAEhD,IAAA,8BAAqB,EAAC,EAAE,EAAE,iBAAiB,EAAE,iBAAQ,CAAC,CAAA;IAEtD,IAAA,8BAAqB,EACnB,EAAE,EACF,qBAAqB,EACrB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,CAChC,CAAA;IAED,IAAA,8BAAqB,EACnB,EAAE,EACF,0BAA0B,EAC1B,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,iBAAQ,EAAC,GAAG,CAAC,IAAI,IAAA,iBAAQ,EAAC,GAAG,CAAC,CACxC,CAAA;IAED,IAAA,8BAAqB,EAAC,EAAE,EAAE,cAAc,EAAE,uBAAc,CAAC,CAAA;AAC3D,CAAC;AAlCD,8FAkCC"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common';
|
2
|
-
import { BaseTransaction } from './common';
|
2
|
+
import { Account, BaseTransaction } from './common';
|
3
3
|
export interface XChainAddClaimAttestation extends BaseTransaction {
|
4
4
|
TransactionType: 'XChainAddClaimAttestation';
|
5
5
|
Amount: Amount;
|
6
|
-
AttestationRewardAccount:
|
7
|
-
AttestationSignerAccount:
|
8
|
-
Destination?:
|
9
|
-
OtherChainSource:
|
6
|
+
AttestationRewardAccount: Account;
|
7
|
+
AttestationSignerAccount: Account;
|
8
|
+
Destination?: Account;
|
9
|
+
OtherChainSource: Account;
|
10
10
|
PublicKey: string;
|
11
11
|
Signature: string;
|
12
12
|
WasLockingChainSend: 0 | 1;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainAddClaimAttestation.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddClaimAttestation.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"XChainAddClaimAttestation.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddClaimAttestation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EACL,OAAO,EACP,eAAe,EAShB,MAAM,UAAU,CAAA;AAQjB,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAChE,eAAe,EAAE,2BAA2B,CAAA;IAK5C,MAAM,EAAE,MAAM,CAAA;IAKd,wBAAwB,EAAE,OAAO,CAAA;IAKjC,wBAAwB,EAAE,OAAO,CAAA;IAMjC,WAAW,CAAC,EAAE,OAAO,CAAA;IAMrB,gBAAgB,EAAE,OAAO,CAAA;IAKzB,SAAS,EAAE,MAAM,CAAA;IAKjB,SAAS,EAAE,MAAM,CAAA;IAKjB,mBAAmB,EAAE,CAAC,GAAG,CAAC,CAAA;IAK1B,YAAY,EAAE,YAAY,CAAA;IAM1B,aAAa,EAAE,MAAM,GAAG,MAAM,CAAA;CAC/B;AAQD,wBAAgB,iCAAiC,CAC/C,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC1B,IAAI,CA8BN"}
|
@@ -1,68 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validateXChainAddClaimAttestation = void 0;
|
4
|
-
const errors_1 = require("../../errors");
|
5
4
|
const common_1 = require("./common");
|
6
5
|
function validateXChainAddClaimAttestation(tx) {
|
7
6
|
(0, common_1.validateBaseTransaction)(tx);
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field AttestationRewardAccount');
|
19
|
-
}
|
20
|
-
if (tx.AttestationSignerAccount == null) {
|
21
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field AttestationSignerAccount');
|
22
|
-
}
|
23
|
-
if (typeof tx.AttestationSignerAccount !== 'string') {
|
24
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field AttestationSignerAccount');
|
25
|
-
}
|
26
|
-
if (tx.Destination !== undefined && typeof tx.Destination !== 'string') {
|
27
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Destination');
|
28
|
-
}
|
29
|
-
if (tx.OtherChainSource == null) {
|
30
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field OtherChainSource');
|
31
|
-
}
|
32
|
-
if (typeof tx.OtherChainSource !== 'string') {
|
33
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field OtherChainSource');
|
34
|
-
}
|
35
|
-
if (tx.PublicKey == null) {
|
36
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field PublicKey');
|
37
|
-
}
|
38
|
-
if (typeof tx.PublicKey !== 'string') {
|
39
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field PublicKey');
|
40
|
-
}
|
41
|
-
if (tx.Signature == null) {
|
42
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field Signature');
|
43
|
-
}
|
44
|
-
if (typeof tx.Signature !== 'string') {
|
45
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field Signature');
|
46
|
-
}
|
47
|
-
if (tx.WasLockingChainSend == null) {
|
48
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field WasLockingChainSend');
|
49
|
-
}
|
50
|
-
if (tx.WasLockingChainSend !== 0 && tx.WasLockingChainSend !== 1) {
|
51
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field WasLockingChainSend');
|
52
|
-
}
|
53
|
-
if (tx.XChainBridge == null) {
|
54
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field XChainBridge');
|
55
|
-
}
|
56
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
57
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field XChainBridge');
|
58
|
-
}
|
59
|
-
if (tx.XChainClaimID == null) {
|
60
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: missing field XChainClaimID');
|
61
|
-
}
|
62
|
-
if (typeof tx.XChainClaimID !== 'string' &&
|
63
|
-
typeof tx.XChainClaimID !== 'number') {
|
64
|
-
throw new errors_1.ValidationError('XChainAddClaimAttestation: invalid field XChainClaimID');
|
65
|
-
}
|
7
|
+
(0, common_1.validateRequiredField)(tx, 'Amount', common_1.isAmount);
|
8
|
+
(0, common_1.validateRequiredField)(tx, 'AttestationRewardAccount', common_1.isAccount);
|
9
|
+
(0, common_1.validateRequiredField)(tx, 'AttestationSignerAccount', common_1.isAccount);
|
10
|
+
(0, common_1.validateOptionalField)(tx, 'Destination', common_1.isAccount);
|
11
|
+
(0, common_1.validateRequiredField)(tx, 'OtherChainSource', common_1.isAccount);
|
12
|
+
(0, common_1.validateRequiredField)(tx, 'PublicKey', common_1.isString);
|
13
|
+
(0, common_1.validateRequiredField)(tx, 'Signature', common_1.isString);
|
14
|
+
(0, common_1.validateRequiredField)(tx, 'WasLockingChainSend', (inp) => inp === 0 || inp === 1);
|
15
|
+
(0, common_1.validateRequiredField)(tx, 'XChainBridge', common_1.isXChainBridge);
|
16
|
+
(0, common_1.validateRequiredField)(tx, 'XChainClaimID', (inp) => (0, common_1.isNumber)(inp) || (0, common_1.isString)(inp));
|
66
17
|
}
|
67
18
|
exports.validateXChainAddClaimAttestation = validateXChainAddClaimAttestation;
|
68
19
|
//# sourceMappingURL=XChainAddClaimAttestation.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainAddClaimAttestation.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddClaimAttestation.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"XChainAddClaimAttestation.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainAddClaimAttestation.ts"],"names":[],"mappings":";;;AAEA,qCAWiB;AAuEjB,SAAgB,iCAAiC,CAC/C,EAA2B;IAE3B,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAA,8BAAqB,EAAC,EAAE,EAAE,QAAQ,EAAE,iBAAQ,CAAC,CAAA;IAE7C,IAAA,8BAAqB,EAAC,EAAE,EAAE,0BAA0B,EAAE,kBAAS,CAAC,CAAA;IAEhE,IAAA,8BAAqB,EAAC,EAAE,EAAE,0BAA0B,EAAE,kBAAS,CAAC,CAAA;IAEhE,IAAA,8BAAqB,EAAC,EAAE,EAAE,aAAa,EAAE,kBAAS,CAAC,CAAA;IAEnD,IAAA,8BAAqB,EAAC,EAAE,EAAE,kBAAkB,EAAE,kBAAS,CAAC,CAAA;IAExD,IAAA,8BAAqB,EAAC,EAAE,EAAE,WAAW,EAAE,iBAAQ,CAAC,CAAA;IAEhD,IAAA,8BAAqB,EAAC,EAAE,EAAE,WAAW,EAAE,iBAAQ,CAAC,CAAA;IAEhD,IAAA,8BAAqB,EACnB,EAAE,EACF,qBAAqB,EACrB,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,CAChC,CAAA;IAED,IAAA,8BAAqB,EAAC,EAAE,EAAE,cAAc,EAAE,uBAAc,CAAC,CAAA;IAEzD,IAAA,8BAAqB,EACnB,EAAE,EACF,eAAe,EACf,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,iBAAQ,EAAC,GAAG,CAAC,IAAI,IAAA,iBAAQ,EAAC,GAAG,CAAC,CACxC,CAAA;AACH,CAAC;AAhCD,8EAgCC"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common';
|
2
|
-
import { BaseTransaction } from './common';
|
2
|
+
import { Account, BaseTransaction } from './common';
|
3
3
|
export interface XChainClaim extends BaseTransaction {
|
4
4
|
TransactionType: 'XChainClaim';
|
5
5
|
XChainBridge: XChainBridge;
|
6
6
|
XChainClaimID: number | string;
|
7
|
-
Destination:
|
7
|
+
Destination: Account;
|
8
8
|
DestinationTag?: number;
|
9
9
|
Amount: Amount;
|
10
10
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainClaim.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainClaim.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"XChainClaim.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EACL,OAAO,EACP,eAAe,EAShB,MAAM,UAAU,CAAA;AASjB,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD,eAAe,EAAE,aAAa,CAAA;IAK9B,YAAY,EAAE,YAAY,CAAA;IAM1B,aAAa,EAAE,MAAM,GAAG,MAAM,CAAA;IAQ9B,WAAW,EAAE,OAAO,CAAA;IAKpB,cAAc,CAAC,EAAE,MAAM,CAAA;IAMvB,MAAM,EAAE,MAAM,CAAA;CACf;AAQD,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAgBrE"}
|
@@ -1,39 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validateXChainClaim = void 0;
|
4
|
-
const errors_1 = require("../../errors");
|
5
4
|
const common_1 = require("./common");
|
6
5
|
function validateXChainClaim(tx) {
|
7
6
|
(0, common_1.validateBaseTransaction)(tx);
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
if (tx.XChainClaimID == null) {
|
15
|
-
throw new errors_1.ValidationError('XChainClaim: missing field XChainClaimID');
|
16
|
-
}
|
17
|
-
if (typeof tx.XChainClaimID !== 'number' &&
|
18
|
-
typeof tx.XChainClaimID !== 'string') {
|
19
|
-
throw new errors_1.ValidationError('XChainClaim: invalid field XChainClaimID');
|
20
|
-
}
|
21
|
-
if (tx.Destination == null) {
|
22
|
-
throw new errors_1.ValidationError('XChainClaim: missing field Destination');
|
23
|
-
}
|
24
|
-
if (typeof tx.Destination !== 'string') {
|
25
|
-
throw new errors_1.ValidationError('XChainClaim: invalid field Destination');
|
26
|
-
}
|
27
|
-
if (tx.DestinationTag !== undefined &&
|
28
|
-
typeof tx.DestinationTag !== 'number') {
|
29
|
-
throw new errors_1.ValidationError('XChainClaim: invalid field DestinationTag');
|
30
|
-
}
|
31
|
-
if (tx.Amount == null) {
|
32
|
-
throw new errors_1.ValidationError('XChainClaim: missing field Amount');
|
33
|
-
}
|
34
|
-
if (!(0, common_1.isAmount)(tx.Amount)) {
|
35
|
-
throw new errors_1.ValidationError('XChainClaim: invalid field Amount');
|
36
|
-
}
|
7
|
+
(0, common_1.validateRequiredField)(tx, 'XChainBridge', common_1.isXChainBridge);
|
8
|
+
(0, common_1.validateRequiredField)(tx, 'XChainClaimID', (inp) => (0, common_1.isNumber)(inp) || (0, common_1.isString)(inp));
|
9
|
+
(0, common_1.validateRequiredField)(tx, 'Destination', common_1.isAccount);
|
10
|
+
(0, common_1.validateOptionalField)(tx, 'DestinationTag', common_1.isNumber);
|
11
|
+
(0, common_1.validateRequiredField)(tx, 'Amount', common_1.isAmount);
|
37
12
|
}
|
38
13
|
exports.validateXChainClaim = validateXChainClaim;
|
39
14
|
//# sourceMappingURL=XChainClaim.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainClaim.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainClaim.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"XChainClaim.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainClaim.ts"],"names":[],"mappings":";;;AAEA,qCAWiB;AAiDjB,SAAgB,mBAAmB,CAAC,EAA2B;IAC7D,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAA,8BAAqB,EAAC,EAAE,EAAE,cAAc,EAAE,uBAAc,CAAC,CAAA;IAEzD,IAAA,8BAAqB,EACnB,EAAE,EACF,eAAe,EACf,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,iBAAQ,EAAC,GAAG,CAAC,IAAI,IAAA,iBAAQ,EAAC,GAAG,CAAC,CACxC,CAAA;IAED,IAAA,8BAAqB,EAAC,EAAE,EAAE,aAAa,EAAE,kBAAS,CAAC,CAAA;IAEnD,IAAA,8BAAqB,EAAC,EAAE,EAAE,gBAAgB,EAAE,iBAAQ,CAAC,CAAA;IAErD,IAAA,8BAAqB,EAAC,EAAE,EAAE,QAAQ,EAAE,iBAAQ,CAAC,CAAA;AAC/C,CAAC;AAhBD,kDAgBC"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common';
|
2
|
-
import { BaseTransaction } from './common';
|
2
|
+
import { Account, BaseTransaction } from './common';
|
3
3
|
export interface XChainCommit extends BaseTransaction {
|
4
4
|
TransactionType: 'XChainCommit';
|
5
5
|
XChainBridge: XChainBridge;
|
6
6
|
XChainClaimID: number | string;
|
7
|
-
OtherChainDestination?:
|
7
|
+
OtherChainDestination?: Account;
|
8
8
|
Amount: Amount;
|
9
9
|
}
|
10
10
|
export declare function validateXChainCommit(tx: Record<string, unknown>): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainCommit.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCommit.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"XChainCommit.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCommit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EACL,OAAO,EACP,eAAe,EAShB,MAAM,UAAU,CAAA;AAUjB,MAAM,WAAW,YAAa,SAAQ,eAAe;IACnD,eAAe,EAAE,cAAc,CAAA;IAK/B,YAAY,EAAE,YAAY,CAAA;IAQ1B,aAAa,EAAE,MAAM,GAAG,MAAM,CAAA;IAQ9B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAO/B,MAAM,EAAE,MAAM,CAAA;CACf;AAQD,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CActE"}
|
@@ -1,33 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validateXChainCommit = void 0;
|
4
|
-
const errors_1 = require("../../errors");
|
5
4
|
const common_1 = require("./common");
|
6
5
|
function validateXChainCommit(tx) {
|
7
6
|
(0, common_1.validateBaseTransaction)(tx);
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
throw new errors_1.ValidationError('XChainCommit: invalid field XChainBridge');
|
13
|
-
}
|
14
|
-
if (tx.XChainClaimID == null) {
|
15
|
-
throw new errors_1.ValidationError('XChainCommit: missing field XChainClaimID');
|
16
|
-
}
|
17
|
-
if (typeof tx.XChainClaimID !== 'number' &&
|
18
|
-
typeof tx.XChainClaimID !== 'string') {
|
19
|
-
throw new errors_1.ValidationError('XChainCommit: invalid field XChainClaimID');
|
20
|
-
}
|
21
|
-
if (tx.OtherChainDestination !== undefined &&
|
22
|
-
typeof tx.OtherChainDestination !== 'string') {
|
23
|
-
throw new errors_1.ValidationError('XChainCommit: invalid field OtherChainDestination');
|
24
|
-
}
|
25
|
-
if (tx.Amount == null) {
|
26
|
-
throw new errors_1.ValidationError('XChainCommit: missing field Amount');
|
27
|
-
}
|
28
|
-
if (!(0, common_1.isAmount)(tx.Amount)) {
|
29
|
-
throw new errors_1.ValidationError('XChainCommit: invalid field Amount');
|
30
|
-
}
|
7
|
+
(0, common_1.validateRequiredField)(tx, 'XChainBridge', common_1.isXChainBridge);
|
8
|
+
(0, common_1.validateRequiredField)(tx, 'XChainClaimID', (inp) => (0, common_1.isNumber)(inp) || (0, common_1.isString)(inp));
|
9
|
+
(0, common_1.validateOptionalField)(tx, 'OtherChainDestination', common_1.isAccount);
|
10
|
+
(0, common_1.validateRequiredField)(tx, 'Amount', common_1.isAmount);
|
31
11
|
}
|
32
12
|
exports.validateXChainCommit = validateXChainCommit;
|
33
13
|
//# sourceMappingURL=XChainCommit.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainCommit.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCommit.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"XChainCommit.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCommit.ts"],"names":[],"mappings":";;;AAEA,qCAWiB;AAgDjB,SAAgB,oBAAoB,CAAC,EAA2B;IAC9D,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAA,8BAAqB,EAAC,EAAE,EAAE,cAAc,EAAE,uBAAc,CAAC,CAAA;IAEzD,IAAA,8BAAqB,EACnB,EAAE,EACF,eAAe,EACf,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,iBAAQ,EAAC,GAAG,CAAC,IAAI,IAAA,iBAAQ,EAAC,GAAG,CAAC,CACxC,CAAA;IAED,IAAA,8BAAqB,EAAC,EAAE,EAAE,uBAAuB,EAAE,kBAAS,CAAC,CAAA;IAE7D,IAAA,8BAAqB,EAAC,EAAE,EAAE,QAAQ,EAAE,iBAAQ,CAAC,CAAA;AAC/C,CAAC;AAdD,oDAcC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainCreateBridge.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateBridge.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"XChainCreateBridge.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EACL,eAAe,EAMhB,MAAM,UAAU,CAAA;AAUjB,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,eAAe,EAAE,oBAAoB,CAAA;IAKrC,YAAY,EAAE,YAAY,CAAA;IAM1B,eAAe,EAAE,MAAM,CAAA;IAOvB,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC;AAQD,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAQ5E"}
|
@@ -1,26 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validateXChainCreateBridge = void 0;
|
4
|
-
const errors_1 = require("../../errors");
|
5
4
|
const common_1 = require("./common");
|
6
5
|
function validateXChainCreateBridge(tx) {
|
7
6
|
(0, common_1.validateBaseTransaction)(tx);
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
12
|
-
throw new errors_1.ValidationError('XChainCreateBridge: invalid field XChainBridge');
|
13
|
-
}
|
14
|
-
if (tx.SignatureReward == null) {
|
15
|
-
throw new errors_1.ValidationError('XChainCreateBridge: missing field SignatureReward');
|
16
|
-
}
|
17
|
-
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
18
|
-
throw new errors_1.ValidationError('XChainCreateBridge: invalid field SignatureReward');
|
19
|
-
}
|
20
|
-
if (tx.MinAccountCreateAmount !== undefined &&
|
21
|
-
!(0, common_1.isAmount)(tx.MinAccountCreateAmount)) {
|
22
|
-
throw new errors_1.ValidationError('XChainCreateBridge: invalid field MinAccountCreateAmount');
|
23
|
-
}
|
7
|
+
(0, common_1.validateRequiredField)(tx, 'XChainBridge', common_1.isXChainBridge);
|
8
|
+
(0, common_1.validateRequiredField)(tx, 'SignatureReward', common_1.isAmount);
|
9
|
+
(0, common_1.validateOptionalField)(tx, 'MinAccountCreateAmount', common_1.isAmount);
|
24
10
|
}
|
25
11
|
exports.validateXChainCreateBridge = validateXChainCreateBridge;
|
26
12
|
//# sourceMappingURL=XChainCreateBridge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainCreateBridge.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateBridge.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"XChainCreateBridge.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateBridge.ts"],"names":[],"mappings":";;;AAEA,qCAOiB;AAsCjB,SAAgB,0BAA0B,CAAC,EAA2B;IACpE,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAA,8BAAqB,EAAC,EAAE,EAAE,cAAc,EAAE,uBAAc,CAAC,CAAA;IAEzD,IAAA,8BAAqB,EAAC,EAAE,EAAE,iBAAiB,EAAE,iBAAQ,CAAC,CAAA;IAEtD,IAAA,8BAAqB,EAAC,EAAE,EAAE,wBAAwB,EAAE,iBAAQ,CAAC,CAAA;AAC/D,CAAC;AARD,gEAQC"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Amount, XChainBridge } from '../common';
|
2
|
-
import { BaseTransaction } from './common';
|
2
|
+
import { Account, BaseTransaction } from './common';
|
3
3
|
export interface XChainCreateClaimID extends BaseTransaction {
|
4
4
|
TransactionType: 'XChainCreateClaimID';
|
5
5
|
XChainBridge: XChainBridge;
|
6
6
|
SignatureReward: Amount;
|
7
|
-
OtherChainSource:
|
7
|
+
OtherChainSource: Account;
|
8
8
|
}
|
9
9
|
export declare function validateXChainCreateClaimID(tx: Record<string, unknown>): void;
|
10
10
|
//# sourceMappingURL=XChainCreateClaimID.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainCreateClaimID.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateClaimID.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"XChainCreateClaimID.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateClaimID.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EACL,OAAO,EACP,eAAe,EAMhB,MAAM,UAAU,CAAA;AASjB,MAAM,WAAW,mBAAoB,SAAQ,eAAe;IAC1D,eAAe,EAAE,qBAAqB,CAAA;IAKtC,YAAY,EAAE,YAAY,CAAA;IAM1B,eAAe,EAAE,MAAM,CAAA;IAKvB,gBAAgB,EAAE,OAAO,CAAA;CAC1B;AAQD,wBAAgB,2BAA2B,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAQ7E"}
|
@@ -1,28 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validateXChainCreateClaimID = void 0;
|
4
|
-
const errors_1 = require("../../errors");
|
5
4
|
const common_1 = require("./common");
|
6
5
|
function validateXChainCreateClaimID(tx) {
|
7
6
|
(0, common_1.validateBaseTransaction)(tx);
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
12
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field XChainBridge');
|
13
|
-
}
|
14
|
-
if (tx.SignatureReward == null) {
|
15
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: missing field SignatureReward');
|
16
|
-
}
|
17
|
-
if (!(0, common_1.isAmount)(tx.SignatureReward)) {
|
18
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field SignatureReward');
|
19
|
-
}
|
20
|
-
if (tx.OtherChainSource == null) {
|
21
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: missing field OtherChainSource');
|
22
|
-
}
|
23
|
-
if (typeof tx.OtherChainSource !== 'string') {
|
24
|
-
throw new errors_1.ValidationError('XChainCreateClaimID: invalid field OtherChainSource');
|
25
|
-
}
|
7
|
+
(0, common_1.validateRequiredField)(tx, 'XChainBridge', common_1.isXChainBridge);
|
8
|
+
(0, common_1.validateRequiredField)(tx, 'SignatureReward', common_1.isAmount);
|
9
|
+
(0, common_1.validateRequiredField)(tx, 'OtherChainSource', common_1.isAccount);
|
26
10
|
}
|
27
11
|
exports.validateXChainCreateClaimID = validateXChainCreateClaimID;
|
28
12
|
//# sourceMappingURL=XChainCreateClaimID.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainCreateClaimID.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateClaimID.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"XChainCreateClaimID.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainCreateClaimID.ts"],"names":[],"mappings":";;;AAEA,qCAQiB;AAmCjB,SAAgB,2BAA2B,CAAC,EAA2B;IACrE,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAA,8BAAqB,EAAC,EAAE,EAAE,cAAc,EAAE,uBAAc,CAAC,CAAA;IAEzD,IAAA,8BAAqB,EAAC,EAAE,EAAE,iBAAiB,EAAE,iBAAQ,CAAC,CAAA;IAEtD,IAAA,8BAAqB,EAAC,EAAE,EAAE,kBAAkB,EAAE,kBAAS,CAAC,CAAA;AAC1D,CAAC;AARD,kEAQC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainModifyBridge.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainModifyBridge.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"XChainModifyBridge.d.ts","sourceRoot":"","sources":["../../../../src/models/transactions/XChainModifyBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAEhD,OAAO,EACL,eAAe,EACf,WAAW,EAMZ,MAAM,UAAU,CAAA;AAOjB,oBAAY,uBAAuB;IAEjC,0BAA0B,QAAa;CACxC;AAQD,MAAM,WAAW,gCAAiC,SAAQ,WAAW;IAEnE,0BAA0B,CAAC,EAAE,OAAO,CAAA;CACrC;AAQD,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD,eAAe,EAAE,oBAAoB,CAAA;IAKrC,YAAY,EAAE,YAAY,CAAA;IAK1B,eAAe,CAAC,EAAE,MAAM,CAAA;IAOxB,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAE/B,KAAK,CAAC,EAAE,MAAM,GAAG,gCAAgC,CAAA;CAClD;AAQD,wBAAgB,0BAA0B,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAQ5E"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.validateXChainModifyBridge = exports.XChainModifyBridgeFlags = void 0;
|
4
|
-
const errors_1 = require("../../errors");
|
5
4
|
const common_1 = require("./common");
|
6
5
|
var XChainModifyBridgeFlags;
|
7
6
|
(function (XChainModifyBridgeFlags) {
|
@@ -9,19 +8,9 @@ var XChainModifyBridgeFlags;
|
|
9
8
|
})(XChainModifyBridgeFlags = exports.XChainModifyBridgeFlags || (exports.XChainModifyBridgeFlags = {}));
|
10
9
|
function validateXChainModifyBridge(tx) {
|
11
10
|
(0, common_1.validateBaseTransaction)(tx);
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
if (!(0, common_1.isXChainBridge)(tx.XChainBridge)) {
|
16
|
-
throw new errors_1.ValidationError('XChainModifyBridge: invalid field XChainBridge');
|
17
|
-
}
|
18
|
-
if (tx.SignatureReward !== undefined && !(0, common_1.isAmount)(tx.SignatureReward)) {
|
19
|
-
throw new errors_1.ValidationError('XChainModifyBridge: invalid field SignatureReward');
|
20
|
-
}
|
21
|
-
if (tx.MinAccountCreateAmount !== undefined &&
|
22
|
-
!(0, common_1.isAmount)(tx.MinAccountCreateAmount)) {
|
23
|
-
throw new errors_1.ValidationError('XChainModifyBridge: invalid field MinAccountCreateAmount');
|
24
|
-
}
|
11
|
+
(0, common_1.validateRequiredField)(tx, 'XChainBridge', common_1.isXChainBridge);
|
12
|
+
(0, common_1.validateOptionalField)(tx, 'SignatureReward', common_1.isAmount);
|
13
|
+
(0, common_1.validateOptionalField)(tx, 'MinAccountCreateAmount', common_1.isAmount);
|
25
14
|
}
|
26
15
|
exports.validateXChainModifyBridge = validateXChainModifyBridge;
|
27
16
|
//# sourceMappingURL=XChainModifyBridge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"XChainModifyBridge.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainModifyBridge.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"XChainModifyBridge.js","sourceRoot":"","sources":["../../../../src/models/transactions/XChainModifyBridge.ts"],"names":[],"mappings":";;;AAEA,qCAQiB;AAOjB,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAEjC,qHAAuC,CAAA;AACzC,CAAC,EAHW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAGlC;AAgDD,SAAgB,0BAA0B,CAAC,EAA2B;IACpE,IAAA,gCAAuB,EAAC,EAAE,CAAC,CAAA;IAE3B,IAAA,8BAAqB,EAAC,EAAE,EAAE,cAAc,EAAE,uBAAc,CAAC,CAAA;IAEzD,IAAA,8BAAqB,EAAC,EAAE,EAAE,iBAAiB,EAAE,iBAAQ,CAAC,CAAA;IAEtD,IAAA,8BAAqB,EAAC,EAAE,EAAE,wBAAwB,EAAE,iBAAQ,CAAC,CAAA;AAC/D,CAAC;AARD,gEAQC"}
|