@lombard.finance/sdk 3.6.18 → 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.
- package/CHANGELOG.md +44 -0
- package/README.md +111 -104
- package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.d.ts +67 -0
- package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.d.ts.map +1 -0
- package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.d.ts +16 -0
- package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.d.ts.map +1 -0
- package/dist/api-functions/generateDepositBtcAddress/index.d.ts +2 -0
- package/dist/api-functions/generateDepositBtcAddress/index.d.ts.map +1 -0
- package/dist/api-functions/get-badges-by-address/get-badges-by-address.d.ts +8 -0
- package/dist/api-functions/get-badges-by-address/get-badges-by-address.d.ts.map +1 -0
- package/dist/api-functions/get-badges-by-address/index.d.ts +2 -0
- package/dist/api-functions/get-badges-by-address/index.d.ts.map +1 -0
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts +13 -0
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.d.ts.map +1 -0
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.d.ts +16 -0
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.d.ts.map +1 -0
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.d.ts +2 -0
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.d.ts.map +1 -0
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddresses.stories.d.ts +16 -0
- package/dist/api-functions/getDepositBtcAddress/getDepositBtcAddresses.stories.d.ts.map +1 -0
- package/dist/api-functions/getDepositBtcAddress/index.d.ts +2 -0
- package/dist/api-functions/getDepositBtcAddress/index.d.ts.map +1 -0
- package/dist/api-functions/getDepositBtcAddress/make-request.d.ts +3 -0
- package/dist/api-functions/getDepositBtcAddress/make-request.d.ts.map +1 -0
- package/dist/api-functions/getDepositBtcAddress/types.d.ts +93 -0
- package/dist/api-functions/getDepositBtcAddress/types.d.ts.map +1 -0
- package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.d.ts +243 -0
- package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.d.ts.map +1 -0
- package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.stories.d.ts +13 -0
- package/dist/api-functions/getDepositsByAddress/getDepositsByAddress.stories.d.ts.map +1 -0
- package/dist/api-functions/getDepositsByAddress/index.d.ts +2 -0
- package/dist/api-functions/getDepositsByAddress/index.d.ts.map +1 -0
- package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.d.ts +19 -0
- package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.d.ts.map +1 -0
- package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.stories.d.ts +16 -0
- package/dist/api-functions/getLBTCExchangeRate/get-exchange-ratio.stories.d.ts.map +1 -0
- package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.d.ts +42 -0
- package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.d.ts.map +1 -0
- package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.stories.d.ts +16 -0
- package/dist/api-functions/getLBTCExchangeRate/getLBTCExchangeRate.stories.d.ts.map +1 -0
- package/dist/api-functions/getLBTCExchangeRate/index.d.ts +3 -0
- package/dist/api-functions/getLBTCExchangeRate/index.d.ts.map +1 -0
- package/dist/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.d.ts +42 -0
- package/dist/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.d.ts.map +1 -0
- package/dist/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.stories.d.ts +17 -0
- package/dist/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.stories.d.ts.map +1 -0
- package/dist/api-functions/getNetworkFeeSignature/index.d.ts +2 -0
- package/dist/api-functions/getNetworkFeeSignature/index.d.ts.map +1 -0
- package/dist/api-functions/getPointsByAddress/getPointsByAddress.d.ts +94 -0
- package/dist/api-functions/getPointsByAddress/getPointsByAddress.d.ts.map +1 -0
- package/dist/api-functions/getPointsByAddress/getPointsByAddress.stories.d.ts +13 -0
- package/dist/api-functions/getPointsByAddress/getPointsByAddress.stories.d.ts.map +1 -0
- package/dist/api-functions/getPointsByAddress/index.d.ts +2 -0
- package/dist/api-functions/getPointsByAddress/index.d.ts.map +1 -0
- package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.d.ts +103 -0
- package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.d.ts.map +1 -0
- package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.stories.d.ts +13 -0
- package/dist/api-functions/getUnstakesByAddress/getUnstakesByAddress.stories.d.ts.map +1 -0
- package/dist/api-functions/getUnstakesByAddress/index.d.ts +2 -0
- package/dist/api-functions/getUnstakesByAddress/index.d.ts.map +1 -0
- package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.d.ts +46 -0
- package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.d.ts.map +1 -0
- package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.stories.d.ts +14 -0
- package/dist/api-functions/getUserStakeAndBakeSignature/getUserStakeAndBakeSignature.stories.d.ts.map +1 -0
- package/dist/api-functions/getUserStakeAndBakeSignature/index.d.ts +2 -0
- package/dist/api-functions/getUserStakeAndBakeSignature/index.d.ts.map +1 -0
- package/dist/api-functions/index.d.ts +12 -0
- package/dist/api-functions/index.d.ts.map +1 -0
- package/dist/api-functions/setReferral/index.d.ts +2 -0
- package/dist/api-functions/setReferral/index.d.ts.map +1 -0
- package/dist/api-functions/setReferral/setReferral.d.ts +29 -0
- package/dist/api-functions/setReferral/setReferral.d.ts.map +1 -0
- package/dist/api-functions/storeNetworkFeeSignature/index.d.ts +2 -0
- package/dist/api-functions/storeNetworkFeeSignature/index.d.ts.map +1 -0
- package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.d.ts +29 -0
- package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.d.ts.map +1 -0
- package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.stories.d.ts +14 -0
- package/dist/api-functions/storeNetworkFeeSignature/storeNetworkFeeSignature.stories.d.ts.map +1 -0
- package/dist/api-functions/storeStakeAndBakeSignature/index.d.ts +2 -0
- package/dist/api-functions/storeStakeAndBakeSignature/index.d.ts.map +1 -0
- package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.d.ts +24 -0
- package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.d.ts.map +1 -0
- package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.stories.d.ts +14 -0
- package/dist/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.stories.d.ts.map +1 -0
- package/dist/bridge/index.d.ts +9 -0
- package/dist/bridge/index.d.ts.map +1 -0
- package/dist/bridge/lib/bridge.d.ts +34 -0
- package/dist/bridge/lib/bridge.d.ts.map +1 -0
- package/dist/bridge/lib/bridge.stories.d.ts +14 -0
- package/dist/bridge/lib/bridge.stories.d.ts.map +1 -0
- package/dist/bridge/lib/ccip-bridge.d.ts +25 -0
- package/dist/bridge/lib/ccip-bridge.d.ts.map +1 -0
- package/dist/bridge/lib/ccip-bridge.stories.d.ts +14 -0
- package/dist/bridge/lib/ccip-bridge.stories.d.ts.map +1 -0
- package/dist/bridge/lib/ccip-config.d.ts +11 -0
- package/dist/bridge/lib/ccip-config.d.ts.map +1 -0
- package/dist/bridge/lib/config.d.ts +31 -0
- package/dist/bridge/lib/config.d.ts.map +1 -0
- package/dist/bridge/lib/oft-bridge.d.ts +20 -0
- package/dist/bridge/lib/oft-bridge.d.ts.map +1 -0
- package/dist/bridge/lib/oft-bridge.stories.d.ts +14 -0
- package/dist/bridge/lib/oft-bridge.stories.d.ts.map +1 -0
- package/dist/clients/evm-signer-adapter.d.ts +138 -0
- package/dist/clients/evm-signer-adapter.d.ts.map +1 -0
- package/dist/clients/public-client.d.ts +17 -0
- package/dist/clients/public-client.d.ts.map +1 -0
- package/dist/clients/rpc-url-config.d.ts +6 -0
- package/dist/clients/rpc-url-config.d.ts.map +1 -0
- package/dist/clients/wallet-client.d.ts +15 -0
- package/dist/clients/wallet-client.d.ts.map +1 -0
- package/dist/common/api-config.d.ts +8 -0
- package/dist/common/api-config.d.ts.map +1 -0
- package/dist/common/blockchain-identifier.d.ts +38 -0
- package/dist/common/blockchain-identifier.d.ts.map +1 -0
- package/dist/common/chains.d.ts +1855 -0
- package/dist/common/chains.d.ts.map +1 -0
- package/dist/common/chains.stories.d.ts +17 -0
- package/dist/common/chains.stories.d.ts.map +1 -0
- package/dist/common/constants.d.ts +2 -0
- package/dist/common/constants.d.ts.map +1 -0
- package/dist/common/contract-info.d.ts +8 -0
- package/dist/common/contract-info.d.ts.map +1 -0
- package/dist/common/parameters.d.ts +72 -0
- package/dist/common/parameters.d.ts.map +1 -0
- package/dist/contract-functions/approveLBTC/approveLBTC.d.ts +30 -0
- package/dist/contract-functions/approveLBTC/approveLBTC.d.ts.map +1 -0
- package/dist/contract-functions/approveLBTC/approveLBTC.stories.d.ts +17 -0
- package/dist/contract-functions/approveLBTC/approveLBTC.stories.d.ts.map +1 -0
- package/dist/contract-functions/approveLBTC/index.d.ts +2 -0
- package/dist/contract-functions/approveLBTC/index.d.ts.map +1 -0
- package/dist/contract-functions/approveToken/approveToken.d.ts +59 -0
- package/dist/contract-functions/approveToken/approveToken.d.ts.map +1 -0
- package/dist/contract-functions/approveToken/index.d.ts +2 -0
- package/dist/contract-functions/approveToken/index.d.ts.map +1 -0
- package/dist/contract-functions/claimLBTC/claimLBTC.d.ts +56 -0
- package/dist/contract-functions/claimLBTC/claimLBTC.d.ts.map +1 -0
- package/dist/contract-functions/claimLBTC/claimLBTC.stories.d.ts +17 -0
- package/dist/contract-functions/claimLBTC/claimLBTC.stories.d.ts.map +1 -0
- package/dist/contract-functions/claimLBTC/index.d.ts +2 -0
- package/dist/contract-functions/claimLBTC/index.d.ts.map +1 -0
- package/dist/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.d.ts +30 -0
- package/dist/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.d.ts.map +1 -0
- package/dist/contract-functions/claimUnstakeRedeem/index.d.ts +2 -0
- package/dist/contract-functions/claimUnstakeRedeem/index.d.ts.map +1 -0
- package/dist/contract-functions/deposit/depositToken.d.ts +69 -0
- package/dist/contract-functions/deposit/depositToken.d.ts.map +1 -0
- package/dist/contract-functions/deposit/depositToken.stories.d.ts +17 -0
- package/dist/contract-functions/deposit/depositToken.stories.d.ts.map +1 -0
- package/dist/contract-functions/deposit/index.d.ts +2 -0
- package/dist/contract-functions/deposit/index.d.ts.map +1 -0
- package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.d.ts +49 -0
- package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.d.ts.map +1 -0
- package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.d.ts +16 -0
- package/dist/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.d.ts.map +1 -0
- package/dist/contract-functions/getBasculeDepositStatus/index.d.ts +2 -0
- package/dist/contract-functions/getBasculeDepositStatus/index.d.ts.map +1 -0
- package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.d.ts +26 -0
- package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.d.ts.map +1 -0
- package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.d.ts +17 -0
- package/dist/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.d.ts.map +1 -0
- package/dist/contract-functions/getLBTCMintingFee/index.d.ts +2 -0
- package/dist/contract-functions/getLBTCMintingFee/index.d.ts.map +1 -0
- package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.d.ts +14 -0
- package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.d.ts.map +1 -0
- package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.stories.d.ts +17 -0
- package/dist/contract-functions/getLBTCTotalSupply/getLBTCTotalSupply.stories.d.ts.map +1 -0
- package/dist/contract-functions/getLBTCTotalSupply/index.d.ts +2 -0
- package/dist/contract-functions/getLBTCTotalSupply/index.d.ts.map +1 -0
- package/dist/contract-functions/getPermitNonce/getPermitNonce.d.ts +20 -0
- package/dist/contract-functions/getPermitNonce/getPermitNonce.d.ts.map +1 -0
- package/dist/contract-functions/getPermitNonce/getPermitNonce.stories.d.ts +14 -0
- package/dist/contract-functions/getPermitNonce/getPermitNonce.stories.d.ts.map +1 -0
- package/dist/contract-functions/getPermitNonce/index.d.ts +2 -0
- package/dist/contract-functions/getPermitNonce/index.d.ts.map +1 -0
- package/dist/contract-functions/getShareValue/getShareValue.d.ts +22 -0
- package/dist/contract-functions/getShareValue/getShareValue.d.ts.map +1 -0
- package/dist/contract-functions/getShareValue/getShareValue.stories.d.ts +13 -0
- package/dist/contract-functions/getShareValue/getShareValue.stories.d.ts.map +1 -0
- package/dist/contract-functions/getShareValue/index.d.ts +2 -0
- package/dist/contract-functions/getShareValue/index.d.ts.map +1 -0
- package/dist/contract-functions/getSharesByAddress/getSharesByAddress.d.ts +35 -0
- package/dist/contract-functions/getSharesByAddress/getSharesByAddress.d.ts.map +1 -0
- package/dist/contract-functions/getSharesByAddress/getSharesByAddress.stories.d.ts +13 -0
- package/dist/contract-functions/getSharesByAddress/getSharesByAddress.stories.d.ts.map +1 -0
- package/dist/contract-functions/getSharesByAddress/index.d.ts +2 -0
- package/dist/contract-functions/getSharesByAddress/index.d.ts.map +1 -0
- package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.d.ts +21 -0
- package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.d.ts.map +1 -0
- package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.stories.d.ts +14 -0
- package/dist/contract-functions/getStakeAndBakeFee/getStakeAndBakeFee.stories.d.ts.map +1 -0
- package/dist/contract-functions/getStakeAndBakeFee/index.d.ts +2 -0
- package/dist/contract-functions/getStakeAndBakeFee/index.d.ts.map +1 -0
- package/dist/contract-functions/index.d.ts +17 -0
- package/dist/contract-functions/index.d.ts.map +1 -0
- package/dist/contract-functions/signLbtcDestionationAddr/index.d.ts +2 -0
- package/dist/contract-functions/signLbtcDestionationAddr/index.d.ts.map +1 -0
- package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestinationAddr.d.ts +16 -0
- package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestinationAddr.d.ts.map +1 -0
- package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestionationAddr.stories.d.ts +9 -0
- package/dist/contract-functions/signLbtcDestionationAddr/signLbtcDestionationAddr.stories.d.ts.map +1 -0
- package/dist/contract-functions/signNetworkFee/getTypedData.d.ts +32 -0
- package/dist/contract-functions/signNetworkFee/getTypedData.d.ts.map +1 -0
- package/dist/contract-functions/signNetworkFee/index.d.ts +2 -0
- package/dist/contract-functions/signNetworkFee/index.d.ts.map +1 -0
- package/dist/contract-functions/signNetworkFee/signNetworkFee.d.ts +47 -0
- package/dist/contract-functions/signNetworkFee/signNetworkFee.d.ts.map +1 -0
- package/dist/contract-functions/signNetworkFee/signNetworkFee.stories.d.ts +14 -0
- package/dist/contract-functions/signNetworkFee/signNetworkFee.stories.d.ts.map +1 -0
- package/dist/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.d.ts +17 -0
- package/dist/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.d.ts.map +1 -0
- package/dist/contract-functions/signStakeAndBake/handleApprove.d.ts +20 -0
- package/dist/contract-functions/signStakeAndBake/handleApprove.d.ts.map +1 -0
- package/dist/contract-functions/signStakeAndBake/handlePermit.d.ts +13 -0
- package/dist/contract-functions/signStakeAndBake/handlePermit.d.ts.map +1 -0
- package/dist/contract-functions/signStakeAndBake/index.d.ts +3 -0
- package/dist/contract-functions/signStakeAndBake/index.d.ts.map +1 -0
- package/dist/contract-functions/signStakeAndBake/signStakeAndBake.d.ts +71 -0
- package/dist/contract-functions/signStakeAndBake/signStakeAndBake.d.ts.map +1 -0
- package/dist/contract-functions/signStakeAndBake/signStakeAndBake.stories.d.ts +50 -0
- package/dist/contract-functions/signStakeAndBake/signStakeAndBake.stories.d.ts.map +1 -0
- package/dist/contract-functions/signStakeAndBake/typed-data-builder.d.ts +189 -0
- package/dist/contract-functions/signStakeAndBake/typed-data-builder.d.ts.map +1 -0
- package/dist/contract-functions/signStakeAndBake/utils.d.ts +4471 -0
- package/dist/contract-functions/signStakeAndBake/utils.d.ts.map +1 -0
- package/dist/contract-functions/signStakeAndBake/validation.d.ts +40 -0
- package/dist/contract-functions/signStakeAndBake/validation.d.ts.map +1 -0
- package/dist/contract-functions/unstakeLBTC/index.d.ts +2 -0
- package/dist/contract-functions/unstakeLBTC/index.d.ts.map +1 -0
- package/dist/contract-functions/unstakeLBTC/unstakeLBTC.d.ts +132 -0
- package/dist/contract-functions/unstakeLBTC/unstakeLBTC.d.ts.map +1 -0
- package/dist/contract-functions/unstakeLBTC/unstakeLBTC.stories.d.ts +17 -0
- package/dist/contract-functions/unstakeLBTC/unstakeLBTC.stories.d.ts.map +1 -0
- package/dist/debug-api/btc-script-to-address.d.ts +3 -0
- package/dist/debug-api/btc-script-to-address.d.ts.map +1 -0
- package/dist/debug-api/btc-tx-info.d.ts +19 -0
- package/dist/debug-api/btc-tx-info.d.ts.map +1 -0
- package/dist/debug-api/evm-by-btc-address.d.ts +9 -0
- package/dist/debug-api/evm-by-btc-address.d.ts.map +1 -0
- package/dist/debug-api/index.d.ts +4 -0
- package/dist/debug-api/index.d.ts.map +1 -0
- package/dist/defi/defi-registry.d.ts +73 -0
- package/dist/defi/defi-registry.d.ts.map +1 -0
- package/dist/defi/defi-registry.stories.d.ts +18 -0
- package/dist/defi/defi-registry.stories.d.ts.map +1 -0
- package/dist/defi/index.d.ts +2 -0
- package/dist/defi/index.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +145 -115
- package/dist/index2.cjs +66 -66
- package/dist/index2.js +17971 -16560
- package/dist/metrics/get-additional-rewards.d.ts +31 -0
- package/dist/metrics/get-additional-rewards.d.ts.map +1 -0
- package/dist/metrics/get-lbtc-apy.d.ts +35 -0
- package/dist/metrics/get-lbtc-apy.d.ts.map +1 -0
- package/dist/metrics/get-lbtc-stats.d.ts +21 -0
- package/dist/metrics/get-lbtc-stats.d.ts.map +1 -0
- package/dist/metrics/get-lbtc-stats.stories.d.ts +17 -0
- package/dist/metrics/get-lbtc-stats.stories.d.ts.map +1 -0
- package/dist/metrics/get-positions-summary.d.ts +75 -0
- package/dist/metrics/get-positions-summary.d.ts.map +1 -0
- package/dist/metrics/get-positions-summary.stories.d.ts +17 -0
- package/dist/metrics/get-positions-summary.stories.d.ts.map +1 -0
- package/dist/stories/arg-types.d.ts +6 -0
- package/dist/stories/arg-types.d.ts.map +1 -0
- package/dist/stories/components/Button/Button.d.ts +16 -0
- package/dist/stories/components/Button/Button.d.ts.map +1 -0
- package/dist/stories/components/Button/index.d.ts +2 -0
- package/dist/stories/components/Button/index.d.ts.map +1 -0
- package/dist/stories/components/CodeBlock/CodeBlock.d.ts +9 -0
- package/dist/stories/components/CodeBlock/CodeBlock.d.ts.map +1 -0
- package/dist/stories/components/CodeBlock/index.d.ts +2 -0
- package/dist/stories/components/CodeBlock/index.d.ts.map +1 -0
- package/dist/stories/components/ConnectButton/connect-button.d.ts +5 -0
- package/dist/stories/components/ConnectButton/connect-button.d.ts.map +1 -0
- package/dist/stories/components/ConnectButton/index.d.ts +2 -0
- package/dist/stories/components/ConnectButton/index.d.ts.map +1 -0
- package/dist/stories/components/Spinner/Spinner.d.ts +9 -0
- package/dist/stories/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/stories/components/Spinner/index.d.ts +2 -0
- package/dist/stories/components/Spinner/index.d.ts.map +1 -0
- package/dist/stories/components/decorators/function-type.d.ts +4 -0
- package/dist/stories/components/decorators/function-type.d.ts.map +1 -0
- package/dist/stories/components/decorators/index.d.ts +3 -0
- package/dist/stories/components/decorators/index.d.ts.map +1 -0
- package/dist/stories/components/decorators/wagmi-decorator.d.ts +6 -0
- package/dist/stories/components/decorators/wagmi-decorator.d.ts.map +1 -0
- package/dist/stories/components/error-block.d.ts +5 -0
- package/dist/stories/components/error-block.d.ts.map +1 -0
- package/dist/stories/constants.d.ts +3 -0
- package/dist/stories/constants.d.ts.map +1 -0
- package/dist/stories/hooks/useConnection.d.ts +27 -0
- package/dist/stories/hooks/useConnection.d.ts.map +1 -0
- package/dist/stories/hooks/useQuery.d.ts +19 -0
- package/dist/stories/hooks/useQuery.d.ts.map +1 -0
- package/dist/tokens/abi/ASSET_ROUTER_ABI.d.ts +68 -0
- package/dist/tokens/abi/ASSET_ROUTER_ABI.d.ts.map +1 -0
- package/dist/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.d.ts +1095 -0
- package/dist/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.d.ts.map +1 -0
- package/dist/tokens/abi/BTCK_ABI.d.ts +1487 -0
- package/dist/tokens/abi/BTCK_ABI.d.ts.map +1 -0
- package/dist/tokens/abi/LBTC_ABI.d.ts +1364 -0
- package/dist/tokens/abi/LBTC_ABI.d.ts.map +1 -0
- package/dist/tokens/abi/NATIVE_LBTC_ABI.d.ts +1551 -0
- package/dist/tokens/abi/NATIVE_LBTC_ABI.d.ts.map +1 -0
- package/dist/tokens/abi/STLBTC_ABI.d.ts +1399 -0
- package/dist/tokens/abi/STLBTC_ABI.d.ts.map +1 -0
- package/dist/tokens/cross-chain-addresses.stories.d.ts +60 -0
- package/dist/tokens/cross-chain-addresses.stories.d.ts.map +1 -0
- package/dist/tokens/denomination-utils.stories.d.ts +62 -0
- package/dist/tokens/denomination-utils.stories.d.ts.map +1 -0
- package/dist/tokens/getLbtcContractAddresses.stories.d.ts +59 -0
- package/dist/tokens/getLbtcContractAddresses.stories.d.ts.map +1 -0
- package/dist/tokens/getTokenByAddress.stories.d.ts +64 -0
- package/dist/tokens/getTokenByAddress.stories.d.ts.map +1 -0
- package/dist/tokens/getTokenContractInfo.stories.d.ts +52 -0
- package/dist/tokens/getTokenContractInfo.stories.d.ts.map +1 -0
- package/dist/tokens/getTokenInfo.stories.d.ts +42 -0
- package/dist/tokens/getTokenInfo.stories.d.ts.map +1 -0
- package/dist/tokens/isUpgradedContract.stories.d.ts +50 -0
- package/dist/tokens/isUpgradedContract.stories.d.ts.map +1 -0
- package/dist/tokens/lbtc-addresses.d.ts +11 -0
- package/dist/tokens/lbtc-addresses.d.ts.map +1 -0
- package/dist/tokens/token-addresses.d.ts +37 -0
- package/dist/tokens/token-addresses.d.ts.map +1 -0
- package/dist/tokens/tokens.d.ts +319 -0
- package/dist/tokens/tokens.d.ts.map +1 -0
- package/dist/tokens/types.d.ts +78 -0
- package/dist/tokens/types.d.ts.map +1 -0
- package/dist/utils/array.d.ts +3 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/block.d.ts +3 -0
- package/dist/utils/block.d.ts.map +1 -0
- package/dist/utils/env.d.ts +4 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/err.d.ts +22 -0
- package/dist/utils/err.d.ts.map +1 -0
- package/dist/utils/gas.d.ts +7 -0
- package/dist/utils/gas.d.ts.map +1 -0
- package/dist/utils/hex.d.ts +4 -0
- package/dist/utils/hex.d.ts.map +1 -0
- package/dist/utils/numbers.d.ts +5 -0
- package/dist/utils/numbers.d.ts.map +1 -0
- package/dist/utils/pagination.d.ts +26 -0
- package/dist/utils/pagination.d.ts.map +1 -0
- package/dist/utils/satoshi.d.ts +17 -0
- package/dist/utils/satoshi.d.ts.map +1 -0
- package/dist/utils/time.d.ts +7 -0
- package/dist/utils/time.d.ts.map +1 -0
- package/dist/utils/transaction-executor.d.ts +96 -0
- package/dist/utils/transaction-executor.d.ts.map +1 -0
- package/dist/vaults/abi/index.d.ts +4 -0
- package/dist/vaults/abi/index.d.ts.map +1 -0
- package/dist/vaults/index.d.ts +9 -0
- package/dist/vaults/index.d.ts.map +1 -0
- package/dist/vaults/lib/config.d.ts +215 -0
- package/dist/vaults/lib/config.d.ts.map +1 -0
- package/dist/vaults/lib/metrics/get-vault-apy.d.ts +22 -0
- package/dist/vaults/lib/metrics/get-vault-apy.d.ts.map +1 -0
- package/dist/vaults/lib/metrics/get-vault-apy.stories.d.ts +14 -0
- package/dist/vaults/lib/metrics/get-vault-apy.stories.d.ts.map +1 -0
- package/dist/vaults/lib/metrics/get-vault-points.d.ts +16 -0
- package/dist/vaults/lib/metrics/get-vault-points.d.ts.map +1 -0
- package/dist/vaults/lib/metrics/get-vault-points.stories.d.ts +14 -0
- package/dist/vaults/lib/metrics/get-vault-points.stories.d.ts.map +1 -0
- package/dist/vaults/lib/metrics/get-vault-tvl.d.ts +22 -0
- package/dist/vaults/lib/metrics/get-vault-tvl.d.ts.map +1 -0
- package/dist/vaults/lib/metrics/get-vault-tvl.stories.d.ts +14 -0
- package/dist/vaults/lib/metrics/get-vault-tvl.stories.d.ts.map +1 -0
- package/dist/vaults/lib/ops/cancel-withdraw.stories.d.ts +14 -0
- package/dist/vaults/lib/ops/cancel-withdraw.stories.d.ts.map +1 -0
- package/dist/vaults/lib/ops/deposit.d.ts +34 -0
- package/dist/vaults/lib/ops/deposit.d.ts.map +1 -0
- package/dist/vaults/lib/ops/deposit.stories.d.ts +14 -0
- package/dist/vaults/lib/ops/deposit.stories.d.ts.map +1 -0
- package/dist/vaults/lib/ops/get-vault-deposits.d.ts +57 -0
- package/dist/vaults/lib/ops/get-vault-deposits.d.ts.map +1 -0
- package/dist/vaults/lib/ops/get-vault-deposits.stories.d.ts +14 -0
- package/dist/vaults/lib/ops/get-vault-deposits.stories.d.ts.map +1 -0
- package/dist/vaults/lib/ops/get-vault-withdrawals.d.ts +74 -0
- package/dist/vaults/lib/ops/get-vault-withdrawals.d.ts.map +1 -0
- package/dist/vaults/lib/ops/get-vault-withdrawals.stories.d.ts +14 -0
- package/dist/vaults/lib/ops/get-vault-withdrawals.stories.d.ts.map +1 -0
- package/dist/vaults/lib/ops/withdraw.d.ts +49 -0
- package/dist/vaults/lib/ops/withdraw.d.ts.map +1 -0
- package/dist/vaults/lib/ops/withdraw.stories.d.ts +14 -0
- package/dist/vaults/lib/ops/withdraw.stories.d.ts.map +1 -0
- package/package.json +7 -5
- package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.tsx +1 -1
- package/src/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.ts +31 -6
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.stories.tsx +1 -1
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.ts +6 -6
- package/src/api-functions/getDepositBtcAddress/getDepositBtcAddress.ts +35 -8
- package/src/api-functions/getDepositBtcAddress/make-request.ts +8 -1
- package/src/api-functions/getDepositBtcAddress/types.ts +7 -2
- package/src/api-functions/getDepositsByAddress/getDepositsByAddress.ts +438 -74
- package/src/api-functions/getLBTCExchangeRate/get-exchange-ratio.stories.tsx +4 -4
- package/src/api-functions/getNetworkFeeSignature/getNetworkFeeSignature.ts +15 -4
- package/src/api-functions/getUnstakesByAddress/getUnstakesByAddress.ts +298 -110
- package/src/api-functions/getUnstakesByAddress/index.ts +1 -5
- package/src/api-functions/storeStakeAndBakeSignature/storeStakeAndBakeSignature.ts +3 -1
- package/src/bridge/abi/CCIP_ROUTER_ABI.json +702 -0
- package/src/bridge/lib/ccip-bridge.ts +76 -26
- package/src/bridge/lib/ccip-config.ts +53 -0
- package/src/bridge/lib/config.ts +1 -0
- package/src/clients/evm-signer-adapter.ts +312 -0
- package/src/clients/public-client.ts +2 -2
- package/src/common/api-config.ts +10 -2
- package/src/common/blockchain-identifier.ts +35 -4
- package/src/common/chains.ts +24 -1
- package/src/common/parameters.ts +37 -0
- package/src/contract-functions/approveToken/approveToken.ts +125 -0
- package/src/contract-functions/approveToken/index.ts +2 -0
- package/src/contract-functions/claimLBTC/claimLBTC.stories.tsx +1 -1
- package/src/contract-functions/claimLBTC/claimLBTC.ts +66 -37
- package/src/contract-functions/claimUnstakeRedeem/claimUnstakeRedeem.ts +94 -0
- package/src/contract-functions/claimUnstakeRedeem/index.ts +2 -0
- package/src/contract-functions/deposit/depositToken.stories.tsx +82 -0
- package/src/contract-functions/deposit/depositToken.ts +213 -0
- package/src/contract-functions/deposit/index.ts +1 -0
- package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.stories.tsx +1 -1
- package/src/contract-functions/getBasculeDepositStatus/getBasculeDepositStatus.ts +42 -9
- package/src/contract-functions/getLBTCMintingFee/getLBTCMintingFee.stories.tsx +0 -1
- package/src/contract-functions/getLBTCMintingFee/{getLBTCMintingFee.tsx → getLBTCMintingFee.ts} +33 -18
- package/src/contract-functions/index.ts +3 -0
- package/src/contract-functions/signNetworkFee/signNetworkFee.ts +7 -1
- package/src/contract-functions/signStakeAndBake/__tests__/signStakeAndBake.test.ts +886 -0
- package/src/contract-functions/signStakeAndBake/handleApprove.ts +80 -0
- package/src/contract-functions/signStakeAndBake/handlePermit.ts +28 -0
- package/src/contract-functions/signStakeAndBake/index.ts +2 -0
- package/src/contract-functions/signStakeAndBake/signStakeAndBake.stories.tsx +118 -28
- package/src/contract-functions/signStakeAndBake/signStakeAndBake.ts +86 -110
- package/src/contract-functions/signStakeAndBake/typed-data-builder.ts +137 -0
- package/src/contract-functions/signStakeAndBake/utils.ts +60 -0
- package/src/contract-functions/signStakeAndBake/validation.ts +123 -0
- package/src/contract-functions/unstakeLBTC/unstakeLBTC.stories.tsx +3 -3
- package/src/contract-functions/unstakeLBTC/unstakeLBTC.ts +356 -71
- package/src/debug-api/btc-script-to-address.ts +19 -0
- package/src/debug-api/btc-tx-info.ts +31 -0
- package/src/debug-api/evm-by-btc-address.ts +25 -0
- package/src/debug-api/index.ts +3 -0
- package/src/defi/README.md +472 -0
- package/src/defi/defi-registry.stories.tsx +524 -0
- package/src/defi/defi-registry.ts +178 -0
- package/src/defi/index.ts +6 -0
- package/src/index.ts +44 -27
- package/src/metrics/get-additional-rewards.ts +1 -1
- package/src/metrics/get-positions-summary.ts +1 -1
- package/src/stories/arg-types.ts +5 -2
- package/src/stories/components/ConnectButton/connect-button.tsx +152 -5
- package/src/stories/components/decorators/wagmi-decorator.tsx +6 -1
- package/src/tokens/abi/ASSET_ROUTER_ABI.ts +1049 -214
- package/src/tokens/abi/BRIDGE_TOKEN_ADAPTER_ABI.ts +1405 -0
- package/src/tokens/cross-chain-addresses.stories.tsx +236 -0
- package/src/tokens/denomination-utils.stories.tsx +176 -0
- package/src/tokens/getLbtcContractAddresses.stories.tsx +158 -0
- package/src/tokens/getTokenByAddress.stories.tsx +172 -0
- package/src/tokens/getTokenContractInfo.stories.tsx +148 -0
- package/src/tokens/getTokenInfo.stories.tsx +132 -0
- package/src/tokens/isUpgradedContract.stories.tsx +124 -0
- package/src/tokens/lbtc-addresses.ts +3 -2
- package/src/tokens/token-addresses.ts +265 -77
- package/src/tokens/tokens.ts +64 -29
- package/src/tokens/types.ts +80 -0
- package/src/utils/err.ts +12 -0
- package/src/utils/pagination.ts +70 -0
- package/src/utils/transaction-executor.ts +290 -0
- package/src/vaults/abi/SILO_VAULT_SPENDER_ABI.json +793 -0
- package/src/vaults/abi/index.ts +4 -0
- package/src/vaults/index.ts +7 -0
- package/src/vaults/lib/config.ts +7 -1
- package/src/vaults/lib/metrics/get-vault-apy.ts +68 -25
- package/src/vaults/lib/ops/get-vault-deposits.ts +98 -17
- package/src/vaults/lib/ops/get-vault-withdrawals.ts +146 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
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
|
+
|
|
36
|
+
# 3.6.20
|
|
37
|
+
|
|
38
|
+
* updated LBTC token contract addresses for staging environment.
|
|
39
|
+
|
|
40
|
+
# 3.6.19
|
|
41
|
+
|
|
42
|
+
* added Starknet-specific logic for BTC deposit address generation.
|
|
43
|
+
* added token contract addresses for Starknet Sepolia.
|
|
44
|
+
|
|
1
45
|
# 3.6.18
|
|
2
46
|
|
|
3
47
|
* removed deprecated rewards (BABY) logic,
|
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 @
|
|
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: [
|
|
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.
|
|
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.
|
|
91
92
|
|
|
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.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
#### 1.4. Check the status of your deposit
|
|
93
110
|
|
|
94
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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.
|
|
147
|
+
### 2. Minting
|
|
121
148
|
|
|
122
|
-
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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.
|
|
@@ -249,24 +278,43 @@ The above code results with:
|
|
|
249
278
|
|
|
250
279
|
---
|
|
251
280
|
|
|
252
|
-
### 4.
|
|
281
|
+
### 4. Redeeming LBTC to BTC or other supported tokens.
|
|
253
282
|
|
|
254
283
|
Every LBTC is redeemable back to BTC, you can do that programmatically by following the steps:
|
|
255
284
|
|
|
256
|
-
#### 4.1.
|
|
285
|
+
#### 4.1. Redeeming.
|
|
286
|
+
|
|
287
|
+
Use `redeemToken` to redeem LBTC → BTC (or other supported flows).
|
|
288
|
+
When redeeming to BTC, be sure to pass a valid `btcAddress`.
|
|
257
289
|
|
|
258
290
|
```javascript
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
291
|
+
import { redeemToken, Token } from '@lombard.finance/sdk';
|
|
292
|
+
|
|
293
|
+
// Redeem LBTC into BTC
|
|
294
|
+
const txHash = await redeemToken({
|
|
295
|
+
btcAddress, // The BTC address to receive the redeemed funds.
|
|
296
|
+
amount, // Amount of LBTC to redeem (e.g. "1.23").
|
|
297
|
+
account, // Your EVM account address.
|
|
298
|
+
chainId, // The chain ID where LBTC is deployed.
|
|
299
|
+
provider, // The EIP-1193 provider (e.g. from MetaMask).
|
|
300
|
+
rpcUrl, // (Optional) Custom RPC URL.
|
|
301
|
+
tokenIn: Token.LBTC, // The token you are redeeming.
|
|
266
302
|
});
|
|
303
|
+
|
|
304
|
+
// Redeem LBTC into BTC.b
|
|
305
|
+
const txHash = await redeemToken({
|
|
306
|
+
amount, // Amount of LBTC to redeem (e.g. "1.23")
|
|
307
|
+
account, // Your EVM account address
|
|
308
|
+
chainId, // The chain ID where LBTC is deployed
|
|
309
|
+
provider, // The EIP-1193 provider (e.g. from MetaMask)
|
|
310
|
+
rpcUrl, // (Optional) Custom RPC URL
|
|
311
|
+
tokenIn: Token.LBTC, // The token you are redeeming
|
|
312
|
+
tokenOut: Token.BTCb, // The token to receive
|
|
313
|
+
});
|
|
314
|
+
|
|
267
315
|
```
|
|
268
316
|
|
|
269
|
-
#### 4.
|
|
317
|
+
#### 4.3. Check the status of your redemptions (unstakes).
|
|
270
318
|
|
|
271
319
|
If you'd like to get the list of all unstaked made by an address, use this:
|
|
272
320
|
|
|
@@ -275,17 +323,23 @@ const unstakes = await getUnstakesByAddress({ address });
|
|
|
275
323
|
```
|
|
276
324
|
|
|
277
325
|
Every entry in the result of the above may consist of:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
326
|
+
|
|
327
|
+
| Field | Type | Description |
|
|
328
|
+
| ------------------ | ------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
|
|
329
|
+
| **isNative** | `boolean` | `true` if the record originates from a **native-chain redemption** (e.g. BTC.b), `false` if it’s a direct BTC unstake. |
|
|
330
|
+
| **txHash** | `string` | Transaction hash of the unstake/redemption on the source chain. |
|
|
331
|
+
| **fromChainId** | `ChainId \| SuiChain \| SolanaChain` | Identifier of the **source chain** where the unstake was initiated. |
|
|
332
|
+
| **toChainId** | `ChainId \| SuiChain \| SolanaChain` *(optional)* | Destination chain identifier (undefined for BTC unstakes). |
|
|
333
|
+
| **blockHeight** | `number` | Block height on the source chain where the unstake was confirmed. |
|
|
334
|
+
| **blockTime** | `number` (epoch seconds) | Timestamp (in epoch seconds) of the confirmation block. |
|
|
335
|
+
| **fromAddress** | `string` | Address of the initiator of the unstake transaction. |
|
|
336
|
+
| **toAddress** | `string` *(optional)* | Destination address receiving the redeemed funds (BTC, EVM, or Solana). |
|
|
337
|
+
| **amount** | `BigNumber` | Amount unstaked, normalized to **satoshis / smallest unit**. |
|
|
338
|
+
| **payoutTxHash** | `string` *(optional)* | Transaction hash of the payout on the **destination chain**, if the claim/payout has occurred. |
|
|
339
|
+
| **payoutTxIndex** | `number` *(optional)* | Transaction index of the payout within the destination block, if applicable. |
|
|
340
|
+
| **payoutTxStatus** | `PayoutTxStatus` | Current status of the payout transaction (e.g. *pending*, *confirmed*, *failed*). |
|
|
341
|
+
| **sanctioned** | `boolean` *(optional)* | `true` if the unstake transaction has been sanctioned or flagged. |
|
|
342
|
+
|
|
289
343
|
|
|
290
344
|
---
|
|
291
345
|
|
|
@@ -423,55 +477,12 @@ const txHash = await cancelWithdraw({
|
|
|
423
477
|
You can check the amount of Lux points earned by an address with:
|
|
424
478
|
|
|
425
479
|
```ts
|
|
426
|
-
import {
|
|
427
|
-
|
|
428
|
-
// Fetch **current season** points (defaults to Season 2)
|
|
429
|
-
const points = await getPointsByAddress({ address: "0x...YOUR_ADDRESS" });
|
|
480
|
+
import { getLuxSeason2Points } from "@lombard.finance/sdk";
|
|
481
|
+
const points = await getLuxSeason2Points({ address: "0x...YOUR_ADDRESS" });
|
|
430
482
|
```
|
|
431
483
|
|
|
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
484
|
#### Returned Object
|
|
443
485
|
|
|
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
486
|
```ts
|
|
476
487
|
{
|
|
477
488
|
/** Points earned by holding LBTC. */
|
|
@@ -495,10 +506,6 @@ The shape of the returned object depends on the **season**:
|
|
|
495
506
|
}
|
|
496
507
|
```
|
|
497
508
|
|
|
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
509
|
---
|
|
503
510
|
|
|
504
511
|
### 8. Getting the DeFi vault points earned by an address.
|
|
@@ -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
|
package/dist/api-functions/generateDepositBtcAddress/generateDepositBtcAddress.stories.d.ts.map
ADDED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"getDepositBtcAddress.test.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositBtcAddress/getDepositBtcAddress.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import { IGetDepositBtcAddressesParameters } 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: IGetDepositBtcAddressesParameters): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=getDepositBtcAddresses.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDepositBtcAddresses.stories.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositBtcAddress/getDepositBtcAddresses.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AASvD,OAAO,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAE5D,QAAA,MAAM,IAAI;;;;;;;;CAQwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,UAAU,EAAE,KASxB,CAAC;AAEF,wBAAgB,SAAS,CAAC,KAAK,EAAE,iCAAiC,2CAmBjE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositBtcAddress/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IGetDepositBtcAddressesParameters } from './types';
|
|
2
|
+
export declare function makeRequest({ address, chainId, env, limit, offset, partnerId, }: IGetDepositBtcAddressesParameters): Promise<import("./types").IDepositAddress[] | undefined>;
|
|
3
|
+
//# sourceMappingURL=make-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"make-request.d.ts","sourceRoot":"","sources":["../../../src/api-functions/getDepositBtcAddress/make-request.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,iCAAiC,EAClC,MAAM,SAAS,CAAC;AAGjB,wBAAsB,WAAW,CAAC,EAChC,OAAO,EACP,OAAO,EACP,GAAG,EACH,KAAK,EACL,MAAM,EACN,SAAS,GACV,EAAE,iCAAiC,4DAqCnC"}
|