@babylonlabs-io/ts-sdk 0.18.0 → 0.20.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.
Files changed (195) hide show
  1. package/README.md +56 -12
  2. package/dist/bitcoin-CNnPFU6Y.cjs +2 -0
  3. package/dist/bitcoin-CNnPFU6Y.cjs.map +1 -0
  4. package/dist/{constants-Q7v2O7Ps.js → bitcoin-nOOgeRyl.js} +64 -76
  5. package/dist/bitcoin-nOOgeRyl.js.map +1 -0
  6. package/dist/buildAndBroadcastRefund-DWEQvj9T.cjs +2 -0
  7. package/dist/buildAndBroadcastRefund-DWEQvj9T.cjs.map +1 -0
  8. package/dist/buildAndBroadcastRefund-DnTQkCgG.js +1331 -0
  9. package/dist/buildAndBroadcastRefund-DnTQkCgG.js.map +1 -0
  10. package/dist/challengeAssert-D1lpvuMv.js +283 -0
  11. package/dist/challengeAssert-D1lpvuMv.js.map +1 -0
  12. package/dist/challengeAssert-nYlgeAI8.cjs +2 -0
  13. package/dist/challengeAssert-nYlgeAI8.cjs.map +1 -0
  14. package/dist/errors-BZON3Wmn.cjs +2 -0
  15. package/dist/errors-BZON3Wmn.cjs.map +1 -0
  16. package/dist/errors-CHY4WNi-.js +1226 -0
  17. package/dist/errors-CHY4WNi-.js.map +1 -0
  18. package/dist/fundPeginTransaction-BLYXxLBv.js +70 -0
  19. package/dist/fundPeginTransaction-BLYXxLBv.js.map +1 -0
  20. package/dist/fundPeginTransaction-DxNOeyNI.cjs +2 -0
  21. package/dist/fundPeginTransaction-DxNOeyNI.cjs.map +1 -0
  22. package/dist/index-BpXpESWu.cjs +2 -0
  23. package/dist/index-BpXpESWu.cjs.map +1 -0
  24. package/dist/index-CFwoGJNQ.js +1141 -0
  25. package/dist/index-CFwoGJNQ.js.map +1 -0
  26. package/dist/index.cjs +1 -1
  27. package/dist/index.js +134 -100
  28. package/dist/payout-DzGsAnhf.js +261 -0
  29. package/dist/payout-DzGsAnhf.js.map +1 -0
  30. package/dist/payout-RFIh7GLN.cjs +2 -0
  31. package/dist/payout-RFIh7GLN.cjs.map +1 -0
  32. package/dist/psbtInputFields-C-zYR1z7.cjs +2 -0
  33. package/dist/psbtInputFields-C-zYR1z7.cjs.map +1 -0
  34. package/dist/psbtInputFields-Dx41_IoI.js +229 -0
  35. package/dist/psbtInputFields-Dx41_IoI.js.map +1 -0
  36. package/dist/signing-DeWVBl7m.js +64 -0
  37. package/dist/signing-DeWVBl7m.js.map +1 -0
  38. package/dist/signing-cl-lowxV.cjs +2 -0
  39. package/dist/signing-cl-lowxV.cjs.map +1 -0
  40. package/dist/tbv/core/clients/eth/__tests__/protocol-params-reader.test.d.ts +2 -0
  41. package/dist/tbv/core/clients/eth/__tests__/protocol-params-reader.test.d.ts.map +1 -0
  42. package/dist/tbv/core/clients/eth/__tests__/signer-set-reader.test.d.ts +2 -0
  43. package/dist/tbv/core/clients/eth/__tests__/signer-set-reader.test.d.ts.map +1 -0
  44. package/dist/tbv/core/clients/eth/contract-address-resolver.d.ts +18 -0
  45. package/dist/tbv/core/clients/eth/contract-address-resolver.d.ts.map +1 -0
  46. package/dist/tbv/core/clients/eth/index.d.ts +4 -1
  47. package/dist/tbv/core/clients/eth/index.d.ts.map +1 -1
  48. package/dist/tbv/core/clients/eth/protocol-params-reader.d.ts +27 -0
  49. package/dist/tbv/core/clients/eth/protocol-params-reader.d.ts.map +1 -0
  50. package/dist/tbv/core/clients/eth/signer-set-reader.d.ts +37 -0
  51. package/dist/tbv/core/clients/eth/signer-set-reader.d.ts.map +1 -0
  52. package/dist/tbv/core/clients/eth/types.d.ts +80 -0
  53. package/dist/tbv/core/clients/eth/types.d.ts.map +1 -1
  54. package/dist/tbv/core/clients/index.cjs +1 -1
  55. package/dist/tbv/core/clients/index.js +25 -21
  56. package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts +74 -0
  57. package/dist/tbv/core/contracts/abis/ApplicationRegistry.abi.d.ts.map +1 -0
  58. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts +20 -0
  59. package/dist/tbv/core/contracts/abis/BTCVaultRegistry.abi.d.ts.map +1 -1
  60. package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts +233 -0
  61. package/dist/tbv/core/contracts/abis/ProtocolParams.abi.d.ts.map +1 -0
  62. package/dist/tbv/core/contracts/index.d.ts +2 -0
  63. package/dist/tbv/core/contracts/index.d.ts.map +1 -1
  64. package/dist/tbv/core/index.cjs +1 -1
  65. package/dist/tbv/core/index.d.ts +3 -1
  66. package/dist/tbv/core/index.d.ts.map +1 -1
  67. package/dist/tbv/core/index.js +129 -95
  68. package/dist/tbv/core/managers/PeginManager.d.ts +1 -1
  69. package/dist/tbv/core/primitives/index.cjs +1 -1
  70. package/dist/tbv/core/primitives/index.d.ts +3 -2
  71. package/dist/tbv/core/primitives/index.d.ts.map +1 -1
  72. package/dist/tbv/core/primitives/index.js +24 -23
  73. package/dist/tbv/core/primitives/psbt/__tests__/helpers.d.ts +1 -1
  74. package/dist/tbv/core/primitives/psbt/index.d.ts +1 -1
  75. package/dist/tbv/core/primitives/psbt/payout.d.ts.map +1 -1
  76. package/dist/tbv/core/primitives/psbt/pegin.d.ts +2 -3
  77. package/dist/tbv/core/primitives/psbt/pegin.d.ts.map +1 -1
  78. package/dist/tbv/core/primitives/utils/bitcoin.d.ts +4 -0
  79. package/dist/tbv/core/primitives/utils/bitcoin.d.ts.map +1 -1
  80. package/dist/tbv/core/primitives/utils/index.d.ts +1 -1
  81. package/dist/tbv/core/primitives/utils/index.d.ts.map +1 -1
  82. package/dist/tbv/core/services/activation/__tests__/activateVault.test.d.ts +2 -0
  83. package/dist/tbv/core/services/activation/__tests__/activateVault.test.d.ts.map +1 -0
  84. package/dist/tbv/core/services/activation/activateVault.d.ts +77 -0
  85. package/dist/tbv/core/services/activation/activateVault.d.ts.map +1 -0
  86. package/dist/tbv/core/services/activation/index.d.ts +7 -0
  87. package/dist/tbv/core/services/activation/index.d.ts.map +1 -0
  88. package/dist/tbv/core/services/deposit/__tests__/peginState.test.d.ts +2 -0
  89. package/dist/tbv/core/services/deposit/__tests__/peginState.test.d.ts.map +1 -0
  90. package/dist/tbv/core/services/deposit/__tests__/validation.test.d.ts +5 -0
  91. package/dist/tbv/core/services/deposit/__tests__/validation.test.d.ts.map +1 -0
  92. package/dist/tbv/core/services/deposit/index.d.ts +4 -0
  93. package/dist/tbv/core/services/deposit/index.d.ts.map +1 -1
  94. package/dist/tbv/core/services/deposit/peginState.d.ts +93 -0
  95. package/dist/tbv/core/services/deposit/peginState.d.ts.map +1 -0
  96. package/dist/tbv/core/services/deposit/validation.d.ts +114 -0
  97. package/dist/tbv/core/services/deposit/validation.d.ts.map +1 -0
  98. package/dist/tbv/core/services/htlc/__tests__/htlc.test.d.ts +2 -0
  99. package/dist/tbv/core/services/htlc/__tests__/htlc.test.d.ts.map +1 -0
  100. package/dist/tbv/core/services/htlc/index.d.ts +25 -0
  101. package/dist/tbv/core/services/htlc/index.d.ts.map +1 -0
  102. package/dist/tbv/core/services/index.cjs +1 -1
  103. package/dist/tbv/core/services/index.d.ts +4 -0
  104. package/dist/tbv/core/services/index.d.ts.map +1 -1
  105. package/dist/tbv/core/services/index.js +25 -5
  106. package/dist/tbv/core/services/index.js.map +1 -1
  107. package/dist/tbv/core/services/pegout/__tests__/state.test.d.ts +2 -0
  108. package/dist/tbv/core/services/pegout/__tests__/state.test.d.ts.map +1 -0
  109. package/dist/tbv/core/services/pegout/index.d.ts +2 -0
  110. package/dist/tbv/core/services/pegout/index.d.ts.map +1 -0
  111. package/dist/tbv/core/services/pegout/state.d.ts +30 -0
  112. package/dist/tbv/core/services/pegout/state.d.ts.map +1 -0
  113. package/dist/tbv/core/services/refund/__tests__/buildAndBroadcastRefund.test.d.ts +2 -0
  114. package/dist/tbv/core/services/refund/__tests__/buildAndBroadcastRefund.test.d.ts.map +1 -0
  115. package/dist/tbv/core/services/refund/buildAndBroadcastRefund.d.ts +103 -0
  116. package/dist/tbv/core/services/refund/buildAndBroadcastRefund.d.ts.map +1 -0
  117. package/dist/tbv/core/services/refund/errors.d.ts +13 -0
  118. package/dist/tbv/core/services/refund/errors.d.ts.map +1 -0
  119. package/dist/tbv/core/services/refund/index.d.ts +8 -0
  120. package/dist/tbv/core/services/refund/index.d.ts.map +1 -0
  121. package/dist/tbv/core/utils/index.cjs +1 -1
  122. package/dist/tbv/core/utils/index.js +30 -24
  123. package/dist/tbv/core/utils/transaction/fundPeginTransaction.d.ts +1 -1
  124. package/dist/tbv/core/utils/utxo/__tests__/availability.test.d.ts +3 -0
  125. package/dist/tbv/core/utils/utxo/__tests__/availability.test.d.ts.map +1 -0
  126. package/dist/tbv/core/utils/utxo/__tests__/reservation.test.d.ts +3 -0
  127. package/dist/tbv/core/utils/utxo/__tests__/reservation.test.d.ts.map +1 -0
  128. package/dist/tbv/core/utils/utxo/availability.d.ts +62 -0
  129. package/dist/tbv/core/utils/utxo/availability.d.ts.map +1 -0
  130. package/dist/tbv/core/utils/utxo/index.d.ts +2 -0
  131. package/dist/tbv/core/utils/utxo/index.d.ts.map +1 -1
  132. package/dist/tbv/core/utils/utxo/reservation.d.ts +65 -0
  133. package/dist/tbv/core/utils/utxo/reservation.d.ts.map +1 -0
  134. package/dist/tbv/core/wots/__tests__/blockDerivation.test.d.ts +2 -0
  135. package/dist/tbv/core/wots/__tests__/blockDerivation.test.d.ts.map +1 -0
  136. package/dist/tbv/core/wots/blockDerivation.d.ts +36 -0
  137. package/dist/tbv/core/wots/blockDerivation.d.ts.map +1 -0
  138. package/dist/tbv/core/wots/index.d.ts +1 -0
  139. package/dist/tbv/core/wots/index.d.ts.map +1 -1
  140. package/dist/tbv/index.cjs +1 -1
  141. package/dist/tbv/index.js +129 -95
  142. package/dist/tbv/integrations/aave/index.cjs +1 -1
  143. package/dist/tbv/integrations/aave/index.cjs.map +1 -1
  144. package/dist/tbv/integrations/aave/index.d.ts +3 -3
  145. package/dist/tbv/integrations/aave/index.d.ts.map +1 -1
  146. package/dist/tbv/integrations/aave/index.js +145 -169
  147. package/dist/tbv/integrations/aave/index.js.map +1 -1
  148. package/dist/tbv/integrations/aave/utils/healthFactor.d.ts +0 -30
  149. package/dist/tbv/integrations/aave/utils/healthFactor.d.ts.map +1 -1
  150. package/dist/tbv/integrations/aave/utils/index.d.ts +2 -2
  151. package/dist/tbv/integrations/aave/utils/index.d.ts.map +1 -1
  152. package/dist/types-B-p4dhEH.cjs +2 -0
  153. package/dist/types-B-p4dhEH.cjs.map +1 -0
  154. package/dist/types-DWjaqVfP.js +608 -0
  155. package/dist/types-DWjaqVfP.js.map +1 -0
  156. package/package.json +5 -1
  157. package/dist/challengeAssert-D_k_ADgP.cjs +0 -2
  158. package/dist/challengeAssert-D_k_ADgP.cjs.map +0 -1
  159. package/dist/challengeAssert-k5_LWUtO.js +0 -362
  160. package/dist/challengeAssert-k5_LWUtO.js.map +0 -1
  161. package/dist/constants-EiyZkXce.cjs +0 -2
  162. package/dist/constants-EiyZkXce.cjs.map +0 -1
  163. package/dist/constants-Q7v2O7Ps.js.map +0 -1
  164. package/dist/errors-DAKpPfl7.cjs +0 -2
  165. package/dist/errors-DAKpPfl7.cjs.map +0 -1
  166. package/dist/errors-DARTQrP3.js +0 -1510
  167. package/dist/errors-DARTQrP3.js.map +0 -1
  168. package/dist/fundPeginTransaction-DpwnDslW.js +0 -50
  169. package/dist/fundPeginTransaction-DpwnDslW.js.map +0 -1
  170. package/dist/fundPeginTransaction-EbrZzlrh.cjs +0 -2
  171. package/dist/fundPeginTransaction-EbrZzlrh.cjs.map +0 -1
  172. package/dist/index-DKfhZvdn.cjs +0 -2
  173. package/dist/index-DKfhZvdn.cjs.map +0 -1
  174. package/dist/index-qIcjkxLw.js +0 -911
  175. package/dist/index-qIcjkxLw.js.map +0 -1
  176. package/dist/payout-Ce9vSs9e.js +0 -164
  177. package/dist/payout-Ce9vSs9e.js.map +0 -1
  178. package/dist/payout-CfsDnjKI.cjs +0 -2
  179. package/dist/payout-CfsDnjKI.cjs.map +0 -1
  180. package/dist/psbtInputFields-C0nKn_GD.cjs +0 -2
  181. package/dist/psbtInputFields-C0nKn_GD.cjs.map +0 -1
  182. package/dist/psbtInputFields-DO0ELwiv.js +0 -116
  183. package/dist/psbtInputFields-DO0ELwiv.js.map +0 -1
  184. package/dist/signAndSubmitPayouts-CAOEAQp9.js +0 -490
  185. package/dist/signAndSubmitPayouts-CAOEAQp9.js.map +0 -1
  186. package/dist/signAndSubmitPayouts-CSJmcPQN.cjs +0 -2
  187. package/dist/signAndSubmitPayouts-CSJmcPQN.cjs.map +0 -1
  188. package/dist/signing-Deg5lCoC.cjs +0 -2
  189. package/dist/signing-Deg5lCoC.cjs.map +0 -1
  190. package/dist/signing-Drwr3bXB.js +0 -16
  191. package/dist/signing-Drwr3bXB.js.map +0 -1
  192. package/dist/types-D1rYwwCu.js +0 -235
  193. package/dist/types-D1rYwwCu.js.map +0 -1
  194. package/dist/types-DEWiqXYp.cjs +0 -2
  195. package/dist/types-DEWiqXYp.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/clients/eth/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEzC,kEAAkE;AAClE,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,kBAAkB,EAAE,GAAG,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB,EAAE,OAAO,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,sBAAsB,EAAE,GAAG,CAAC;IAC5B,2BAA2B,EAAE,MAAM,CAAC;IACpC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,q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pF,MAAM,WAAW,yBAAyB;IACxC,gCAAgC,CAC9B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAChC,8BAA8B,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAC/D,oCAAoC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACzD"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../index-DKfhZvdn.cjs"),t=require("../../../types-DEWiqXYp.cjs");exports.MEMPOOL_API_URLS=e.MEMPOOL_API_URLS;exports.VaultProviderRpcClient=e.VaultProviderRpcClient;exports.ViemVaultRegistryReader=e.ViemVaultRegistryReader;exports.VpResponseValidationError=e.VpResponseValidationError;exports.getAddressTxs=e.getAddressTxs;exports.getAddressUtxos=e.getAddressUtxos;exports.getMempoolApiUrl=e.getMempoolApiUrl;exports.getNetworkFees=e.getNetworkFees;exports.getTxHex=e.getTxHex;exports.getTxInfo=e.getTxInfo;exports.getUtxoInfo=e.getUtxoInfo;exports.pushTx=e.pushTx;exports.DaemonStatus=t.DaemonStatus;exports.JSON_RPC_ERROR_CODES=t.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=t.JsonRpcClient;exports.JsonRpcError=t.JsonRpcError;exports.POST_WOTS_STATUSES=t.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=t.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=t.RpcErrorCode;exports.VP_TERMINAL_STATUSES=t.VP_TERMINAL_STATUSES;exports.VP_TRANSIENT_STATUSES=t.VP_TRANSIENT_STATUSES;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../index-BpXpESWu.cjs"),r=require("../../../types-B-p4dhEH.cjs");exports.MEMPOOL_API_URLS=e.MEMPOOL_API_URLS;exports.VaultProviderRpcClient=e.VaultProviderRpcClient;exports.ViemProtocolParamsReader=e.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=e.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=e.ViemVaultKeeperReader;exports.ViemVaultRegistryReader=e.ViemVaultRegistryReader;exports.VpResponseValidationError=e.VpResponseValidationError;exports.getAddressTxs=e.getAddressTxs;exports.getAddressUtxos=e.getAddressUtxos;exports.getMempoolApiUrl=e.getMempoolApiUrl;exports.getNetworkFees=e.getNetworkFees;exports.getTxHex=e.getTxHex;exports.getTxInfo=e.getTxInfo;exports.getUtxoInfo=e.getUtxoInfo;exports.pushTx=e.pushTx;exports.resolveProtocolAddresses=e.resolveProtocolAddresses;exports.DaemonStatus=r.DaemonStatus;exports.JSON_RPC_ERROR_CODES=r.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=r.JsonRpcClient;exports.JsonRpcError=r.JsonRpcError;exports.POST_WOTS_STATUSES=r.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=r.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=r.RpcErrorCode;exports.VP_TERMINAL_STATUSES=r.VP_TERMINAL_STATUSES;exports.VP_TRANSIENT_STATUSES=r.VP_TRANSIENT_STATUSES;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,26 +1,30 @@
1
- import { M as e, V as o, i as r, h as S, g as t, a as T, b as R, c as E, d as _, e as p, f as A, p as d } from "../../../index-qIcjkxLw.js";
2
- import { D as g, b as i, J as n, a as x, d as O, P as V, R as U, c as l, V as I } from "../../../types-D1rYwwCu.js";
1
+ import { M as a, V as r, i as o, j as t, k as R, l as S, h as T, g as d, a as l, b as E, c as _, d as i, e as p, f as P, p as V, r as A } from "../../../index-CFwoGJNQ.js";
2
+ import { D as g, b as m, J as x, a as O, d as U, P as c, R as I, c as C, V as N } from "../../../types-DWjaqVfP.js";
3
3
  export {
4
4
  g as DaemonStatus,
5
- i as JSON_RPC_ERROR_CODES,
6
- n as JsonRpcClient,
7
- x as JsonRpcError,
8
- e as MEMPOOL_API_URLS,
9
- O as POST_WOTS_STATUSES,
10
- V as PRE_DEPOSITOR_SIGNATURES_STATES,
11
- U as RpcErrorCode,
12
- l as VP_TERMINAL_STATUSES,
13
- I as VP_TRANSIENT_STATUSES,
14
- o as VaultProviderRpcClient,
15
- r as ViemVaultRegistryReader,
16
- S as VpResponseValidationError,
17
- t as getAddressTxs,
18
- T as getAddressUtxos,
19
- R as getMempoolApiUrl,
20
- E as getNetworkFees,
21
- _ as getTxHex,
5
+ m as JSON_RPC_ERROR_CODES,
6
+ x as JsonRpcClient,
7
+ O as JsonRpcError,
8
+ a as MEMPOOL_API_URLS,
9
+ U as POST_WOTS_STATUSES,
10
+ c as PRE_DEPOSITOR_SIGNATURES_STATES,
11
+ I as RpcErrorCode,
12
+ C as VP_TERMINAL_STATUSES,
13
+ N as VP_TRANSIENT_STATUSES,
14
+ r as VaultProviderRpcClient,
15
+ o as ViemProtocolParamsReader,
16
+ t as ViemUniversalChallengerReader,
17
+ R as ViemVaultKeeperReader,
18
+ S as ViemVaultRegistryReader,
19
+ T as VpResponseValidationError,
20
+ d as getAddressTxs,
21
+ l as getAddressUtxos,
22
+ E as getMempoolApiUrl,
23
+ _ as getNetworkFees,
24
+ i as getTxHex,
22
25
  p as getTxInfo,
23
- A as getUtxoInfo,
24
- d as pushTx
26
+ P as getUtxoInfo,
27
+ V as pushTx,
28
+ A as resolveProtocolAddresses
25
29
  };
26
30
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,74 @@
1
+ /**
2
+ * ApplicationRegistry Contract ABI
3
+ *
4
+ * Minimal ABI containing only the vault keeper read functions needed by the SDK.
5
+ * Generated from vault-contracts-aave-v4 IApplicationRegistry.sol interface.
6
+ *
7
+ * @module contracts/abis/ApplicationRegistry
8
+ */
9
+ export declare const ApplicationRegistryABI: readonly [{
10
+ readonly type: "function";
11
+ readonly name: "getVaultKeepersByVersion";
12
+ readonly inputs: readonly [{
13
+ readonly name: "appEntryPoint";
14
+ readonly type: "address";
15
+ readonly internalType: "address";
16
+ }, {
17
+ readonly name: "versionNumber";
18
+ readonly type: "uint16";
19
+ readonly internalType: "uint16";
20
+ }];
21
+ readonly outputs: readonly [{
22
+ readonly name: "";
23
+ readonly type: "tuple[]";
24
+ readonly internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]";
25
+ readonly components: readonly [{
26
+ readonly name: "ethAddress";
27
+ readonly type: "address";
28
+ readonly internalType: "address";
29
+ }, {
30
+ readonly name: "btcPubKey";
31
+ readonly type: "bytes32";
32
+ readonly internalType: "bytes32";
33
+ }];
34
+ }];
35
+ readonly stateMutability: "view";
36
+ }, {
37
+ readonly type: "function";
38
+ readonly name: "getCurrentVaultKeepers";
39
+ readonly inputs: readonly [{
40
+ readonly name: "appEntryPoint";
41
+ readonly type: "address";
42
+ readonly internalType: "address";
43
+ }];
44
+ readonly outputs: readonly [{
45
+ readonly name: "";
46
+ readonly type: "tuple[]";
47
+ readonly internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]";
48
+ readonly components: readonly [{
49
+ readonly name: "ethAddress";
50
+ readonly type: "address";
51
+ readonly internalType: "address";
52
+ }, {
53
+ readonly name: "btcPubKey";
54
+ readonly type: "bytes32";
55
+ readonly internalType: "bytes32";
56
+ }];
57
+ }];
58
+ readonly stateMutability: "view";
59
+ }, {
60
+ readonly type: "function";
61
+ readonly name: "getCurrentVaultKeepersVersion";
62
+ readonly inputs: readonly [{
63
+ readonly name: "appEntryPoint";
64
+ readonly type: "address";
65
+ readonly internalType: "address";
66
+ }];
67
+ readonly outputs: readonly [{
68
+ readonly name: "";
69
+ readonly type: "uint16";
70
+ readonly internalType: "uint16";
71
+ }];
72
+ readonly stateMutability: "view";
73
+ }];
74
+ //# sourceMappingURL=ApplicationRegistry.abi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplicationRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/ApplicationRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuFzB,CAAC"}
@@ -337,5 +337,25 @@ export declare const BTCVaultRegistryABI: readonly [{
337
337
  readonly internalType: "uint16";
338
338
  }];
339
339
  readonly stateMutability: "view";
340
+ }, {
341
+ readonly type: "function";
342
+ readonly name: "protocolParams";
343
+ readonly inputs: readonly [];
344
+ readonly outputs: readonly [{
345
+ readonly name: "";
346
+ readonly type: "address";
347
+ readonly internalType: "contract IProtocolParams";
348
+ }];
349
+ readonly stateMutability: "view";
350
+ }, {
351
+ readonly type: "function";
352
+ readonly name: "applicationRegistry";
353
+ readonly inputs: readonly [];
354
+ readonly outputs: readonly [{
355
+ readonly name: "";
356
+ readonly type: "address";
357
+ readonly internalType: "contract IApplicationRegistry";
358
+ }];
359
+ readonly stateMutability: "view";
340
360
  }];
341
361
  //# sourceMappingURL=BTCVaultRegistry.abi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BTCVaultRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/BTCVaultRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyVtB,CAAC"}
1
+ {"version":3,"file":"BTCVaultRegistry.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/BTCVaultRegistry.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmXtB,CAAC"}
@@ -0,0 +1,233 @@
1
+ /**
2
+ * ProtocolParams Contract ABI
3
+ *
4
+ * Minimal ABI containing only the read functions needed by the SDK.
5
+ * Generated from vault-contracts-aave-v4 IProtocolParams.sol interface.
6
+ *
7
+ * @module contracts/abis/ProtocolParams
8
+ */
9
+ export declare const ProtocolParamsABI: readonly [{
10
+ readonly type: "function";
11
+ readonly name: "getTBVProtocolParams";
12
+ readonly inputs: readonly [];
13
+ readonly outputs: readonly [{
14
+ readonly name: "";
15
+ readonly type: "tuple";
16
+ readonly internalType: "struct IProtocolParams.TBVProtocolParams";
17
+ readonly components: readonly [{
18
+ readonly name: "minimumPegInAmount";
19
+ readonly type: "uint64";
20
+ readonly internalType: "uint64";
21
+ }, {
22
+ readonly name: "maxPegInAmount";
23
+ readonly type: "uint64";
24
+ readonly internalType: "uint64";
25
+ }, {
26
+ readonly name: "pegInAckTimeout";
27
+ readonly type: "uint64";
28
+ readonly internalType: "uint64";
29
+ }, {
30
+ readonly name: "pegInActivationTimeout";
31
+ readonly type: "uint64";
32
+ readonly internalType: "uint64";
33
+ }, {
34
+ readonly name: "maxHtlcOutputCount";
35
+ readonly type: "uint8";
36
+ readonly internalType: "uint8";
37
+ }];
38
+ }];
39
+ readonly stateMutability: "view";
40
+ }, {
41
+ readonly type: "function";
42
+ readonly name: "getLatestOffchainParams";
43
+ readonly inputs: readonly [];
44
+ readonly outputs: readonly [{
45
+ readonly name: "";
46
+ readonly type: "tuple";
47
+ readonly internalType: "struct IProtocolParams.VersionedOffchainParams";
48
+ readonly components: readonly [{
49
+ readonly name: "timelockAssert";
50
+ readonly type: "uint256";
51
+ readonly internalType: "uint256";
52
+ }, {
53
+ readonly name: "timelockChallengeAssert";
54
+ readonly type: "uint256";
55
+ readonly internalType: "uint256";
56
+ }, {
57
+ readonly name: "securityCouncilKeys";
58
+ readonly type: "bytes32[]";
59
+ readonly internalType: "bytes32[]";
60
+ }, {
61
+ readonly name: "councilQuorum";
62
+ readonly type: "uint8";
63
+ readonly internalType: "uint8";
64
+ }, {
65
+ readonly name: "feeRate";
66
+ readonly type: "uint64";
67
+ readonly internalType: "uint64";
68
+ }, {
69
+ readonly name: "babeTotalInstances";
70
+ readonly type: "uint16";
71
+ readonly internalType: "uint16";
72
+ }, {
73
+ readonly name: "babeInstancesToFinalize";
74
+ readonly type: "uint8";
75
+ readonly internalType: "uint8";
76
+ }, {
77
+ readonly name: "minVpCommissionBps";
78
+ readonly type: "uint16";
79
+ readonly internalType: "uint16";
80
+ }, {
81
+ readonly name: "tRefund";
82
+ readonly type: "uint32";
83
+ readonly internalType: "uint32";
84
+ }, {
85
+ readonly name: "tStale";
86
+ readonly type: "uint32";
87
+ readonly internalType: "uint32";
88
+ }, {
89
+ readonly name: "minPeginFeeRate";
90
+ readonly type: "uint64";
91
+ readonly internalType: "uint64";
92
+ }, {
93
+ readonly name: "proverProgramVersion";
94
+ readonly type: "uint16";
95
+ readonly internalType: "uint16";
96
+ }, {
97
+ readonly name: "minPrepeginDepth";
98
+ readonly type: "uint32";
99
+ readonly internalType: "uint32";
100
+ }];
101
+ }];
102
+ readonly stateMutability: "view";
103
+ }, {
104
+ readonly type: "function";
105
+ readonly name: "getOffchainParamsByVersion";
106
+ readonly inputs: readonly [{
107
+ readonly name: "versionNumber";
108
+ readonly type: "uint16";
109
+ readonly internalType: "uint16";
110
+ }];
111
+ readonly outputs: readonly [{
112
+ readonly name: "";
113
+ readonly type: "tuple";
114
+ readonly internalType: "struct IProtocolParams.VersionedOffchainParams";
115
+ readonly components: readonly [{
116
+ readonly name: "timelockAssert";
117
+ readonly type: "uint256";
118
+ readonly internalType: "uint256";
119
+ }, {
120
+ readonly name: "timelockChallengeAssert";
121
+ readonly type: "uint256";
122
+ readonly internalType: "uint256";
123
+ }, {
124
+ readonly name: "securityCouncilKeys";
125
+ readonly type: "bytes32[]";
126
+ readonly internalType: "bytes32[]";
127
+ }, {
128
+ readonly name: "councilQuorum";
129
+ readonly type: "uint8";
130
+ readonly internalType: "uint8";
131
+ }, {
132
+ readonly name: "feeRate";
133
+ readonly type: "uint64";
134
+ readonly internalType: "uint64";
135
+ }, {
136
+ readonly name: "babeTotalInstances";
137
+ readonly type: "uint16";
138
+ readonly internalType: "uint16";
139
+ }, {
140
+ readonly name: "babeInstancesToFinalize";
141
+ readonly type: "uint8";
142
+ readonly internalType: "uint8";
143
+ }, {
144
+ readonly name: "minVpCommissionBps";
145
+ readonly type: "uint16";
146
+ readonly internalType: "uint16";
147
+ }, {
148
+ readonly name: "tRefund";
149
+ readonly type: "uint32";
150
+ readonly internalType: "uint32";
151
+ }, {
152
+ readonly name: "tStale";
153
+ readonly type: "uint32";
154
+ readonly internalType: "uint32";
155
+ }, {
156
+ readonly name: "minPeginFeeRate";
157
+ readonly type: "uint64";
158
+ readonly internalType: "uint64";
159
+ }, {
160
+ readonly name: "proverProgramVersion";
161
+ readonly type: "uint16";
162
+ readonly internalType: "uint16";
163
+ }, {
164
+ readonly name: "minPrepeginDepth";
165
+ readonly type: "uint32";
166
+ readonly internalType: "uint32";
167
+ }];
168
+ }];
169
+ readonly stateMutability: "view";
170
+ }, {
171
+ readonly type: "function";
172
+ readonly name: "latestOffchainParamsVersion";
173
+ readonly inputs: readonly [];
174
+ readonly outputs: readonly [{
175
+ readonly name: "";
176
+ readonly type: "uint16";
177
+ readonly internalType: "uint16";
178
+ }];
179
+ readonly stateMutability: "view";
180
+ }, {
181
+ readonly type: "function";
182
+ readonly name: "getUniversalChallengersByVersion";
183
+ readonly inputs: readonly [{
184
+ readonly name: "versionNumber";
185
+ readonly type: "uint16";
186
+ readonly internalType: "uint16";
187
+ }];
188
+ readonly outputs: readonly [{
189
+ readonly name: "";
190
+ readonly type: "tuple[]";
191
+ readonly internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]";
192
+ readonly components: readonly [{
193
+ readonly name: "ethAddress";
194
+ readonly type: "address";
195
+ readonly internalType: "address";
196
+ }, {
197
+ readonly name: "btcPubKey";
198
+ readonly type: "bytes32";
199
+ readonly internalType: "bytes32";
200
+ }];
201
+ }];
202
+ readonly stateMutability: "view";
203
+ }, {
204
+ readonly type: "function";
205
+ readonly name: "getCurrentUniversalChallengers";
206
+ readonly inputs: readonly [];
207
+ readonly outputs: readonly [{
208
+ readonly name: "";
209
+ readonly type: "tuple[]";
210
+ readonly internalType: "struct BTCVaultTypes.AddressBTCKeyPair[]";
211
+ readonly components: readonly [{
212
+ readonly name: "ethAddress";
213
+ readonly type: "address";
214
+ readonly internalType: "address";
215
+ }, {
216
+ readonly name: "btcPubKey";
217
+ readonly type: "bytes32";
218
+ readonly internalType: "bytes32";
219
+ }];
220
+ }];
221
+ readonly stateMutability: "view";
222
+ }, {
223
+ readonly type: "function";
224
+ readonly name: "latestUniversalChallengersVersion";
225
+ readonly inputs: readonly [];
226
+ readonly outputs: readonly [{
227
+ readonly name: "";
228
+ readonly type: "uint16";
229
+ readonly internalType: "uint16";
230
+ }];
231
+ readonly stateMutability: "view";
232
+ }];
233
+ //# sourceMappingURL=ProtocolParams.abi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProtocolParams.abi.d.ts","sourceRoot":"","sources":["../../../../../src/tbv/core/contracts/abis/ProtocolParams.abi.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiSpB,CAAC"}
@@ -6,6 +6,8 @@
6
6
  *
7
7
  * @module contracts
8
8
  */
9
+ export { ApplicationRegistryABI } from './abis/ApplicationRegistry.abi';
9
10
  export { BTCVaultRegistryABI } from './abis/BTCVaultRegistry.abi';
11
+ export { ProtocolParamsABI } from './abis/ProtocolParams.abi';
10
12
  export { CONTRACT_ERRORS, extractErrorData, getContractErrorMessage, isKnownContractError, handleContractError, } from './errors';
11
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tbv/core/contracts/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,UAAU,CAAC"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../challengeAssert-D_k_ADgP.cjs"),u=require("@babylonlabs-io/babylon-tbv-rust-wasm"),a=require("../../payout-CfsDnjKI.cjs"),e=require("../../constants-EiyZkXce.cjs"),s=require("../../psbtInputFields-C0nKn_GD.cjs"),T=require("../../fundPeginTransaction-EbrZzlrh.cjs"),P=require("../../signing-Deg5lCoC.cjs"),r=require("../../errors-DAKpPfl7.cjs"),n=require("../../signAndSubmitPayouts-CSJmcPQN.cjs"),t=require("../../index-DKfhZvdn.cjs"),o=require("../../types-DEWiqXYp.cjs");exports.buildChallengeAssertPsbt=i.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=i.buildDepositorPayoutPsbt;exports.buildNoPayoutPsbt=i.buildNoPayoutPsbt;exports.buildPeginInputPsbt=i.buildPeginInputPsbt;exports.buildPeginTxFromFundedPrePegin=i.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=i.buildPrePeginPsbt;exports.buildRefundPsbt=i.buildRefundPsbt;exports.computeNumLocalChallengers=i.computeNumLocalChallengers;exports.extractPeginInputSignature=i.extractPeginInputSignature;exports.finalizePeginInputPsbt=i.finalizePeginInputPsbt;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>u.computeMinClaimValue});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>u.deriveVaultId});exports.buildPayoutPsbt=a.buildPayoutPsbt;exports.createPayoutScript=a.createPayoutScript;exports.extractPayoutSignature=a.extractPayoutSignature;exports.BTC_DUST_SAT=e.BTC_DUST_SAT;exports.DUST_THRESHOLD=e.DUST_THRESHOLD;exports.FEE_SAFETY_MARGIN=e.FEE_SAFETY_MARGIN;exports.LOW_RATE_ESTIMATION_ACCURACY_BUFFER=e.LOW_RATE_ESTIMATION_ACCURACY_BUFFER;exports.MAX_NON_LEGACY_OUTPUT_SIZE=e.MAX_NON_LEGACY_OUTPUT_SIZE;exports.P2TR_INPUT_SIZE=e.P2TR_INPUT_SIZE;exports.PEGIN_FIXED_OUTPUTS=e.PEGIN_FIXED_OUTPUTS;exports.SPLIT_TX_FEE_SAFETY_MULTIPLIER=e.SPLIT_TX_FEE_SAFETY_MULTIPLIER;exports.TX_BUFFER_SIZE_OVERHEAD=e.TX_BUFFER_SIZE_OVERHEAD;exports.WALLET_RELAY_FEE_RATE_THRESHOLD=e.WALLET_RELAY_FEE_RATE_THRESHOLD;exports.deriveNativeSegwitAddress=e.deriveNativeSegwitAddress;exports.deriveTaprootAddress=e.deriveTaprootAddress;exports.ensureHexPrefix=e.ensureHexPrefix;exports.getNetwork=e.getNetwork;exports.hexToUint8Array=e.hexToUint8Array;exports.isAddressFromPublicKey=e.isAddressFromPublicKey;exports.isValidHex=e.isValidHex;exports.peginOutputCount=e.peginOutputCount;exports.processPublicKeyToXOnly=e.processPublicKeyToXOnly;exports.rateBasedTxBufferFee=e.rateBasedTxBufferFee;exports.stripHexPrefix=e.stripHexPrefix;exports.toXOnly=e.toXOnly;exports.uint8ArrayToHex=e.uint8ArrayToHex;exports.validateWalletPubkey=e.validateWalletPubkey;exports.BitcoinScriptType=s.BitcoinScriptType;exports.calculateBtcTxHash=s.calculateBtcTxHash;exports.getDustThreshold=s.getDustThreshold;exports.getPsbtInputFields=s.getPsbtInputFields;exports.getScriptType=s.getScriptType;exports.selectUtxosForPegin=s.selectUtxosForPegin;exports.shouldAddChangeOutput=s.shouldAddChangeOutput;exports.fundPeginTransaction=T.fundPeginTransaction;exports.parseUnfundedWasmTransaction=T.parseUnfundedWasmTransaction;exports.createTaprootScriptPathSignOptions=P.createTaprootScriptPathSignOptions;exports.CONTRACT_ERRORS=r.CONTRACT_ERRORS;exports.PeginManager=r.PeginManager;exports.computeWotsPkHash=r.computeWotsPkHash;exports.deriveWotsKeypair=r.deriveWotsKeypair;exports.deriveWotsPkHash=r.deriveWotsPkHash;exports.extractErrorData=r.extractErrorData;exports.getContractErrorMessage=r.getContractErrorMessage;exports.handleContractError=r.handleContractError;exports.isKnownContractError=r.isKnownContractError;exports.isWotsMismatchError=r.isWotsMismatchError;exports.keypairToPublicKey=r.keypairToPublicKey;exports.mnemonicToWotsSeed=r.mnemonicToWotsSeed;exports.PayoutManager=n.PayoutManager;exports.pollAndSignPayouts=n.pollAndSignPayouts;exports.signDepositorGraph=n.signDepositorGraph;exports.submitWotsPublicKey=n.submitWotsPublicKey;exports.waitForPeginStatus=n.waitForPeginStatus;exports.BTCVaultRegistryABI=t.BTCVaultRegistryABI;exports.MEMPOOL_API_URLS=t.MEMPOOL_API_URLS;exports.VaultProviderRpcClient=t.VaultProviderRpcClient;exports.ViemVaultRegistryReader=t.ViemVaultRegistryReader;exports.VpResponseValidationError=t.VpResponseValidationError;exports.getAddressTxs=t.getAddressTxs;exports.getAddressUtxos=t.getAddressUtxos;exports.getMempoolApiUrl=t.getMempoolApiUrl;exports.getNetworkFees=t.getNetworkFees;exports.getTxHex=t.getTxHex;exports.getTxInfo=t.getTxInfo;exports.getUtxoInfo=t.getUtxoInfo;exports.pushTx=t.pushTx;exports.DaemonStatus=o.DaemonStatus;exports.JSON_RPC_ERROR_CODES=o.JSON_RPC_ERROR_CODES;exports.JsonRpcClient=o.JsonRpcClient;exports.JsonRpcError=o.JsonRpcError;exports.POST_WOTS_STATUSES=o.POST_WOTS_STATUSES;exports.PRE_DEPOSITOR_SIGNATURES_STATES=o.PRE_DEPOSITOR_SIGNATURES_STATES;exports.RpcErrorCode=o.RpcErrorCode;exports.VP_TERMINAL_STATUSES=o.VP_TERMINAL_STATUSES;exports.VP_TRANSIENT_STATUSES=o.VP_TRANSIENT_STATUSES;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../challengeAssert-nYlgeAI8.cjs"),P=require("@babylonlabs-io/babylon-tbv-rust-wasm"),u=require("../../payout-RFIh7GLN.cjs"),a=require("../../bitcoin-CNnPFU6Y.cjs"),l=require("../../signing-cl-lowxV.cjs"),e=require("../../buildAndBroadcastRefund-DWEQvj9T.cjs"),r=require("../../fundPeginTransaction-DxNOeyNI.cjs"),i=require("../../psbtInputFields-C-zYR1z7.cjs"),o=require("../../errors-BZON3Wmn.cjs"),t=require("../../index-BpXpESWu.cjs"),s=require("../../types-B-p4dhEH.cjs");exports.buildChallengeAssertPsbt=n.buildChallengeAssertPsbt;exports.buildDepositorPayoutPsbt=n.buildDepositorPayoutPsbt;exports.buildNoPayoutPsbt=n.buildNoPayoutPsbt;exports.buildPeginInputPsbt=n.buildPeginInputPsbt;exports.buildPeginTxFromFundedPrePegin=n.buildPeginTxFromFundedPrePegin;exports.buildPrePeginPsbt=n.buildPrePeginPsbt;exports.computeNumLocalChallengers=n.computeNumLocalChallengers;exports.extractPeginInputSignature=n.extractPeginInputSignature;exports.finalizePeginInputPsbt=n.finalizePeginInputPsbt;Object.defineProperty(exports,"computeMinClaimValue",{enumerable:!0,get:()=>P.computeMinClaimValue});Object.defineProperty(exports,"deriveVaultId",{enumerable:!0,get:()=>P.deriveVaultId});exports.buildPayoutPsbt=u.buildPayoutPsbt;exports.buildRefundPsbt=u.buildRefundPsbt;exports.createPayoutScript=u.createPayoutScript;exports.extractPayoutSignature=u.extractPayoutSignature;exports.deriveNativeSegwitAddress=a.deriveNativeSegwitAddress;exports.deriveTaprootAddress=a.deriveTaprootAddress;exports.ensureHexPrefix=a.ensureHexPrefix;exports.formatSatoshisToBtc=a.formatSatoshisToBtc;exports.getNetwork=a.getNetwork;exports.hexToUint8Array=a.hexToUint8Array;exports.isAddressFromPublicKey=a.isAddressFromPublicKey;exports.isValidHex=a.isValidHex;exports.processPublicKeyToXOnly=a.processPublicKeyToXOnly;exports.stripHexPrefix=a.stripHexPrefix;exports.toXOnly=a.toXOnly;exports.uint8ArrayToHex=a.uint8ArrayToHex;exports.validateWalletPubkey=a.validateWalletPubkey;exports.ContractStatus=l.ContractStatus;exports.PeginAction=l.PeginAction;exports.canPerformAction=l.canPerformAction;exports.createTaprootScriptPathSignOptions=l.createTaprootScriptPathSignOptions;exports.getPeginProtocolState=l.getPeginProtocolState;exports.BIP68NotMatureError=e.BIP68NotMatureError;exports.ClaimerPegoutStatusValue=e.ClaimerPegoutStatusValue;exports.PayoutManager=e.PayoutManager;exports.activateVault=e.activateVault;exports.buildAndBroadcastRefund=e.buildAndBroadcastRefund;exports.computeHashlock=e.computeHashlock;exports.isDepositAmountValid=e.isDepositAmountValid;exports.isPegoutTerminalStatus=e.isPegoutTerminalStatus;exports.isRecognizedPegoutStatus=e.isRecognizedPegoutStatus;exports.pollAndSignPayouts=e.pollAndSignPayouts;exports.signDepositorGraph=e.signDepositorGraph;exports.submitWotsPublicKey=e.submitWotsPublicKey;exports.validateDepositAmount=e.validateDepositAmount;exports.validateMultiVaultDepositInputs=e.validateMultiVaultDepositInputs;exports.validateProviderSelection=e.validateProviderSelection;exports.validateRemainingCapacity=e.validateRemainingCapacity;exports.validateSecretAgainstHashlock=e.validateSecretAgainstHashlock;exports.validateVaultAmounts=e.validateVaultAmounts;exports.validateVaultProviderPubkey=e.validateVaultProviderPubkey;exports.waitForPeginStatus=e.waitForPeginStatus;exports.BTC_DUST_SAT=r.BTC_DUST_SAT;exports.DUST_THRESHOLD=r.DUST_THRESHOLD;exports.FEE_SAFETY_MARGIN=r.FEE_SAFETY_MARGIN;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.P2TR_INPUT_SIZE=r.P2TR_INPUT_SIZE;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.BitcoinScriptType=i.BitcoinScriptType;exports.UtxoNotAvailableError=i.UtxoNotAvailableError;exports.assertUtxosAvailable=i.assertUtxosAvailable;exports.calculateBtcTxHash=i.calculateBtcTxHash;exports.collectReservedUtxoRefs=i.collectReservedUtxoRefs;exports.extractInputsFromTransaction=i.extractInputsFromTransaction;exports.getDustThreshold=i.getDustThreshold;exports.getPsbtInputFields=i.getPsbtInputFields;exports.getScriptType=i.getScriptType;exports.selectUtxosForDeposit=i.selectUtxosForDeposit;exports.selectUtxosForPegin=i.selectUtxosForPegin;exports.shouldAddChangeOutput=i.shouldAddChangeOutput;exports.validateUtxosAvailable=i.validateUtxosAvailable;exports.CONTRACT_ERRORS=o.CONTRACT_ERRORS;exports.PeginManager=o.PeginManager;exports.computeWotsBlockPublicKeysHash=o.computeWotsBlockPublicKeysHash;exports.computeWotsPkHash=o.computeWotsPkHash;exports.deriveWotsBlockPublicKeys=o.deriveWotsBlockPublicKeys;exports.deriveWotsKeypair=o.deriveWotsKeypair;exports.deriveWotsPkHash=o.deriveWotsPkHash;exports.extractErrorData=o.extractErrorData;exports.getContractErrorMessage=o.getContractErrorMessage;exports.handleContractError=o.handleContractError;exports.isKnownContractError=o.isKnownContractError;exports.isWotsMismatchError=o.isWotsMismatchError;exports.keypairToPublicKey=o.keypairToPublicKey;exports.mnemonicToWotsSeed=o.mnemonicToWotsSeed;exports.ApplicationRegistryABI=t.ApplicationRegistryABI;exports.MEMPOOL_API_URLS=t.MEMPOOL_API_URLS;exports.ProtocolParamsABI=t.ProtocolParamsABI;exports.VaultProviderRpcClient=t.VaultProviderRpcClient;exports.ViemProtocolParamsReader=t.ViemProtocolParamsReader;exports.ViemUniversalChallengerReader=t.ViemUniversalChallengerReader;exports.ViemVaultKeeperReader=t.ViemVaultKeeperReader;exports.ViemVaultRegistryReader=t.ViemVaultRegistryReader;exports.VpResponseValidationError=t.VpResponseValidationError;exports.getAddressTxs=t.getAddressTxs;exports.getAddressUtxos=t.getAddressUtxos;exports.getMempoolApiUrl=t.getMempoolApiUrl;exports.getNetworkFees=t.getNetworkFees;exports.getTxHex=t.getTxHex;exports.getTxInfo=t.getTxInfo;exports.getUtxoInfo=t.getUtxoInfo;exports.pushTx=t.pushTx;exports.resolveProtocolAddresses=t.resolveProtocolAddresses;exports.BTCVaultRegistryABI=s.BTCVaultRegistryABI;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_TERMINAL_STATUSES=s.VP_TERMINAL_STATUSES;exports.VP_TRANSIENT_STATUSES=s.VP_TRANSIENT_STATUSES;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -5,8 +5,10 @@
5
5
  * - Primitives (Level 1): Pure functions wrapping WASM
6
6
  * - Utils (Level 2): UTXO selection, transaction funding, fee calculation
7
7
  * - Managers (Level 2): Wallet orchestration
8
- * - Clients: API clients (mempool)
8
+ * - Clients: API clients (mempool, vault provider)
9
9
  * - Contracts: Smart contract ABIs
10
+ * - Services: Deposit validation, peg-in protocol state, pegout state
11
+ * - WOTS: Winternitz one-time signature utilities
10
12
  *
11
13
  * @module tbv/core
12
14
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tbv/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tbv/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}