@atomiqlabs/chain-starknet 8.4.1 → 8.4.3

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.
@@ -8,7 +8,7 @@ import { StarknetChainType } from "./StarknetChainType";
8
8
  *
9
9
  * @category Chain Interface
10
10
  */
11
- export type StarknetAssetsType = BaseTokenType<"ETH" | "STRK" | "WBTC" | "TBTC" | "USDC" | "USDT" | "_TESTNET_WBTC_VESU">;
11
+ export type StarknetAssetsType = BaseTokenType<"ETH" | "STRK" | "WBTC" | "TBTC" | "USDC" | "USDT" | "strkBTC" | "_TESTNET_WBTC_VESU" | "_TESTNET_strkBTC">;
12
12
  /**
13
13
  * Configuration options for initializing Starknet chain
14
14
  *
@@ -47,10 +47,18 @@ const StarknetAssets = {
47
47
  address: "0x068f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8",
48
48
  decimals: 6
49
49
  },
50
+ strkBTC: {
51
+ address: "0x0787150e306e6eae6e3f79dea881770e8bbff2c1b8eb490f969669ee945b3135",
52
+ decimals: 8
53
+ },
50
54
  _TESTNET_WBTC_VESU: {
51
55
  address: "0x04861ba938aed21f2cd7740acd3765ac4d2974783a3218367233de0153490cb6",
52
56
  decimals: 8
53
- }
57
+ },
58
+ _TESTNET_strkBTC: {
59
+ address: "0x018a6bbc4b0c05135af4a1ff8251687d689b64609bbd79b7cb044f410e0a8ab2",
60
+ decimals: 8
61
+ },
54
62
  };
55
63
  /**
56
64
  * Initialize Starknet chain integration
@@ -656,7 +656,7 @@ class StarknetSpvVaultContract extends StarknetContractBase_1.StarknetContractBa
656
656
  exports.StarknetSpvVaultContract = StarknetSpvVaultContract;
657
657
  StarknetSpvVaultContract.GasCosts = {
658
658
  DEPOSIT: { l1DataGas: 400, l2Gas: 4000000, l1Gas: 0 },
659
- OPEN: { l1DataGas: 1200, l2Gas: 3200000, l1Gas: 0 },
659
+ OPEN: { l1DataGas: 1200, l2Gas: 8000000, l1Gas: 0 },
660
660
  FRONT: { l1DataGas: 800, l2Gas: 12000000, l1Gas: 0 },
661
661
  CLAIM: { l1DataGas: 1000, l2Gas: 400000000, l1Gas: 0 },
662
662
  CLAIM_OPTIMISTIC_ESTIMATE: { l1DataGas: 1000, l2Gas: 80000000, l1Gas: 0 } //If claimer uses sierra 1.7.0 or later
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-starknet",
3
- "version": "8.4.1",
3
+ "version": "8.4.3",
4
4
  "description": "Starknet specific base implementation",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,7 +18,7 @@ import {WebSocketChannelWithRetries} from "./provider/WebSocketChannelWithRetrie
18
18
  *
19
19
  * @category Chain Interface
20
20
  */
21
- export type StarknetAssetsType = BaseTokenType<"ETH" | "STRK" | "WBTC" | "TBTC" | "USDC" | "USDT" | "_TESTNET_WBTC_VESU">;
21
+ export type StarknetAssetsType = BaseTokenType<"ETH" | "STRK" | "WBTC" | "TBTC" | "USDC" | "USDT" | "strkBTC" | "_TESTNET_WBTC_VESU" | "_TESTNET_strkBTC">;
22
22
 
23
23
  /**
24
24
  * Default Starknet token assets configuration
@@ -53,10 +53,18 @@ const StarknetAssets: StarknetAssetsType = {
53
53
  address: "0x068f5c6a61780768455de69077e07e89787839bf8166decfbf92b645209c0fb8",
54
54
  decimals: 6
55
55
  },
56
+ strkBTC: {
57
+ address: "0x0787150e306e6eae6e3f79dea881770e8bbff2c1b8eb490f969669ee945b3135",
58
+ decimals: 8
59
+ },
56
60
  _TESTNET_WBTC_VESU: {
57
61
  address: "0x04861ba938aed21f2cd7740acd3765ac4d2974783a3218367233de0153490cb6",
58
62
  decimals: 8
59
- }
63
+ },
64
+ _TESTNET_strkBTC: {
65
+ address: "0x018a6bbc4b0c05135af4a1ff8251687d689b64609bbd79b7cb044f410e0a8ab2",
66
+ decimals: 8
67
+ },
60
68
  } as const;
61
69
 
62
70
  /**
@@ -63,7 +63,7 @@ export class StarknetSpvVaultContract
63
63
  {
64
64
  private static readonly GasCosts = {
65
65
  DEPOSIT: {l1DataGas: 400, l2Gas: 4_000_000, l1Gas: 0},
66
- OPEN: {l1DataGas: 1200, l2Gas: 3_200_000, l1Gas: 0},
66
+ OPEN: {l1DataGas: 1200, l2Gas: 8_000_000, l1Gas: 0},
67
67
  FRONT: {l1DataGas: 800, l2Gas: 12_000_000, l1Gas: 0},
68
68
  CLAIM: {l1DataGas: 1000, l2Gas: 400_000_000, l1Gas: 0},
69
69
  CLAIM_OPTIMISTIC_ESTIMATE: {l1DataGas: 1000, l2Gas: 80_000_000, l1Gas: 0} //If claimer uses sierra 1.7.0 or later