@lombard.finance/sdk 3.6.4 → 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
@@ -13988,6 +13988,7 @@ const Ib = {
13988
13988
  [X.berachain]: "0xecAc9C5F704e954931349Da37F60E39f515c11c1",
13989
13989
  [X.binanceSmartChain]: "0xecAc9C5F704e954931349Da37F60E39f515c11c1",
13990
13990
  [X.corn]: "0xecAc9C5F704e954931349Da37F60E39f515c11c1",
13991
+ [X.etherlink]: "0xecAc9C5F704e954931349Da37F60E39f515c11c1",
13991
13992
  [X.katana]: "0xecAc9C5F704e954931349Da37F60E39f515c11c1",
13992
13993
  [X.morph]: "0xecAc9C5F704e954931349Da37F60E39f515c11c1",
13993
13994
  [X.sonic]: "0xecAc9C5F704e954931349Da37F60E39f515c11c1",
@@ -19672,6 +19673,8 @@ async function Qb({
19672
19673
  throw new Error(
19673
19674
  "No 'rawPayload' or 'deposit' data provided. Please provide 'rawPayload' or 'deposit' parameter."
19674
19675
  );
19676
+ if (P === z0.LBTC && (v === X.katana || v === X.katanaTatara))
19677
+ return 1;
19675
19678
  const N = ke({ chainId: v, rpcUrl: t, env: d }), L = await rt(P, v, d), z = await N.readContract({
19676
19679
  abi: L.abi,
19677
19680
  address: L.address,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lombard.finance/sdk",
3
- "version": "3.6.4",
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
 
@@ -39,6 +39,7 @@ export const TOKEN_ADDRESSES: TokenAddresses = {
39
39
  [ChainId.berachain]: '0xecAc9C5F704e954931349Da37F60E39f515c11c1',
40
40
  [ChainId.binanceSmartChain]: '0xecAc9C5F704e954931349Da37F60E39f515c11c1',
41
41
  [ChainId.corn]: '0xecAc9C5F704e954931349Da37F60E39f515c11c1',
42
+ [ChainId.etherlink]: '0xecAc9C5F704e954931349Da37F60E39f515c11c1',
42
43
  [ChainId.katana]: '0xecAc9C5F704e954931349Da37F60E39f515c11c1',
43
44
  [ChainId.morph]: '0xecAc9C5F704e954931349Da37F60E39f515c11c1',
44
45
  [ChainId.sonic]: '0xecAc9C5F704e954931349Da37F60E39f515c11c1',