@dynamic-labs/types 4.14.0 → 4.16.0

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,35 @@
1
1
 
2
+ ## [4.16.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.15.0...v4.16.0) (2025-05-03)
3
+
4
+
5
+ ### Features
6
+
7
+ * (GVTY-3020) add send balance to waas sui connector ([#8638](https://github.com/dynamic-labs/dynamic-auth/issues/8638)) ([97f0af0](https://github.com/dynamic-labs/dynamic-auth/commit/97f0af0504a0079ebf0958fde1f8edc34c035927))
8
+ * add isAtomicSupported and isPaymasterServiceSupported methods to EthereumWallet ([#8627](https://github.com/dynamic-labs/dynamic-auth/issues/8627)) ([df82b9e](https://github.com/dynamic-labs/dynamic-auth/commit/df82b9e86eafea9dd6c505227722450bc56d7c57))
9
+ * add solana mpc to global wallets ([#8605](https://github.com/dynamic-labs/dynamic-auth/issues/8605)) ([6261bf9](https://github.com/dynamic-labs/dynamic-auth/commit/6261bf9bec45b1d1afa13869cf5d10cda215783e))
10
+
11
+ ## [4.15.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.14.0...v4.15.0) (2025-04-30)
12
+
13
+
14
+ ### Features
15
+
16
+ * add end session override for waas sui connector ([#8602](https://github.com/dynamic-labs/dynamic-auth/issues/8602)) ([6c9e6fd](https://github.com/dynamic-labs/dynamic-auth/commit/6c9e6fda4581a4e3b9e1544f22d6e5f03723d928))
17
+ * add presets and demo fixes ([#8609](https://github.com/dynamic-labs/dynamic-auth/issues/8609)) ([2201914](https://github.com/dynamic-labs/dynamic-auth/commit/2201914d2029ff0b67dfc2c6e696f728f32f57b3))
18
+ * add ShareConfig component with modal and styling ([74aff97](https://github.com/dynamic-labs/dynamic-auth/commit/74aff97689c9e7c9abc892c1deac4d748b498909))
19
+ * add wallet actions section and update UI components ([#8598](https://github.com/dynamic-labs/dynamic-auth/issues/8598)) ([d6170b7](https://github.com/dynamic-labs/dynamic-auth/commit/d6170b7f6abd963e6a081541e2c674b7141f1c15))
20
+ * dynamic waas to sign 7702 authorization ([#8603](https://github.com/dynamic-labs/dynamic-auth/issues/8603)) ([74e1722](https://github.com/dynamic-labs/dynamic-auth/commit/74e1722f417aab621f4062093e109dc45cf542ea))
21
+ * add signMessage feature to global wallet client ([#8563](https://github.com/dynamic-labs/dynamic-auth/issues/8563)) ([c3f9734](https://github.com/dynamic-labs/dynamic-auth/commit/c3f9734c097f5c9b88c35e0f642632f261e40fe7))
22
+ * allow displaying custom links in the global wallet profile dropdown menu ([#8617](https://github.com/dynamic-labs/dynamic-auth/issues/8617)) ([5fb956c](https://github.com/dynamic-labs/dynamic-auth/commit/5fb956c0c2b681fece56104b330a0e90fc8fb936))
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * add default base api url for dynamic waas config on connector initialization ([#8604](https://github.com/dynamic-labs/dynamic-auth/issues/8604)) ([6218a7e](https://github.com/dynamic-labs/dynamic-auth/commit/6218a7edda4feb9028be548acfe8eff64578f0a0))
28
+ * enables caching for sprite.svg ([#8610](https://github.com/dynamic-labs/dynamic-auth/issues/8610)) ([decdb69](https://github.com/dynamic-labs/dynamic-auth/commit/decdb69b4df8bc2d97ee579fa423e9682ab1720b))
29
+ * change mobile experience to redirect ([#8003](https://github.com/dynamic-labs/dynamic-auth/issues/8003)) ([2e8a1d8](https://github.com/dynamic-labs/dynamic-auth/commit/2e8a1d8b54f54386e1abc9f4e6e5e9acf859e5fa))
30
+ * optimize wallet finder when performing eth and sol operations in global wallet popup ([#8564](https://github.com/dynamic-labs/dynamic-auth/issues/8564)) ([2eaf424](https://github.com/dynamic-labs/dynamic-auth/commit/2eaf4244d4aa1b1cc5c6e32574db10ab34f8ed80))
31
+ * loading state for v3 connect-only embedded wallet generation ([#8600](https://github.com/dynamic-labs/dynamic-auth/issues/8600)) ([af34d16](https://github.com/dynamic-labs/dynamic-auth/commit/af34d168a765aa82867116541e73c59672ab2341))
32
+
2
33
  ## [4.14.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.13.0...v4.14.0) (2025-04-25)
3
34
 
4
35
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.14.0";
6
+ var version = "4.16.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.14.0";
2
+ var version = "4.16.0";
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.14.0",
3
+ "version": "4.16.0",
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.658",
22
- "@dynamic-labs/assert-package-version": "4.14.0"
21
+ "@dynamic-labs/sdk-api-core": "0.0.660",
22
+ "@dynamic-labs/assert-package-version": "4.16.0"
23
23
  },
24
24
  "peerDependencies": {}
25
25
  }
@@ -13,7 +13,6 @@ export type ConnectEncryptedData = {
13
13
  } | null;
14
14
  };
15
15
  export type ConnectPopupActionArgs = {
16
- chain: 'evm' | 'solana';
17
16
  receiver_public_key: string;
18
17
  };
19
18
  export type ConnectPopupActionResponse = {
@@ -3,29 +3,124 @@
3
3
  * for sending transaction with dynamic's UI
4
4
  */
5
5
  export interface IUITransaction {
6
+ /**
7
+ * The address of the recipient.
8
+ *
9
+ * This can start out as undefined because it will be set by the user from the UI.
10
+ */
6
11
  to: string | undefined;
12
+ /**
13
+ * The address of the sender.
14
+ *
15
+ * This field normally needs to be automatically set from the wallet connector implementing
16
+ * [createUiTransaction].
17
+ */
7
18
  from: string;
19
+ /**
20
+ * The value of the transaction in atomic units (MIST for SUI, Lamports for SOL, etc.)
21
+ *
22
+ * This can start out as undefined because it will be set by the user from the UI.
23
+ */
8
24
  value: bigint | undefined;
25
+ /**
26
+ * The value of the transaction in non-native atomic units.
27
+ *
28
+ * [parseNonNativeToken] will determine how many decimals this is.
29
+ */
9
30
  nonNativeValue?: bigint;
31
+ /**
32
+ * The address of the recipient that won't be validated by [validateAddressFormat].
33
+ */
10
34
  nonNativeAddress?: string;
35
+ /**
36
+ * The number of decimals for the non-native token.
37
+ */
11
38
  nonNativeDecimal?: number;
39
+ /**
40
+ * The chain of the transaction, e.g. "ETH", "SOL", "SUI", etc.
41
+ */
12
42
  chain: string;
43
+ /**
44
+ * The data of the transaction.
45
+ *
46
+ * New implementations of [createUiTransaction] can start with this undefined.
47
+ */
13
48
  data: string | undefined;
49
+ /**
50
+ * The native price of the transaction, fetched programmatically.
51
+ *
52
+ * This should start out as undefined because it will typically be set from the UI.
53
+ */
14
54
  nativePrice?: number;
55
+ /**
56
+ * Multiple transactions to be executed in the same call.
57
+ *
58
+ * Check out [SolanaUiTransactions] for an example of how to implement this.
59
+ */
15
60
  multipleTransactions?: any[];
61
+ /**
62
+ * The fee of the transaction in atomic units.
63
+ *
64
+ * This should start out as undefined and then be set by [fetchFee]. It will be
65
+ * rendered in the UI as the "Network Fee" field.
66
+ */
16
67
  fee: {
17
68
  gas: bigint | undefined;
18
69
  };
70
+ /**
71
+ * Parses the input string from the UI into a value in atomic units.
72
+ */
19
73
  parse: (input: string) => bigint;
74
+ /**
75
+ * Parses the input string from the UI into a value in atomic units for non-native tokens.
76
+ */
20
77
  parseNonNativeToken?: (input: string, decimals: number) => bigint;
78
+ /**
79
+ * Formats the value into a string for the UI.
80
+ */
21
81
  format: (value: bigint, options?: IUITransactionFormatOptions) => string;
82
+ /**
83
+ * Formats the value into a string for the UI for non-native tokens.
84
+ */
22
85
  formatNonNativeToken?: (value: bigint, decimals: number) => string;
86
+ /**
87
+ * The receipt of the transaction.
88
+ *
89
+ * @deprecated This is currently not used anywhere.
90
+ */
23
91
  receipt: string | undefined;
92
+ /**
93
+ * Creates and runs the transaction.
94
+ *
95
+ * Currently, we implement this by generating a transaction and calling an onSubmit
96
+ * callback passed in the constructor.
97
+ */
24
98
  submit: () => Promise<any>;
99
+ /**
100
+ * Fetches the balance of the sender in atomic units.
101
+ *
102
+ * This value is shown under the "Enter amount" field.
103
+ */
25
104
  getBalance: () => Promise<bigint>;
105
+ /**
106
+ * Fetches the fee for the transaction.
107
+ *
108
+ * This function should set fee.gas
109
+ */
26
110
  fetchFee: () => Promise<void>;
111
+ /**
112
+ * Additional helper to determine the recipient if it's not just the "to" field.
113
+ *
114
+ * Currently only used in [ViemUiTransaction].
115
+ */
27
116
  getTransactionRecipient?: () => string | undefined;
117
+ /**
118
+ * Validates the address format.
119
+ */
28
120
  validateAddressFormat: (address: string) => boolean;
121
+ /**
122
+ * Whether the transaction is gas sponsored.
123
+ */
29
124
  isGasSponsored?: () => boolean;
30
125
  }
31
126
  export interface IUITransactionFormatOptions {