@lombard.finance/sdk 3.6.20 → 3.7.0-canary.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 (477) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +175 -114
  3. package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.d.ts +67 -0
  4. package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.d.ts.map +1 -0
  5. package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.d.ts +16 -0
  6. package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.d.ts.map +1 -0
  7. package/dist/api-functions/generateDepositBtcAddress/index.d.ts +2 -0
  8. package/dist/api-functions/generateDepositBtcAddress/index.d.ts.map +1 -0
  9. package/dist/api-functions/get-badges-by-address/get-badges-by-address.d.ts +8 -0
  10. package/dist/api-functions/get-badges-by-address/get-badges-by-address.d.ts.map +1 -0
  11. package/dist/api-functions/get-badges-by-address/index.d.ts +2 -0
  12. package/dist/api-functions/get-badges-by-address/index.d.ts.map +1 -0
  13. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts +13 -0
  14. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts.map +1 -0
  15. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.d.ts +16 -0
  16. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.d.ts.map +1 -0
  17. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.d.ts +2 -0
  18. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.d.ts.map +1 -0
  19. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddresses.stories.d.ts +16 -0
  20. package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddresses.stories.d.ts.map +1 -0
  21. package/dist/api-functions/getDepositBtcAddress/index.d.ts +2 -0
  22. package/dist/api-functions/getDepositBtcAddress/index.d.ts.map +1 -0
  23. package/dist/api-functions/getDepositBtcAddress/make-request.d.ts +3 -0
  24. package/dist/api-functions/getDepositBtcAddress/make-request.d.ts.map +1 -0
  25. package/dist/api-functions/getDepositBtcAddress/types.d.ts +93 -0
  26. package/dist/api-functions/getDepositBtcAddress/types.d.ts.map +1 -0
  27. package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.d.ts +243 -0
  28. package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.d.ts.map +1 -0
  29. package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.stories.d.ts +13 -0
  30. package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.stories.d.ts.map +1 -0
  31. package/dist/api-functions/getDepositsByAddress/index.d.ts +2 -0
  32. package/dist/api-functions/getDepositsByAddress/index.d.ts.map +1 -0
  33. package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.d.ts +19 -0
  34. package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.d.ts.map +1 -0
  35. package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.stories.d.ts +16 -0
  36. package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.stories.d.ts.map +1 -0
  37. package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.d.ts +42 -0
  38. package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.d.ts.map +1 -0
  39. package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.stories.d.ts +16 -0
  40. package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.stories.d.ts.map +1 -0
  41. package/dist/api-functions/getLBTCExchangeRate/index.d.ts +3 -0
  42. package/dist/api-functions/getLBTCExchangeRate/index.d.ts.map +1 -0
  43. package/dist/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.d.ts +42 -0
  44. package/dist/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.d.ts.map +1 -0
  45. package/dist/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.stories.d.ts +17 -0
  46. package/dist/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.stories.d.ts.map +1 -0
  47. package/dist/api-functions/getNetworkFeeSignature/index.d.ts +2 -0
  48. package/dist/api-functions/getNetworkFeeSignature/index.d.ts.map +1 -0
  49. package/dist/api-functions/getPointsByAddress/getPointsByAddress.d.ts +94 -0
  50. package/dist/api-functions/getPointsByAddress/getPointsByAddress.d.ts.map +1 -0
  51. package/dist/api-functions/getPointsByAddress/getPointsByAddress.stories.d.ts +13 -0
  52. package/dist/api-functions/getPointsByAddress/getPointsByAddress.stories.d.ts.map +1 -0
  53. package/dist/api-functions/getPointsByAddress/index.d.ts +2 -0
  54. package/dist/api-functions/getPointsByAddress/index.d.ts.map +1 -0
  55. package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.d.ts +103 -0
  56. package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.d.ts.map +1 -0
  57. package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.stories.d.ts +13 -0
  58. package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.stories.d.ts.map +1 -0
  59. package/dist/api-functions/getUnstakesByAddress/index.d.ts +2 -0
  60. package/dist/api-functions/getUnstakesByAddress/index.d.ts.map +1 -0
  61. package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.d.ts +46 -0
  62. package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.d.ts.map +1 -0
  63. package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.stories.d.ts +14 -0
  64. package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.stories.d.ts.map +1 -0
  65. package/dist/api-functions/getUserStakeAndBakeSignature/index.d.ts +2 -0
  66. package/dist/api-functions/getUserStakeAndBakeSignature/index.d.ts.map +1 -0
  67. package/dist/api-functions/index.d.ts +12 -0
  68. package/dist/api-functions/index.d.ts.map +1 -0
  69. package/dist/api-functions/setReferral/index.d.ts +2 -0
  70. package/dist/api-functions/setReferral/index.d.ts.map +1 -0
  71. package/dist/api-functions/setReferral/setReferral.d.ts +29 -0
  72. package/dist/api-functions/setReferral/setReferral.d.ts.map +1 -0
  73. package/dist/api-functions/storeNetworkFeeSignature/index.d.ts +2 -0
  74. package/dist/api-functions/storeNetworkFeeSignature/index.d.ts.map +1 -0
  75. package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.d.ts +29 -0
  76. package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.d.ts.map +1 -0
  77. package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.stories.d.ts +14 -0
  78. package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.stories.d.ts.map +1 -0
  79. package/dist/api-functions/storeStakeAndBakeSignature/index.d.ts +2 -0
  80. package/dist/api-functions/storeStakeAndBakeSignature/index.d.ts.map +1 -0
  81. package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.d.ts +24 -0
  82. package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.d.ts.map +1 -0
  83. package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.stories.d.ts +14 -0
  84. package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.stories.d.ts.map +1 -0
  85. package/dist/bridge/index.d.ts +9 -0
  86. package/dist/bridge/index.d.ts.map +1 -0
  87. package/dist/bridge/lib/bridge.d.ts +34 -0
  88. package/dist/bridge/lib/bridge.d.ts.map +1 -0
  89. package/dist/bridge/lib/bridge.stories.d.ts +14 -0
  90. package/dist/bridge/lib/bridge.stories.d.ts.map +1 -0
  91. package/dist/bridge/lib/ccip-bridge.d.ts +25 -0
  92. package/dist/bridge/lib/ccip-bridge.d.ts.map +1 -0
  93. package/dist/bridge/lib/ccip-bridge.stories.d.ts +14 -0
  94. package/dist/bridge/lib/ccip-bridge.stories.d.ts.map +1 -0
  95. package/dist/bridge/lib/ccip-config.d.ts +11 -0
  96. package/dist/bridge/lib/ccip-config.d.ts.map +1 -0
  97. package/dist/bridge/lib/config.d.ts +31 -0
  98. package/dist/bridge/lib/config.d.ts.map +1 -0
  99. package/dist/bridge/lib/oft-bridge.d.ts +20 -0
  100. package/dist/bridge/lib/oft-bridge.d.ts.map +1 -0
  101. package/dist/bridge/lib/oft-bridge.stories.d.ts +14 -0
  102. package/dist/bridge/lib/oft-bridge.stories.d.ts.map +1 -0
  103. package/dist/clients/evm-signer-adapter.d.ts +138 -0
  104. package/dist/clients/evm-signer-adapter.d.ts.map +1 -0
  105. package/dist/clients/public-client.d.ts +17 -0
  106. package/dist/clients/public-client.d.ts.map +1 -0
  107. package/dist/clients/rpc-url-config.d.ts +6 -0
  108. package/dist/clients/rpc-url-config.d.ts.map +1 -0
  109. package/dist/clients/wallet-client.d.ts +15 -0
  110. package/dist/clients/wallet-client.d.ts.map +1 -0
  111. package/dist/common/api-config.d.ts +8 -0
  112. package/dist/common/api-config.d.ts.map +1 -0
  113. package/dist/common/blockchain-identifier.d.ts +38 -0
  114. package/dist/common/blockchain-identifier.d.ts.map +1 -0
  115. package/dist/common/chains.d.ts +1855 -0
  116. package/dist/common/chains.d.ts.map +1 -0
  117. package/dist/common/chains.stories.d.ts +17 -0
  118. package/dist/common/chains.stories.d.ts.map +1 -0
  119. package/dist/common/constants.d.ts +2 -0
  120. package/dist/common/constants.d.ts.map +1 -0
  121. package/dist/common/contract-info.d.ts +8 -0
  122. package/dist/common/contract-info.d.ts.map +1 -0
  123. package/dist/common/parameters.d.ts +72 -0
  124. package/dist/common/parameters.d.ts.map +1 -0
  125. package/dist/contract-functions/approveLBTC/approveLBTC.d.ts +30 -0
  126. package/dist/contract-functions/approveLBTC/approveLBTC.d.ts.map +1 -0
  127. package/dist/contract-functions/approveLBTC/approveLBTC.stories.d.ts +17 -0
  128. package/dist/contract-functions/approveLBTC/approveLBTC.stories.d.ts.map +1 -0
  129. package/dist/contract-functions/approveLBTC/index.d.ts +2 -0
  130. package/dist/contract-functions/approveLBTC/index.d.ts.map +1 -0
  131. package/dist/contract-functions/approveToken/approveToken.d.ts +59 -0
  132. package/dist/contract-functions/approveToken/approveToken.d.ts.map +1 -0
  133. package/dist/contract-functions/approveToken/index.d.ts +2 -0
  134. package/dist/contract-functions/approveToken/index.d.ts.map +1 -0
  135. package/dist/contract-functions/claimLBTC/claimLBTC.d.ts +56 -0
  136. package/dist/contract-functions/claimLBTC/claimLBTC.d.ts.map +1 -0
  137. package/dist/contract-functions/claimLBTC/claimLBTC.stories.d.ts +17 -0
  138. package/dist/contract-functions/claimLBTC/claimLBTC.stories.d.ts.map +1 -0
  139. package/dist/contract-functions/claimLBTC/index.d.ts +2 -0
  140. package/dist/contract-functions/claimLBTC/index.d.ts.map +1 -0
  141. package/dist/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.d.ts +30 -0
  142. package/dist/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.d.ts.map +1 -0
  143. package/dist/contract-functions/claimUnstakeRedeem/index.d.ts +2 -0
  144. package/dist/contract-functions/claimUnstakeRedeem/index.d.ts.map +1 -0
  145. package/dist/contract-functions/deposit/depositToken.d.ts +69 -0
  146. package/dist/contract-functions/deposit/depositToken.d.ts.map +1 -0
  147. package/dist/contract-functions/deposit/depositToken.stories.d.ts +17 -0
  148. package/dist/contract-functions/deposit/depositToken.stories.d.ts.map +1 -0
  149. package/dist/contract-functions/deposit/index.d.ts +2 -0
  150. package/dist/contract-functions/deposit/index.d.ts.map +1 -0
  151. package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.d.ts +49 -0
  152. package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.d.ts.map +1 -0
  153. package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.d.ts +16 -0
  154. package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.d.ts.map +1 -0
  155. package/dist/contract-functions/getBasculeDepositStatus/index.d.ts +2 -0
  156. package/dist/contract-functions/getBasculeDepositStatus/index.d.ts.map +1 -0
  157. package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.d.ts +26 -0
  158. package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.d.ts.map +1 -0
  159. package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.d.ts +17 -0
  160. package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.d.ts.map +1 -0
  161. package/dist/contract-functions/getLBTCMintingFee/index.d.ts +2 -0
  162. package/dist/contract-functions/getLBTCMintingFee/index.d.ts.map +1 -0
  163. package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.d.ts +14 -0
  164. package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.d.ts.map +1 -0
  165. package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.stories.d.ts +17 -0
  166. package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.stories.d.ts.map +1 -0
  167. package/dist/contract-functions/getLBTCTotalSupply/index.d.ts +2 -0
  168. package/dist/contract-functions/getLBTCTotalSupply/index.d.ts.map +1 -0
  169. package/dist/contract-functions/getPermitNonce/getPermitNonce.d.ts +20 -0
  170. package/dist/contract-functions/getPermitNonce/getPermitNonce.d.ts.map +1 -0
  171. package/dist/contract-functions/getPermitNonce/getPermitNonce.stories.d.ts +14 -0
  172. package/dist/contract-functions/getPermitNonce/getPermitNonce.stories.d.ts.map +1 -0
  173. package/dist/contract-functions/getPermitNonce/index.d.ts +2 -0
  174. package/dist/contract-functions/getPermitNonce/index.d.ts.map +1 -0
  175. package/dist/contract-functions/getShareValue/getShareValue.d.ts +22 -0
  176. package/dist/contract-functions/getShareValue/getShareValue.d.ts.map +1 -0
  177. package/dist/contract-functions/getShareValue/getShareValue.stories.d.ts +13 -0
  178. package/dist/contract-functions/getShareValue/getShareValue.stories.d.ts.map +1 -0
  179. package/dist/contract-functions/getShareValue/index.d.ts +2 -0
  180. package/dist/contract-functions/getShareValue/index.d.ts.map +1 -0
  181. package/dist/contract-functions/getSharesByAddress/getSharesByAddress.d.ts +35 -0
  182. package/dist/contract-functions/getSharesByAddress/getSharesByAddress.d.ts.map +1 -0
  183. package/dist/contract-functions/getSharesByAddress/getSharesByAddress.stories.d.ts +13 -0
  184. package/dist/contract-functions/getSharesByAddress/getSharesByAddress.stories.d.ts.map +1 -0
  185. package/dist/contract-functions/getSharesByAddress/index.d.ts +2 -0
  186. package/dist/contract-functions/getSharesByAddress/index.d.ts.map +1 -0
  187. package/dist/contract-functions/getStakeAndBakeFee/__tests__/getStakeAndBakeFee.test.d.ts +2 -0
  188. package/dist/contract-functions/getStakeAndBakeFee/__tests__/getStakeAndBakeFee.test.d.ts.map +1 -0
  189. package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.d.ts +34 -0
  190. package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.d.ts.map +1 -0
  191. package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.stories.d.ts +17 -0
  192. package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.stories.d.ts.map +1 -0
  193. package/dist/contract-functions/getStakeAndBakeFee/index.d.ts +2 -0
  194. package/dist/contract-functions/getStakeAndBakeFee/index.d.ts.map +1 -0
  195. package/dist/contract-functions/index.d.ts +17 -0
  196. package/dist/contract-functions/index.d.ts.map +1 -0
  197. package/dist/contract-functions/signLbtcDestionationAddr/index.d.ts +2 -0
  198. package/dist/contract-functions/signLbtcDestionationAddr/index.d.ts.map +1 -0
  199. package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestinationAddr.d.ts +16 -0
  200. package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestinationAddr.d.ts.map +1 -0
  201. package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestionationAddr.stories.d.ts +9 -0
  202. package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestionationAddr.stories.d.ts.map +1 -0
  203. package/dist/contract-functions/signNetworkFee/getTypedData.d.ts +32 -0
  204. package/dist/contract-functions/signNetworkFee/getTypedData.d.ts.map +1 -0
  205. package/dist/contract-functions/signNetworkFee/index.d.ts +2 -0
  206. package/dist/contract-functions/signNetworkFee/index.d.ts.map +1 -0
  207. package/dist/contract-functions/signNetworkFee/signNetworkFee.d.ts +47 -0
  208. package/dist/contract-functions/signNetworkFee/signNetworkFee.d.ts.map +1 -0
  209. package/dist/contract-functions/signNetworkFee/signNetworkFee.stories.d.ts +14 -0
  210. package/dist/contract-functions/signNetworkFee/signNetworkFee.stories.d.ts.map +1 -0
  211. package/dist/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.d.ts +17 -0
  212. package/dist/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.d.ts.map +1 -0
  213. package/dist/contract-functions/signStakeAndBake/handleApprove.d.ts +20 -0
  214. package/dist/contract-functions/signStakeAndBake/handleApprove.d.ts.map +1 -0
  215. package/dist/contract-functions/signStakeAndBake/handlePermit.d.ts +13 -0
  216. package/dist/contract-functions/signStakeAndBake/handlePermit.d.ts.map +1 -0
  217. package/dist/contract-functions/signStakeAndBake/index.d.ts +3 -0
  218. package/dist/contract-functions/signStakeAndBake/index.d.ts.map +1 -0
  219. package/dist/contract-functions/signStakeAndBake/signStakeAndBake.d.ts +71 -0
  220. package/dist/contract-functions/signStakeAndBake/signStakeAndBake.d.ts.map +1 -0
  221. package/dist/contract-functions/signStakeAndBake/signStakeAndBake.stories.d.ts +50 -0
  222. package/dist/contract-functions/signStakeAndBake/signStakeAndBake.stories.d.ts.map +1 -0
  223. package/dist/contract-functions/signStakeAndBake/typed-data-builder.d.ts +189 -0
  224. package/dist/contract-functions/signStakeAndBake/typed-data-builder.d.ts.map +1 -0
  225. package/dist/contract-functions/signStakeAndBake/utils.d.ts +4471 -0
  226. package/dist/contract-functions/signStakeAndBake/utils.d.ts.map +1 -0
  227. package/dist/contract-functions/signStakeAndBake/validation.d.ts +40 -0
  228. package/dist/contract-functions/signStakeAndBake/validation.d.ts.map +1 -0
  229. package/dist/contract-functions/unstakeLBTC/index.d.ts +2 -0
  230. package/dist/contract-functions/unstakeLBTC/index.d.ts.map +1 -0
  231. package/dist/contract-functions/unstakeLBTC/unstakeLBTC.d.ts +132 -0
  232. package/dist/contract-functions/unstakeLBTC/unstakeLBTC.d.ts.map +1 -0
  233. package/dist/contract-functions/unstakeLBTC/unstakeLBTC.stories.d.ts +17 -0
  234. package/dist/contract-functions/unstakeLBTC/unstakeLBTC.stories.d.ts.map +1 -0
  235. package/dist/debug-api/btc-script-to-address.d.ts +3 -0
  236. package/dist/debug-api/btc-script-to-address.d.ts.map +1 -0
  237. package/dist/debug-api/btc-tx-info.d.ts +19 -0
  238. package/dist/debug-api/btc-tx-info.d.ts.map +1 -0
  239. package/dist/debug-api/evm-by-btc-address.d.ts +9 -0
  240. package/dist/debug-api/evm-by-btc-address.d.ts.map +1 -0
  241. package/dist/debug-api/index.d.ts +4 -0
  242. package/dist/debug-api/index.d.ts.map +1 -0
  243. package/dist/defi/defi-registry.d.ts +73 -0
  244. package/dist/defi/defi-registry.d.ts.map +1 -0
  245. package/dist/defi/defi-registry.stories.d.ts +18 -0
  246. package/dist/defi/defi-registry.stories.d.ts.map +1 -0
  247. package/dist/defi/index.d.ts +2 -0
  248. package/dist/defi/index.d.ts.map +1 -0
  249. package/dist/index.cjs +1 -1
  250. package/dist/index.d.ts +24 -0
  251. package/dist/index.d.ts.map +1 -0
  252. package/dist/index.js +143 -120
  253. package/dist/index2.cjs +66 -66
  254. package/dist/index2.js +17984 -16636
  255. package/dist/metrics/get-additional-rewards.d.ts +31 -0
  256. package/dist/metrics/get-additional-rewards.d.ts.map +1 -0
  257. package/dist/metrics/get-lbtc-apy.d.ts +35 -0
  258. package/dist/metrics/get-lbtc-apy.d.ts.map +1 -0
  259. package/dist/metrics/get-lbtc-stats.d.ts +21 -0
  260. package/dist/metrics/get-lbtc-stats.d.ts.map +1 -0
  261. package/dist/metrics/get-lbtc-stats.stories.d.ts +17 -0
  262. package/dist/metrics/get-lbtc-stats.stories.d.ts.map +1 -0
  263. package/dist/metrics/get-positions-summary.d.ts +75 -0
  264. package/dist/metrics/get-positions-summary.d.ts.map +1 -0
  265. package/dist/metrics/get-positions-summary.stories.d.ts +17 -0
  266. package/dist/metrics/get-positions-summary.stories.d.ts.map +1 -0
  267. package/dist/stories/arg-types.d.ts +6 -0
  268. package/dist/stories/arg-types.d.ts.map +1 -0
  269. package/dist/stories/components/Button/Button.d.ts +16 -0
  270. package/dist/stories/components/Button/Button.d.ts.map +1 -0
  271. package/dist/stories/components/Button/index.d.ts +2 -0
  272. package/dist/stories/components/Button/index.d.ts.map +1 -0
  273. package/dist/stories/components/CodeBlock/CodeBlock.d.ts +9 -0
  274. package/dist/stories/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  275. package/dist/stories/components/CodeBlock/index.d.ts +2 -0
  276. package/dist/stories/components/CodeBlock/index.d.ts.map +1 -0
  277. package/dist/stories/components/ConnectButton/connect-button.d.ts +5 -0
  278. package/dist/stories/components/ConnectButton/connect-button.d.ts.map +1 -0
  279. package/dist/stories/components/ConnectButton/index.d.ts +2 -0
  280. package/dist/stories/components/ConnectButton/index.d.ts.map +1 -0
  281. package/dist/stories/components/Spinner/Spinner.d.ts +9 -0
  282. package/dist/stories/components/Spinner/Spinner.d.ts.map +1 -0
  283. package/dist/stories/components/Spinner/index.d.ts +2 -0
  284. package/dist/stories/components/Spinner/index.d.ts.map +1 -0
  285. package/dist/stories/components/decorators/function-type.d.ts +4 -0
  286. package/dist/stories/components/decorators/function-type.d.ts.map +1 -0
  287. package/dist/stories/components/decorators/index.d.ts +3 -0
  288. package/dist/stories/components/decorators/index.d.ts.map +1 -0
  289. package/dist/stories/components/decorators/wagmi-decorator.d.ts +6 -0
  290. package/dist/stories/components/decorators/wagmi-decorator.d.ts.map +1 -0
  291. package/dist/stories/components/error-block.d.ts +5 -0
  292. package/dist/stories/components/error-block.d.ts.map +1 -0
  293. package/dist/stories/constants.d.ts +3 -0
  294. package/dist/stories/constants.d.ts.map +1 -0
  295. package/dist/stories/hooks/useConnection.d.ts +27 -0
  296. package/dist/stories/hooks/useConnection.d.ts.map +1 -0
  297. package/dist/stories/hooks/useQuery.d.ts +19 -0
  298. package/dist/stories/hooks/useQuery.d.ts.map +1 -0
  299. package/dist/tokens/abi/ASSET_ROUTER_ABI.d.ts +68 -0
  300. package/dist/tokens/abi/ASSET_ROUTER_ABI.d.ts.map +1 -0
  301. package/dist/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.d.ts +1095 -0
  302. package/dist/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.d.ts.map +1 -0
  303. package/dist/tokens/abi/BTCK_ABI.d.ts +1487 -0
  304. package/dist/tokens/abi/BTCK_ABI.d.ts.map +1 -0
  305. package/dist/tokens/abi/LBTC_ABI.d.ts +1364 -0
  306. package/dist/tokens/abi/LBTC_ABI.d.ts.map +1 -0
  307. package/dist/tokens/abi/NATIVE_LBTC_ABI.d.ts +1551 -0
  308. package/dist/tokens/abi/NATIVE_LBTC_ABI.d.ts.map +1 -0
  309. package/dist/tokens/abi/STLBTC_ABI.d.ts +1399 -0
  310. package/dist/tokens/abi/STLBTC_ABI.d.ts.map +1 -0
  311. package/dist/tokens/cross-chain-addresses.stories.d.ts +60 -0
  312. package/dist/tokens/cross-chain-addresses.stories.d.ts.map +1 -0
  313. package/dist/tokens/denomination-utils.stories.d.ts +62 -0
  314. package/dist/tokens/denomination-utils.stories.d.ts.map +1 -0
  315. package/dist/tokens/getLbtcContractAddresses.stories.d.ts +59 -0
  316. package/dist/tokens/getLbtcContractAddresses.stories.d.ts.map +1 -0
  317. package/dist/tokens/getTokenByAddress.stories.d.ts +64 -0
  318. package/dist/tokens/getTokenByAddress.stories.d.ts.map +1 -0
  319. package/dist/tokens/getTokenContractInfo.stories.d.ts +52 -0
  320. package/dist/tokens/getTokenContractInfo.stories.d.ts.map +1 -0
  321. package/dist/tokens/getTokenInfo.stories.d.ts +42 -0
  322. package/dist/tokens/getTokenInfo.stories.d.ts.map +1 -0
  323. package/dist/tokens/isUpgradedContract.stories.d.ts +50 -0
  324. package/dist/tokens/isUpgradedContract.stories.d.ts.map +1 -0
  325. package/dist/tokens/lbtc-addresses.d.ts +11 -0
  326. package/dist/tokens/lbtc-addresses.d.ts.map +1 -0
  327. package/dist/tokens/token-addresses.d.ts +37 -0
  328. package/dist/tokens/token-addresses.d.ts.map +1 -0
  329. package/dist/tokens/tokens.d.ts +319 -0
  330. package/dist/tokens/tokens.d.ts.map +1 -0
  331. package/dist/tokens/types.d.ts +78 -0
  332. package/dist/tokens/types.d.ts.map +1 -0
  333. package/dist/utils/array.d.ts +3 -0
  334. package/dist/utils/array.d.ts.map +1 -0
  335. package/dist/utils/block.d.ts +3 -0
  336. package/dist/utils/block.d.ts.map +1 -0
  337. package/dist/utils/env.d.ts +4 -0
  338. package/dist/utils/env.d.ts.map +1 -0
  339. package/dist/utils/err.d.ts +22 -0
  340. package/dist/utils/err.d.ts.map +1 -0
  341. package/dist/utils/gas.d.ts +7 -0
  342. package/dist/utils/gas.d.ts.map +1 -0
  343. package/dist/utils/hex.d.ts +4 -0
  344. package/dist/utils/hex.d.ts.map +1 -0
  345. package/dist/utils/numbers.d.ts +5 -0
  346. package/dist/utils/numbers.d.ts.map +1 -0
  347. package/dist/utils/pagination.d.ts +26 -0
  348. package/dist/utils/pagination.d.ts.map +1 -0
  349. package/dist/utils/satoshi.d.ts +17 -0
  350. package/dist/utils/satoshi.d.ts.map +1 -0
  351. package/dist/utils/time.d.ts +7 -0
  352. package/dist/utils/time.d.ts.map +1 -0
  353. package/dist/utils/transaction-executor.d.ts +96 -0
  354. package/dist/utils/transaction-executor.d.ts.map +1 -0
  355. package/dist/vaults/abi/index.d.ts +4 -0
  356. package/dist/vaults/abi/index.d.ts.map +1 -0
  357. package/dist/vaults/index.d.ts +9 -0
  358. package/dist/vaults/index.d.ts.map +1 -0
  359. package/dist/vaults/lib/config.d.ts +215 -0
  360. package/dist/vaults/lib/config.d.ts.map +1 -0
  361. package/dist/vaults/lib/metrics/get-vault-apy.d.ts +22 -0
  362. package/dist/vaults/lib/metrics/get-vault-apy.d.ts.map +1 -0
  363. package/dist/vaults/lib/metrics/get-vault-apy.stories.d.ts +14 -0
  364. package/dist/vaults/lib/metrics/get-vault-apy.stories.d.ts.map +1 -0
  365. package/dist/vaults/lib/metrics/get-vault-points.d.ts +16 -0
  366. package/dist/vaults/lib/metrics/get-vault-points.d.ts.map +1 -0
  367. package/dist/vaults/lib/metrics/get-vault-points.stories.d.ts +14 -0
  368. package/dist/vaults/lib/metrics/get-vault-points.stories.d.ts.map +1 -0
  369. package/dist/vaults/lib/metrics/get-vault-tvl.d.ts +22 -0
  370. package/dist/vaults/lib/metrics/get-vault-tvl.d.ts.map +1 -0
  371. package/dist/vaults/lib/metrics/get-vault-tvl.stories.d.ts +14 -0
  372. package/dist/vaults/lib/metrics/get-vault-tvl.stories.d.ts.map +1 -0
  373. package/dist/vaults/lib/ops/cancel-withdraw.stories.d.ts +14 -0
  374. package/dist/vaults/lib/ops/cancel-withdraw.stories.d.ts.map +1 -0
  375. package/dist/vaults/lib/ops/deposit.d.ts +34 -0
  376. package/dist/vaults/lib/ops/deposit.d.ts.map +1 -0
  377. package/dist/vaults/lib/ops/deposit.stories.d.ts +14 -0
  378. package/dist/vaults/lib/ops/deposit.stories.d.ts.map +1 -0
  379. package/dist/vaults/lib/ops/get-vault-deposits.d.ts +57 -0
  380. package/dist/vaults/lib/ops/get-vault-deposits.d.ts.map +1 -0
  381. package/dist/vaults/lib/ops/get-vault-deposits.stories.d.ts +14 -0
  382. package/dist/vaults/lib/ops/get-vault-deposits.stories.d.ts.map +1 -0
  383. package/dist/vaults/lib/ops/get-vault-withdrawals.d.ts +74 -0
  384. package/dist/vaults/lib/ops/get-vault-withdrawals.d.ts.map +1 -0
  385. package/dist/vaults/lib/ops/get-vault-withdrawals.stories.d.ts +14 -0
  386. package/dist/vaults/lib/ops/get-vault-withdrawals.stories.d.ts.map +1 -0
  387. package/dist/vaults/lib/ops/withdraw.d.ts +49 -0
  388. package/dist/vaults/lib/ops/withdraw.d.ts.map +1 -0
  389. package/dist/vaults/lib/ops/withdraw.stories.d.ts +14 -0
  390. package/dist/vaults/lib/ops/withdraw.stories.d.ts.map +1 -0
  391. package/package.json +7 -5
  392. package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.tsx +1 -1
  393. package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.ts +4 -3
  394. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.tsx +1 -1
  395. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.ts +6 -6
  396. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts +13 -7
  397. package/src/api-functions/getDepositsByAddress/getDepositsByAddress.ts +425 -74
  398. package/src/api-functions/getLBTCExchangeRate/get-exchange-ratio.stories.tsx +4 -4
  399. package/src/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.ts +15 -4
  400. package/src/api-functions/getUnstakesByAddress/getUnstakesByAddress.ts +289 -111
  401. package/src/api-functions/getUnstakesByAddress/index.ts +1 -5
  402. package/src/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.ts +3 -1
  403. package/src/bridge/abi/CCIP_ROUTER_ABI.json +702 -0
  404. package/src/bridge/lib/ccip-bridge.ts +76 -26
  405. package/src/bridge/lib/ccip-config.ts +53 -0
  406. package/src/bridge/lib/config.ts +1 -0
  407. package/src/clients/evm-signer-adapter.ts +312 -0
  408. package/src/clients/public-client.ts +2 -2
  409. package/src/common/api-config.ts +10 -2
  410. package/src/common/blockchain-identifier.ts +13 -2
  411. package/src/common/chains.ts +9 -1
  412. package/src/common/parameters.ts +37 -0
  413. package/src/contract-functions/approveToken/approveToken.ts +125 -0
  414. package/src/contract-functions/approveToken/index.ts +2 -0
  415. package/src/contract-functions/claimLBTC/claimLBTC.stories.tsx +1 -1
  416. package/src/contract-functions/claimLBTC/claimLBTC.ts +66 -37
  417. package/src/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.ts +94 -0
  418. package/src/contract-functions/claimUnstakeRedeem/index.ts +2 -0
  419. package/src/contract-functions/deposit/depositToken.stories.tsx +82 -0
  420. package/src/contract-functions/deposit/depositToken.ts +213 -0
  421. package/src/contract-functions/deposit/index.ts +1 -0
  422. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.tsx +1 -1
  423. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.ts +42 -9
  424. package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.tsx +0 -1
  425. package/src/contract-functions/getLBTCMintingFee/{getLBTCMintingFee.tsx → getLBTCMintingFee.ts} +33 -18
  426. package/src/contract-functions/getStakeAndBakeFee/__tests__/getStakeAndBakeFee.test.ts +163 -0
  427. package/src/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.stories.tsx +109 -6
  428. package/src/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.tsx +64 -29
  429. package/src/contract-functions/index.ts +3 -0
  430. package/src/contract-functions/signNetworkFee/signNetworkFee.ts +7 -1
  431. package/src/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.ts +886 -0
  432. package/src/contract-functions/signStakeAndBake/handleApprove.ts +80 -0
  433. package/src/contract-functions/signStakeAndBake/handlePermit.ts +28 -0
  434. package/src/contract-functions/signStakeAndBake/index.ts +2 -0
  435. package/src/contract-functions/signStakeAndBake/signStakeAndBake.stories.tsx +118 -28
  436. package/src/contract-functions/signStakeAndBake/signStakeAndBake.ts +86 -110
  437. package/src/contract-functions/signStakeAndBake/typed-data-builder.ts +137 -0
  438. package/src/contract-functions/signStakeAndBake/utils.ts +60 -0
  439. package/src/contract-functions/signStakeAndBake/validation.ts +123 -0
  440. package/src/contract-functions/unstakeLBTC/unstakeLBTC.stories.tsx +3 -3
  441. package/src/contract-functions/unstakeLBTC/unstakeLBTC.ts +356 -71
  442. package/src/debug-api/btc-script-to-address.ts +19 -0
  443. package/src/debug-api/btc-tx-info.ts +31 -0
  444. package/src/debug-api/evm-by-btc-address.ts +25 -0
  445. package/src/debug-api/index.ts +3 -0
  446. package/src/defi/README.md +472 -0
  447. package/src/defi/defi-registry.stories.tsx +524 -0
  448. package/src/defi/defi-registry.ts +178 -0
  449. package/src/defi/index.ts +6 -0
  450. package/src/index.ts +44 -27
  451. package/src/metrics/get-additional-rewards.ts +1 -1
  452. package/src/stories/arg-types.ts +5 -2
  453. package/src/stories/components/ConnectButton/connect-button.tsx +152 -5
  454. package/src/stories/components/decorators/wagmi-decorator.tsx +6 -1
  455. package/src/tokens/abi/ASSET_ROUTER_ABI.ts +1049 -214
  456. package/src/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.ts +1405 -0
  457. package/src/tokens/cross-chain-addresses.stories.tsx +236 -0
  458. package/src/tokens/denomination-utils.stories.tsx +176 -0
  459. package/src/tokens/getLbtcContractAddresses.stories.tsx +158 -0
  460. package/src/tokens/getTokenByAddress.stories.tsx +172 -0
  461. package/src/tokens/getTokenContractInfo.stories.tsx +148 -0
  462. package/src/tokens/getTokenInfo.stories.tsx +132 -0
  463. package/src/tokens/isUpgradedContract.stories.tsx +124 -0
  464. package/src/tokens/lbtc-addresses.ts +3 -2
  465. package/src/tokens/token-addresses.ts +223 -107
  466. package/src/tokens/tokens.ts +64 -29
  467. package/src/tokens/types.ts +80 -0
  468. package/src/utils/err.ts +12 -0
  469. package/src/utils/pagination.ts +70 -0
  470. package/src/utils/transaction-executor.ts +290 -0
  471. package/src/vaults/abi/SILO_VAULT_SPENDER_ABI.json +793 -0
  472. package/src/vaults/abi/index.ts +4 -0
  473. package/src/vaults/index.ts +7 -0
  474. package/src/vaults/lib/config.ts +7 -1
  475. package/src/vaults/lib/metrics/get-vault-apy.ts +68 -25
  476. package/src/vaults/lib/ops/get-vault-deposits.ts +98 -17
  477. package/src/vaults/lib/ops/get-vault-withdrawals.ts +146 -24
package/CHANGELOG.md CHANGED
@@ -1,3 +1,38 @@
1
+ # 3.7.0
2
+
3
+ * **added custom signer support for flexible transaction signing:**
4
+ * introduced `SignerAdapter` interface for custom transaction signing logic,
5
+ * `redeemToken` and `unstakeLBTC` now accept either `provider` (legacy) or `signer` (custom) parameter,
6
+ * backward compatible - existing provider-based code continues to work unchanged.
7
+ * added `depositToken` function that triggers the deposit method on the LBTC contract,
8
+ * replaced `token` parameter of `redeemToken` function with a pair of new parameters `tokenIn` (the token that is being redeemed) and `tokenOut` (the token received after redemption, defaults to `undefined` [**BTC**]),
9
+ * introduced `fetchAllPaginated` utility to handle pagination across all endpoints,
10
+ * added unified deposits support:
11
+ * introduced `Deposit` interface to unify Direct BTC Deposits and Native Deposits APIs.
12
+ * added `isNative` flag to distinguish between deposit types.
13
+ * added fetchers: `fetchDirectDeposits` and `fetchNativeDeposits` (now uses `fetchAllPaginated` internally).
14
+ * added unified `getDepositsByAddress` function to fetch and combine deposits from both APIs.
15
+ * improved mapping helpers: `mapDirectBtcDeposit` and `mapNativeDeposit` to normalize fields such as `txHash`, `eventIndex`, `amount`, `blockTime`, `fromChainId`, `toChainId`, `toTokenAddress`, `toToken`, `sanctioned`, `claimTxHash`, and `notarizationWaitDur`.
16
+ * added JSDoc for all deposit types and fetchers.
17
+ * ensured robust error handling: failure of one API does not prevent fetching from the other.
18
+ * renamed `signature` property to `proof`.
19
+ * refactored unstakes fetching:
20
+ * `fetchUnstakesByAddress` now uses `fetchAllPaginated` internally,
21
+ * removed `unstakeDate` property from `Unstake` interface,
22
+ * added `blockTime` property to `Unstake` to retain original timestamp,
23
+ * added `isNative` flag to distinguish between unstakes (directly to BTC) and redemptions (to native chain).
24
+ * `fromChainId` and `toChainId` clearly separated; `toChainId` is undefined for BTC unstakes,
25
+ * fully typed JSDoc added for `Unstake`, `UnstakeEntry`, and fetchers,
26
+ * public API `getUnstakesByAddress` added as a wrapper over the fetcher.
27
+ * renamed tokens:
28
+ * `Token.NativeLBTC` to `Token.BTCb` (`BTC.b`)
29
+ * `Token.BTCB` to `Token.BTCBinance` (`BTCB` - Binance BTC wrapper)
30
+ * deprecated `Token.BTCK` which will be sunset as soon as the Katana contracts are updated.
31
+
32
+ # 3.6.21
33
+
34
+ * changed sevenseas api requests to proxy through bff
35
+
1
36
  # 3.6.20
2
37
 
3
38
  * updated LBTC token contract addresses for staging environment.
package/README.md CHANGED
@@ -13,14 +13,14 @@ The SDK depends on the following packages:
13
13
  * axios
14
14
  * viem@2.23
15
15
  * bignumber.js@9
16
+ * @bitcoinerlab/secp256k1@1.2.0
16
17
  * bitcoinjs-lib@6.1.5
17
- * @bitcoin-js/tiny-secp256k1-asmjs@2.2.3
18
18
  * @layerzerolabs/lz-v2-utilities@3.0.17
19
19
 
20
20
  You may install them by running the following command:
21
21
 
22
22
  ```bash
23
- npm i --save viem@^2.23.15 axios@^1 bignumber.js@^9 @bitcoin-js/tiny-secp256k1-asmjs@2.2.3 bitcoinjs-lib@6.1.5 @layerzerolabs/lz-v2-utilities@3.0.17
23
+ npm i --save viem@^2.23.15 axios@^1 bignumber.js@^9 @bitcoinerlab/secp256k1@1.2.0 bitcoinjs-lib@6.1.5 @layerzerolabs/lz-v2-utilities@3.0.17
24
24
  ```
25
25
 
26
26
  ### 2. SDK installation
@@ -37,7 +37,7 @@ All functions are documented with JSDoc comments. You can use your IDE's autocom
37
37
 
38
38
  ### 1. Depositing BTC in order to get LBTC (aka staking)
39
39
 
40
- You can read more about LBTC here: [Introduction to LBTC](https://docs.lombard.finance/lbtc-liquid-bitcoin/introduction-to-lbtc)
40
+ You can read more about LBTC here: [LBTC (Staked Bitcoin)](https://docs.lombard.finance/lbtc-liquid-bitcoin/lbtc-staked-bitcoin)
41
41
 
42
42
  If you'd like to stake your BTC and get LBTC, follow the steps below.
43
43
 
@@ -84,52 +84,81 @@ if (fee.gt(0)) {
84
84
  }
85
85
  ```
86
86
 
87
- #### 1.3. Deposit BTC to the address
87
+ #### 1.3. Depositing
88
88
 
89
89
  Deposit your BTC to the generated address. Funds will be claimed automatically by Lombard’s claimer and credited to your account (`address`).
90
90
 
91
+ If you hold `BTC.b` and want to deposit it to Lombard in order to receive `LBTC`, you can use the `depositToken` function.
92
+
93
+ ```ts
94
+ const txHash = await depositToken({
95
+ account: accountAddress, // Your account address
96
+ chainId, // The chain ID
97
+ amount, // Amount of tokens to deposit (human-readable format)
98
+ tokenIn = Token.BTCb, // Input token to deposit (default: `Token.BTCb`)
99
+ tokenOut = Token.LBTC, // Output token to be minted (default: `Token.LBTC`)
100
+ provider, // Instance of an `EIP1193Provider`
101
+ env, // Optional environment setting
102
+ rpcUrl, // Optional RPC endpoint URL
103
+ });
104
+ ```
105
+
106
+ > **Note**: If you are using the `BTC.b` deposit flow, you can skip generating a BTC deposit address. The `depositToken` function handles the deposit and conversion automatically.
91
107
 
92
- #### 1.4. Check the status of your deposit.
93
108
 
94
- If you'd like to check the status of your deposit use `getDepositsByAddress` function.
109
+ #### 1.4. Check the status of your deposit
110
+
111
+ Use `getDepositsByAddress` to retrieve all deposits (Direct BTC + Native BTC.b Deposits) in a unified format:
95
112
 
96
113
  ```javascript
97
114
  const deposits = await getDepositsByAddress({ address });
98
115
  ```
99
116
 
100
- Every entry in the result of the above function may consist of the following properties:
101
- * `txid` - the BTC transaction id,
102
- * `index` - the index of the actual deposit transaction,
103
- * `blockHeight`
104
- * `blockTime`
105
- * `value` - the amount of BTC deposited,
106
- * `address` - the destination address,
107
- * `chainId` - the destination chain id,
108
- * `isClaimer` - a flag determining whether the deposit has been already claimed,
109
- * `claimedTxId` - the corresponding claim transaction that transfer funds to the destination address,
110
- * `rawPayload` - the payload of the transaction (can be use to claim the funds manually),
111
- * `signature` - the signature used (can be used to claim the funds manually),
112
- * `isRestricted` - a flag determining whether the transaction has been marked as suspicious/restricted,
113
- * `payload` - the payload (corresponding to the Bascule drawbridge security),
114
- * `sessionId`
115
- * `notarizationStatus` - the notarization status of the deposit (pending, submitted, approved or failed),
116
- * `sessionState` - the state of the session (pending, completed, expired)
117
+ Each deposit entry contains the following properties:
118
+
119
+ | Property | Description |
120
+ | --------------------- | --------------------------------------------------------------------------- |
121
+ | `txHash` | Transaction hash on the source blockchain. |
122
+ | `eventIndex` | Index of the deposit event within the transaction. |
123
+ | `amount` | Amount deposited (satoshis or smallest unit). |
124
+ | `depositAddress` | BTC/EVM deposit address (Direct BTC only). |
125
+ | `fromAddress` | Sender address (Native deposits). |
126
+ | `toAddress` | Receiver address on the destination chain (Native deposits). |
127
+ | `toTokenAddress` | Destination token contract (if applicable). |
128
+ | `toToken`. | Destination token (if applicable). |
129
+ | `toChainId` | Destination chain ID. |
130
+ | `fromChainId` | Source chain ID (Native deposits). |
131
+ | `blockHeight` | Block height of the confirmation. |
132
+ | `blockTime` | Unix timestamp of confirmation (seconds). |
133
+ | `payloadHash` | Hash of the payload proving the deposit details. |
134
+ | `rawPayload` | Hex-encoded raw payload (used for manual claiming). |
135
+ | `proof` | Cryptographic proof (hex-encoded). |
136
+ | `sessionId` | Notarization session ID. |
137
+ | `notarizationStatus` | Deposit notarization status (`pending`, `submitted`, `approved`, `failed`). |
138
+ | `sessionState` | Notarization session state (`pending`, `completed`, `expired`). |
139
+ | `claimTxHash` | Claim transaction hash if deposit has been claimed. |
140
+ | `isClaimed` | Boolean indicating whether the deposit has been claimed. |
141
+ | `sanctioned` | Boolean indicating if the deposit is restricted/sanctioned. |
142
+ | `auxVersion` | Optional auxiliary version (Direct BTC only). |
143
+ | `notarizationWaitDur` | Optional notarization wait duration in seconds (Direct BTC only). |
117
144
 
118
145
  ---
119
146
 
120
- ### 2. Manually claiming LBTC.
147
+ ### 2. Minting
121
148
 
122
- In case when a user deposited BTC to the BTC deposit address but the transaction has not been claimed automatically (due to expired signature or any other issue), you may want to claim LBTC manually as in the example below:
149
+ If a deposit has not been automatically claimed (e.g., expired signature), you can manually claim LBTC or other supported tokens using `mintToken`.
123
150
 
124
- ```javascript
125
- const txHash = await claimLBTC({
126
- data: rawPayload, // Pass the raw payload from the deposit data as presented in the previous step.
127
- proofSignature: signature, // Pass the signature from the deposit data.
128
- account, // The connected account address
129
- chainId, // The chain id
130
- provider, // The EIP-1193 provider,
131
- rpcUrl, // The optional RPC url.
132
- })
151
+ > **Note**: `mintToken` is the preferred function. `claimLBTC` (available in the SDK) is a convenience wrapper for LBTC.
152
+
153
+ ```ts
154
+ const txHash = await mintToken({
155
+ data: rawPayload, // The rawPayload from the notarized deposit.
156
+ proofSignature: deposit.proof, // The proof signature of a notarized deposit.
157
+ account, // The account address/
158
+ chainId, // The chain id.
159
+ provider, // The EIP-1193 provider,
160
+ token: Token.LBTC, // The token to be minted, defaults to `Token.LBTC`
161
+ });
133
162
  ```
134
163
 
135
164
  The successful execution of the above will result with the transaction id.
@@ -140,7 +169,12 @@ The successful execution of the above will result with the transaction id.
140
169
 
141
170
  You can read more about the DeFi vaults here: https://docs.lombard.finance/lbtc-liquid-bitcoin/defi-vaults/lombard-defi-vault
142
171
 
143
- If you'd wish to stake and bake your BTC follow the steps below.
172
+ If you'd wish to stake and bake your BTC follow the steps below. The SDK currently supports:
173
+
174
+ - **`DefiProtocol.Veda`** – the Lombard DeFi vault that accepts BTC/LBTC on Ethereum, BNB Chain, and Holesky.
175
+ - **`DefiProtocol.Silo`** – the Silo Finance vault (testnet) that accepts BTCb on Avalanche Fuji.
176
+
177
+ Pick the appropriate `vaultKey` (and token) to match the protocol you're targeting.
144
178
 
145
179
  #### 3.1. See what's the current stake and bake fee.
146
180
 
@@ -148,13 +182,41 @@ To check the current stake and bake fee you may use the following function:
148
182
 
149
183
  ```javascript
150
184
  const fee = await getStakeAndBakeFee({
151
- vaultKey: Vault.Veda, // The vault identifier, currently only "veda" is accepted.
152
- chainId, // The chain id.
153
- rpcUrl, // The options RPC url.
185
+ protocol: DefiProtocol.Veda, // The DeFi protocol (Veda or Silo).
186
+ token: Token.LBTC, // Optional: The token to query fee for. Defaults to protocol's primary token.
187
+ chainId, // The chain id.
188
+ env, // Optional: Environment (prod, testnet, etc.).
189
+ rpcUrl, // Optional: RPC url.
154
190
  });
155
191
  const expectedLBTCAmount = BigNumber(amountToBeDeposited).minus(fee);
156
192
  ```
157
- The fee amount will be deducted from the claimed LBTC automatically.
193
+
194
+ **Parameters:**
195
+
196
+ | Param | Type | Required | Description |
197
+ | ---------- | -------------- | -------- | ----------------------------------------------------------------------------------------------------- |
198
+ | `protocol` | `DefiProtocol` | ❌ | The DeFi protocol identifier. Defaults to `DefiProtocol.Veda`. |
199
+ | `token` | `StakeAndBakeToken` | ❌ | The token to query fee for. If not provided, defaults to the protocol's primary token (see below). |
200
+ | `chainId` | `number` | ✅ | The target chain ID. |
201
+ | `env` | `Env` | ❌ | Optional environment (prod, testnet, etc.). Defaults to production. |
202
+ | `rpcUrl` | `string` | ❌ | Optional RPC URL override. |
203
+
204
+ **Protocol Default Tokens:**
205
+ - `DefiProtocol.Veda` → `Token.LBTC` (also supports `'BTC'`)
206
+ - `DefiProtocol.Silo` → `Token.BTCb`
207
+
208
+ **Example: Query fee for Silo on Avalanche Fuji**
209
+
210
+ ```typescript
211
+ const fee = await getStakeAndBakeFee({
212
+ protocol: DefiProtocol.Silo,
213
+ chainId: ChainId.avalancheFuji,
214
+ env: Env.testnet,
215
+ // token defaults to Token.BTCb for Silo
216
+ });
217
+ ```
218
+
219
+ The fee amount will be deducted from the claimed token automatically during stake and bake.
158
220
 
159
221
  #### 3.2. Sign the stake and bake signature
160
222
 
@@ -163,9 +225,9 @@ const { signature, typedData } = await signStakeAndBake({
163
225
  account, // The connected account address.
164
226
  expiry, // Optional expiration timestamp (unix). Defaults to 24h from now. Recommended: at least 8h from now.
165
227
  value, // The amount of the token (see `token` param).
166
- token, // The token to sign with. Defaults to "BTC": the value is converted to LBTC using the current ratio.
228
+ token, // The token to sign with. Defaults to "BTC": the value is converted to LBTC using the current ratio.
167
229
  // If "LBTC" is chosen, no conversion is applied.
168
- vaultKey: Vault.Veda, // The vault identifier. Currently only "veda" is accepted.
230
+ vaultKey: DefiProtocol.Veda, // Choose the DeFi protocol (e.g. Veda or Silo Finance).
169
231
  chainId, // The chain ID.
170
232
  provider, // The EIP-1193 provider.
171
233
  rpcUrl, // Optional RPC URL.
@@ -178,7 +240,7 @@ const { signature, typedData } = await signStakeAndBake({
178
240
  | `expiry` | `number` | ❌ | Optional expiration time (Unix timestamp). Defaults to 24h from now. Recommended: set at least 8h from now. |
179
241
  | `value` | `string`/`number` | ✅ | The token amount (interpreted based on the `token` param). |
180
242
  | `token` | `"BTC"` \| `"LBTC"` | ❌ | The token to sign with. Defaults to `"BTC"`. If `"BTC"`, the amount is converted to LBTC using the current exchange ratio. If `"LBTC"`, the value is used as-is (no conversion). |
181
- | `vaultKey` | `Vault` | ❌ | The vault identifier. Currently only `"veda"` is accepted. |
243
+ | `vaultKey` | `DefiProtocol` | ❌ | The DeFi protocol identifier. Use `DefiProtocol.Veda` for Lombard's vault or `DefiProtocol.Silo` for the Silo Finance integration. |
182
244
  | `chainId` | `number` | ✅ | The target chain ID. |
183
245
  | `provider` | `EIP-1193 provider` | ✅ | The connected Web3 provider. |
184
246
  | `rpcUrl` | `string` | ❌ | Optional RPC URL override. |
@@ -187,6 +249,27 @@ const { signature, typedData } = await signStakeAndBake({
187
249
  **Note:**
188
250
  - If token is `"BTC"`, the function automatically converts the value to the corresponding **LBTC** amount using the current exchange ratio.
189
251
  - If token is `"LBTC"`, the value is used as-is (no conversion).
252
+ - `DefiProtocol.Veda` supports BTC/LBTC stake-and-bake on Ethereum, BSC, and Holesky. `DefiProtocol.Silo` currently targets the Silo Finance vault with BTCb on Avalanche Fuji (testnet) using the approval flow defined in the DeFi registry.
253
+
254
+ **Example: Silo Finance stake and bake on Avalanche Fuji**
255
+
256
+ ```ts
257
+ import {
258
+ ChainId,
259
+ DefiProtocol,
260
+ signStakeAndBake,
261
+ Token,
262
+ } from '@lombard.finance/sdk';
263
+
264
+ const { signature, typedData } = await signStakeAndBake({
265
+ account,
266
+ chainId: ChainId.avalancheFuji,
267
+ provider,
268
+ token: Token.BTCb,
269
+ vaultKey: DefiProtocol.Silo,
270
+ value: '0.5', // BTCb amount in human-readable format
271
+ });
272
+ ```
190
273
 
191
274
 
192
275
  #### 3.3. Store the signature to the Lombard's systems.
@@ -235,7 +318,7 @@ const deposits = await getDepositsByAddress({ address });
235
318
 
236
319
  ```javascript
237
320
  const { balance, exchangeRate, balanceLbtc } = await getSharesByAddress({
238
- vaultKey: Vault.Veda, // The vault identifier.
321
+ vaultKey: Vault.Veda, // Lombard DeFi vault identifier (stake & bake deposits that land in Veda).
239
322
  address, // The account address.
240
323
  chainId, // The chain id.
241
324
  rpcUrl, // The optional RPC url
@@ -249,24 +332,43 @@ The above code results with:
249
332
 
250
333
  ---
251
334
 
252
- ### 4. Unstaking LBTC and getting BTC back.
335
+ ### 4. Redeeming LBTC to BTC or other supported tokens.
253
336
 
254
337
  Every LBTC is redeemable back to BTC, you can do that programmatically by following the steps:
255
338
 
256
- #### 4.1. Unstake LBTC.
339
+ #### 4.1. Redeeming.
340
+
341
+ Use `redeemToken` to redeem LBTC → BTC (or other supported flows).
342
+ When redeeming to BTC, be sure to pass a valid `btcAddress`.
257
343
 
258
344
  ```javascript
259
- const txaHash = await unstakeLBTC({
260
- btcAddress, // The address to which the funds will be redeemed.
261
- amount, // The amount of LBTC to unstake.
262
- account, // The account address.
263
- chainId, // The chain id.
264
- provider, // The EIP-1193 provider.
265
- rpcUrl, // The optional RPC url.
345
+ import { redeemToken, Token } from '@lombard.finance/sdk';
346
+
347
+ // Redeem LBTC into BTC
348
+ const txHash = await redeemToken({
349
+ btcAddress, // The BTC address to receive the redeemed funds.
350
+ amount, // Amount of LBTC to redeem (e.g. "1.23").
351
+ account, // Your EVM account address.
352
+ chainId, // The chain ID where LBTC is deployed.
353
+ provider, // The EIP-1193 provider (e.g. from MetaMask).
354
+ rpcUrl, // (Optional) Custom RPC URL.
355
+ tokenIn: Token.LBTC, // The token you are redeeming.
266
356
  });
357
+
358
+ // Redeem LBTC into BTC.b
359
+ const txHash = await redeemToken({
360
+ amount, // Amount of LBTC to redeem (e.g. "1.23")
361
+ account, // Your EVM account address
362
+ chainId, // The chain ID where LBTC is deployed
363
+ provider, // The EIP-1193 provider (e.g. from MetaMask)
364
+ rpcUrl, // (Optional) Custom RPC URL
365
+ tokenIn: Token.LBTC, // The token you are redeeming
366
+ tokenOut: Token.BTCb, // The token to receive
367
+ });
368
+
267
369
  ```
268
370
 
269
- #### 4.2. Check the status of your unstakes.
371
+ #### 4.3. Check the status of your redemptions (unstakes).
270
372
 
271
373
  If you'd like to get the list of all unstaked made by an address, use this:
272
374
 
@@ -275,17 +377,23 @@ const unstakes = await getUnstakesByAddress({ address });
275
377
  ```
276
378
 
277
379
  Every entry in the result of the above may consist of:
278
- * `txHash` - The unstake transaction hash,
279
- * `chainId`,
280
- * `blockHeight`,
281
- * `unstakeDate`,
282
- * `fromAddress` - The EVM source address,
283
- * `toAddress` - The BTC destination address of the funds,
284
- * `amount` - The amount unstaked,
285
- * `payoutTxHash` - The BTC transaction hash,
286
- * `payoutTxIndex` - The index of the actual payout transfer,
287
- * `payoutTxStatus` - The status of the payout, available values: `PayoutTxStatus.Completed` or `PayoutTxStatus.Pending`,
288
- * `sanctioned` - A flag indicating whether the unstake transaction has been sanctioned and flagged as suspicious.
380
+
381
+ | Field | Type | Description |
382
+ | ------------------ | ------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
383
+ | **isNative** | `boolean` | `true` if the record originates from a **native-chain redemption** (e.g. BTC.b), `false` if it’s a direct BTC unstake. |
384
+ | **txHash** | `string` | Transaction hash of the unstake/redemption on the source chain. |
385
+ | **fromChainId** | `ChainId \| SuiChain \| SolanaChain` | Identifier of the **source chain** where the unstake was initiated. |
386
+ | **toChainId** | `ChainId \| SuiChain \| SolanaChain` *(optional)* | Destination chain identifier (undefined for BTC unstakes). |
387
+ | **blockHeight** | `number` | Block height on the source chain where the unstake was confirmed. |
388
+ | **blockTime** | `number` (epoch seconds) | Timestamp (in epoch seconds) of the confirmation block. |
389
+ | **fromAddress** | `string` | Address of the initiator of the unstake transaction. |
390
+ | **toAddress** | `string` *(optional)* | Destination address receiving the redeemed funds (BTC, EVM, or Solana). |
391
+ | **amount** | `BigNumber` | Amount unstaked, normalized to **satoshis / smallest unit**. |
392
+ | **payoutTxHash** | `string` *(optional)* | Transaction hash of the payout on the **destination chain**, if the claim/payout has occurred. |
393
+ | **payoutTxIndex** | `number` *(optional)* | Transaction index of the payout within the destination block, if applicable. |
394
+ | **payoutTxStatus** | `PayoutTxStatus` | Current status of the payout transaction (e.g. *pending*, *confirmed*, *failed*). |
395
+ | **sanctioned** | `boolean` *(optional)* | `true` if the unstake transaction has been sanctioned or flagged. |
396
+
289
397
 
290
398
  ---
291
399
 
@@ -423,55 +531,12 @@ const txHash = await cancelWithdraw({
423
531
  You can check the amount of Lux points earned by an address with:
424
532
 
425
533
  ```ts
426
- import { getPointsByAddress } from "@lombard.finance/sdk";
427
-
428
- // Fetch **current season** points (defaults to Season 2)
429
- const points = await getPointsByAddress({ address: "0x...YOUR_ADDRESS" });
534
+ import { getLuxSeason2Points } from "@lombard.finance/sdk";
535
+ const points = await getLuxSeason2Points({ address: "0x...YOUR_ADDRESS" });
430
536
  ```
431
537
 
432
- > 💡 **Tip:** If you already know which season you need,
433
- > you can use the **season-specific wrappers** for cleaner, type-safe results:
434
- >
435
- > ```ts
436
- > import { getLuxSeason1Points, getLuxSeason2Points } from "@lombard.finance/sdk";
437
- >
438
- > const s1 = await getLuxSeason1Points({ address: "0x...YOUR_ADDRESS" }); // Season 1 only
439
- > const s2 = await getLuxSeason2Points({ address: "0x...YOUR_ADDRESS" }); // Season 2 only
440
- > ```
441
-
442
538
  #### Returned Object
443
539
 
444
- The shape of the returned object depends on the **season**:
445
-
446
- ##### **Season 1**
447
-
448
- ```ts
449
- {
450
- /** Points earned by holding LBTC. */
451
- holdingPoints: number;
452
- /** Points earned by taking positions in DeFi vaults. */
453
- protocolPoints: number;
454
- /** Total referral points (referees + referrals). */
455
- referralPoints: number;
456
- /** Points earned in the OKX campaign. */
457
- okxPoints: number;
458
- /** Points earned in the first flash event. */
459
- flashEvent1Points: number;
460
- /** Points earned in the second flash event. */
461
- flashEvent2Points: number;
462
- /** Total points earned. */
463
- totalPoints: number;
464
- /** Breakdown of points earned from each protocol. */
465
- protocolPointsBreakdown: IProtocolPointsBreakdown;
466
- /** Lux points earned from badges. */
467
- badgesPoints: number;
468
- /** Total Lux points excluding badge points. */
469
- totalWithoutBadgesPoints: number;
470
- }
471
- ```
472
-
473
- ##### **Season 2**
474
-
475
540
  ```ts
476
541
  {
477
542
  /** Points earned by holding LBTC. */
@@ -495,10 +560,6 @@ The shape of the returned object depends on the **season**:
495
560
  }
496
561
  ```
497
562
 
498
- ✅ Use `getPointsByAddress` when you want to dynamically select a season,
499
- or `getLuxSeason1Points` / `getLuxSeason2Points` when you want **strong typing**
500
- and guarantees for a specific season’s fields.
501
-
502
563
  ---
503
564
 
504
565
  ### 8. Getting the DeFi vault points earned by an address.
@@ -693,4 +754,4 @@ The above returns:
693
754
  * **`name`** (`string`): Name of the reward campaign.
694
755
  * **`amount`** (`BigNumber`): Amount of BTC yet to be distributed.
695
756
 
696
- ---
757
+ ---
@@ -0,0 +1,67 @@
1
+ import type { ChainId, SolanaChain, StarknetChainId, SuiChain } from '../../common/chains';
2
+ import type { IEnvParam } from '../../common/parameters';
3
+ import { Token } from '../../tokens/token-addresses';
4
+ /**
5
+ * The address which will be returned if the provided EVM address is sanctioned.
6
+ */
7
+ export declare const SANCTIONED_ADDRESS = "sanctioned_address";
8
+ export interface IGenerateDepositBtcAddressParams extends IEnvParam {
9
+ /**
10
+ * The destination EVM user address where LBTC will be claimed.
11
+ */
12
+ address: string;
13
+ /**
14
+ * The intended destination token, defaults to LBTC.
15
+ */
16
+ token?: Token;
17
+ /**
18
+ * The destination chain ID where LBTC will be claimed.
19
+ */
20
+ chainId: ChainId | SuiChain | SolanaChain | StarknetChainId;
21
+ /**
22
+ * The signature of the address. The signature is generated by signing the address using EVM wallet.
23
+ */
24
+ signature: string;
25
+ /**
26
+ * The typed data object used to generate the signature if using a network fee authorization signature.
27
+ */
28
+ eip712Data?: string;
29
+ /**
30
+ * The captcha token.
31
+ */
32
+ captchaToken?: string;
33
+ /**
34
+ * The referrer code.
35
+ */
36
+ referrerCode?: string;
37
+ /**
38
+ * The referral ID.
39
+ */
40
+ partnerId?: string;
41
+ /**
42
+ * The typed data object used to generate the signature if using a stake and bake feature.
43
+ */
44
+ signatureData?: string;
45
+ /** The pubKey required for starknet addresses signatures. */
46
+ pubKey?: string;
47
+ }
48
+ /**
49
+ * Generates a BTC deposit address.
50
+ *
51
+ * If the provided EVM address is sanctioned, the function will return the `SANCTIONED_ADDRESS`.
52
+ *
53
+ * @param {IGenerateDepositBtcAddressParams} parameters - The parameters for generating the deposit address.
54
+ * @param {string} parameters.address - The destination EVM user address where LBTC will be claimed.
55
+ * @param {ChainId} parameters.chainId - The destination chain ID where LBTC will be claimed.
56
+ * @param {string} parameters.signature - The signature of the address. The signature is generated by signing the address using EVM wallet.
57
+ * @param {string} parameters.eip712Data - The typed data object used to generate the signature if using a network fee authorization signature.
58
+ * @param {string} parameters.captchaToken - The captcha token.
59
+ * @param {string} parameters.referrerCode - The referrer code.
60
+ * @param {string} parameters.partnerId - The partner ID.
61
+ * @param {string} parameters.signatureData - The typed data object used to generate the signature if using a stake and bake feature.
62
+ * @param {Env} parameters.env - The optional environment identifier.
63
+ *
64
+ * @returns {Promise<string>} The generated deposit address.
65
+ */
66
+ export declare function generateDepositBtcAddress({ address, token, chainId, signature, eip712Data, env, referrerCode, partnerId, captchaToken, signatureData, pubKey, }: IGenerateDepositBtcAddressParams): Promise<string>;
67
+ //# sourceMappingURL=generateDepositBtcAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateDepositBtcAddress.d.ts","sourceRoot":"","sources":["../../../src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACX,eAAe,EACf,QAAQ,EACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAKzD,OAAO,EAAe,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAIlE;;GAEG;AACH,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAQvD,MAAM,WAAW,gCAAiC,SAAQ,SAAS;IACjE;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,OAAO,EAAE,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,eAAe,CAAC;IAC5D;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAKD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,yBAAyB,CAAC,EAC9C,OAAO,EACP,KAAkB,EAClB,OAAO,EACP,SAAS,EACT,UAAU,EACV,GAAG,EACH,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,aAAa,EACb,MAAM,GACP,EAAE,gCAAgC,GAAG,OAAO,CAAC,MAAM,CAAC,CA0HpD"}
@@ -0,0 +1,16 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { IGenerateDepositBtcAddressParams } from './generateDepositBtcAddress';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof StoryView;
6
+ tags: string[];
7
+ decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
8
+ argTypes: {
9
+ [x: string]: import("@storybook/core/csf").InputType | undefined;
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const WithParams: Story;
15
+ export declare function StoryView(props: IGenerateDepositBtcAddressParams): import("react/jsx-runtime").JSX.Element;
16
+ //# sourceMappingURL=generateDepositBtcAddress.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generateDepositBtcAddress.stories.d.ts","sourceRoot":"","sources":["../../../src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AASvD,OAAO,EACL,gCAAgC,EAEjC,MAAM,6BAA6B,CAAC;AAErC,QAAA,MAAM,IAAI;;;;;;;;CASwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AASnC,eAAO,MAAM,UAAU,EAAE,KAWxB,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,gCAAgC,2CAmBhE"}
@@ -0,0 +1,2 @@
1
+ export * from './generateDepositBtcAddress';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api-functions/generateDepositBtcAddress/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Address } from 'viem';
2
+ import { IEnvParam } from '../../common/parameters';
3
+ export type GetBadgesByAddress = {
4
+ /** The account address */
5
+ address: Address;
6
+ } & IEnvParam;
7
+ export declare function getBadgesByAddress({ address, env }: GetBadgesByAddress): Promise<void>;
8
+ //# sourceMappingURL=get-badges-by-address.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-badges-by-address.d.ts","sourceRoot":"","sources":["../../../src/api-functions/get-badges-by-address/get-badges-by-address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,0BAA0B;IAC1B,OAAO,EAAE,OAAO,CAAC;CAClB,GAAG,SAAS,CAAC;AAEd,wBAAsB,kBAAkB,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,kBAAkB,iBAG5E"}
@@ -0,0 +1,2 @@
1
+ export * from './get-badges-by-address';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api-functions/get-badges-by-address/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { IGetDepositBtcAddressParameters, IGetDepositBtcAddressesParameters } from './types';
2
+ /**
3
+ * Returns the current address for depositing BTC by given parameters.
4
+ *
5
+ * @throws {Error} - Throws an error if no address found or the provided chain id is not supported.
6
+ */
7
+ export declare function getDepositBtcAddress({ address, chainId, env, partnerId, token, }: IGetDepositBtcAddressParameters): Promise<string>;
8
+ /**
9
+ * Returns the addresses for depositing BTC by given parameters.
10
+ * @throws {Error} - Throws an error if chain id is not supported.
11
+ */
12
+ export declare function getDepositBtcAddresses(parameters: IGetDepositBtcAddressesParameters): Promise<import("./types").IDepositAddress[] | undefined>;
13
+ //# sourceMappingURL=getDepositBtcAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDepositBtcAddress.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,+BAA+B,EAC/B,iCAAiC,EAClC,MAAM,SAAS,CAAC;AAEjB;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,OAAO,EACP,OAAO,EACP,GAAG,EACH,SAAS,EACT,KAAkB,GACnB,EAAE,+BAA+B,mBAwHjC;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,UAAU,EAAE,iCAAiC,4DAI9C"}
@@ -0,0 +1,16 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { IGetDepositBtcAddressParameters } from './types';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof StoryView;
6
+ tags: string[];
7
+ decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
8
+ argTypes: {
9
+ [x: string]: import("@storybook/core/csf").InputType | undefined;
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const WithParams: Story;
15
+ export declare function StoryView(props: IGetDepositBtcAddressParameters): import("react/jsx-runtime").JSX.Element;
16
+ //# sourceMappingURL=getDepositBtcAddress.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDepositBtcAddress.stories.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,IAAI;;;;;;;;CASwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,+BAA+B,2CAmB/D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getDepositBtcAddress.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDepositBtcAddress.test.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.ts"],"names":[],"mappings":""}