@lombard.finance/sdk 3.6.5 → 3.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index2.js CHANGED
@@ -19673,6 +19673,8 @@ async function Qb({
19673
19673
  throw new Error(
19674
19674
  "No 'rawPayload' or 'deposit' data provided. Please provide 'rawPayload' or 'deposit' parameter."
19675
19675
  );
19676
+ if (P === z0.LBTC && (v === X.katana || v === X.katanaTatara))
19677
+ return 1;
19676
19678
  const N = ke({ chainId: v, rpcUrl: t, env: d }), L = await rt(P, v, d), z = await N.readContract({
19677
19679
  abi: L.abi,
19678
19680
  address: L.address,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lombard.finance/sdk",
3
- "version": "3.6.5",
3
+ "version": "3.6.6",
4
4
  "dependencies": {
5
5
  "@lombard.finance/sdk-common": "^3.0.0",
6
6
  "viem": "^2.23.15",
@@ -39,10 +39,7 @@
39
39
  "./clients/*": "./src/clients/*.ts",
40
40
  "./utils/*": "./src/utils/*.ts"
41
41
  },
42
- "files": [
43
- "dist",
44
- "src"
45
- ],
42
+ "files": ["dist", "src"],
46
43
  "license": "MIT",
47
44
  "peerDependencies": {
48
45
  "@layerzerolabs/lz-v2-utilities": "3.0.17",
@@ -62,4 +59,4 @@
62
59
  },
63
60
  "type": "module",
64
61
  "types": "./src/index.ts"
65
- }
62
+ }
@@ -10,6 +10,7 @@ import {
10
10
  import { IDeposit } from '../../api-functions/getDepositsByAddress/getDepositsByAddress';
11
11
  import { makePublicClient } from '../../clients/public-client';
12
12
  import { makeWalletClient } from '../../clients/wallet-client';
13
+ import { ChainId } from '../../common/chains';
13
14
  import { CommonOptionalWriteParameters } from '../../common/parameters';
14
15
  import LBTC_BASCULE_ABI from '../../tokens/abi/LBTC_BASCULE_ABI.json';
15
16
  import { Token } from '../../tokens/token-addresses';
@@ -80,6 +81,14 @@ export async function getBasculeDepositStatus({
80
81
  );
81
82
  }
82
83
 
84
+ // Skip Bascule validation for Katana networks
85
+ if (
86
+ token === Token.LBTC &&
87
+ (chainId === ChainId.katana || chainId === ChainId.katanaTatara)
88
+ ) {
89
+ return BasculeDepositStatus.REPORTED;
90
+ }
91
+
83
92
  const publicClient = makePublicClient({ chainId, rpcUrl, env });
84
93
  const tokenContractInfo = await getTokenContractInfo(token, chainId, env);
85
94