@lombard.finance/sdk 3.6.20 → 3.7.0-canary.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 (472) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +111 -104
  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/getStakeAndBakeFee.d.ts +21 -0
  188. package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.d.ts.map +1 -0
  189. package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.stories.d.ts +14 -0
  190. package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.stories.d.ts.map +1 -0
  191. package/dist/contract-functions/getStakeAndBakeFee/index.d.ts +2 -0
  192. package/dist/contract-functions/getStakeAndBakeFee/index.d.ts.map +1 -0
  193. package/dist/contract-functions/index.d.ts +17 -0
  194. package/dist/contract-functions/index.d.ts.map +1 -0
  195. package/dist/contract-functions/signLbtcDestionationAddr/index.d.ts +2 -0
  196. package/dist/contract-functions/signLbtcDestionationAddr/index.d.ts.map +1 -0
  197. package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestinationAddr.d.ts +16 -0
  198. package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestinationAddr.d.ts.map +1 -0
  199. package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestionationAddr.stories.d.ts +9 -0
  200. package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestionationAddr.stories.d.ts.map +1 -0
  201. package/dist/contract-functions/signNetworkFee/getTypedData.d.ts +32 -0
  202. package/dist/contract-functions/signNetworkFee/getTypedData.d.ts.map +1 -0
  203. package/dist/contract-functions/signNetworkFee/index.d.ts +2 -0
  204. package/dist/contract-functions/signNetworkFee/index.d.ts.map +1 -0
  205. package/dist/contract-functions/signNetworkFee/signNetworkFee.d.ts +47 -0
  206. package/dist/contract-functions/signNetworkFee/signNetworkFee.d.ts.map +1 -0
  207. package/dist/contract-functions/signNetworkFee/signNetworkFee.stories.d.ts +14 -0
  208. package/dist/contract-functions/signNetworkFee/signNetworkFee.stories.d.ts.map +1 -0
  209. package/dist/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.d.ts +17 -0
  210. package/dist/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.d.ts.map +1 -0
  211. package/dist/contract-functions/signStakeAndBake/handleApprove.d.ts +20 -0
  212. package/dist/contract-functions/signStakeAndBake/handleApprove.d.ts.map +1 -0
  213. package/dist/contract-functions/signStakeAndBake/handlePermit.d.ts +13 -0
  214. package/dist/contract-functions/signStakeAndBake/handlePermit.d.ts.map +1 -0
  215. package/dist/contract-functions/signStakeAndBake/index.d.ts +3 -0
  216. package/dist/contract-functions/signStakeAndBake/index.d.ts.map +1 -0
  217. package/dist/contract-functions/signStakeAndBake/signStakeAndBake.d.ts +71 -0
  218. package/dist/contract-functions/signStakeAndBake/signStakeAndBake.d.ts.map +1 -0
  219. package/dist/contract-functions/signStakeAndBake/signStakeAndBake.stories.d.ts +50 -0
  220. package/dist/contract-functions/signStakeAndBake/signStakeAndBake.stories.d.ts.map +1 -0
  221. package/dist/contract-functions/signStakeAndBake/typed-data-builder.d.ts +189 -0
  222. package/dist/contract-functions/signStakeAndBake/typed-data-builder.d.ts.map +1 -0
  223. package/dist/contract-functions/signStakeAndBake/utils.d.ts +4471 -0
  224. package/dist/contract-functions/signStakeAndBake/utils.d.ts.map +1 -0
  225. package/dist/contract-functions/signStakeAndBake/validation.d.ts +40 -0
  226. package/dist/contract-functions/signStakeAndBake/validation.d.ts.map +1 -0
  227. package/dist/contract-functions/unstakeLBTC/index.d.ts +2 -0
  228. package/dist/contract-functions/unstakeLBTC/index.d.ts.map +1 -0
  229. package/dist/contract-functions/unstakeLBTC/unstakeLBTC.d.ts +132 -0
  230. package/dist/contract-functions/unstakeLBTC/unstakeLBTC.d.ts.map +1 -0
  231. package/dist/contract-functions/unstakeLBTC/unstakeLBTC.stories.d.ts +17 -0
  232. package/dist/contract-functions/unstakeLBTC/unstakeLBTC.stories.d.ts.map +1 -0
  233. package/dist/debug-api/btc-script-to-address.d.ts +3 -0
  234. package/dist/debug-api/btc-script-to-address.d.ts.map +1 -0
  235. package/dist/debug-api/btc-tx-info.d.ts +19 -0
  236. package/dist/debug-api/btc-tx-info.d.ts.map +1 -0
  237. package/dist/debug-api/evm-by-btc-address.d.ts +9 -0
  238. package/dist/debug-api/evm-by-btc-address.d.ts.map +1 -0
  239. package/dist/debug-api/index.d.ts +4 -0
  240. package/dist/debug-api/index.d.ts.map +1 -0
  241. package/dist/defi/defi-registry.d.ts +73 -0
  242. package/dist/defi/defi-registry.d.ts.map +1 -0
  243. package/dist/defi/defi-registry.stories.d.ts +18 -0
  244. package/dist/defi/defi-registry.stories.d.ts.map +1 -0
  245. package/dist/defi/index.d.ts +2 -0
  246. package/dist/defi/index.d.ts.map +1 -0
  247. package/dist/index.cjs +1 -1
  248. package/dist/index.d.ts +24 -0
  249. package/dist/index.d.ts.map +1 -0
  250. package/dist/index.js +143 -120
  251. package/dist/index2.cjs +66 -66
  252. package/dist/index2.js +17961 -16630
  253. package/dist/metrics/get-additional-rewards.d.ts +31 -0
  254. package/dist/metrics/get-additional-rewards.d.ts.map +1 -0
  255. package/dist/metrics/get-lbtc-apy.d.ts +35 -0
  256. package/dist/metrics/get-lbtc-apy.d.ts.map +1 -0
  257. package/dist/metrics/get-lbtc-stats.d.ts +21 -0
  258. package/dist/metrics/get-lbtc-stats.d.ts.map +1 -0
  259. package/dist/metrics/get-lbtc-stats.stories.d.ts +17 -0
  260. package/dist/metrics/get-lbtc-stats.stories.d.ts.map +1 -0
  261. package/dist/metrics/get-positions-summary.d.ts +75 -0
  262. package/dist/metrics/get-positions-summary.d.ts.map +1 -0
  263. package/dist/metrics/get-positions-summary.stories.d.ts +17 -0
  264. package/dist/metrics/get-positions-summary.stories.d.ts.map +1 -0
  265. package/dist/stories/arg-types.d.ts +6 -0
  266. package/dist/stories/arg-types.d.ts.map +1 -0
  267. package/dist/stories/components/Button/Button.d.ts +16 -0
  268. package/dist/stories/components/Button/Button.d.ts.map +1 -0
  269. package/dist/stories/components/Button/index.d.ts +2 -0
  270. package/dist/stories/components/Button/index.d.ts.map +1 -0
  271. package/dist/stories/components/CodeBlock/CodeBlock.d.ts +9 -0
  272. package/dist/stories/components/CodeBlock/CodeBlock.d.ts.map +1 -0
  273. package/dist/stories/components/CodeBlock/index.d.ts +2 -0
  274. package/dist/stories/components/CodeBlock/index.d.ts.map +1 -0
  275. package/dist/stories/components/ConnectButton/connect-button.d.ts +5 -0
  276. package/dist/stories/components/ConnectButton/connect-button.d.ts.map +1 -0
  277. package/dist/stories/components/ConnectButton/index.d.ts +2 -0
  278. package/dist/stories/components/ConnectButton/index.d.ts.map +1 -0
  279. package/dist/stories/components/Spinner/Spinner.d.ts +9 -0
  280. package/dist/stories/components/Spinner/Spinner.d.ts.map +1 -0
  281. package/dist/stories/components/Spinner/index.d.ts +2 -0
  282. package/dist/stories/components/Spinner/index.d.ts.map +1 -0
  283. package/dist/stories/components/decorators/function-type.d.ts +4 -0
  284. package/dist/stories/components/decorators/function-type.d.ts.map +1 -0
  285. package/dist/stories/components/decorators/index.d.ts +3 -0
  286. package/dist/stories/components/decorators/index.d.ts.map +1 -0
  287. package/dist/stories/components/decorators/wagmi-decorator.d.ts +6 -0
  288. package/dist/stories/components/decorators/wagmi-decorator.d.ts.map +1 -0
  289. package/dist/stories/components/error-block.d.ts +5 -0
  290. package/dist/stories/components/error-block.d.ts.map +1 -0
  291. package/dist/stories/constants.d.ts +3 -0
  292. package/dist/stories/constants.d.ts.map +1 -0
  293. package/dist/stories/hooks/useConnection.d.ts +27 -0
  294. package/dist/stories/hooks/useConnection.d.ts.map +1 -0
  295. package/dist/stories/hooks/useQuery.d.ts +19 -0
  296. package/dist/stories/hooks/useQuery.d.ts.map +1 -0
  297. package/dist/tokens/abi/ASSET_ROUTER_ABI.d.ts +68 -0
  298. package/dist/tokens/abi/ASSET_ROUTER_ABI.d.ts.map +1 -0
  299. package/dist/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.d.ts +1095 -0
  300. package/dist/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.d.ts.map +1 -0
  301. package/dist/tokens/abi/BTCK_ABI.d.ts +1487 -0
  302. package/dist/tokens/abi/BTCK_ABI.d.ts.map +1 -0
  303. package/dist/tokens/abi/LBTC_ABI.d.ts +1364 -0
  304. package/dist/tokens/abi/LBTC_ABI.d.ts.map +1 -0
  305. package/dist/tokens/abi/NATIVE_LBTC_ABI.d.ts +1551 -0
  306. package/dist/tokens/abi/NATIVE_LBTC_ABI.d.ts.map +1 -0
  307. package/dist/tokens/abi/STLBTC_ABI.d.ts +1399 -0
  308. package/dist/tokens/abi/STLBTC_ABI.d.ts.map +1 -0
  309. package/dist/tokens/cross-chain-addresses.stories.d.ts +60 -0
  310. package/dist/tokens/cross-chain-addresses.stories.d.ts.map +1 -0
  311. package/dist/tokens/denomination-utils.stories.d.ts +62 -0
  312. package/dist/tokens/denomination-utils.stories.d.ts.map +1 -0
  313. package/dist/tokens/getLbtcContractAddresses.stories.d.ts +59 -0
  314. package/dist/tokens/getLbtcContractAddresses.stories.d.ts.map +1 -0
  315. package/dist/tokens/getTokenByAddress.stories.d.ts +64 -0
  316. package/dist/tokens/getTokenByAddress.stories.d.ts.map +1 -0
  317. package/dist/tokens/getTokenContractInfo.stories.d.ts +52 -0
  318. package/dist/tokens/getTokenContractInfo.stories.d.ts.map +1 -0
  319. package/dist/tokens/getTokenInfo.stories.d.ts +42 -0
  320. package/dist/tokens/getTokenInfo.stories.d.ts.map +1 -0
  321. package/dist/tokens/isUpgradedContract.stories.d.ts +50 -0
  322. package/dist/tokens/isUpgradedContract.stories.d.ts.map +1 -0
  323. package/dist/tokens/lbtc-addresses.d.ts +11 -0
  324. package/dist/tokens/lbtc-addresses.d.ts.map +1 -0
  325. package/dist/tokens/token-addresses.d.ts +37 -0
  326. package/dist/tokens/token-addresses.d.ts.map +1 -0
  327. package/dist/tokens/tokens.d.ts +319 -0
  328. package/dist/tokens/tokens.d.ts.map +1 -0
  329. package/dist/tokens/types.d.ts +78 -0
  330. package/dist/tokens/types.d.ts.map +1 -0
  331. package/dist/utils/array.d.ts +3 -0
  332. package/dist/utils/array.d.ts.map +1 -0
  333. package/dist/utils/block.d.ts +3 -0
  334. package/dist/utils/block.d.ts.map +1 -0
  335. package/dist/utils/env.d.ts +4 -0
  336. package/dist/utils/env.d.ts.map +1 -0
  337. package/dist/utils/err.d.ts +22 -0
  338. package/dist/utils/err.d.ts.map +1 -0
  339. package/dist/utils/gas.d.ts +7 -0
  340. package/dist/utils/gas.d.ts.map +1 -0
  341. package/dist/utils/hex.d.ts +4 -0
  342. package/dist/utils/hex.d.ts.map +1 -0
  343. package/dist/utils/numbers.d.ts +5 -0
  344. package/dist/utils/numbers.d.ts.map +1 -0
  345. package/dist/utils/pagination.d.ts +26 -0
  346. package/dist/utils/pagination.d.ts.map +1 -0
  347. package/dist/utils/satoshi.d.ts +17 -0
  348. package/dist/utils/satoshi.d.ts.map +1 -0
  349. package/dist/utils/time.d.ts +7 -0
  350. package/dist/utils/time.d.ts.map +1 -0
  351. package/dist/utils/transaction-executor.d.ts +96 -0
  352. package/dist/utils/transaction-executor.d.ts.map +1 -0
  353. package/dist/vaults/abi/index.d.ts +4 -0
  354. package/dist/vaults/abi/index.d.ts.map +1 -0
  355. package/dist/vaults/index.d.ts +9 -0
  356. package/dist/vaults/index.d.ts.map +1 -0
  357. package/dist/vaults/lib/config.d.ts +215 -0
  358. package/dist/vaults/lib/config.d.ts.map +1 -0
  359. package/dist/vaults/lib/metrics/get-vault-apy.d.ts +22 -0
  360. package/dist/vaults/lib/metrics/get-vault-apy.d.ts.map +1 -0
  361. package/dist/vaults/lib/metrics/get-vault-apy.stories.d.ts +14 -0
  362. package/dist/vaults/lib/metrics/get-vault-apy.stories.d.ts.map +1 -0
  363. package/dist/vaults/lib/metrics/get-vault-points.d.ts +16 -0
  364. package/dist/vaults/lib/metrics/get-vault-points.d.ts.map +1 -0
  365. package/dist/vaults/lib/metrics/get-vault-points.stories.d.ts +14 -0
  366. package/dist/vaults/lib/metrics/get-vault-points.stories.d.ts.map +1 -0
  367. package/dist/vaults/lib/metrics/get-vault-tvl.d.ts +22 -0
  368. package/dist/vaults/lib/metrics/get-vault-tvl.d.ts.map +1 -0
  369. package/dist/vaults/lib/metrics/get-vault-tvl.stories.d.ts +14 -0
  370. package/dist/vaults/lib/metrics/get-vault-tvl.stories.d.ts.map +1 -0
  371. package/dist/vaults/lib/ops/cancel-withdraw.stories.d.ts +14 -0
  372. package/dist/vaults/lib/ops/cancel-withdraw.stories.d.ts.map +1 -0
  373. package/dist/vaults/lib/ops/deposit.d.ts +34 -0
  374. package/dist/vaults/lib/ops/deposit.d.ts.map +1 -0
  375. package/dist/vaults/lib/ops/deposit.stories.d.ts +14 -0
  376. package/dist/vaults/lib/ops/deposit.stories.d.ts.map +1 -0
  377. package/dist/vaults/lib/ops/get-vault-deposits.d.ts +57 -0
  378. package/dist/vaults/lib/ops/get-vault-deposits.d.ts.map +1 -0
  379. package/dist/vaults/lib/ops/get-vault-deposits.stories.d.ts +14 -0
  380. package/dist/vaults/lib/ops/get-vault-deposits.stories.d.ts.map +1 -0
  381. package/dist/vaults/lib/ops/get-vault-withdrawals.d.ts +74 -0
  382. package/dist/vaults/lib/ops/get-vault-withdrawals.d.ts.map +1 -0
  383. package/dist/vaults/lib/ops/get-vault-withdrawals.stories.d.ts +14 -0
  384. package/dist/vaults/lib/ops/get-vault-withdrawals.stories.d.ts.map +1 -0
  385. package/dist/vaults/lib/ops/withdraw.d.ts +49 -0
  386. package/dist/vaults/lib/ops/withdraw.d.ts.map +1 -0
  387. package/dist/vaults/lib/ops/withdraw.stories.d.ts +14 -0
  388. package/dist/vaults/lib/ops/withdraw.stories.d.ts.map +1 -0
  389. package/package.json +7 -5
  390. package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.tsx +1 -1
  391. package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.ts +4 -3
  392. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.tsx +1 -1
  393. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.ts +6 -6
  394. package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts +13 -7
  395. package/src/api-functions/getDepositsByAddress/getDepositsByAddress.ts +425 -74
  396. package/src/api-functions/getLBTCExchangeRate/get-exchange-ratio.stories.tsx +4 -4
  397. package/src/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.ts +15 -4
  398. package/src/api-functions/getUnstakesByAddress/getUnstakesByAddress.ts +289 -111
  399. package/src/api-functions/getUnstakesByAddress/index.ts +1 -5
  400. package/src/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.ts +3 -1
  401. package/src/bridge/abi/CCIP_ROUTER_ABI.json +702 -0
  402. package/src/bridge/lib/ccip-bridge.ts +76 -26
  403. package/src/bridge/lib/ccip-config.ts +53 -0
  404. package/src/bridge/lib/config.ts +1 -0
  405. package/src/clients/evm-signer-adapter.ts +312 -0
  406. package/src/clients/public-client.ts +2 -2
  407. package/src/common/api-config.ts +10 -2
  408. package/src/common/blockchain-identifier.ts +13 -2
  409. package/src/common/chains.ts +9 -1
  410. package/src/common/parameters.ts +37 -0
  411. package/src/contract-functions/approveToken/approveToken.ts +125 -0
  412. package/src/contract-functions/approveToken/index.ts +2 -0
  413. package/src/contract-functions/claimLBTC/claimLBTC.stories.tsx +1 -1
  414. package/src/contract-functions/claimLBTC/claimLBTC.ts +66 -37
  415. package/src/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.ts +94 -0
  416. package/src/contract-functions/claimUnstakeRedeem/index.ts +2 -0
  417. package/src/contract-functions/deposit/depositToken.stories.tsx +82 -0
  418. package/src/contract-functions/deposit/depositToken.ts +213 -0
  419. package/src/contract-functions/deposit/index.ts +1 -0
  420. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.tsx +1 -1
  421. package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.ts +42 -9
  422. package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.tsx +0 -1
  423. package/src/contract-functions/getLBTCMintingFee/{getLBTCMintingFee.tsx → getLBTCMintingFee.ts} +33 -18
  424. package/src/contract-functions/index.ts +3 -0
  425. package/src/contract-functions/signNetworkFee/signNetworkFee.ts +7 -1
  426. package/src/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.ts +886 -0
  427. package/src/contract-functions/signStakeAndBake/handleApprove.ts +80 -0
  428. package/src/contract-functions/signStakeAndBake/handlePermit.ts +28 -0
  429. package/src/contract-functions/signStakeAndBake/index.ts +2 -0
  430. package/src/contract-functions/signStakeAndBake/signStakeAndBake.stories.tsx +118 -28
  431. package/src/contract-functions/signStakeAndBake/signStakeAndBake.ts +86 -110
  432. package/src/contract-functions/signStakeAndBake/typed-data-builder.ts +137 -0
  433. package/src/contract-functions/signStakeAndBake/utils.ts +60 -0
  434. package/src/contract-functions/signStakeAndBake/validation.ts +123 -0
  435. package/src/contract-functions/unstakeLBTC/unstakeLBTC.stories.tsx +3 -3
  436. package/src/contract-functions/unstakeLBTC/unstakeLBTC.ts +356 -71
  437. package/src/debug-api/btc-script-to-address.ts +19 -0
  438. package/src/debug-api/btc-tx-info.ts +31 -0
  439. package/src/debug-api/evm-by-btc-address.ts +25 -0
  440. package/src/debug-api/index.ts +3 -0
  441. package/src/defi/README.md +472 -0
  442. package/src/defi/defi-registry.stories.tsx +524 -0
  443. package/src/defi/defi-registry.ts +178 -0
  444. package/src/defi/index.ts +6 -0
  445. package/src/index.ts +44 -27
  446. package/src/metrics/get-additional-rewards.ts +1 -1
  447. package/src/stories/arg-types.ts +5 -2
  448. package/src/stories/components/ConnectButton/connect-button.tsx +152 -5
  449. package/src/stories/components/decorators/wagmi-decorator.tsx +6 -1
  450. package/src/tokens/abi/ASSET_ROUTER_ABI.ts +1049 -214
  451. package/src/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.ts +1405 -0
  452. package/src/tokens/cross-chain-addresses.stories.tsx +236 -0
  453. package/src/tokens/denomination-utils.stories.tsx +176 -0
  454. package/src/tokens/getLbtcContractAddresses.stories.tsx +158 -0
  455. package/src/tokens/getTokenByAddress.stories.tsx +172 -0
  456. package/src/tokens/getTokenContractInfo.stories.tsx +148 -0
  457. package/src/tokens/getTokenInfo.stories.tsx +132 -0
  458. package/src/tokens/isUpgradedContract.stories.tsx +124 -0
  459. package/src/tokens/lbtc-addresses.ts +3 -2
  460. package/src/tokens/token-addresses.ts +223 -107
  461. package/src/tokens/tokens.ts +64 -29
  462. package/src/tokens/types.ts +80 -0
  463. package/src/utils/err.ts +12 -0
  464. package/src/utils/pagination.ts +70 -0
  465. package/src/utils/transaction-executor.ts +290 -0
  466. package/src/vaults/abi/SILO_VAULT_SPENDER_ABI.json +793 -0
  467. package/src/vaults/abi/index.ts +4 -0
  468. package/src/vaults/index.ts +7 -0
  469. package/src/vaults/lib/config.ts +7 -1
  470. package/src/vaults/lib/metrics/get-vault-apy.ts +68 -25
  471. package/src/vaults/lib/ops/get-vault-deposits.ts +98 -17
  472. package/src/vaults/lib/ops/get-vault-withdrawals.ts +146 -24
@@ -0,0 +1,93 @@
1
+ import { BlockchainIdentifier } from '../../common/blockchain-identifier';
2
+ import { ChainId, SolanaChain, StarknetChainId, SuiChain } from '../../common/chains';
3
+ import { IEnvParam } from '../../common/parameters';
4
+ import { Token } from '../../tokens/token-addresses';
5
+ export interface IDepositAddress {
6
+ /**
7
+ * The deposit address for BTC.
8
+ */
9
+ btc_address: string;
10
+ /**
11
+ * The address creation timestamp.
12
+ */
13
+ created_at: string;
14
+ /**
15
+ * A flag determining whether an address is deprecated (no longer valid for depositing BTC).
16
+ */
17
+ deprecated?: boolean;
18
+ /**
19
+ * Type of an address.
20
+ * @constant {string} - ADDRESS_TYPE_DEPOSIT
21
+ */
22
+ type: string;
23
+ /**
24
+ * A flag determining whether an address has been used.
25
+ */
26
+ used?: boolean;
27
+ /**
28
+ * The deposit address metadata
29
+ */
30
+ deposit_metadata: {
31
+ /**
32
+ * The partner (referral) id.
33
+ */
34
+ referral: string;
35
+ /**
36
+ * The partner (referral) id.
37
+ */
38
+ partner_id: string;
39
+ /**
40
+ * The destination address.
41
+ */
42
+ to_address: string;
43
+ /**
44
+ * The destination blockchain corresponding to the `to_address`
45
+ */
46
+ to_blockchain: BlockchainIdentifier;
47
+ /**
48
+ * The destination token address
49
+ */
50
+ token_address?: string;
51
+ /**
52
+ * The aux version (paired with the token_address)
53
+ */
54
+ aux_version?: number;
55
+ };
56
+ }
57
+ export interface IDepositAddressesResponse {
58
+ addresses: IDepositAddress[];
59
+ has_more?: boolean;
60
+ }
61
+ export interface IApiError {
62
+ code: number;
63
+ message?: string;
64
+ }
65
+ export interface IGetDepositBtcAddressesParameters extends IEnvParam {
66
+ /**
67
+ * The destination address where LBTC will be claimed.
68
+ */
69
+ address: string;
70
+ /**
71
+ * The destination chain where the `address` exists and where LBTC will be claimed.
72
+ */
73
+ chainId: ChainId | SuiChain | SolanaChain | StarknetChainId;
74
+ /**
75
+ * The maximum number of items to return.
76
+ * @default {number} 1
77
+ */
78
+ limit?: number;
79
+ /**
80
+ * The number of items to skip before starting to return the items.
81
+ * @default {number} 0
82
+ */
83
+ offset?: number;
84
+ /**
85
+ * The partner (referral) id.
86
+ * @default {string} "lombard"
87
+ */
88
+ partnerId?: string;
89
+ }
90
+ export type IGetDepositBtcAddressParameters = {
91
+ token?: Token;
92
+ } & Pick<IGetDepositBtcAddressesParameters, 'address' | 'chainId' | 'env' | 'partnerId'>;
93
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","source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AGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,+BAA+B,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG,IAAI,CACpE,iCAAiC,EACjC,SAAS,GAAG,SAAS,GAAG,KAAK,GAAG,WAAW,CAC5C,CAAC"}
@@ -0,0 +1,243 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { ChainId, SolanaChain, StarknetChainId, SuiChain } from '../../common/chains';
3
+ import { IEnvParam } from '../../common/parameters';
4
+ import { Token } from '../../tokens/token-addresses';
5
+ type Address = string;
6
+ /**
7
+ * Enum representing the notarization status of a deposit transaction.
8
+ */
9
+ export declare enum ENotarizationStatus {
10
+ /** Status is unspecified or unknown */
11
+ NOTARIZATION_STATUS_UNSPECIFIED = "NOTARIZATION_STATUS_UNSPECIFIED",
12
+ /** Initial status when a deposit transaction is created but not yet processed */
13
+ NOTARIZATION_STATUS_PENDING = "NOTARIZATION_STATUS_PENDING",
14
+ /** The deposit has been submitted for notarization */
15
+ NOTARIZATION_STATUS_SUBMITTED = "NOTARIZATION_STATUS_SUBMITTED",
16
+ /** The notarization session was approved successfully */
17
+ NOTARIZATION_STATUS_SESSION_APPROVED = "NOTARIZATION_STATUS_SESSION_APPROVED",
18
+ /** The notarization session failed */
19
+ NOTARIZATION_STATUS_FAILED = "NOTARIZATION_STATUS_FAILED",
20
+ /** The notarization session was handled by GMP */
21
+ NOTARIZATION_STATUS_GMP_HANDLED = "NOTARIZATION_STATUS_GMP_HANDLED"
22
+ }
23
+ /**
24
+ * Enum representing the state of a notarization session.
25
+ */
26
+ export declare enum ESessionState {
27
+ /** Session state is unspecified or unknown */
28
+ SESSION_STATE_UNSPECIFIED = "SESSION_STATE_UNSPECIFIED",
29
+ /** Session is currently pending */
30
+ SESSION_STATE_PENDING = "SESSION_STATE_PENDING",
31
+ /** Session has completed successfully */
32
+ SESSION_STATE_COMPLETED = "SESSION_STATE_COMPLETED",
33
+ /** Session has expired without completion */
34
+ SESSION_STATE_EXPIRED = "SESSION_STATE_EXPIRED"
35
+ }
36
+ export interface NativeDeposit {
37
+ /** Transaction hash on the source blockchain */
38
+ tx_hash: string;
39
+ /** Event index inside the transaction (for multi-event transactions) */
40
+ event_index: number;
41
+ /** Source blockchain identifier (e.g., BLOCKCHAIN_KATANA) */
42
+ from_blockchain: string;
43
+ /** Destination blockchain identifier */
44
+ to_blockchain: string;
45
+ /** Sender address on the source chain */
46
+ from_address: string;
47
+ /** Receiver address on the destination chain */
48
+ to_address: string;
49
+ /** Destination token contract address (if applicable) */
50
+ to_token_address: string;
51
+ /** Block height of the source chain confirmation */
52
+ block_height: string;
53
+ /** Block time of the source chain confirmation (ISO 8601) */
54
+ block_time: string;
55
+ /** Amount deposited (string to preserve precision) */
56
+ amount: string;
57
+ /** Hash of the payload that proves the deposit details */
58
+ payload_hash: string;
59
+ /** Raw payload bytes (hex-encoded) */
60
+ raw_payload: string;
61
+ /** Cryptographic proof (hex-encoded) */
62
+ proof: string;
63
+ /** ID of the notarization session linked to this deposit */
64
+ session_id: string;
65
+ /** Current notarization status of this deposit */
66
+ notarization_status: ENotarizationStatus;
67
+ /** Current session state of this deposit */
68
+ session_state: ESessionState;
69
+ /** Claim transaction hash on the destination chain, if claimed */
70
+ claim_tx?: string;
71
+ /** True if the deposit is sanctioned */
72
+ sanctioned?: boolean;
73
+ }
74
+ /** Top-level response from the Native Deposits API */
75
+ export interface NativeDepositsResponse {
76
+ /** List of native deposit records */
77
+ deposits: NativeDeposit[];
78
+ /** True if there are more deposits available */
79
+ has_more: boolean;
80
+ }
81
+ export interface DirectDeposit {
82
+ /** Transaction ID on the source chain */
83
+ txid: string;
84
+ /** Event index inside the transaction (useful for multi-event transactions) */
85
+ index: string;
86
+ /** Block height of the source chain confirmation */
87
+ block_height: string;
88
+ /** Amount deposited (string to preserve precision) */
89
+ value: string;
90
+ /** Destination address (EVM or BTC) */
91
+ address: string;
92
+ /** Hash of the payload proving the deposit */
93
+ payload_hash: string;
94
+ /** Raw payload bytes (hex-encoded) */
95
+ raw_payload: string;
96
+ /** Cryptographic proof (hex-encoded) */
97
+ proof: string;
98
+ /** Notarization session ID */
99
+ session_id: string;
100
+ /** Current notarization status */
101
+ notarization_status: ENotarizationStatus;
102
+ /** Current session state */
103
+ session_state: ESessionState;
104
+ /** Destination blockchain identifier */
105
+ to_chain: string;
106
+ /** Claim transaction hash on the destination chain, if claimed */
107
+ claim_tx?: string;
108
+ /** True if the deposit is sanctioned */
109
+ sanctioned?: boolean;
110
+ /** Block time of the source chain confirmation (timestamp as string) */
111
+ block_time: string;
112
+ /** Notarization wait duration (optional) */
113
+ notarization_wait_dur?: string;
114
+ /** Token address for the deposit */
115
+ token_address?: string;
116
+ /** Auxiliary version (if applicable) */
117
+ aux_version?: number;
118
+ /** Amount minted */
119
+ token_amount?: string;
120
+ }
121
+ /** Top-level response from the Direct BTC Deposits API */
122
+ export interface DirectDepositsResponse {
123
+ /** List of direct deposit records */
124
+ outputs: DirectDeposit[];
125
+ /** True if there are more deposits available */
126
+ has_more: boolean;
127
+ }
128
+ /**
129
+ * A unified deposit record returned from either
130
+ * Direct BTC Deposits or Native Deposits APIs.
131
+ */
132
+ export interface Deposit {
133
+ /** True if the record originates from the Native Deposits API. */
134
+ isNative: boolean;
135
+ /** Transaction hash on the source blockchain. */
136
+ txHash: string;
137
+ /** Event index inside the transaction (Direct BTC uses output index). */
138
+ eventIndex: number;
139
+ /** Amount deposited (always normalized to satoshis/smallest unit). */
140
+ amount: BigNumber;
141
+ /** Amount minted (if applicable). */
142
+ tokenAmount?: BigNumber;
143
+ /** BTC address where the user deposited (direct BTC only). */
144
+ depositAddress?: string;
145
+ /** Sender address on the source chain (native only). */
146
+ fromAddress?: string;
147
+ /** Receiver address on the destination chain (if applicable). */
148
+ toAddress?: string;
149
+ /** Destination token contract (if applicable). */
150
+ toTokenAddress?: string;
151
+ /** Destination token (if applicable). */
152
+ toToken?: Token;
153
+ /** Destination chain identifier. */
154
+ toChainId: ChainId | SuiChain | SolanaChain | StarknetChainId;
155
+ /** Source chain identifier (native only). */
156
+ fromChainId?: ChainId | SuiChain | SolanaChain | StarknetChainId;
157
+ /** Block height where the deposit was confirmed (as a number). */
158
+ blockHeight?: number;
159
+ /**
160
+ * Unix timestamp (seconds) of confirmation.
161
+ * Converted from ISO8601 (native) or string epoch (direct BTC).
162
+ */
163
+ blockTime?: number;
164
+ /** Hash of the payload proving the deposit details. */
165
+ payloadHash?: string;
166
+ /** Raw payload bytes (hex-encoded). */
167
+ rawPayload?: string;
168
+ /** Merkle/cryptographic proof (hex-encoded). */
169
+ proof?: string;
170
+ /** ID of the notarization session (string to preserve both APIs). */
171
+ sessionId: string;
172
+ /** Current notarization status. */
173
+ notarizationStatus: ENotarizationStatus;
174
+ /** Current session state. */
175
+ sessionState: ESessionState;
176
+ /** Claim transaction hash on the destination chain, if claimed. */
177
+ claimTxHash?: string;
178
+ /** True if the deposit was claimed (derived). */
179
+ isClaimed: boolean;
180
+ /** True if deposit is sanctioned (present in both APIs). */
181
+ sanctioned?: boolean;
182
+ /** Optional auxiliary version (direct BTC only). */
183
+ auxVersion?: number;
184
+ /** Optional wait duration for notarization (direct BTC only, in seconds). */
185
+ notarizationWaitDur?: number;
186
+ }
187
+ export interface IGetDepositsByAddressParams extends IEnvParam {
188
+ /**
189
+ * The EVM address to get deposits for
190
+ */
191
+ address: Address;
192
+ }
193
+ /**
194
+ * Fetches deposits from the Direct BTC Deposits API for a given address.
195
+ *
196
+ * Converts the API response into a unified `Deposit` format.
197
+ *
198
+ * @param {IGetDepositsByAddressParams} params - Parameters including address and environment
199
+ * @param {string} params.address - The EVM/BTC address to fetch deposits for
200
+ * @param {Env} params.env - The environment (e.g., 'mainnet', 'testnet')
201
+ *
202
+ * @returns {Promise<Deposit[]>} A list of direct BTC deposits in unified format
203
+ *
204
+ * @example
205
+ * const directDeposits = await fetchDirectDeposits({ address: 'tb1q...', env: 'testnet' });
206
+ */
207
+ export declare function fetchDirectDeposits({ address, env, }: IGetDepositsByAddressParams): Promise<Deposit[]>;
208
+ /**
209
+ * Fetches deposits from the Native Deposits API for a given address.
210
+ *
211
+ * Converts the API response into a unified `Deposit` format.
212
+ *
213
+ * @param {IGetDepositsByAddressParams} params - Parameters including address and environment
214
+ * @param {string} params.address - The EVM/BTC address to fetch deposits for
215
+ * @param {Env} params.env - The environment (e.g., 'mainnet', 'testnet')
216
+ *
217
+ * @returns {Promise<Deposit[]>} A list of native deposits in unified format
218
+ *
219
+ * @example
220
+ * const nativeDeposits = await fetchNativeDeposits({ address: 'tb1q...', env: 'testnet' });
221
+ */
222
+ export declare function fetchBTCbDeposits({ address, env, }: IGetDepositsByAddressParams): Promise<Deposit[]>;
223
+ /**
224
+ * Fetches all deposits for a given address from both Direct BTC Deposits
225
+ * and Native Deposits APIs, unifying them into a single list.
226
+ *
227
+ * Both APIs are called concurrently. If one API fails, the other still returns results.
228
+ *
229
+ * Deposits are returned sorted by `blockTime` descending (newest first).
230
+ *
231
+ * @param {IGetDepositsByAddressParams} params - Parameters including the address and environment
232
+ * @param {string} params.address - The EVM/BTC address to fetch deposits for
233
+ * @param {Env} params.env - The environment (e.g., 'mainnet', 'testnet')
234
+ *
235
+ * @returns {Promise<Deposit[]>} A unified list of deposits from both APIs
236
+ *
237
+ * @example
238
+ * const deposits = await getDepositsByAddress({ address: 'tb1q...', env: 'testnet' });
239
+ * console.log(deposits);
240
+ */
241
+ export declare function getDepositsByAddress({ address, env, }: IGetDepositsByAddressParams): Promise<Deposit[]>;
242
+ export {};
243
+ //# sourceMappingURL=getDepositsByAddress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDepositsByAddress.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositsByAddress/getDepositsByAddress.ts"],"names":[],"mappings":"AACA,OAAO,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M,CAAC;IAEpB,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAElB,mCAAmC;IACnC,kBAAkB,EAAE,mBAAmB,CAAC;IAExC,6BAA6B;IAC7B,YAAY,EAAE,aAAa,CAAC;IAE5B,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iDAAiD;IACjD,SAAS,EAAE,OAAO,CAAC;IAEnB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,6EAA6E;IAC7E,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,2BAA4B,SAAQ,SAAS;IAC5D;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAMD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,mBAAmB,CAAC,EACxC,OAAO,EACP,GAAG,GACJ,EAAE,2BAA2B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAgBlD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,iBAAiB,CAAC,EACtC,OAAO,EACP,GAAG,GACJ,EAAE,2BAA2B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAclD;AAqFD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,oBAAoB,CAAC,EACzC,OAAO,EACP,GAAG,GACJ,EAAE,2BAA2B,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CA+BlD"}
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { IGetDepositsByAddressParams } from './getDepositsByAddress';
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
+ };
9
+ export default meta;
10
+ type Story = StoryObj<typeof meta>;
11
+ export declare const WithParams: Story;
12
+ export declare function StoryView(props: IGetDepositsByAddressParams): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=getDepositsByAddress.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDepositsByAddress.stories.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositsByAddress/getDepositsByAddress.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EACL,2BAA2B,EAE5B,MAAM,wBAAwB,CAAC;AAEhC,QAAA,MAAM,IAAI;;;;;CAKwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU,EAAE,KAKxB,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,2BAA2B,2CAmB3D"}
@@ -0,0 +1,2 @@
1
+ export * from './getDepositsByAddress';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositsByAddress/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { IEnvParam } from '../../common/parameters';
3
+ import { Token } from '../../tokens/token-addresses';
4
+ declare const enabledTokens: readonly [Token.LBTC];
5
+ type EnabledTokens = (typeof enabledTokens)[number];
6
+ type RatioResult = {
7
+ [token in EnabledTokens]: {
8
+ /** The Token:BTC ratio. How many tokens will I get for 1 BTC */
9
+ tokenBTCRatio: BigNumber;
10
+ /** The BTC:Token ratio (1 / tokenBTCRatio). How many BTC will I get for 1 Token */
11
+ BTCTokenRatio: BigNumber;
12
+ };
13
+ };
14
+ /**
15
+ * Gets the current exchange ratios for available tokens.
16
+ */
17
+ export declare function getExchangeRatio({ env }: IEnvParam): Promise<RatioResult>;
18
+ export {};
19
+ //# sourceMappingURL=get-exchange-ratio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-exchange-ratio.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getLBTCExchangeRate/get-exchange-ratio.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAGL,KAAK,EACN,MAAM,8BAA8B,CAAC;AAatC,QAAA,MAAM,aAAa,uBAAwB,CAAC;AAC5C,KAAK,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpD,KAAK,WAAW,GAAG;KAChB,KAAK,IAAI,aAAa,GAAG;QACxB,gEAAgE;QAChE,aAAa,EAAE,SAAS,CAAC;QACzB,mFAAmF;QACnF,aAAa,EAAE,SAAS,CAAC;KAC1B;CACF,CAAC;AAEF;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS,wBAqBxD"}
@@ -0,0 +1,16 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { getExchangeRatio } from './get-exchange-ratio';
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 WithDefaults: Story;
15
+ export declare function StoryView(props: Parameters<typeof getExchangeRatio>[0]): import("react/jsx-runtime").JSX.Element;
16
+ //# sourceMappingURL=get-exchange-ratio.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-exchange-ratio.stories.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getLBTCExchangeRate/get-exchange-ratio.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,QAAA,MAAM,IAAI;;;;;;;;CAMwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,YAAY,EAAE,KAI1B,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,2CAmBtE"}
@@ -0,0 +1,42 @@
1
+ import BigNumber from 'bignumber.js';
2
+ import { ChainId } from '../../common/chains';
3
+ import { IEnvParam } from '../../common/parameters';
4
+ export interface IgetLBTCExchangeRateParams extends IEnvParam {
5
+ /**
6
+ * The optional chain id of the asset to get the exchange rate for.
7
+ * Note: Exchange rate it the same for all chains.
8
+ *
9
+ * @default OChainId.ethereum
10
+ */
11
+ chainId?: ChainId;
12
+ /**
13
+ * The amount of the LBTC (in satoshis) that a user would like to exchange to BTC.
14
+ */
15
+ amount?: BigNumber.Value;
16
+ }
17
+ export interface IgetLBTCExchangeRateResponse {
18
+ /**
19
+ * The exchanged amount (in satoshis).
20
+ */
21
+ amountOut: number;
22
+ /**
23
+ * The exchange rate for LBTC/BTC.
24
+ */
25
+ exchangeRate: number;
26
+ /**
27
+ * The minimum amount of BTC eligible for staking (in satoshis).
28
+ */
29
+ minAmount: number;
30
+ }
31
+ /**
32
+ * Retrieves the exchange rate for LBTC.
33
+ *
34
+ * @param {IgetLBTCExchangeRateParams} parameters - The parameters.
35
+ * @param {BigNumber.Value} parameters.amount - The optional amount to be exchanged.
36
+ * @param {ChainId} parameters.chainId - The optional chain id.
37
+ * @param {Env} parameters.env - The optional environment identifier.
38
+ *
39
+ * @returns {Promise<IgetLBTCExchangeRateResponse>} - The exchange rate.
40
+ */
41
+ export declare function getLBTCExchangeRate({ env, chainId, amount, }: IgetLBTCExchangeRateParams): Promise<IgetLBTCExchangeRateResponse>;
42
+ //# sourceMappingURL=getLBTCExchangeRate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLBTCExchangeRate.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAOpD,MAAM,WAAW,0BAA2B,SAAQ,SAAS;IAC3D;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC;CAC1B;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,EACxC,GAAG,EACH,OAA0B,EAC1B,MAAqB,GACtB,EAAE,0BAA0B,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAcpE"}
@@ -0,0 +1,16 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { IgetLBTCExchangeRateParams } from './getLBTCExchangeRate';
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 WithDefaults: Story;
15
+ export declare function StoryView(props: IgetLBTCExchangeRateParams): import("react/jsx-runtime").JSX.Element;
16
+ //# sourceMappingURL=getLBTCExchangeRate.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLBTCExchangeRate.stories.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EACL,0BAA0B,EAE3B,MAAM,uBAAuB,CAAC;AAE/B,QAAA,MAAM,IAAI;;;;;;;;CAMwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,YAAY,EAAE,KAM1B,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,0BAA0B,2CAmB1D"}
@@ -0,0 +1,3 @@
1
+ export * from './getLBTCExchangeRate';
2
+ export * from './get-exchange-ratio';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getLBTCExchangeRate/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { ChainId } from '../../common/chains';
2
+ import { IEnvParam } from '../../common/parameters';
3
+ export interface IGetNetworkFeeSignatureParams extends IEnvParam {
4
+ /**
5
+ * Chain ID of the network to interact with
6
+ */
7
+ chainId: ChainId;
8
+ /**
9
+ * Destination address
10
+ */
11
+ address: string;
12
+ /**
13
+ * Token address (optional, required for BTC.b)
14
+ */
15
+ tokenAddress?: string;
16
+ }
17
+ export interface IGetNetworkFeeSignatureMappedResponse {
18
+ /**
19
+ * Expiration date of signature
20
+ */
21
+ expirationDate: string;
22
+ /**
23
+ * The flag signature exists
24
+ */
25
+ hasSignature: boolean;
26
+ /**
27
+ * The auto mint is delayed
28
+ */
29
+ isDelayed: boolean;
30
+ }
31
+ /**
32
+ * Returns the expiration date and the flag signature exists
33
+ *
34
+ * @param {IGetNetworkFeeSignatureParams} parameters - The parameters.
35
+ * @param {string} parameters.address - The account address.
36
+ * @param {ChainId} parameters.chainId - The chain id.
37
+ * @param {Env} parameters.env - The optional environment identifier.
38
+ *
39
+ * @returns {Promise<IGetNetworkFeeSignatureResponse>}
40
+ */
41
+ export declare function getNetworkFeeSignature({ address, chainId, env, tokenAddress, }: IGetNetworkFeeSignatureParams): Promise<IGetNetworkFeeSignatureMappedResponse>;
42
+ //# sourceMappingURL=getNetworkFeeSignature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNetworkFeeSignature.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,MAAM,WAAW,6BAA8B,SAAQ,SAAS;IAC9D;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAiBD,MAAM,WAAW,qCAAqC;IACpD;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,OAAO,EACP,OAAO,EACP,GAAG,EACH,YAAY,GACb,EAAE,6BAA6B,GAAG,OAAO,CAAC,qCAAqC,CAAC,CA8BhF"}
@@ -0,0 +1,17 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { IGetNetworkFeeSignatureParams } from './getNetworkFeeSignature';
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
+ type GetNetworkFeeSignatureParamsProps = IGetNetworkFeeSignatureParams;
16
+ export declare function StoryView(props: GetNetworkFeeSignatureParamsProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=getNetworkFeeSignature.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNetworkFeeSignature.stories.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAQvD,OAAO,EACL,6BAA6B,EAE9B,MAAM,0BAA0B,CAAC;AAElC,QAAA,MAAM,IAAI;;;;;;;;CAMwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU,EAAE,KAMxB,CAAC;AAEF,KAAK,iCAAiC,GAAG,6BAA6B,CAAC;AAEvE,wBAAgB,SAAS,CAAC,KAAK,EAAE,iCAAiC,2CAqBjE"}
@@ -0,0 +1,2 @@
1
+ export * from './getNetworkFeeSignature';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getNetworkFeeSignature/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}