@dynamic-labs/types 4.0.0-alpha.26 → 4.0.0-alpha.28

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/CHANGELOG.md CHANGED
@@ -1,4 +1,37 @@
1
1
 
2
+ ## [4.0.0-alpha.28](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.27...v4.0.0-alpha.28) (2024-11-07)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * upgrade to starknet v6
8
+ See this guide for more details: https://starknetjs.com/docs/guides/migrate/
9
+ There are no code changes required on the Dynamic SDK side, however if you have installed the `starknet` package, you will need to upgrade to >= v6.11.0.
10
+
11
+ ### Features
12
+
13
+ * new transaction modal and ui for sign/signAll ([#7296](https://github.com/dynamic-labs/dynamic-auth/issues/7296)) ([05a8af1](https://github.com/dynamic-labs/dynamic-auth/commit/05a8af1eb772b2b8087ed96a54caf4b6ae8b79d2)), closes [#7297](https://github.com/dynamic-labs/dynamic-auth/issues/7297) [#7298](https://github.com/dynamic-labs/dynamic-auth/issues/7298)
14
+ * upgrade to starknet v6 ([#7189](https://github.com/dynamic-labs/dynamic-auth/issues/7189)) ([2a6e24e](https://github.com/dynamic-labs/dynamic-auth/commit/2a6e24e4178fcee671b381c28f6a681f4ce52c62))
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * transaction confirmation modal popup ([#7368](https://github.com/dynamic-labs/dynamic-auth/issues/7368)) ([3c48658](https://github.com/dynamic-labs/dynamic-auth/commit/3c48658a62874d908bba8f06fb092ff5983ede16))
20
+
21
+ ## [4.0.0-alpha.27](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.26...v4.0.0-alpha.27) (2024-11-06)
22
+
23
+
24
+ ### Features
25
+
26
+ * allows adding connection configuration for solana connectors ([#7354](https://github.com/dynamic-labs/dynamic-auth/issues/7354)) ([01e35ee](https://github.com/dynamic-labs/dynamic-auth/commit/01e35ee5bfe4605df48e4188a753111efe483048))
27
+ * allows passing solana connection config to dynamic client ([#7357](https://github.com/dynamic-labs/dynamic-auth/issues/7357)) ([6da14ce](https://github.com/dynamic-labs/dynamic-auth/commit/6da14ceb481147aea31d192fe268be43a8af80e9))
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * check legacy vs eip1599 tx in global connectivity ([#7341](https://github.com/dynamic-labs/dynamic-auth/issues/7341)) ([b223ea7](https://github.com/dynamic-labs/dynamic-auth/commit/b223ea7a5ed5637e11da1040c631c48bc23ba76d))
33
+ * global connectivity multiple transactions in a row ([#7342](https://github.com/dynamic-labs/dynamic-auth/issues/7342)) ([d13c1af](https://github.com/dynamic-labs/dynamic-auth/commit/d13c1afec6b3680961621d8317f55549b3ed428f))
34
+
2
35
  ## [4.0.0-alpha.26](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.25...v4.0.0-alpha.26) (2024-11-04)
3
36
 
4
37
  ## [4.0.0-alpha.25](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.24...v4.0.0-alpha.25) (2024-11-01)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.0.0-alpha.26";
6
+ var version = "4.0.0-alpha.28";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.0.0-alpha.26";
2
+ var version = "4.0.0-alpha.28";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/types",
3
- "version": "4.0.0-alpha.26",
3
+ "version": "4.0.0-alpha.28",
4
4
  "description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@dynamic-labs/sdk-api-core": "0.0.559",
22
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.26"
22
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.28"
23
23
  },
24
24
  "peerDependencies": {}
25
25
  }
@@ -12,6 +12,8 @@ export interface IUITransaction {
12
12
  chain: string;
13
13
  data: string | undefined;
14
14
  nativePrice?: number;
15
+ multipleTransactions?: any[];
16
+ simulationFailed?: boolean;
15
17
  fee: {
16
18
  gas: bigint | undefined;
17
19
  };
@@ -20,10 +22,11 @@ export interface IUITransaction {
20
22
  format: (value: bigint, options?: IUITransactionFormatOptions) => string;
21
23
  formatNonNativeToken?: (value: bigint, decimals: number) => string;
22
24
  receipt: string | undefined;
23
- submit: () => Promise<string>;
25
+ submit: () => Promise<any>;
24
26
  getBalance: () => Promise<bigint>;
25
27
  fetchFee: () => Promise<void>;
26
28
  validateAddressFormat: (address: string) => boolean;
29
+ isGasSponsored?: () => boolean;
27
30
  }
28
31
  export interface IUITransactionFormatOptions {
29
32
  precision?: number;
@@ -2,6 +2,7 @@ import { GenericNetwork } from '../networks';
2
2
  import { IUITransaction } from '../transaction';
3
3
  export type WalletUiUtils<TWalletConnector> = {
4
4
  disabledConfirmationOnce: () => void;
5
+ signTransaction: (walletConnector: TWalletConnector, transaction: IUITransaction) => Promise<any>;
5
6
  sendTransaction: (walletConnector: TWalletConnector, transaction: IUITransaction) => Promise<string>;
6
7
  signMessage: (props: {
7
8
  walletConnector?: TWalletConnector;