@babylonlabs-io/ts-sdk 3.0.2 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApplicationRegistry.abi-s8cQ1ooR.js +160 -0
- package/dist/ApplicationRegistry.abi-s8cQ1ooR.js.map +1 -0
- package/dist/ApplicationRegistry.abi-sMiTWmnL.cjs +2 -0
- package/dist/ApplicationRegistry.abi-sMiTWmnL.cjs.map +1 -0
- package/dist/{BTCVaultRegistry.abi-BQ5tFNSu.cjs → BTCVaultRegistry.abi-CohlJX7c.cjs} +2 -2
- package/dist/{BTCVaultRegistry.abi-BQ5tFNSu.cjs.map → BTCVaultRegistry.abi-CohlJX7c.cjs.map} +1 -1
- package/dist/{BTCVaultRegistry.abi-B0x9_Bza.js → BTCVaultRegistry.abi-DBW0dyqH.js} +63 -1
- package/dist/{BTCVaultRegistry.abi-B0x9_Bza.js.map → BTCVaultRegistry.abi-DBW0dyqH.js.map} +1 -1
- package/dist/{PayoutManager-BSwbUQeF.js → PayoutManager-BZ212yml.js} +124 -123
- package/dist/PayoutManager-BZ212yml.js.map +1 -0
- package/dist/PayoutManager-DOdsgcUR.cjs +2 -0
- package/dist/PayoutManager-DOdsgcUR.cjs.map +1 -0
- package/dist/PeginManager-8EUlm10F.cjs +2 -0
- package/dist/{PeginManager-IgDHy_eU.cjs.map → PeginManager-8EUlm10F.cjs.map} +1 -1
- package/dist/{PeginManager-D8WGB8eN.js → PeginManager-QRwMUxZg.js} +45 -43
- package/dist/{PeginManager-D8WGB8eN.js.map → PeginManager-QRwMUxZg.js.map} +1 -1
- package/dist/{ProtocolParams.abi-q0AidvYX.js → ProtocolParams.abi-CKOVqFJP.js} +2 -158
- package/dist/ProtocolParams.abi-CKOVqFJP.js.map +1 -0
- package/dist/ProtocolParams.abi-CjrT0545.cjs +2 -0
- package/dist/ProtocolParams.abi-CjrT0545.cjs.map +1 -0
- package/dist/btcTxHash-BRZ8_EZq.js +9 -0
- package/dist/btcTxHash-BRZ8_EZq.js.map +1 -0
- package/dist/btcTxHash-CGb5BqFL.cjs +2 -0
- package/dist/btcTxHash-CGb5BqFL.cjs.map +1 -0
- package/dist/buildAndBroadcastReclaim-DjX7wVb2.cjs +2 -0
- package/dist/buildAndBroadcastReclaim-DjX7wVb2.cjs.map +1 -0
- package/dist/buildAndBroadcastReclaim-DoprHX7o.js +3077 -0
- package/dist/buildAndBroadcastReclaim-DoprHX7o.js.map +1 -0
- package/dist/buildVaultContextInputForClaim-9XZaqIiw.cjs +2 -0
- package/dist/buildVaultContextInputForClaim-9XZaqIiw.cjs.map +1 -0
- package/dist/buildVaultContextInputForClaim-DhBoQKyN.js +25 -0
- package/dist/buildVaultContextInputForClaim-DhBoQKyN.js.map +1 -0
- package/dist/constants-BeYquVd-.js +36 -0
- package/dist/constants-BeYquVd-.js.map +1 -0
- package/dist/constants-BwCg5K6R.cjs +2 -0
- package/dist/constants-BwCg5K6R.cjs.map +1 -0
- package/dist/{index-D2mybjXD.js → index-CVBtBjQ5.js} +2 -2
- package/dist/{index-D2mybjXD.js.map → index-CVBtBjQ5.js.map} +1 -1
- package/dist/{index-MRdle0fs.cjs → index-DpjYs5yr.cjs} +2 -2
- package/dist/{index-MRdle0fs.cjs.map → index-DpjYs5yr.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +288 -260
- package/dist/index.js.map +1 -1
- package/dist/{noPayout-qBXWKwav.js → noPayout-B-vGXJ-V.js} +3 -3
- package/dist/{noPayout-qBXWKwav.js.map → noPayout-B-vGXJ-V.js.map} +1 -1
- package/dist/{noPayout-DAWBQ0eG.cjs → noPayout-DOHak0ui.cjs} +2 -2
- package/dist/{noPayout-DAWBQ0eG.cjs.map → noPayout-DOHak0ui.cjs.map} +1 -1
- package/dist/pegin-registration-client-BWMwxtr8.js +718 -0
- package/dist/pegin-registration-client-BWMwxtr8.js.map +1 -0
- package/dist/pegin-registration-client-D4EguWaz.cjs +2 -0
- package/dist/pegin-registration-client-D4EguWaz.cjs.map +1 -0
- package/dist/{primeVpAuth-BDWBKYhv.cjs → primeVpAuth-BPj2TPdD.cjs} +2 -2
- package/dist/{primeVpAuth-BDWBKYhv.cjs.map → primeVpAuth-BPj2TPdD.cjs.map} +1 -1
- package/dist/{primeVpAuth-D0ZnsjRi.js → primeVpAuth-CiCdRNGf.js} +2 -2
- package/dist/{primeVpAuth-D0ZnsjRi.js.map → primeVpAuth-CiCdRNGf.js.map} +1 -1
- package/dist/registration-records-CKLAv3gw.js +447 -0
- package/dist/registration-records-CKLAv3gw.js.map +1 -0
- package/dist/registration-records-DFQgBaYi.cjs +2 -0
- package/dist/registration-records-DFQgBaYi.cjs.map +1 -0
- package/dist/{secp256k1-D-H9jmd7.js → secp256k1-BuxBFUHm.js} +3 -3
- package/dist/{secp256k1-D-H9jmd7.js.map → secp256k1-BuxBFUHm.js.map} +1 -1
- package/dist/signer-set-reader-C1VmC9_U.js +264 -0
- package/dist/signer-set-reader-C1VmC9_U.js.map +1 -0
- package/dist/signer-set-reader-C6g47hdk.cjs +2 -0
- package/dist/signer-set-reader-C6g47hdk.cjs.map +1 -0
- package/dist/{signing-Dhr2t0Z6.js → signing-C1rR4tqs.js} +9 -15
- package/dist/signing-C1rR4tqs.js.map +1 -0
- package/dist/signing-DvISftFk.cjs +2 -0
- package/dist/signing-DvISftFk.cjs.map +1 -0
- package/dist/tbv/core/clients/eth/__tests__/registration-records.test.d.ts +2 -0
- package/dist/tbv/core/clients/eth/__tests__/registration-records.test.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/claimable-event-error.d.ts +14 -0
- package/dist/tbv/core/clients/eth/claimable-event-error.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/index.cjs +1 -1
- package/dist/tbv/core/clients/eth/index.d.ts +3 -1
- package/dist/tbv/core/clients/eth/index.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/index.js +27 -21
- package/dist/tbv/core/clients/eth/index.js.map +1 -1
- package/dist/tbv/core/clients/eth/payout-script.d.ts +8 -0
- package/dist/tbv/core/clients/eth/payout-script.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/protocol-params-reader.d.ts +13 -0
- package/dist/tbv/core/clients/eth/protocol-params-reader.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/registration-logs-error.d.ts +11 -1
- package/dist/tbv/core/clients/eth/registration-logs-error.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/registration-records.d.ts +29 -0
- package/dist/tbv/core/clients/eth/registration-records.d.ts.map +1 -0
- package/dist/tbv/core/clients/eth/types.d.ts +120 -3
- package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts +9 -10
- package/dist/tbv/core/clients/eth/vault-registry-reader.d.ts.map +1 -1
- package/dist/tbv/core/clients/index.cjs +1 -1
- package/dist/tbv/core/clients/index.js +56 -50
- package/dist/tbv/core/clients/index.js.map +1 -1
- package/dist/tbv/core/clients/vault-provider/status/index.cjs +1 -1
- package/dist/tbv/core/clients/vault-provider/status/index.js +1 -1
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +45 -0
- package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
- package/dist/tbv/core/contracts/index.cjs +1 -1
- package/dist/tbv/core/contracts/index.js +16 -15
- package/dist/tbv/core/contracts/index.js.map +1 -1
- package/dist/tbv/core/deposit-terms/__tests__/claimSiblings.test.d.ts +2 -0
- package/dist/tbv/core/deposit-terms/__tests__/claimSiblings.test.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/__tests__/fixtures/realFundedPrePegin.d.ts +29 -0
- package/dist/tbv/core/deposit-terms/__tests__/fixtures/realFundedPrePegin.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/__tests__/fundedPrePeginFee.test.d.ts +2 -0
- package/dist/tbv/core/deposit-terms/__tests__/fundedPrePeginFee.test.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/__tests__/rebuildDepositTermsForClaim.golden.test.d.ts +2 -0
- package/dist/tbv/core/deposit-terms/__tests__/rebuildDepositTermsForClaim.golden.test.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/__tests__/rebuildDepositTermsForClaim.test.d.ts +2 -0
- package/dist/tbv/core/deposit-terms/__tests__/rebuildDepositTermsForClaim.test.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/claimSiblings.d.ts +23 -0
- package/dist/tbv/core/deposit-terms/claimSiblings.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/fundedPrePeginFee.d.ts +15 -0
- package/dist/tbv/core/deposit-terms/fundedPrePeginFee.d.ts.map +1 -0
- package/dist/tbv/core/deposit-terms/index.d.ts +3 -0
- package/dist/tbv/core/deposit-terms/index.d.ts.map +1 -1
- package/dist/tbv/core/deposit-terms/rebuildDepositTermsForClaim.d.ts +40 -0
- package/dist/tbv/core/deposit-terms/rebuildDepositTermsForClaim.d.ts.map +1 -0
- package/dist/tbv/core/index.cjs +1 -1
- package/dist/tbv/core/index.js +287 -259
- package/dist/tbv/core/index.js.map +1 -1
- package/dist/tbv/core/managers/index.cjs +1 -1
- package/dist/tbv/core/managers/index.js +2 -2
- package/dist/tbv/core/managers/pegin/signPsbtsWithFallback.d.ts +6 -2
- package/dist/tbv/core/managers/pegin/signPsbtsWithFallback.d.ts.map +1 -1
- package/dist/tbv/core/primitives/index.cjs +1 -1
- package/dist/tbv/core/primitives/index.js +4 -4
- package/dist/tbv/core/primitives/psbt/constants.d.ts +54 -6
- package/dist/tbv/core/primitives/psbt/constants.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/__tests__/assembleWatchtowerArtifactsFromSignatures.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/assembleWatchtowerArtifactsFromSignatures.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/assertBinding.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/assertBinding.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/assertPayoutFeeAndTimelocks.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/assertPayoutFeeAndTimelocks.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/fixtures/delegatedClaimPsbts.d.ts +49 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/fixtures/delegatedClaimPsbts.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/payoutBinding.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/payoutBinding.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/payoutInputLeaf.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/payoutInputLeaf.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/planDelegatedClaimSigning.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/planDelegatedClaimSigning.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/readDelegatedClaimVaultContext.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/readDelegatedClaimVaultContext.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/realSchnorrVerification.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/realSchnorrVerification.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/signDelegatedClaimPlan.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/signDelegatedClaimPlan.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/signingRequests.test.d.ts +2 -0
- package/dist/tbv/core/services/delegated-claim/__tests__/signingRequests.test.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts +34 -9
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifacts.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifactsFromSignatures.d.ts +36 -0
- package/dist/tbv/core/services/delegated-claim/assembleWatchtowerArtifactsFromSignatures.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/assertBinding.d.ts +37 -0
- package/dist/tbv/core/services/delegated-claim/assertBinding.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/assertPayoutFeeAndTimelocks.d.ts +35 -0
- package/dist/tbv/core/services/delegated-claim/assertPayoutFeeAndTimelocks.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/index.d.ts +22 -4
- package/dist/tbv/core/services/delegated-claim/index.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/payoutBinding.d.ts +10 -4
- package/dist/tbv/core/services/delegated-claim/payoutBinding.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/payoutInputLeaf.d.ts +34 -0
- package/dist/tbv/core/services/delegated-claim/payoutInputLeaf.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/planDelegatedClaimSigning.d.ts +43 -0
- package/dist/tbv/core/services/delegated-claim/planDelegatedClaimSigning.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/readDelegatedClaimVaultContext.d.ts +70 -0
- package/dist/tbv/core/services/delegated-claim/readDelegatedClaimVaultContext.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts +31 -2
- package/dist/tbv/core/services/delegated-claim/readWatchtowerArtifacts.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/signDelegatedClaimPlan.d.ts +110 -0
- package/dist/tbv/core/services/delegated-claim/signDelegatedClaimPlan.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/signingRequests.d.ts +24 -0
- package/dist/tbv/core/services/delegated-claim/signingRequests.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/types.d.ts +110 -9
- package/dist/tbv/core/services/delegated-claim/types.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/vaultIdBinding.d.ts +16 -1
- package/dist/tbv/core/services/delegated-claim/vaultIdBinding.d.ts.map +1 -1
- package/dist/tbv/core/services/delegated-claim/verifySignatureForRequest.d.ts +19 -0
- package/dist/tbv/core/services/delegated-claim/verifySignatureForRequest.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/verifyingKeyBinding.d.ts +40 -0
- package/dist/tbv/core/services/delegated-claim/verifyingKeyBinding.d.ts.map +1 -0
- package/dist/tbv/core/services/delegated-claim/walletIdentity.d.ts +23 -0
- package/dist/tbv/core/services/delegated-claim/walletIdentity.d.ts.map +1 -0
- package/dist/tbv/core/services/index.cjs +1 -1
- package/dist/tbv/core/services/index.js +89 -76
- package/dist/tbv/core/services/participants/__tests__/readStampedParticipantKeys.test.d.ts +2 -0
- package/dist/tbv/core/services/participants/__tests__/readStampedParticipantKeys.test.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/index.d.ts +1 -0
- package/dist/tbv/core/services/participants/index.d.ts.map +1 -1
- package/dist/tbv/core/services/participants/readStampedParticipantKeys.d.ts +29 -0
- package/dist/tbv/core/services/participants/readStampedParticipantKeys.d.ts.map +1 -0
- package/dist/tbv/core/services/participants/resolveParticipantKeys.d.ts +1 -1
- package/dist/tbv/core/services/participants/resolveParticipantKeys.d.ts.map +1 -1
- package/dist/tbv/core/utils/eth/index.cjs +1 -1
- package/dist/tbv/core/utils/eth/index.cjs.map +1 -1
- package/dist/tbv/core/utils/eth/index.js +20 -20
- package/dist/tbv/core/utils/eth/index.js.map +1 -1
- package/dist/tbv/core/utils/eth/waitForTransactionReceiptSmartAware.d.ts.map +1 -1
- package/dist/tbv/core/utils/index.cjs +1 -1
- package/dist/tbv/core/utils/index.js +47 -46
- package/dist/tbv/core/utils/index.js.map +1 -1
- package/dist/tbv/core/vault-secrets/__tests__/buildVaultContextInputForClaim.test.d.ts +2 -0
- package/dist/tbv/core/vault-secrets/__tests__/buildVaultContextInputForClaim.test.d.ts.map +1 -0
- package/dist/tbv/core/vault-secrets/buildVaultContextInputForClaim.d.ts +18 -0
- package/dist/tbv/core/vault-secrets/buildVaultContextInputForClaim.d.ts.map +1 -0
- package/dist/tbv/core/vault-secrets/index.cjs +1 -1
- package/dist/tbv/core/vault-secrets/index.d.ts +1 -0
- package/dist/tbv/core/vault-secrets/index.d.ts.map +1 -1
- package/dist/tbv/core/vault-secrets/index.js +12 -10
- package/dist/tbv/core/vault-secrets/index.js.map +1 -1
- package/dist/tbv/index.cjs +1 -1
- package/dist/tbv/index.js +287 -259
- package/dist/tbv/index.js.map +1 -1
- package/dist/toRefundInputs-BZXvuOMY.cjs +2 -0
- package/dist/toRefundInputs-BZXvuOMY.cjs.map +1 -0
- package/dist/toRefundInputs-dKDSvpVI.js +698 -0
- package/dist/toRefundInputs-dKDSvpVI.js.map +1 -0
- package/dist/types-Bda75Od0.cjs +2 -0
- package/dist/types-Bda75Od0.cjs.map +1 -0
- package/dist/types-C5jj3Cc-.js +198 -0
- package/dist/types-C5jj3Cc-.js.map +1 -0
- package/dist/{verifyKeyPathSchnorrSignature-Gm9EmZkx.cjs → verifyKeyPathSchnorrSignature-CQUut2-O.cjs} +2 -2
- package/dist/{verifyKeyPathSchnorrSignature-Gm9EmZkx.cjs.map → verifyKeyPathSchnorrSignature-CQUut2-O.cjs.map} +1 -1
- package/dist/{verifyKeyPathSchnorrSignature-BQHNhRj6.js → verifyKeyPathSchnorrSignature-DxPbeSdQ.js} +2 -2
- package/dist/{verifyKeyPathSchnorrSignature-BQHNhRj6.js.map → verifyKeyPathSchnorrSignature-DxPbeSdQ.js.map} +1 -1
- package/dist/{verifyScriptPathSchnorrSignature-CpjSTfMj.js → verifyScriptPathSchnorrSignature-B3-VkvnK.js} +6 -4
- package/dist/{verifyScriptPathSchnorrSignature-CpjSTfMj.js.map → verifyScriptPathSchnorrSignature-B3-VkvnK.js.map} +1 -1
- package/dist/{verifyScriptPathSchnorrSignature-BKZihCjk.cjs → verifyScriptPathSchnorrSignature-D2t1yACC.cjs} +2 -2
- package/dist/{verifyScriptPathSchnorrSignature-BKZihCjk.cjs.map → verifyScriptPathSchnorrSignature-D2t1yACC.cjs.map} +1 -1
- package/package.json +3 -3
- package/dist/PayoutManager-B6GFbG3X.cjs +0 -2
- package/dist/PayoutManager-B6GFbG3X.cjs.map +0 -1
- package/dist/PayoutManager-BSwbUQeF.js.map +0 -1
- package/dist/PeginManager-IgDHy_eU.cjs +0 -2
- package/dist/ProtocolParams.abi-Db2USqQm.cjs +0 -2
- package/dist/ProtocolParams.abi-Db2USqQm.cjs.map +0 -1
- package/dist/ProtocolParams.abi-q0AidvYX.js.map +0 -1
- package/dist/buildAndBroadcastReclaim-B8aFMGf-.cjs +0 -2
- package/dist/buildAndBroadcastReclaim-B8aFMGf-.cjs.map +0 -1
- package/dist/buildAndBroadcastReclaim-D5520lbL.js +0 -2210
- package/dist/buildAndBroadcastReclaim-D5520lbL.js.map +0 -1
- package/dist/constants-BTZdyOuk.cjs +0 -2
- package/dist/constants-BTZdyOuk.cjs.map +0 -1
- package/dist/constants-D5vORbQE.js +0 -29
- package/dist/constants-D5vORbQE.js.map +0 -1
- package/dist/onChainBtcPubkey-BlzxYImF.cjs +0 -2
- package/dist/onChainBtcPubkey-BlzxYImF.cjs.map +0 -1
- package/dist/onChainBtcPubkey-CCTdl53s.js +0 -159
- package/dist/onChainBtcPubkey-CCTdl53s.js.map +0 -1
- package/dist/pegin-registration-client-B0j6ugt9.cjs +0 -2
- package/dist/pegin-registration-client-B0j6ugt9.cjs.map +0 -1
- package/dist/pegin-registration-client-ilkV1mLP.js +0 -878
- package/dist/pegin-registration-client-ilkV1mLP.js.map +0 -1
- package/dist/signing-3l5Aqd-H.cjs +0 -2
- package/dist/signing-3l5Aqd-H.cjs.map +0 -1
- package/dist/signing-Dhr2t0Z6.js.map +0 -1
- package/dist/toRefundInputs-10RYIfh1.js +0 -559
- package/dist/toRefundInputs-10RYIfh1.js.map +0 -1
- package/dist/toRefundInputs-a-0HRyrl.cjs +0 -2
- package/dist/toRefundInputs-a-0HRyrl.cjs.map +0 -1
- package/dist/types-BueQoMjO.cjs +0 -2
- package/dist/types-BueQoMjO.cjs.map +0 -1
- package/dist/types-DGkejGZH.js +0 -456
- package/dist/types-DGkejGZH.js.map +0 -1
|
@@ -6,19 +6,21 @@ import * as de from "bitcoinjs-lib";
|
|
|
6
6
|
import { Transaction as ge, Psbt as Z } from "bitcoinjs-lib";
|
|
7
7
|
import { Buffer as _ } from "buffer";
|
|
8
8
|
import { isAddressEqual as J } from "viem";
|
|
9
|
-
import {
|
|
10
|
-
import { pushTx as
|
|
11
|
-
import { expandWotsSeed as
|
|
12
|
-
import { a as ee, b as
|
|
13
|
-
import { d as
|
|
14
|
-
import { p as
|
|
15
|
-
import { c as
|
|
16
|
-
import { M as ne, X as
|
|
9
|
+
import { c as Be, V as _e } from "./pegin-registration-client-BWMwxtr8.js";
|
|
10
|
+
import { pushTx as Ce, getUtxoInfo as Ae } from "./tbv/core/clients/mempool/index.js";
|
|
11
|
+
import { expandWotsSeed as Ie, expandHashlockSecret as He, expandAuthAnchor as $e } from "./tbv/core/wasm/index.js";
|
|
12
|
+
import { a as ee, b as Oe, i as te, j as Re } from "./verifyScriptPathSchnorrSignature-B3-VkvnK.js";
|
|
13
|
+
import { d as We, b as Fe, e as Ve, f as Me, c as Ke } from "./verifyKeyPathSchnorrSignature-DxPbeSdQ.js";
|
|
14
|
+
import { p as De, h as L, u as U, e as Ne, i as oe, s as x, k as se } from "./bitcoin-C-TuHb-v.js";
|
|
15
|
+
import { c as Le } from "./signing-C1rR4tqs.js";
|
|
16
|
+
import { M as ne, X as Ue } from "./validation-OSC0xTHB.js";
|
|
17
17
|
import { d as fe } from "./deriveVaultRoot-BcvmER1E.js";
|
|
18
|
-
import { c as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
18
|
+
import { c as Xe, s as C, r as ze, a as Ge, b as qe } from "./PayoutManager-BZ212yml.js";
|
|
19
|
+
import { l as je } from "./registration-records-CKLAv3gw.js";
|
|
20
|
+
import { s as Ye, h as Qe } from "./psbtInputFields-CCVyaQMi.js";
|
|
21
|
+
import { p as Ze, f as Je } from "./fundPeginTransaction-CwhRbCQC.js";
|
|
22
|
+
import { M as ie, B as et } from "./constants-BeYquVd-.js";
|
|
23
|
+
import { c as tt } from "./btcTxHash-BRZ8_EZq.js";
|
|
22
24
|
import { p as ot } from "./parseFundingOutpoints-GSM-IaaK.js";
|
|
23
25
|
import * as st from "@bitcoin-js/tiny-secp256k1-asmjs";
|
|
24
26
|
import { v as nt, P as it, a as rt, b as at } from "./bip322Verify-BXYrHBh8.js";
|
|
@@ -50,7 +52,7 @@ function ft(o) {
|
|
|
50
52
|
throw new Error(
|
|
51
53
|
`buildDepositTerms: maxAcceptableCommissionBps must be an integer in [0, ${ie}), got ${o.maxAcceptableCommissionBps}`
|
|
52
54
|
);
|
|
53
|
-
const t = BigInt(
|
|
55
|
+
const t = BigInt(et), s = o.peginAmounts.map(
|
|
54
56
|
(r, n) => ({
|
|
55
57
|
htlcVout: n,
|
|
56
58
|
vaultProviderBtcPubkey: o.vaultProviderBtcPubkey,
|
|
@@ -81,7 +83,7 @@ const mt = /^0x[0-9a-f]+$/i, Pt = /^[0-9a-f]+$/i, bt = /^[A-Za-z0-9+/]+={0,2}$/;
|
|
|
81
83
|
function B(o) {
|
|
82
84
|
if (typeof o != "string" || o.length === 0)
|
|
83
85
|
throw new Error("BTC wallet returned empty public key");
|
|
84
|
-
return
|
|
86
|
+
return De(o).toLowerCase();
|
|
85
87
|
}
|
|
86
88
|
function wt(o) {
|
|
87
89
|
if (typeof o != "string" || o.length === 0)
|
|
@@ -255,7 +257,7 @@ class z {
|
|
|
255
257
|
}
|
|
256
258
|
const Ct = (o, e, t, s = {}) => ve(() => new z(e, o, t), s), At = /* @__PURE__ */ Ct(1, 136, 32), le = 64, w = 20, X = 4, ye = 2, It = 0, Ht = 1, R = [64, 64], $t = (o) => Array.from(o).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
257
259
|
function G(o) {
|
|
258
|
-
return
|
|
260
|
+
return je(pe(o));
|
|
259
261
|
}
|
|
260
262
|
function xe(o) {
|
|
261
263
|
return (1 << o) - 1;
|
|
@@ -403,17 +405,17 @@ async function Mt(o, e) {
|
|
|
403
405
|
const t = [], s = [], r = [], n = [];
|
|
404
406
|
try {
|
|
405
407
|
for (let i = 0; i < e; i++) {
|
|
406
|
-
const a = await
|
|
408
|
+
const a = await Ie(o, i);
|
|
407
409
|
try {
|
|
408
410
|
const h = await Ft(a);
|
|
409
411
|
t.push(h), s.push(Vt(h));
|
|
410
412
|
} finally {
|
|
411
413
|
a.fill(0);
|
|
412
414
|
}
|
|
413
|
-
const c = await
|
|
415
|
+
const c = await He(o, i);
|
|
414
416
|
try {
|
|
415
417
|
const h = U(c);
|
|
416
|
-
r.push(h), n.push(
|
|
418
|
+
r.push(h), n.push(Xe(Ne(h)).slice(2));
|
|
417
419
|
} finally {
|
|
418
420
|
c.fill(0);
|
|
419
421
|
}
|
|
@@ -430,7 +432,7 @@ function qt(o) {
|
|
|
430
432
|
throw new Error(
|
|
431
433
|
"proof of possession witness is not even-length lowercase hex"
|
|
432
434
|
);
|
|
433
|
-
return
|
|
435
|
+
return We(
|
|
434
436
|
Uint8Array.from(_.from(e, "hex")),
|
|
435
437
|
"proof of possession witness"
|
|
436
438
|
);
|
|
@@ -521,9 +523,9 @@ function Zt(o, e, t, s) {
|
|
|
521
523
|
vout: e,
|
|
522
524
|
value: r.value,
|
|
523
525
|
scriptPubKey: r.scriptPubKey
|
|
524
|
-
}) :
|
|
526
|
+
}) : Ae(o, e, s);
|
|
525
527
|
}
|
|
526
|
-
class
|
|
528
|
+
class ko {
|
|
527
529
|
/**
|
|
528
530
|
* Creates a new PeginManager instance.
|
|
529
531
|
*
|
|
@@ -548,7 +550,7 @@ class yo {
|
|
|
548
550
|
throw new Error("amounts must contain at least one entry");
|
|
549
551
|
const t = await this.config.btcWallet.getPublicKeyHex(), s = B(t);
|
|
550
552
|
if (C(this.config.btcWallet)) {
|
|
551
|
-
const l = (await
|
|
553
|
+
const l = (await ze(this.config.btcWallet)).trim();
|
|
552
554
|
if (e.changeAddress.trim() !== l)
|
|
553
555
|
throw new Error(
|
|
554
556
|
`Pre-PegIn changeAddress "${e.changeAddress}" is not the approval wallet's change address ("${l}"). Refusing to build a tx the signing device would reject.`
|
|
@@ -586,7 +588,7 @@ class yo {
|
|
|
586
588
|
});
|
|
587
589
|
let a, c;
|
|
588
590
|
try {
|
|
589
|
-
const l = await
|
|
591
|
+
const l = await $e(i);
|
|
590
592
|
try {
|
|
591
593
|
a = U(l), c = U(pe(l));
|
|
592
594
|
} finally {
|
|
@@ -608,7 +610,7 @@ class yo {
|
|
|
608
610
|
throw new Error(
|
|
609
611
|
`Internal invariant violation: htlcVout/index mismatch at vault ${l} (expected ${l}, got ${g.perVault[l].htlcVout})`
|
|
610
612
|
);
|
|
611
|
-
|
|
613
|
+
Ge(
|
|
612
614
|
g.fundedPrePeginTxHex,
|
|
613
615
|
e.amounts.length,
|
|
614
616
|
c
|
|
@@ -666,11 +668,11 @@ class yo {
|
|
|
666
668
|
councilSize: t.councilSize,
|
|
667
669
|
network: this.config.btcNetwork,
|
|
668
670
|
authAnchorHash: N
|
|
669
|
-
}), i =
|
|
671
|
+
}), i = Ye(
|
|
670
672
|
[...t.availableUTXOs],
|
|
671
673
|
n.totalOutputValue,
|
|
672
674
|
t.mempoolFeeRate,
|
|
673
|
-
|
|
675
|
+
Ze(n.htlcValues.length, !0)
|
|
674
676
|
);
|
|
675
677
|
return {
|
|
676
678
|
selectedUTXOs: i.selectedUTXOs,
|
|
@@ -698,7 +700,7 @@ class yo {
|
|
|
698
700
|
vaultProviderBtcPubkey: x(t.vaultProviderBtcPubkey),
|
|
699
701
|
vaultKeeperBtcPubkeys: t.vaultKeeperBtcPubkeys.map(x),
|
|
700
702
|
universalChallengerBtcPubkeys: t.universalChallengerBtcPubkeys.map(x),
|
|
701
|
-
maxAcceptableCommissionBps:
|
|
703
|
+
maxAcceptableCommissionBps: Be(
|
|
702
704
|
t.commissionBps
|
|
703
705
|
),
|
|
704
706
|
peginAmounts: t.amounts,
|
|
@@ -748,7 +750,7 @@ class yo {
|
|
|
748
750
|
throw new Error(
|
|
749
751
|
`Pre-PegIn sizing/commit divergence: depositorClaimValue ${i.depositorClaimValue} -> ${g.depositorClaimValue}, minPeginFee ${i.minPeginFee} -> ${g.minPeginFee}. The provisional deposit terms validated before derivation would not match the terms sent for approval; refusing to continue.`
|
|
750
752
|
);
|
|
751
|
-
const v = se(this.config.btcNetwork), k =
|
|
753
|
+
const v = se(this.config.btcNetwork), k = Je({
|
|
752
754
|
unfundedTxHex: g.psbtHex,
|
|
753
755
|
selectedUTXOs: i.selectedUTXOs,
|
|
754
756
|
changeAddress: a.changeAddress,
|
|
@@ -760,15 +762,15 @@ class yo {
|
|
|
760
762
|
`Pre-PegIn funded fee ${l} does not match the sizing-pass fee ${i.fee}; refusing to publish a deposit-terms fee bound the funded transaction does not pay.`
|
|
761
763
|
);
|
|
762
764
|
const I = x(
|
|
763
|
-
|
|
765
|
+
tt(k)
|
|
764
766
|
), H = [], d = [], m = [];
|
|
765
767
|
for (let u = 0; u < r.length; u++) {
|
|
766
|
-
const S = await
|
|
768
|
+
const S = await Oe({
|
|
767
769
|
prePeginParams: b,
|
|
768
770
|
timelockPegin: a.timelockPegin,
|
|
769
771
|
fundedPrePeginTxHex: k,
|
|
770
772
|
htlcVout: u
|
|
771
|
-
}), F = await
|
|
773
|
+
}), F = await Fe({
|
|
772
774
|
vaultCoreVersion: a.vaultCoreVersion,
|
|
773
775
|
peginTxHex: S.txHex,
|
|
774
776
|
fundedPrePeginTxHex: k,
|
|
@@ -781,7 +783,7 @@ class yo {
|
|
|
781
783
|
network: this.config.btcNetwork
|
|
782
784
|
});
|
|
783
785
|
H.push(S), d.push(F.psbtHex), m.push(
|
|
784
|
-
|
|
786
|
+
Le(t, 1)
|
|
785
787
|
);
|
|
786
788
|
}
|
|
787
789
|
const T = this.buildPeginDepositTerms({
|
|
@@ -792,7 +794,7 @@ class yo {
|
|
|
792
794
|
peginMaxFee: g.minPeginFee
|
|
793
795
|
});
|
|
794
796
|
C(this.config.btcWallet) && await this.config.btcWallet.approveDepositTerms(T);
|
|
795
|
-
const E = await
|
|
797
|
+
const E = await qe(
|
|
796
798
|
this.config.btcWallet,
|
|
797
799
|
d,
|
|
798
800
|
m
|
|
@@ -802,17 +804,17 @@ class yo {
|
|
|
802
804
|
requestedPsbtHex: d[u],
|
|
803
805
|
returnedPsbtHex: E[u]
|
|
804
806
|
});
|
|
805
|
-
const S =
|
|
807
|
+
const S = Ve(
|
|
806
808
|
E[u],
|
|
807
809
|
s
|
|
808
810
|
);
|
|
809
|
-
|
|
811
|
+
Re({
|
|
810
812
|
requestedPsbtHex: d[u],
|
|
811
813
|
signatureHex: S,
|
|
812
814
|
signerXOnlyPubkeyHex: s,
|
|
813
815
|
inputIndex: 0
|
|
814
816
|
});
|
|
815
|
-
const F =
|
|
817
|
+
const F = Me(E[u]);
|
|
816
818
|
$.push({
|
|
817
819
|
htlcVout: u,
|
|
818
820
|
htlcValue: g.htlcValues[u],
|
|
@@ -883,7 +885,7 @@ class yo {
|
|
|
883
885
|
`Implied transaction fee (${b} sat) exceeds maximum reasonable fee (${ne} sat). This may indicate manipulated UTXO data.`
|
|
884
886
|
);
|
|
885
887
|
for (const { input: d, utxoData: m, txid: T, vout: E } of p) {
|
|
886
|
-
const $ =
|
|
888
|
+
const $ = Qe(
|
|
887
889
|
{
|
|
888
890
|
value: m.value,
|
|
889
891
|
scriptPubKey: m.scriptPubKey
|
|
@@ -913,7 +915,7 @@ class yo {
|
|
|
913
915
|
requestedPsbtHex: g,
|
|
914
916
|
returnedPsbtHex: v
|
|
915
917
|
});
|
|
916
|
-
const k =
|
|
918
|
+
const k = Ke({
|
|
917
919
|
requestedPsbtHex: g,
|
|
918
920
|
returnedPsbtHex: v
|
|
919
921
|
});
|
|
@@ -933,7 +935,7 @@ class yo {
|
|
|
933
935
|
);
|
|
934
936
|
}
|
|
935
937
|
const I = l.extractTransaction().toHex();
|
|
936
|
-
return await
|
|
938
|
+
return await Ce(I, c);
|
|
937
939
|
}
|
|
938
940
|
/**
|
|
939
941
|
* Registers a peg-in on Ethereum by calling the BTCVaultRegistry contract.
|
|
@@ -1038,7 +1040,7 @@ class yo {
|
|
|
1038
1040
|
});
|
|
1039
1041
|
}
|
|
1040
1042
|
createRegistrationClient() {
|
|
1041
|
-
return new
|
|
1043
|
+
return new _e({
|
|
1042
1044
|
ethWallet: this.config.ethWallet,
|
|
1043
1045
|
ethChain: this.config.ethChain,
|
|
1044
1046
|
publicClient: this.config.publicClient,
|
|
@@ -1070,7 +1072,7 @@ class yo {
|
|
|
1070
1072
|
e,
|
|
1071
1073
|
this.config.btcNetwork
|
|
1072
1074
|
))
|
|
1073
|
-
throw x(e).length ===
|
|
1075
|
+
throw x(e).length === Ue && Qt(t, this.config.btcNetwork) ? new Error(
|
|
1074
1076
|
`BTC payout address "${t}" is a P2WPKH (Native SegWit) address, but the connected wallet only exposes an x-only public key. P2WPKH validation requires a compressed key with known y-parity. Use a P2TR (Taproot) payout address instead.`
|
|
1075
1077
|
) : new Error(
|
|
1076
1078
|
`BTC payout address "${t}" is not derived from the connected wallet's public key. The payout sink must be controlled by the same key that signs the pegin; refusing to register a mismatched address.`
|
|
@@ -1148,11 +1150,11 @@ class yo {
|
|
|
1148
1150
|
}
|
|
1149
1151
|
}
|
|
1150
1152
|
export {
|
|
1151
|
-
|
|
1153
|
+
ko as P,
|
|
1152
1154
|
Mt as a,
|
|
1153
1155
|
ft as b,
|
|
1154
1156
|
Vt as c,
|
|
1155
1157
|
Ft as d,
|
|
1156
1158
|
yt as e
|
|
1157
1159
|
};
|
|
1158
|
-
//# sourceMappingURL=PeginManager-
|
|
1160
|
+
//# sourceMappingURL=PeginManager-QRwMUxZg.js.map
|