dsa-connect 0.6.30 → 0.6.31-dev.1

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.
@@ -13,6 +13,8 @@ export interface GetTransactionConfigParams {
13
13
  gas?: TransactionConfig['gas'];
14
14
  gasPrice?: TransactionConfig['gasPrice'];
15
15
  nonce?: TransactionConfig['nonce'];
16
+ maxPriorityFeePerGas?: TransactionConfig['maxPriorityFeePerGas'];
17
+ maxFeePerGas?: TransactionConfig['maxFeePerGas'];
16
18
  }
17
19
  export declare type Version = keyof typeof Abi.connectors.versions;
18
20
  export { Connector } from './abi/connectors';
@@ -37,6 +39,8 @@ export declare class Internal {
37
39
  * @param params.gas (optional)
38
40
  * @param params.gasPrice (optional only for "browser" mode)
39
41
  * @param params.nonce (optional) mostly for "node" mode
42
+ * @param params.maxFeePerGas (optional only for "browser" mode)
43
+ * @param params.maxPriorityFeePerGas (optional only for "browser" mode)
40
44
  */
41
45
  getTransactionConfig: (params: GetTransactionConfigParams) => Promise<TransactionConfig>;
42
46
  private getNonce;
@@ -13,7 +13,7 @@ import { TransactionConfig } from 'web3-core';
13
13
  declare type Erc20InputParams = {
14
14
  token: keyof typeof TokenInfo | string;
15
15
  amount: string;
16
- } & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'nonce' | 'to'>;
16
+ } & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce' | 'to'>;
17
17
  /**
18
18
  * generic ERC20 token methods
19
19
  */
@@ -13,7 +13,7 @@ import { TransactionConfig } from 'web3-core';
13
13
  declare type Erc20EulerInputParams = {
14
14
  token: keyof typeof TokenInfo | string;
15
15
  amount: string;
16
- } & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'nonce' | 'to'>;
16
+ } & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce' | 'to'>;
17
17
  /**
18
18
  * @param {number|string} _d. subaccount id (0 for primary and 1 - 255 for sub-account)
19
19
  * @param {address} _d.token token address or symbol
@@ -28,7 +28,7 @@ declare type Erc20EulerApproveSubAccountInputParams = {
28
28
  subAccountId: number | string;
29
29
  token: keyof typeof TokenInfo | string;
30
30
  amount: string;
31
- } & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'nonce' | 'to'>;
31
+ } & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce' | 'to'>;
32
32
  /**
33
33
  * generic ERC20 token methods
34
34
  */
@@ -13,7 +13,7 @@ import { TransactionConfig } from 'web3-core';
13
13
  declare type Erc721InputParams = {
14
14
  token: keyof typeof TokenInfo | string;
15
15
  tokenId: number;
16
- } & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'nonce' | 'to'>;
16
+ } & Pick<TransactionConfig, 'from' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce' | 'to'>;
17
17
  /**
18
18
  * generic ERC20 token methods
19
19
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsa-connect",
3
- "version": "0.6.30",
3
+ "version": "0.6.31-dev.1",
4
4
  "description": "DSA connect",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -79,7 +79,7 @@
79
79
  "tslib": "^2.0.1",
80
80
  "typescript": "^4.7.4",
81
81
  "wait-for-expect": "^3.0.2",
82
- "web3": "^1.2.6",
82
+ "web3": "^1.8.0",
83
83
  "webpack": "^4.42.1",
84
84
  "webpack-cli": "^3.3.11",
85
85
  "webpack-dev-server": "^3.11.0"