@babylonlabs-io/ts-sdk 0.55.2 → 0.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/README.md +1 -2
  2. package/dist/{PayoutManager-BJmPnyRP.js → PayoutManager-BVgmuKuK.js} +117 -105
  3. package/dist/PayoutManager-BVgmuKuK.js.map +1 -0
  4. package/dist/PayoutManager-Cu4_l-_Y.cjs +2 -0
  5. package/dist/PayoutManager-Cu4_l-_Y.cjs.map +1 -0
  6. package/dist/{PeginManager-CW03-M3T.js → PeginManager-Ba7Cr51Z.js} +520 -460
  7. package/dist/PeginManager-Ba7Cr51Z.js.map +1 -0
  8. package/dist/PeginManager-CcjGRo4O.cjs +2 -0
  9. package/dist/PeginManager-CcjGRo4O.cjs.map +1 -0
  10. package/dist/{buildAndBroadcastRefund-BiSO4zg2.js → buildAndBroadcastRefund-BtXUqBkb.js} +444 -430
  11. package/dist/buildAndBroadcastRefund-BtXUqBkb.js.map +1 -0
  12. package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs +2 -0
  13. package/dist/buildAndBroadcastRefund-Cq01wyZX.cjs.map +1 -0
  14. package/dist/challengeAssert-BVQq50su.js +75 -0
  15. package/dist/challengeAssert-BVQq50su.js.map +1 -0
  16. package/dist/challengeAssert-Cu-PtJ1g.cjs +2 -0
  17. package/dist/challengeAssert-Cu-PtJ1g.cjs.map +1 -0
  18. package/dist/constants-BqU1Uz15.cjs +2 -0
  19. package/dist/{constants-CvbARMl-.cjs.map → constants-BqU1Uz15.cjs.map} +1 -1
  20. package/dist/{constants-BhclpREj.js → constants-CDQE812z.js} +8 -6
  21. package/dist/{constants-BhclpREj.js.map → constants-CDQE812z.js.map} +1 -1
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.js +195 -192
  24. package/dist/{mempoolApi-DqJByvqR.cjs → mempoolApi-DkyKmmgI.cjs} +2 -2
  25. package/dist/mempoolApi-DkyKmmgI.cjs.map +1 -0
  26. package/dist/{mempoolApi-CB7bHuwi.js → mempoolApi-lpJdvPkK.js} +66 -66
  27. package/dist/mempoolApi-lpJdvPkK.js.map +1 -0
  28. package/dist/{noPayout-CNMqNNpc.cjs → noPayout-Cb8vFrkY.cjs} +2 -2
  29. package/dist/{noPayout-CNMqNNpc.cjs.map → noPayout-Cb8vFrkY.cjs.map} +1 -1
  30. package/dist/{noPayout-CfBg3HzC.js → noPayout-CihCk1HE.js} +2 -2
  31. package/dist/{noPayout-CfBg3HzC.js.map → noPayout-CihCk1HE.js.map} +1 -1
  32. package/dist/{primeVpAuth-l-5x_2UV.js → primeVpAuth-Caa5J_uv.js} +4 -4
  33. package/dist/{primeVpAuth-l-5x_2UV.js.map → primeVpAuth-Caa5J_uv.js.map} +1 -1
  34. package/dist/{primeVpAuth-CF4cH5_e.cjs → primeVpAuth-y-4A88ah.cjs} +2 -2
  35. package/dist/{primeVpAuth-CF4cH5_e.cjs.map → primeVpAuth-y-4A88ah.cjs.map} +1 -1
  36. package/dist/tbv/core/clients/index.cjs +1 -1
  37. package/dist/tbv/core/clients/index.js +2 -2
  38. package/dist/tbv/core/clients/mempool/mempoolApi.d.ts.map +1 -1
  39. package/dist/tbv/core/deposit-terms/__tests__/buildDepositTerms.test.d.ts +2 -0
  40. package/dist/tbv/core/deposit-terms/__tests__/buildDepositTerms.test.d.ts.map +1 -0
  41. package/dist/tbv/core/deposit-terms/buildDepositTerms.d.ts +8 -0
  42. package/dist/tbv/core/deposit-terms/buildDepositTerms.d.ts.map +1 -0
  43. package/dist/tbv/core/deposit-terms/depositTerms.d.ts +92 -0
  44. package/dist/tbv/core/deposit-terms/depositTerms.d.ts.map +1 -0
  45. package/dist/tbv/core/deposit-terms/index.d.ts +12 -0
  46. package/dist/tbv/core/deposit-terms/index.d.ts.map +1 -0
  47. package/dist/tbv/core/index.cjs +1 -1
  48. package/dist/tbv/core/index.d.ts +1 -0
  49. package/dist/tbv/core/index.d.ts.map +1 -1
  50. package/dist/tbv/core/index.js +194 -191
  51. package/dist/tbv/core/managers/PayoutManager.d.ts +7 -0
  52. package/dist/tbv/core/managers/PayoutManager.d.ts.map +1 -1
  53. package/dist/tbv/core/managers/PeginManager.d.ts +13 -0
  54. package/dist/tbv/core/managers/PeginManager.d.ts.map +1 -1
  55. package/dist/tbv/core/managers/index.cjs +1 -1
  56. package/dist/tbv/core/managers/index.js +2 -2
  57. package/dist/tbv/core/primitives/index.cjs +1 -1
  58. package/dist/tbv/core/primitives/index.d.ts +0 -3
  59. package/dist/tbv/core/primitives/index.d.ts.map +1 -1
  60. package/dist/tbv/core/primitives/index.js +37 -38
  61. package/dist/tbv/core/primitives/psbt/__tests__/assertPayoutFeeBand.test.d.ts +7 -0
  62. package/dist/tbv/core/primitives/psbt/__tests__/assertPayoutFeeBand.test.d.ts.map +1 -0
  63. package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts +63 -0
  64. package/dist/tbv/core/primitives/psbt/assertPayoutFeeBand.d.ts.map +1 -0
  65. package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts +4 -1
  66. package/dist/tbv/core/primitives/psbt/assertWasmPeginSizing.d.ts.map +1 -1
  67. package/dist/tbv/core/primitives/psbt/constants.d.ts +18 -4
  68. package/dist/tbv/core/primitives/psbt/constants.d.ts.map +1 -1
  69. package/dist/tbv/core/primitives/psbt/payout.d.ts +21 -2
  70. package/dist/tbv/core/primitives/psbt/payout.d.ts.map +1 -1
  71. package/dist/tbv/core/primitives/psbt/pegin.d.ts +6 -0
  72. package/dist/tbv/core/primitives/psbt/pegin.d.ts.map +1 -1
  73. package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts +12 -0
  74. package/dist/tbv/core/services/deposit/runDepositorPresignFlow.d.ts.map +1 -1
  75. package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts +5 -0
  76. package/dist/tbv/core/services/deposit/signDepositorGraph.d.ts.map +1 -1
  77. package/dist/tbv/core/services/index.cjs +1 -1
  78. package/dist/tbv/core/services/index.js +2 -2
  79. package/dist/tbv/core/utils/__tests__/abortSignals.test.d.ts +11 -0
  80. package/dist/tbv/core/utils/__tests__/abortSignals.test.d.ts.map +1 -0
  81. package/dist/tbv/core/utils/abortSignals.d.ts +23 -0
  82. package/dist/tbv/core/utils/abortSignals.d.ts.map +1 -0
  83. package/dist/tbv/core/utils/index.cjs +1 -1
  84. package/dist/tbv/core/utils/index.d.ts +1 -0
  85. package/dist/tbv/core/utils/index.d.ts.map +1 -1
  86. package/dist/tbv/core/utils/index.js +44 -43
  87. package/dist/tbv/index.cjs +1 -1
  88. package/dist/tbv/index.js +194 -191
  89. package/dist/tbv/integrations/aave/clients/index.d.ts +1 -1
  90. package/dist/tbv/integrations/aave/clients/index.d.ts.map +1 -1
  91. package/dist/tbv/integrations/aave/clients/spoke.d.ts +0 -20
  92. package/dist/tbv/integrations/aave/clients/spoke.d.ts.map +1 -1
  93. package/dist/tbv/integrations/aave/constants.d.ts +0 -22
  94. package/dist/tbv/integrations/aave/constants.d.ts.map +1 -1
  95. package/dist/tbv/integrations/aave/index.cjs +1 -1
  96. package/dist/tbv/integrations/aave/index.cjs.map +1 -1
  97. package/dist/tbv/integrations/aave/index.d.ts +5 -6
  98. package/dist/tbv/integrations/aave/index.d.ts.map +1 -1
  99. package/dist/tbv/integrations/aave/index.js +236 -339
  100. package/dist/tbv/integrations/aave/index.js.map +1 -1
  101. package/dist/tbv/integrations/aave/types.d.ts +0 -7
  102. package/dist/tbv/integrations/aave/types.d.ts.map +1 -1
  103. package/dist/tbv/integrations/aave/utils/healthFactor.d.ts +0 -7
  104. package/dist/tbv/integrations/aave/utils/healthFactor.d.ts.map +1 -1
  105. package/dist/tbv/integrations/aave/utils/index.d.ts +3 -8
  106. package/dist/tbv/integrations/aave/utils/index.d.ts.map +1 -1
  107. package/dist/tbv/integrations/aave/utils/vaultSplit.d.ts +0 -65
  108. package/dist/tbv/integrations/aave/utils/vaultSplit.d.ts.map +1 -1
  109. package/dist/validation-CDbOaDj7.cjs +2 -0
  110. package/dist/validation-CDbOaDj7.cjs.map +1 -0
  111. package/dist/validation-Dj3dqYtl.js +30 -0
  112. package/dist/validation-Dj3dqYtl.js.map +1 -0
  113. package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs +2 -0
  114. package/dist/verifyScriptPathSchnorrSignature-BZhX-SOd.cjs.map +1 -0
  115. package/dist/verifyScriptPathSchnorrSignature-CgrnAjMW.js +724 -0
  116. package/dist/verifyScriptPathSchnorrSignature-CgrnAjMW.js.map +1 -0
  117. package/package.json +2 -2
  118. package/dist/PayoutManager-BJmPnyRP.js.map +0 -1
  119. package/dist/PayoutManager-aqtsj60t.cjs +0 -2
  120. package/dist/PayoutManager-aqtsj60t.cjs.map +0 -1
  121. package/dist/PeginManager-CW03-M3T.js.map +0 -1
  122. package/dist/PeginManager-C_akOB1E.cjs +0 -2
  123. package/dist/PeginManager-C_akOB1E.cjs.map +0 -1
  124. package/dist/buildAndBroadcastRefund-BiSO4zg2.js.map +0 -1
  125. package/dist/buildAndBroadcastRefund-Bwi1I5we.cjs +0 -2
  126. package/dist/buildAndBroadcastRefund-Bwi1I5we.cjs.map +0 -1
  127. package/dist/challengeAssert-DLQfNcfU.cjs +0 -2
  128. package/dist/challengeAssert-DLQfNcfU.cjs.map +0 -1
  129. package/dist/challengeAssert-DvdbpEDY.js +0 -128
  130. package/dist/challengeAssert-DvdbpEDY.js.map +0 -1
  131. package/dist/constants-CvbARMl-.cjs +0 -2
  132. package/dist/mempoolApi-CB7bHuwi.js.map +0 -1
  133. package/dist/mempoolApi-DqJByvqR.cjs.map +0 -1
  134. package/dist/tbv/core/primitives/psbt/depositorPayout.d.ts +0 -34
  135. package/dist/tbv/core/primitives/psbt/depositorPayout.d.ts.map +0 -1
  136. package/dist/tbv/integrations/aave/utils/__tests__/borrowRatio.test.d.ts +0 -5
  137. package/dist/tbv/integrations/aave/utils/__tests__/borrowRatio.test.d.ts.map +0 -1
  138. package/dist/tbv/integrations/aave/utils/__tests__/seizureSimulation.test.d.ts +0 -5
  139. package/dist/tbv/integrations/aave/utils/__tests__/seizureSimulation.test.d.ts.map +0 -1
  140. package/dist/tbv/integrations/aave/utils/__tests__/vaultSelection.test.d.ts +0 -2
  141. package/dist/tbv/integrations/aave/utils/__tests__/vaultSelection.test.d.ts.map +0 -1
  142. package/dist/tbv/integrations/aave/utils/borrowRatio.d.ts +0 -15
  143. package/dist/tbv/integrations/aave/utils/borrowRatio.d.ts.map +0 -1
  144. package/dist/tbv/integrations/aave/utils/seizureSimulation.d.ts +0 -109
  145. package/dist/tbv/integrations/aave/utils/seizureSimulation.d.ts.map +0 -1
  146. package/dist/tbv/integrations/aave/utils/vaultSelection.d.ts +0 -33
  147. package/dist/tbv/integrations/aave/utils/vaultSelection.d.ts.map +0 -1
  148. package/dist/validation-CxqROCno.js +0 -15
  149. package/dist/validation-CxqROCno.js.map +0 -1
  150. package/dist/validation-u8W7Lp2x.cjs +0 -2
  151. package/dist/validation-u8W7Lp2x.cjs.map +0 -1
  152. package/dist/verifyScriptPathSchnorrSignature-BDznSCOR.cjs +0 -2
  153. package/dist/verifyScriptPathSchnorrSignature-BDznSCOR.cjs.map +0 -1
  154. package/dist/verifyScriptPathSchnorrSignature-DA4Z4yZ3.js +0 -658
  155. package/dist/verifyScriptPathSchnorrSignature-DA4Z4yZ3.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../challengeAssert-DLQfNcfU.cjs"),R=require("../constants-CvbARMl-.cjs"),s=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../verifyScriptPathSchnorrSignature-BDznSCOR.cjs"),g=require("../peginInput-CAiiDZeO.cjs"),E=require("../noPayout-CNMqNNpc.cjs"),t=require("../bitcoin-CHfKAhcI.cjs"),m=require("../signing-Bnsro0hE.cjs"),l=require("../validation-u8W7Lp2x.cjs"),p=require("../PeginManager-C_akOB1E.cjs"),A=require("../PayoutManager-aqtsj60t.cjs"),_=require("../ApplicationRegistry.abi-CLaa6E99.cjs"),O=require("../BTCVaultRegistry.abi-JdeqLz4x.cjs"),c=require("../errors-CGcNP0rV.cjs"),T=require("../deriveVaultRoot-CebLadyJ.cjs"),b=require("../parseFundingOutpoints-C_-PT9BT.cjs"),o=require("../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),r=require("../fundPeginTransaction-BLD8FRL9.cjs"),d=require("../reservation-ClEs2X0H.cjs"),i=require("../mempoolApi-DqJByvqR.cjs"),a=require("../primeVpAuth-CF4cH5_e.cjs"),n=require("../types-WA0LrDk1.cjs"),I=require("../errors-Bfjxg_iJ.cjs"),e=require("../buildAndBroadcastRefund-Bwi1I5we.cjs"),P=require("../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=S.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=S.buildDepositorPayoutPsbt;exports.computeNumLocalChallengers=S.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=R.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>s.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>s.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>s.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>s.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>s.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>s.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>s.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>s.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>s.validatePeginP2aAnchor});exports.PsbtSubstitutionError=u.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=u.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=u.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=u.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=u.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=u.buildPrePeginPsbt;exports.createPayoutScript=u.createPayoutScript;exports.extractPayoutSignature=u.extractPayoutSignature;exports.buildPeginInputPsbt=g.buildPeginInputPsbt;exports.extractPeginInputSignature=g.extractPeginInputSignature;exports.finalizePeginInputPsbt=g.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=E.buildNoPayoutPsbt;exports.buildRefundPsbt=E.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=t.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=t.deriveNativeSegwitAddress;exports.deriveTaprootAddress=t.deriveTaprootAddress;exports.ensureHexPrefix=t.ensureHexPrefix;exports.formatSatoshisToBtc=t.formatSatoshisToBtc;exports.getNetwork=t.getNetwork;exports.getSortedXOnlyPubkeys=t.getSortedXOnlyPubkeys;exports.hexToUint8Array=t.hexToUint8Array;exports.isAddressFromPublicKey=t.isAddressFromPublicKey;exports.isValidHex=t.isValidHex;exports.processPublicKeyToXOnly=t.processPublicKeyToXOnly;exports.stripHexPrefix=t.stripHexPrefix;exports.toXOnly=t.toXOnly;exports.uint8ArrayToHex=t.uint8ArrayToHex;exports.validateWalletPubkey=t.validateWalletPubkey;exports.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.HEX_RE=l.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=l.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=l.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=l.TXID_RE;exports.PeginManager=p.PeginManager;exports.computeWotsBlockPublicKeysHash=p.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=p.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=p.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=A.PayoutManager;exports.computeHashlock=A.computeHashlock;exports.validateSecretAgainstHashlock=A.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=_.ApplicationRegistryABI;exports.ProtocolParamsABI=_.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.CONTRACT_ERRORS=c.CONTRACT_ERRORS;exports.extractErrorData=c.extractErrorData;exports.getContractErrorMessage=c.getContractErrorMessage;exports.handleContractError=c.handleContractError;exports.isKnownContractError=c.isKnownContractError;exports.VAULT_APP_NAME=T.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=T.buildFundingOutpointsCommitment;exports.buildVaultContext=T.buildVaultContext;exports.deriveVaultRoot=T.deriveVaultRoot;exports.parseFundingOutpointsFromTx=b.parseFundingOutpointsFromTx;exports.BitcoinScriptType=o.BitcoinScriptType;exports.applyChangeOutputPolicy=o.applyChangeOutputPolicy;exports.calculateBtcTxHash=o.calculateBtcTxHash;exports.computeChangeOutputFeeSats=o.computeChangeOutputFeeSats;exports.computeMaxDeposit=o.computeMaxDeposit;exports.computePeginBaseFeeSats=o.computePeginBaseFeeSats;exports.getDustThreshold=o.getDustThreshold;exports.getPsbtInputFields=o.getPsbtInputFields;exports.getScriptType=o.getScriptType;exports.selectUtxosForPegin=o.selectUtxosForPegin;exports.shouldAddChangeOutput=o.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=o.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=r.BTC_DUST_SAT;exports.DUST_THRESHOLD=r.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=r.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=r.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=r.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=r.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=r.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=r.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=r.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=r.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=r.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=r.fundPeginTransaction;exports.parseUnfundedWasmTransaction=r.parseUnfundedWasmTransaction;exports.peginOutputCount=r.peginOutputCount;exports.rateBasedTxBufferFee=r.rateBasedTxBufferFee;exports.UtxoNotAvailableError=d.UtxoNotAvailableError;exports.assertUtxosAvailable=d.assertUtxosAvailable;exports.extractInputsFromTransaction=d.extractInputsFromTransaction;exports.findOverlappingPendingVaults=d.findOverlappingPendingVaults;exports.validateUtxosAvailable=d.validateUtxosAvailable;exports.MEMPOOL_API_URLS=i.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=i.ViemVaultRegistryReader;exports.getAddressTxs=i.getAddressTxs;exports.getAddressUtxos=i.getAddressUtxos;exports.getMempoolApiUrl=i.getMempoolApiUrl;exports.getNetworkFees=i.getNetworkFees;exports.getOutspend=i.getOutspend;exports.getTipHeight=i.getTipHeight;exports.getTxHex=i.getTxHex;exports.getTxInfo=i.getTxInfo;exports.getUtxoInfo=i.getUtxoInfo;exports.pushTx=i.pushTx;exports.validateOffchainParams=i.validateOffchainParams;exports.validatePegInConfiguration=i.validatePegInConfiguration;exports.validateTBVProtocolParams=i.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=a.OnChainBtcVaultStatus;exports.ServerIdentityError=a.ServerIdentityError;exports.VaultProviderRpcClient=a.VaultProviderRpcClient;exports.ViemProtocolParamsReader=a.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.VpResponseValidationError=a.VpResponseValidationError;exports.VpTokenRegistry=a.VpTokenRegistry;exports.batchPollByProvider=a.batchPollByProvider;exports.createAuthenticatedVpClient=a.createAuthenticatedVpClient;exports.primeVpTokenRegistry=a.primeVpTokenRegistry;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=a.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=a.verifyServerIdentity;exports.vpTokenRegistry=a.vpTokenRegistry;exports.AUTH_EXPIRED_DATA_KIND=n.AUTH_EXPIRED_DATA_KIND;exports.DaemonStatus=n.DaemonStatus;exports.JSON_RPC_ERROR_CODES=n.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=n.JsonRpcClient;exports.JsonRpcError=n.JsonRpcError;exports.POST_WOTS_STATUSES=n.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=n.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=n.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=n.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=n.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=n.VP_TRANSIENT_STATUSES;exports.isWotsMismatchError=I.isWotsMismatchError;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginStatus=e.waitForPeginStatus;exports.ContractStatus=P.ContractStatus;exports.PeginAction=P.PeginAction;exports.canPerformAction=P.canPerformAction;exports.getPeginProtocolState=P.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=P.isActivationDeadlinePassedOnChain;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../challengeAssert-Cu-PtJ1g.cjs"),R=require("../constants-BqU1Uz15.cjs"),n=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../verifyScriptPathSchnorrSignature-BZhX-SOd.cjs"),S=require("../peginInput-CAiiDZeO.cjs"),E=require("../noPayout-Cb8vFrkY.cjs"),t=require("../bitcoin-CHfKAhcI.cjs"),l=require("../validation-CDbOaDj7.cjs"),m=require("../signing-Bnsro0hE.cjs"),c=require("../PeginManager-CcjGRo4O.cjs"),d=require("../PayoutManager-Cu4_l-_Y.cjs"),_=require("../ApplicationRegistry.abi-CLaa6E99.cjs"),O=require("../BTCVaultRegistry.abi-JdeqLz4x.cjs"),P=require("../errors-CGcNP0rV.cjs"),A=require("../deriveVaultRoot-CebLadyJ.cjs"),b=require("../parseFundingOutpoints-C_-PT9BT.cjs"),o=require("../waitForTransactionReceiptSmartAware-AgZ-3WV_.cjs"),r=require("../fundPeginTransaction-BLD8FRL9.cjs"),p=require("../reservation-ClEs2X0H.cjs"),i=require("../mempoolApi-DkyKmmgI.cjs"),a=require("../primeVpAuth-y-4A88ah.cjs"),s=require("../types-WA0LrDk1.cjs"),I=require("../errors-Bfjxg_iJ.cjs"),e=require("../buildAndBroadcastRefund-Cq01wyZX.cjs"),T=require("../peginState-CBBJw4Za.cjs");exports.buildChallengeAssertPsbt=g.buildChallengeAssertPsbt;exports.computeNumLocalChallengers=g.computeNumLocalChallengers;exports.assertValidVaultCoreVersion=R.assertValidVaultCoreVersion;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>n.computeMinClaimValue});Object.defineProperty(exports,"computeMinPeginFee",{enumerable:!0,get:()=>n.computeMinPeginFee});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>n.deriveVaultId});Object.defineProperty(exports,"expandAuthAnchor",{enumerable:!0,get:()=>n.expandAuthAnchor});Object.defineProperty(exports,"expandHashlockSecret",{enumerable:!0,get:()=>n.expandHashlockSecret});Object.defineProperty(exports,"expandWotsSeed",{enumerable:!0,get:()=>n.expandWotsSeed});Object.defineProperty(exports,"peginP2aAnchorOutput",{enumerable:!0,get:()=>n.peginP2aAnchorOutput});Object.defineProperty(exports,"supportedTxGraphVersions",{enumerable:!0,get:()=>n.supportedTxGraphVersions});Object.defineProperty(exports,"validatePeginP2aAnchor",{enumerable:!0,get:()=>n.validatePeginP2aAnchor});exports.PsbtSubstitutionError=u.PsbtSubstitutionError;exports.assertPsbtUnsignedTxMatches=u.assertPsbtUnsignedTxMatches;exports.assertScriptPathSchnorrSignature=u.assertScriptPathSchnorrSignature;exports.buildPayoutPsbt=u.buildPayoutPsbt;exports.buildPeginTxFromFundedPrePegin=u.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=u.buildPrePeginPsbt;exports.createPayoutScript=u.createPayoutScript;exports.extractPayoutSignature=u.extractPayoutSignature;exports.buildPeginInputPsbt=S.buildPeginInputPsbt;exports.extractPeginInputSignature=S.extractPeginInputSignature;exports.finalizePeginInputPsbt=S.finalizePeginInputPsbt;exports.buildNoPayoutPsbt=E.buildNoPayoutPsbt;exports.buildRefundPsbt=E.buildRefundPsbt;exports.deriveBip86ScriptPubKeyHex=t.deriveBip86ScriptPubKeyHex;exports.deriveNativeSegwitAddress=t.deriveNativeSegwitAddress;exports.deriveTaprootAddress=t.deriveTaprootAddress;exports.ensureHexPrefix=t.ensureHexPrefix;exports.formatSatoshisToBtc=t.formatSatoshisToBtc;exports.getNetwork=t.getNetwork;exports.getSortedXOnlyPubkeys=t.getSortedXOnlyPubkeys;exports.hexToUint8Array=t.hexToUint8Array;exports.isAddressFromPublicKey=t.isAddressFromPublicKey;exports.isValidHex=t.isValidHex;exports.processPublicKeyToXOnly=t.processPublicKeyToXOnly;exports.stripHexPrefix=t.stripHexPrefix;exports.toXOnly=t.toXOnly;exports.uint8ArrayToHex=t.uint8ArrayToHex;exports.validateWalletPubkey=t.validateWalletPubkey;exports.BITCOIN_ADDRESS_RE=l.BITCOIN_ADDRESS_RE;exports.HEX_RE=l.HEX_RE;exports.KNOWN_SCRIPT_PREFIXES=l.KNOWN_SCRIPT_PREFIXES;exports.MAX_REASONABLE_FEE_SATS=l.MAX_REASONABLE_FEE_SATS;exports.TXID_RE=l.TXID_RE;exports.combineAbortSignals=l.combineAbortSignals;exports.createTaprootScriptPathSignOptions=m.createTaprootScriptPathSignOptions;exports.PeginManager=c.PeginManager;exports.buildDepositTerms=c.buildDepositTerms;exports.computeWotsBlockPublicKeysHash=c.computeWotsBlockPublicKeysHash;exports.deriveWotsBlocksFromSeed=c.deriveWotsBlocksFromSeed;exports.estimateSubmitPeginRequestBatchGas=c.estimateSubmitPeginRequestBatchGas;exports.PayoutManager=d.PayoutManager;exports.computeHashlock=d.computeHashlock;exports.forwardDepositApproval=d.forwardDepositApproval;exports.supportsDepositApproval=d.supportsDepositApproval;exports.validateSecretAgainstHashlock=d.validateSecretAgainstHashlock;exports.ApplicationRegistryABI=_.ApplicationRegistryABI;exports.ProtocolParamsABI=_.ProtocolParamsABI;exports.BTCVaultRegistryABI=O.BTCVaultRegistryABI;exports.CONTRACT_ERRORS=P.CONTRACT_ERRORS;exports.extractErrorData=P.extractErrorData;exports.getContractErrorMessage=P.getContractErrorMessage;exports.handleContractError=P.handleContractError;exports.isKnownContractError=P.isKnownContractError;exports.VAULT_APP_NAME=A.VAULT_APP_NAME;exports.buildFundingOutpointsCommitment=A.buildFundingOutpointsCommitment;exports.buildVaultContext=A.buildVaultContext;exports.deriveVaultRoot=A.deriveVaultRoot;exports.parseFundingOutpointsFromTx=b.parseFundingOutpointsFromTx;exports.BitcoinScriptType=o.BitcoinScriptType;exports.applyChangeOutputPolicy=o.applyChangeOutputPolicy;exports.calculateBtcTxHash=o.calculateBtcTxHash;exports.computeChangeOutputFeeSats=o.computeChangeOutputFeeSats;exports.computeMaxDeposit=o.computeMaxDeposit;exports.computePeginBaseFeeSats=o.computePeginBaseFeeSats;exports.getDustThreshold=o.getDustThreshold;exports.getPsbtInputFields=o.getPsbtInputFields;exports.getScriptType=o.getScriptType;exports.selectUtxosForPegin=o.selectUtxosForPegin;exports.shouldAddChangeOutput=o.shouldAddChangeOutput;exports.waitForTransactionReceiptSmartAware=o.waitForTransactionReceiptSmartAware;exports.BTC_DUST_SAT=r.BTC_DUST_SAT;exports.DUST_THRESHOLD=r.DUST_THRESHOLD;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=r.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=r.MAX_NON_LEGACY_OUTPUT_SIZE;exports.MAX_REASONABLE_PEGIN_VBYTES=r.MAX_REASONABLE_PEGIN_VBYTES;exports.P2TR_INPUT_SIZE=r.P2TR_INPUT_SIZE;exports.PEGIN_AUTH_ANCHOR_OUTPUTS=r.PEGIN_AUTH_ANCHOR_OUTPUTS;exports.PEGIN_FIXED_OUTPUTS=r.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=r.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=r.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=r.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.fundPeginTransaction=r.fundPeginTransaction;exports.parseUnfundedWasmTransaction=r.parseUnfundedWasmTransaction;exports.peginOutputCount=r.peginOutputCount;exports.rateBasedTxBufferFee=r.rateBasedTxBufferFee;exports.UtxoNotAvailableError=p.UtxoNotAvailableError;exports.assertUtxosAvailable=p.assertUtxosAvailable;exports.extractInputsFromTransaction=p.extractInputsFromTransaction;exports.findOverlappingPendingVaults=p.findOverlappingPendingVaults;exports.validateUtxosAvailable=p.validateUtxosAvailable;exports.MEMPOOL_API_URLS=i.MEMPOOL_API_URLS;exports.ViemVaultRegistryReader=i.ViemVaultRegistryReader;exports.getAddressTxs=i.getAddressTxs;exports.getAddressUtxos=i.getAddressUtxos;exports.getMempoolApiUrl=i.getMempoolApiUrl;exports.getNetworkFees=i.getNetworkFees;exports.getOutspend=i.getOutspend;exports.getTipHeight=i.getTipHeight;exports.getTxHex=i.getTxHex;exports.getTxInfo=i.getTxInfo;exports.getUtxoInfo=i.getUtxoInfo;exports.pushTx=i.pushTx;exports.validateOffchainParams=i.validateOffchainParams;exports.validatePegInConfiguration=i.validatePegInConfiguration;exports.validateTBVProtocolParams=i.validateTBVProtocolParams;exports.OnChainBtcVaultStatus=a.OnChainBtcVaultStatus;exports.ServerIdentityError=a.ServerIdentityError;exports.VaultProviderRpcClient=a.VaultProviderRpcClient;exports.ViemProtocolParamsReader=a.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=a.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=a.ViemVaultKeeperReader;exports.VpResponseValidationError=a.VpResponseValidationError;exports.VpTokenRegistry=a.VpTokenRegistry;exports.batchPollByProvider=a.batchPollByProvider;exports.createAuthenticatedVpClient=a.createAuthenticatedVpClient;exports.primeVpTokenRegistry=a.primeVpTokenRegistry;exports.resolveProtocolAddresses=a.resolveProtocolAddresses;exports.validateRequestDepositorClaimerArtifactsResponse=a.validateRequestDepositorClaimerArtifactsResponse;exports.verifyServerIdentity=a.verifyServerIdentity;exports.vpTokenRegistry=a.vpTokenRegistry;exports.AUTH_EXPIRED_DATA_KIND=s.AUTH_EXPIRED_DATA_KIND;exports.DaemonStatus=s.DaemonStatus;exports.JSON_RPC_ERROR_CODES=s.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=s.JsonRpcClient;exports.JsonRpcError=s.JsonRpcError;exports.POST_WOTS_STATUSES=s.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=s.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=s.RpcErrorCode;exports.VP_BATCH_MAX_SIZE=s.VP_BATCH_MAX_SIZE;exports.VP_TERMINAL_FAILURE_STATUSES=s.VP_TERMINAL_FAILURE_STATUSES;exports.VP_TRANSIENT_STATUSES=s.VP_TRANSIENT_STATUSES;exports.isWotsMismatchError=I.isWotsMismatchError;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.REFUND_MAX_FEE_FRACTION_DENOMINATOR=e.REFUND_MAX_FEE_FRACTION_DENOMINATOR;exports.REFUND_MAX_FEE_FRACTION_NUMERATOR=e.REFUND_MAX_FEE_FRACTION_NUMERATOR;exports.REFUND_MAX_FEE_RATE_SATS_VB=e.REFUND_MAX_FEE_RATE_SATS_VB;exports.REFUND_VSIZE=e.REFUND_VSIZE;exports.RegisteredVaultVersionMismatchError=e.RegisteredVaultVersionMismatchError;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.estimateRefundFeeSats=e.estimateRefundFeeSats;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.isRegisteredVaultVersionMismatchError=e.isRegisteredVaultVersionMismatchError;exports.runDepositorPresignFlow=e.runDepositorPresignFlow;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateOnChainParticipantKeys=e.validateOnChainParticipantKeys;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.verifyRegisteredVaultVersions=e.verifyRegisteredVaultVersions;exports.waitForPeginStatus=e.waitForPeginStatus;exports.ContractStatus=T.ContractStatus;exports.PeginAction=T.PeginAction;exports.canPerformAction=T.canPerformAction;exports.getPeginProtocolState=T.getPeginProtocolState;exports.isActivationDeadlinePassedOnChain=T.isActivationDeadlinePassedOnChain;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/tbv/index.js CHANGED
@@ -1,200 +1,203 @@
1
- import { a as s, b as t, c as r } from "../challengeAssert-DvdbpEDY.js";
2
- import { a as i } from "../constants-BhclpREj.js";
3
- import { computeMinClaimValue as u, computeMinPeginFee as p, deriveVaultId as l, expandAuthAnchor as d, expandHashlockSecret as P, expandWotsSeed as c, peginP2aAnchorOutput as T, supportedTxGraphVersions as E, validatePeginP2aAnchor as A } from "@babylonlabs-io/babylon-tbv-rust-wasm";
4
- import { P as g, d as _, f as R, c as m, b as x, a as f, g as b, e as V } from "../verifyScriptPathSchnorrSignature-DA4Z4yZ3.js";
5
- import { b as I, e as h, f as v } from "../peginInput-BKD_b3gq.js";
6
- import { a as F, b as U } from "../noPayout-CfBg3HzC.js";
7
- import { d as y, a as B, b as D, e as M, f as H, j as L, g as X, h as k, i as W, c as K, p as w, s as G, t as Y, u as Z, v as J } from "../bitcoin-B5aNKtsk.js";
8
- import { c as q } from "../signing-DaLvGwQe.js";
9
- import { B as Q, H as $, K as aa, M as ea, T as sa } from "../validation-CxqROCno.js";
10
- import { P as ra, c as oa, d as ia, e as na } from "../PeginManager-CW03-M3T.js";
11
- import { P as pa, c as la, v as da } from "../PayoutManager-BJmPnyRP.js";
12
- import { A as ca, P as Ta } from "../ApplicationRegistry.abi-w5prf7Ig.js";
13
- import { B as Aa } from "../BTCVaultRegistry.abi-Chs4AFBj.js";
14
- import { C as ga, e as _a, g as Ra, h as ma, i as xa } from "../errors-Blc-JWnI.js";
15
- import { V as ba, b as Va, a as Oa, d as Ia } from "../deriveVaultRoot-B_gEOTD6.js";
16
- import { p as va } from "../parseFundingOutpoints-GSM-IaaK.js";
17
- import { B as Fa, a as Ua, f as Na, c as ya, b as Ba, d as Da, g as Ma, i as Ha, h as La, s as Xa, e as ka, w as Wa } from "../waitForTransactionReceiptSmartAware-lobLm0q0.js";
18
- import { B as wa, D as Ga, L as Ya, M as Za, c as Ja, P as ja, b as qa, a as za, S as Qa, T as $a, W as ae, f as ee, d as se, p as te, r as re } from "../fundPeginTransaction-B2wyjqp0.js";
19
- import { U as ie, a as ne, e as ue, f as pe, v as le } from "../reservation-cHDRn4DA.js";
20
- import { M as Pe, V as ce, g as Te, a as Ee, b as Ae, c as Se, d as ge, e as _e, f as Re, h as me, i as xe, p as fe, v as be, j as Ve, k as Oe } from "../mempoolApi-CB7bHuwi.js";
21
- import { O as he, S as ve, V as Ce, g as Fe, h as Ue, i as Ne, a as ye, d as Be, b as De, f as Me, p as He, r as Le, v as Xe, c as ke, e as We } from "../primeVpAuth-l-5x_2UV.js";
22
- import { A as we, D as Ge, b as Ye, J as Ze, a as Je, d as je, P as qe, R as ze, e as Qe, c as $e, V as as } from "../types-CQDRQvV-.js";
23
- import { i as ss } from "../errors-B-H0seUG.js";
24
- import { B as rs, C as os, p as is, q as ns, t as us, u as ps, R as ls, a as ds, n as Ps, o as cs, i as Ts, m as Es, l as As, j as Ss, r as gs, b as _s, s as Rs, v as ms, g as xs, h as fs, d as bs, c as Vs, e as Os, f as Is, k as hs, w as vs } from "../buildAndBroadcastRefund-BiSO4zg2.js";
25
- import { C as Fs, P as Us, c as Ns, g as ys, i as Bs } from "../peginState-BB81JI6I.js";
1
+ import { b as s, c as t } from "../challengeAssert-BVQq50su.js";
2
+ import { a as o } from "../constants-CDQE812z.js";
3
+ import { computeMinClaimValue as n, computeMinPeginFee as p, deriveVaultId as u, expandAuthAnchor as l, expandHashlockSecret as d, expandWotsSeed as P, peginP2aAnchorOutput as c, supportedTxGraphVersions as T, validatePeginP2aAnchor as A } from "@babylonlabs-io/babylon-tbv-rust-wasm";
4
+ import { P as S, d as g, f as _, c as R, b as m, a as x, g as f, e as b } from "../verifyScriptPathSchnorrSignature-CgrnAjMW.js";
5
+ import { b as O, e as v, f as I } from "../peginInput-BKD_b3gq.js";
6
+ import { a as C, b as F } from "../noPayout-CihCk1HE.js";
7
+ import { d as N, a as y, b as D, e as B, f as M, j as H, g as L, h as X, i as k, c as W, p as w, s as K, t as G, u as Y, v as Z } from "../bitcoin-B5aNKtsk.js";
8
+ import { B as j, H as q, K as z, M as Q, T as $, c as aa } from "../validation-Dj3dqYtl.js";
9
+ import { c as sa } from "../signing-DaLvGwQe.js";
10
+ import { P as ra, b as oa, c as ia, d as na, e as pa } from "../PeginManager-Ba7Cr51Z.js";
11
+ import { P as la, c as da, f as Pa, s as ca, v as Ta } from "../PayoutManager-BVgmuKuK.js";
12
+ import { A as Ea, P as Sa } from "../ApplicationRegistry.abi-w5prf7Ig.js";
13
+ import { B as _a } from "../BTCVaultRegistry.abi-Chs4AFBj.js";
14
+ import { C as ma, e as xa, g as fa, h as ba, i as Va } from "../errors-Blc-JWnI.js";
15
+ import { V as va, b as Ia, a as ha, d as Ca } from "../deriveVaultRoot-B_gEOTD6.js";
16
+ import { p as Ua } from "../parseFundingOutpoints-GSM-IaaK.js";
17
+ import { B as ya, a as Da, f as Ba, c as Ma, b as Ha, d as La, g as Xa, i as ka, h as Wa, s as wa, e as Ka, w as Ga } from "../waitForTransactionReceiptSmartAware-lobLm0q0.js";
18
+ import { B as Za, D as Ja, L as ja, M as qa, c as za, P as Qa, b as $a, a as ae, S as ee, T as se, W as te, f as re, d as oe, p as ie, r as ne } from "../fundPeginTransaction-B2wyjqp0.js";
19
+ import { U as ue, a as le, e as de, f as Pe, v as ce } from "../reservation-cHDRn4DA.js";
20
+ import { M as Ae, V as Ee, g as Se, a as ge, b as _e, c as Re, d as me, e as xe, f as fe, h as be, i as Ve, p as Oe, v as ve, j as Ie, k as he } from "../mempoolApi-lpJdvPkK.js";
21
+ import { O as Fe, S as Ue, V as Ne, g as ye, h as De, i as Be, a as Me, d as He, b as Le, f as Xe, p as ke, r as We, v as we, c as Ke, e as Ge } from "../primeVpAuth-Caa5J_uv.js";
22
+ import { A as Ze, D as Je, b as je, J as qe, a as ze, d as Qe, P as $e, R as as, e as es, c as ss, V as ts } from "../types-CQDRQvV-.js";
23
+ import { i as os } from "../errors-B-H0seUG.js";
24
+ import { B as ns, C as ps, p as us, q as ls, t as ds, u as Ps, R as cs, a as Ts, n as As, o as Es, i as Ss, m as gs, l as _s, j as Rs, r as ms, b as xs, s as fs, v as bs, g as Vs, h as Os, d as vs, c as Is, e as hs, f as Cs, k as Fs, w as Us } from "../buildAndBroadcastRefund-BtXUqBkb.js";
25
+ import { C as ys, P as Ds, c as Bs, g as Ms, i as Hs } from "../peginState-BB81JI6I.js";
26
26
  export {
27
- we as AUTH_EXPIRED_DATA_KIND,
28
- ca as ApplicationRegistryABI,
29
- rs as BIP68NotMatureError,
30
- Q as BITCOIN_ADDRESS_RE,
31
- Aa as BTCVaultRegistryABI,
32
- wa as BTC_DUST_SAT,
33
- Fa as BitcoinScriptType,
34
- ga as CONTRACT_ERRORS,
35
- os as ClaimerPegoutStatusValue,
36
- Fs as ContractStatus,
37
- Ga as DUST_THRESHOLD,
38
- Ge as DaemonStatus,
39
- $ as HEX_RE,
40
- Ye as JSON_RPC_ERROR_CODES,
41
- Ze as JsonRpcClient,
42
- Je as JsonRpcError,
43
- aa as KNOWN_SCRIPT_PREFIXES,
44
- Ya as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
45
- Za as MAX_NON_LEGACY_OUTPUT_SIZE,
46
- ea as MAX_REASONABLE_FEE_SATS,
47
- Ja as MAX_REASONABLE_PEGIN_VBYTES,
48
- Pe as MEMPOOL_API_URLS,
49
- he as OnChainBtcVaultStatus,
50
- ja as P2TR_INPUT_SIZE,
51
- qa as PEGIN_AUTH_ANCHOR_OUTPUTS,
52
- za as PEGIN_FIXED_OUTPUTS,
53
- je as POST_WOTS_STATUSES,
54
- qe as PRE_DEPOSITOR_SIGNATURES_STATES,
55
- pa as PayoutManager,
56
- Us as PeginAction,
27
+ Ze as AUTH_EXPIRED_DATA_KIND,
28
+ Ea as ApplicationRegistryABI,
29
+ ns as BIP68NotMatureError,
30
+ j as BITCOIN_ADDRESS_RE,
31
+ _a as BTCVaultRegistryABI,
32
+ Za as BTC_DUST_SAT,
33
+ ya as BitcoinScriptType,
34
+ ma as CONTRACT_ERRORS,
35
+ ps as ClaimerPegoutStatusValue,
36
+ ys as ContractStatus,
37
+ Ja as DUST_THRESHOLD,
38
+ Je as DaemonStatus,
39
+ q as HEX_RE,
40
+ je as JSON_RPC_ERROR_CODES,
41
+ qe as JsonRpcClient,
42
+ ze as JsonRpcError,
43
+ z as KNOWN_SCRIPT_PREFIXES,
44
+ ja as LOW_RATE_ESTIMATION_ACCURACY_BUFFER,
45
+ qa as MAX_NON_LEGACY_OUTPUT_SIZE,
46
+ Q as MAX_REASONABLE_FEE_SATS,
47
+ za as MAX_REASONABLE_PEGIN_VBYTES,
48
+ Ae as MEMPOOL_API_URLS,
49
+ Fe as OnChainBtcVaultStatus,
50
+ Qa as P2TR_INPUT_SIZE,
51
+ $a as PEGIN_AUTH_ANCHOR_OUTPUTS,
52
+ ae as PEGIN_FIXED_OUTPUTS,
53
+ Qe as POST_WOTS_STATUSES,
54
+ $e as PRE_DEPOSITOR_SIGNATURES_STATES,
55
+ la as PayoutManager,
56
+ Ds as PeginAction,
57
57
  ra as PeginManager,
58
- Ta as ProtocolParamsABI,
59
- g as PsbtSubstitutionError,
60
- is as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
61
- ns as REFUND_MAX_FEE_FRACTION_NUMERATOR,
62
- us as REFUND_MAX_FEE_RATE_SATS_VB,
63
- ps as REFUND_VSIZE,
64
- ls as RegisteredVaultVersionMismatchError,
65
- ze as RpcErrorCode,
66
- Qa as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
67
- ve as ServerIdentityError,
68
- sa as TXID_RE,
69
- $a as TX_BUFFER_SIZE_OVERHEAD,
70
- ie as UtxoNotAvailableError,
71
- ba as VAULT_APP_NAME,
72
- Qe as VP_BATCH_MAX_SIZE,
73
- $e as VP_TERMINAL_FAILURE_STATUSES,
74
- as as VP_TRANSIENT_STATUSES,
75
- Ce as VaultProviderRpcClient,
76
- Fe as ViemProtocolParamsReader,
77
- Ue as ViemUniversalChallengerReader,
78
- Ne as ViemVaultKeeperReader,
79
- ce as ViemVaultRegistryReader,
80
- ye as VpResponseValidationError,
81
- Be as VpTokenRegistry,
82
- ae as WALLET_RELAY_FEE_RATE_THRESHOLD,
83
- ds as activateVault,
84
- Ua as applyChangeOutputPolicy,
85
- _ as assertPsbtUnsignedTxMatches,
86
- R as assertScriptPathSchnorrSignature,
87
- ne as assertUtxosAvailable,
88
- i as assertValidVaultCoreVersion,
89
- De as batchPollByProvider,
90
- Ps as buildAndBroadcastRefund,
58
+ Sa as ProtocolParamsABI,
59
+ S as PsbtSubstitutionError,
60
+ us as REFUND_MAX_FEE_FRACTION_DENOMINATOR,
61
+ ls as REFUND_MAX_FEE_FRACTION_NUMERATOR,
62
+ ds as REFUND_MAX_FEE_RATE_SATS_VB,
63
+ Ps as REFUND_VSIZE,
64
+ cs as RegisteredVaultVersionMismatchError,
65
+ as as RpcErrorCode,
66
+ ee as SPLIT_TX_FEE_SAFETY_MULTIPLIER,
67
+ Ue as ServerIdentityError,
68
+ $ as TXID_RE,
69
+ se as TX_BUFFER_SIZE_OVERHEAD,
70
+ ue as UtxoNotAvailableError,
71
+ va as VAULT_APP_NAME,
72
+ es as VP_BATCH_MAX_SIZE,
73
+ ss as VP_TERMINAL_FAILURE_STATUSES,
74
+ ts as VP_TRANSIENT_STATUSES,
75
+ Ne as VaultProviderRpcClient,
76
+ ye as ViemProtocolParamsReader,
77
+ De as ViemUniversalChallengerReader,
78
+ Be as ViemVaultKeeperReader,
79
+ Ee as ViemVaultRegistryReader,
80
+ Me as VpResponseValidationError,
81
+ He as VpTokenRegistry,
82
+ te as WALLET_RELAY_FEE_RATE_THRESHOLD,
83
+ Ts as activateVault,
84
+ Da as applyChangeOutputPolicy,
85
+ g as assertPsbtUnsignedTxMatches,
86
+ _ as assertScriptPathSchnorrSignature,
87
+ le as assertUtxosAvailable,
88
+ o as assertValidVaultCoreVersion,
89
+ Le as batchPollByProvider,
90
+ As as buildAndBroadcastRefund,
91
91
  s as buildChallengeAssertPsbt,
92
- t as buildDepositorPayoutPsbt,
93
- Va as buildFundingOutpointsCommitment,
94
- F as buildNoPayoutPsbt,
95
- m as buildPayoutPsbt,
96
- I as buildPeginInputPsbt,
97
- x as buildPeginTxFromFundedPrePegin,
98
- f as buildPrePeginPsbt,
99
- U as buildRefundPsbt,
100
- Oa as buildVaultContext,
101
- Na as calculateBtcTxHash,
102
- Ns as canPerformAction,
103
- ya as computeChangeOutputFeeSats,
104
- la as computeHashlock,
105
- Ba as computeMaxDeposit,
106
- u as computeMinClaimValue,
92
+ oa as buildDepositTerms,
93
+ Ia as buildFundingOutpointsCommitment,
94
+ C as buildNoPayoutPsbt,
95
+ R as buildPayoutPsbt,
96
+ O as buildPeginInputPsbt,
97
+ m as buildPeginTxFromFundedPrePegin,
98
+ x as buildPrePeginPsbt,
99
+ F as buildRefundPsbt,
100
+ ha as buildVaultContext,
101
+ Ba as calculateBtcTxHash,
102
+ Bs as canPerformAction,
103
+ aa as combineAbortSignals,
104
+ Ma as computeChangeOutputFeeSats,
105
+ da as computeHashlock,
106
+ Ha as computeMaxDeposit,
107
+ n as computeMinClaimValue,
107
108
  p as computeMinPeginFee,
108
- r as computeNumLocalChallengers,
109
- Da as computePeginBaseFeeSats,
110
- oa as computeWotsBlockPublicKeysHash,
111
- Me as createAuthenticatedVpClient,
112
- b as createPayoutScript,
113
- q as createTaprootScriptPathSignOptions,
114
- y as deriveBip86ScriptPubKeyHex,
115
- B as deriveNativeSegwitAddress,
109
+ t as computeNumLocalChallengers,
110
+ La as computePeginBaseFeeSats,
111
+ ia as computeWotsBlockPublicKeysHash,
112
+ Xe as createAuthenticatedVpClient,
113
+ f as createPayoutScript,
114
+ sa as createTaprootScriptPathSignOptions,
115
+ N as deriveBip86ScriptPubKeyHex,
116
+ y as deriveNativeSegwitAddress,
116
117
  D as deriveTaprootAddress,
117
- l as deriveVaultId,
118
- Ia as deriveVaultRoot,
119
- ia as deriveWotsBlocksFromSeed,
120
- M as ensureHexPrefix,
121
- cs as estimateRefundFeeSats,
122
- na as estimateSubmitPeginRequestBatchGas,
123
- d as expandAuthAnchor,
124
- P as expandHashlockSecret,
125
- c as expandWotsSeed,
126
- _a as extractErrorData,
127
- ue as extractInputsFromTransaction,
128
- V as extractPayoutSignature,
129
- h as extractPeginInputSignature,
130
- v as finalizePeginInputPsbt,
131
- pe as findOverlappingPendingVaults,
132
- H as formatSatoshisToBtc,
133
- ee as fundPeginTransaction,
134
- Te as getAddressTxs,
135
- Ee as getAddressUtxos,
136
- Ra as getContractErrorMessage,
137
- Ma as getDustThreshold,
138
- Ae as getMempoolApiUrl,
139
- L as getNetwork,
140
- Se as getNetworkFees,
141
- ge as getOutspend,
142
- ys as getPeginProtocolState,
143
- Ha as getPsbtInputFields,
144
- La as getScriptType,
145
- X as getSortedXOnlyPubkeys,
146
- _e as getTipHeight,
147
- Re as getTxHex,
148
- me as getTxInfo,
149
- xe as getUtxoInfo,
150
- ma as handleContractError,
151
- k as hexToUint8Array,
152
- Bs as isActivationDeadlinePassedOnChain,
153
- W as isAddressFromPublicKey,
154
- Ts as isDepositAmountValid,
155
- xa as isKnownContractError,
156
- Es as isPegoutTerminalStatus,
157
- As as isRecognizedPegoutStatus,
158
- Ss as isRegisteredVaultVersionMismatchError,
159
- K as isValidHex,
160
- ss as isWotsMismatchError,
161
- va as parseFundingOutpointsFromTx,
162
- se as parseUnfundedWasmTransaction,
163
- te as peginOutputCount,
164
- T as peginP2aAnchorOutput,
165
- He as primeVpTokenRegistry,
118
+ u as deriveVaultId,
119
+ Ca as deriveVaultRoot,
120
+ na as deriveWotsBlocksFromSeed,
121
+ B as ensureHexPrefix,
122
+ Es as estimateRefundFeeSats,
123
+ pa as estimateSubmitPeginRequestBatchGas,
124
+ l as expandAuthAnchor,
125
+ d as expandHashlockSecret,
126
+ P as expandWotsSeed,
127
+ xa as extractErrorData,
128
+ de as extractInputsFromTransaction,
129
+ b as extractPayoutSignature,
130
+ v as extractPeginInputSignature,
131
+ I as finalizePeginInputPsbt,
132
+ Pe as findOverlappingPendingVaults,
133
+ M as formatSatoshisToBtc,
134
+ Pa as forwardDepositApproval,
135
+ re as fundPeginTransaction,
136
+ Se as getAddressTxs,
137
+ ge as getAddressUtxos,
138
+ fa as getContractErrorMessage,
139
+ Xa as getDustThreshold,
140
+ _e as getMempoolApiUrl,
141
+ H as getNetwork,
142
+ Re as getNetworkFees,
143
+ me as getOutspend,
144
+ Ms as getPeginProtocolState,
145
+ ka as getPsbtInputFields,
146
+ Wa as getScriptType,
147
+ L as getSortedXOnlyPubkeys,
148
+ xe as getTipHeight,
149
+ fe as getTxHex,
150
+ be as getTxInfo,
151
+ Ve as getUtxoInfo,
152
+ ba as handleContractError,
153
+ X as hexToUint8Array,
154
+ Hs as isActivationDeadlinePassedOnChain,
155
+ k as isAddressFromPublicKey,
156
+ Ss as isDepositAmountValid,
157
+ Va as isKnownContractError,
158
+ gs as isPegoutTerminalStatus,
159
+ _s as isRecognizedPegoutStatus,
160
+ Rs as isRegisteredVaultVersionMismatchError,
161
+ W as isValidHex,
162
+ os as isWotsMismatchError,
163
+ Ua as parseFundingOutpointsFromTx,
164
+ oe as parseUnfundedWasmTransaction,
165
+ ie as peginOutputCount,
166
+ c as peginP2aAnchorOutput,
167
+ ke as primeVpTokenRegistry,
166
168
  w as processPublicKeyToXOnly,
167
- fe as pushTx,
168
- re as rateBasedTxBufferFee,
169
- Le as resolveProtocolAddresses,
170
- gs as runDepositorPresignFlow,
171
- Xa as selectUtxosForPegin,
172
- ka as shouldAddChangeOutput,
173
- _s as signDepositorGraph,
174
- G as stripHexPrefix,
175
- Rs as submitWotsPublicKey,
176
- E as supportedTxGraphVersions,
177
- Y as toXOnly,
178
- Z as uint8ArrayToHex,
179
- ms as validateDepositAmount,
180
- xs as validateMultiVaultDepositInputs,
181
- be as validateOffchainParams,
182
- fs as validateOnChainParticipantKeys,
183
- Ve as validatePegInConfiguration,
169
+ Oe as pushTx,
170
+ ne as rateBasedTxBufferFee,
171
+ We as resolveProtocolAddresses,
172
+ ms as runDepositorPresignFlow,
173
+ wa as selectUtxosForPegin,
174
+ Ka as shouldAddChangeOutput,
175
+ xs as signDepositorGraph,
176
+ K as stripHexPrefix,
177
+ fs as submitWotsPublicKey,
178
+ T as supportedTxGraphVersions,
179
+ ca as supportsDepositApproval,
180
+ G as toXOnly,
181
+ Y as uint8ArrayToHex,
182
+ bs as validateDepositAmount,
183
+ Vs as validateMultiVaultDepositInputs,
184
+ ve as validateOffchainParams,
185
+ Os as validateOnChainParticipantKeys,
186
+ Ie as validatePegInConfiguration,
184
187
  A as validatePeginP2aAnchor,
185
- bs as validateProviderSelection,
186
- Vs as validateRemainingCapacity,
187
- Xe as validateRequestDepositorClaimerArtifactsResponse,
188
- da as validateSecretAgainstHashlock,
189
- Oe as validateTBVProtocolParams,
190
- le as validateUtxosAvailable,
191
- Os as validateVaultAmounts,
192
- Is as validateVaultProviderPubkey,
193
- J as validateWalletPubkey,
194
- hs as verifyRegisteredVaultVersions,
195
- ke as verifyServerIdentity,
196
- We as vpTokenRegistry,
197
- vs as waitForPeginStatus,
198
- Wa as waitForTransactionReceiptSmartAware
188
+ vs as validateProviderSelection,
189
+ Is as validateRemainingCapacity,
190
+ we as validateRequestDepositorClaimerArtifactsResponse,
191
+ Ta as validateSecretAgainstHashlock,
192
+ he as validateTBVProtocolParams,
193
+ ce as validateUtxosAvailable,
194
+ hs as validateVaultAmounts,
195
+ Cs as validateVaultProviderPubkey,
196
+ Z as validateWalletPubkey,
197
+ Fs as verifyRegisteredVaultVersions,
198
+ Ke as verifyServerIdentity,
199
+ Ge as vpTokenRegistry,
200
+ Us as waitForPeginStatus,
201
+ Ga as waitForTransactionReceiptSmartAware
199
202
  };
200
203
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  export { getPosition, getPositionSizeParams, } from './query.js';
2
- export { getDynamicReserveConfig, getReserve, getTargetHealthFactor, getUserAccountData, getUserPosition, getUserPositionAndAccountData, getUserPositions, getUserTotalDebt, getUserTotalDebts, hasCollateral, hasDebt, } from './spoke.js';
2
+ export { getDynamicReserveConfig, getReserve, getTargetHealthFactor, getUserAccountData, getUserPosition, getUserPositionAndAccountData, getUserPositions, getUserTotalDebt, getUserTotalDebts, } from './spoke.js';
3
3
  export { getPositionReserveTotalDebt } from './positionProxy.js';
4
4
  export { getOracleAddress, getReservesPrices, getReservesPricesSafe, type ReservePriceResult, } from './oracle.js';
5
5
  export { getAssetDrawnRatesSafe, type AssetDrawnRateRequest, type AssetDrawnRateResult, } from './hub.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/integrations/aave/clients/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,uBAAuB,EACvB,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,OAAO,GACR,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAGjE,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,sBAAsB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,YAAY,EACZ,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/integrations/aave/clients/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,qBAAqB,GACtB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,uBAAuB,EACvB,UAAU,EACV,qBAAqB,EACrB,kBAAkB,EAClB,eAAe,EACf,6BAA6B,EAC7B,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAGjE,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,sBAAsB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,YAAY,EACZ,0BAA0B,GAC3B,MAAM,kBAAkB,CAAC"}
@@ -72,26 +72,6 @@ export declare function getUserPositionAndAccountData(publicClient: PublicClient
72
72
  * @returns User position data
73
73
  */
74
74
  export declare function getUserPosition(publicClient: PublicClient, spokeAddress: Address, reserveId: bigint, userAddress: Address): Promise<AaveSpokeUserPosition>;
75
- /**
76
- * Check if a user has any debt in a reserve
77
- *
78
- * @param publicClient - Viem public client for reading contracts
79
- * @param spokeAddress - Aave Spoke contract address
80
- * @param reserveId - Reserve ID
81
- * @param userAddress - User's proxy contract address
82
- * @returns true if user has debt
83
- */
84
- export declare function hasDebt(publicClient: PublicClient, spokeAddress: Address, reserveId: bigint, userAddress: Address): Promise<boolean>;
85
- /**
86
- * Check if a user has supplied collateral in a reserve
87
- *
88
- * @param publicClient - Viem public client for reading contracts
89
- * @param spokeAddress - Aave Spoke contract address
90
- * @param reserveId - Reserve ID
91
- * @param userAddress - User's proxy contract address
92
- * @returns true if user has supplied collateral
93
- */
94
- export declare function hasCollateral(publicClient: PublicClient, spokeAddress: Address, reserveId: bigint, userAddress: Address): Promise<boolean>;
95
75
  /**
96
76
  * Get user's exact total debt in a reserve (token units, not shares).
97
77
  *
@@ -1 +1 @@
1
- {"version":3,"file":"spoke.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/integrations/aave/clients/spoke.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAO,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEvD,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAoDrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,kBAAkB,CACtC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,wBAAwB,CAAC,CASnC;AAED;;;;;GAKG;AACH,wBAAsB,6BAA6B,CACjD,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC;IACT,QAAQ,EAAE,qBAAqB,CAAC;IAChC,WAAW,EAAE,wBAAwB,CAAC;CACvC,CAAC,CAyBD;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CACnC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,qBAAqB,CAAC,CAShC;AAED;;;;;;;;GAQG;AACH,wBAAsB,OAAO,CAC3B,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,OAAO,CAAC,CAQlB;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,OAAO,CAAC,CAQlB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,MAAM,CAAC,CASjB;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,UAAU,EAAE,MAAM,EAAE,EACpB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,CAAC,qBAAqB,GAAG,IAAI,CAAC,EAAE,CAAC,CAgB3C;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,UAAU,EAAE,MAAM,EAAE,EACpB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,MAAM,EAAE,CAAC,CAYnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAC9B,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC,CAQxB;AASD,6DAA6D;AAC7D,KAAK,0BAA0B,GAAG;IAChC,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CACzC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,MAAM,CAAC,CAQjB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,0BAA0B,CAAC,CAQrC"}
1
+ {"version":3,"file":"spoke.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/integrations/aave/clients/spoke.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAO,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEvD,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAmDrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAsB,kBAAkB,CACtC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,wBAAwB,CAAC,CASnC;AAED;;;;;GAKG;AACH,wBAAsB,6BAA6B,CACjD,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC;IACT,QAAQ,EAAE,qBAAqB,CAAC;IAChC,WAAW,EAAE,wBAAwB,CAAC;CACvC,CAAC,CAyBD;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CACnC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,qBAAqB,CAAC,CAShC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,MAAM,CAAC,CASjB;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,UAAU,EAAE,MAAM,EAAE,EACpB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,CAAC,qBAAqB,GAAG,IAAI,CAAC,EAAE,CAAC,CAgB3C;AAED;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,UAAU,EAAE,MAAM,EAAE,EACpB,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC,MAAM,EAAE,CAAC,CAYnB;AAED;;;;;;;;;;;;;;;GAeG;AACH,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,UAAU,CAC9B,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,aAAa,CAAC,CAQxB;AASD,6DAA6D;AAC7D,KAAK,0BAA0B,GAAG;IAChC,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CACzC,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,GACpB,OAAO,CAAC,MAAM,CAAC,CAQjB;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,OAAO,EACrB,SAAS,EAAE,MAAM,EACjB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,0BAA0B,CAAC,CAQrC"}
@@ -18,28 +18,6 @@ export declare const AAVE_FUNCTION_NAMES: {
18
18
  /** Reorder vault prefix ordering for liquidation priority */
19
19
  readonly REORDER_VAULTS: "reorderVaults";
20
20
  };
21
- /**
22
- * BTC token decimals (satoshis)
23
- * 1 BTC = 100,000,000 satoshis
24
- */
25
- export declare const BTC_DECIMALS = 8;
26
- /**
27
- * USDC token decimals
28
- * Used for debt calculations
29
- */
30
- export declare const USDC_DECIMALS = 6;
31
- /**
32
- * Divisor to convert basis points (BPS) to percentage
33
- *
34
- * In Aave v4, risk parameters like collateralRisk are stored in BPS
35
- * where 10000 BPS = 100%.
36
- *
37
- * Example: 8000 BPS / 100 = 80%
38
- *
39
- * Reference: ISpoke.sol - "collateralRisk The risk associated with a
40
- * collateral asset, expressed in BPS"
41
- */
42
- export declare const BPS_TO_PERCENT_DIVISOR = 100;
43
21
  /**
44
22
  * Full basis points scale (10000 BPS = 100%)
45
23
  *
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tbv/integrations/aave/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC9B,kEAAkE;;IAElE,sCAAsC;;IAEtC,wCAAwC;;IAExC,6DAA6D;;CAErD,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,YAAY,IAAI,CAAC;AAE9B;;;GAGG;AACH,eAAO,MAAM,aAAa,IAAI,CAAC;AAE/B;;;;;;;;;;GAUG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QAAQ,CAAC;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B;;;GAGG;AACH,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAEjD;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,OAAO,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tbv/integrations/aave/constants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC9B,kEAAkE;;IAElE,sCAAsC;;IAEtC,wCAAwC;;IAExC,6DAA6D;;CAErD,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,SAAS,QAAQ,CAAC;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAC;AAE9C;;;;;;GAMG;AACH,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B;;;GAGG;AACH,eAAO,MAAM,+BAA+B,MAAM,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAEjD;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,OAAO,CAAC"}