@dynamic-labs/types 4.0.0-alpha.27 → 4.0.0-alpha.29

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,25 @@
1
1
 
2
+ ## [4.0.0-alpha.29](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.28...v4.0.0-alpha.29) (2024-11-07)
3
+
4
+ ## [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)
5
+
6
+
7
+ ### ⚠ BREAKING CHANGES
8
+
9
+ * upgrade to starknet v6
10
+ See this guide for more details: https://starknetjs.com/docs/guides/migrate/
11
+ 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.
12
+
13
+ ### Features
14
+
15
+ * 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)
16
+ * upgrade to starknet v6 ([#7189](https://github.com/dynamic-labs/dynamic-auth/issues/7189)) ([2a6e24e](https://github.com/dynamic-labs/dynamic-auth/commit/2a6e24e4178fcee671b381c28f6a681f4ce52c62))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * transaction confirmation modal popup ([#7368](https://github.com/dynamic-labs/dynamic-auth/issues/7368)) ([3c48658](https://github.com/dynamic-labs/dynamic-auth/commit/3c48658a62874d908bba8f06fb092ff5983ede16))
22
+
2
23
  ## [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)
3
24
 
4
25
 
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.27";
6
+ var version = "4.0.0-alpha.29";
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.27";
2
+ var version = "4.0.0-alpha.29";
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.27",
3
+ "version": "4.0.0-alpha.29",
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",
@@ -18,8 +18,8 @@
18
18
  "./package.json": "./package.json"
19
19
  },
20
20
  "dependencies": {
21
- "@dynamic-labs/sdk-api-core": "0.0.559",
22
- "@dynamic-labs/assert-package-version": "4.0.0-alpha.27"
21
+ "@dynamic-labs/sdk-api-core": "0.0.563",
22
+ "@dynamic-labs/assert-package-version": "4.0.0-alpha.29"
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;