@matterlabs/zksync-js 0.0.24 → 0.0.25

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.
@@ -1,8 +1,12 @@
1
1
  import type { Address } from '../../types/primitives';
2
2
  import type { GasEstimator, CoreTransactionRequest } from '../../adapters/interfaces';
3
- import type { TxOverrides } from '../../types/fees';
3
+ import type { TxGasOverrides, TxOverrides } from '../../types/fees';
4
4
  import type { DepositRoute } from '../../types/flows/deposits';
5
5
  export type AbiEncoder = (abi: unknown, functionName: string, args: unknown[]) => string;
6
+ export type L1Fees = {
7
+ maxFeePerGas: bigint;
8
+ maxPriorityFeePerGas: bigint;
9
+ };
6
10
  export type GasQuote = {
7
11
  gasLimit: bigint;
8
12
  maxFeePerGas: bigint;
@@ -17,6 +21,11 @@ export declare function resolveCreateDepositL1GasLimit(input: {
17
21
  preparedGasLimit?: bigint;
18
22
  estimatedGasLimit?: bigint;
19
23
  }): bigint | undefined;
24
+ export type QuoteL1FeesInput = {
25
+ estimator: GasEstimator;
26
+ overrides?: TxGasOverrides;
27
+ };
28
+ export declare function quoteL1Fees(input: QuoteL1FeesInput): Promise<L1Fees>;
20
29
  export type QuoteL1GasInput = {
21
30
  estimator: GasEstimator;
22
31
  tx: CoreTransactionRequest;
@@ -41,5 +50,6 @@ export type QuoteL2BaseCostInput = {
41
50
  chainIdL2: bigint;
42
51
  l2GasLimit: bigint;
43
52
  gasPerPubdata: bigint;
53
+ l1GasPrice: bigint;
44
54
  };
45
55
  export declare function quoteL2BaseCost(input: QuoteL2BaseCostInput): Promise<bigint>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matterlabs/zksync-js",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "devDependencies": {