@dynamic-labs/types 2.0.0-alpha.2 → 2.0.0-alpha.4

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,39 @@
1
1
 
2
+ ## [2.0.0-alpha.4](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.3...v2.0.0-alpha.4) (2024-02-22)
3
+
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * remove wallet connector from callback types (#4730)
8
+ * drop support for walletconnect v1 (#4666)
9
+
10
+ ### Features
11
+
12
+ * add coin98 evm ([1d64f5f](https://github.com/dynamic-labs/DynamicAuth/commit/1d64f5f00885ff671358651fd0251b77a2e05739))
13
+ * add support for solana versioned transactions ([#4721](https://github.com/dynamic-labs/DynamicAuth/issues/4721)) ([25b1643](https://github.com/dynamic-labs/DynamicAuth/commit/25b1643f8addbada09fff5d22e988bdf22038170))
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * allow rpc-providers package to use exports based on usage ([#4539](https://github.com/dynamic-labs/DynamicAuth/issues/4539)) ([abdc196](https://github.com/dynamic-labs/DynamicAuth/commit/abdc19641580cbcfe8f9e357c645f8291bc9ed66))
19
+ * coinbasesocial should display coinbase in profile linking section ([#4680](https://github.com/dynamic-labs/DynamicAuth/issues/4680)) ([21cbe2e](https://github.com/dynamic-labs/DynamicAuth/commit/21cbe2e24345a33bc927428c01cc7b5c724e40e5))
20
+ * improve on transaction confirmation step ([#4704](https://github.com/dynamic-labs/DynamicAuth/issues/4704)) ([f2b27cf](https://github.com/dynamic-labs/DynamicAuth/commit/f2b27cfd94452be2eb7e88a298f61ef56985931f))
21
+ * prevent the DynamicMultiWalletPromptsWidget from opening if useris not logged in ([#4701](https://github.com/dynamic-labs/DynamicAuth/issues/4701)) ([2bb35fd](https://github.com/dynamic-labs/DynamicAuth/commit/2bb35fd29b60677e893390f7d47857cd76c73adc))
22
+ * reduce isPreauthorized calls when starknet wallet is connected ([#4710](https://github.com/dynamic-labs/DynamicAuth/issues/4710)) ([ca6a630](https://github.com/dynamic-labs/DynamicAuth/commit/ca6a630dd47a1c116afcd63fe7256ffc745532ab))
23
+ * update sepolia currency symbol ([#4728](https://github.com/dynamic-labs/DynamicAuth/issues/4728)) ([3c228a0](https://github.com/dynamic-labs/DynamicAuth/commit/3c228a03ccc962374ad1dac3ab45af92732ba61a))
24
+ * use overflow clip when available, use hidden by default ([#4696](https://github.com/dynamic-labs/DynamicAuth/issues/4696)) ([29fb2a1](https://github.com/dynamic-labs/DynamicAuth/commit/29fb2a1e48b010c6c1d525403fbdcf7ded068466))
25
+
26
+
27
+ * drop support for walletconnect v1 ([#4666](https://github.com/dynamic-labs/DynamicAuth/issues/4666)) ([4af93e4](https://github.com/dynamic-labs/DynamicAuth/commit/4af93e4f9b95fa4c49bbfda0c1144da1a4a43991))
28
+ * remove wallet connector from callback types ([#4730](https://github.com/dynamic-labs/DynamicAuth/issues/4730)) ([08cb200](https://github.com/dynamic-labs/DynamicAuth/commit/08cb200a09c0fd78d2093d1a60b17089b3b2c2b1))
29
+
30
+ ## [2.0.0-alpha.3](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.2...v2.0.0-alpha.3) (2024-02-13)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * allow any icon to be used in wallet list tabs ([#4678](https://github.com/dynamic-labs/DynamicAuth/issues/4678)) ([eb03603](https://github.com/dynamic-labs/DynamicAuth/commit/eb036031725a91cb28c144b3bdcb5b20b3314038))
36
+
2
37
  ## [2.0.0-alpha.2](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.1...v2.0.0-alpha.2) (2024-02-13)
3
38
 
4
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/types",
3
- "version": "2.0.0-alpha.2",
3
+ "version": "2.0.0-alpha.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,7 +26,7 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api": "0.0.363"
29
+ "@dynamic-labs/sdk-api": "0.0.373"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "viem": "^1.19.13 || ^2.2.0"
package/src/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export { ProviderEnum } from '@dynamic-labs/sdk-api';
2
2
  export * from './networks';
3
3
  export * from './viem';
4
4
  export * from './oauth';
5
+ export * from './transaction';
@@ -0,0 +1 @@
1
+ export type { IUITransaction } from './transaction';
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Generic type for a transaction to navigate through the different chains
3
+ * for sending tranasactions with dynamic's UI
4
+ */
5
+ export interface IUITransaction {
6
+ from: string;
7
+ to: string;
8
+ value: bigint | `0x${string}` | undefined;
9
+ gasPrice?: bigint;
10
+ maxFeePerGas?: bigint | `0x${string}`;
11
+ gasLimit?: bigint | `0x${string}`;
12
+ type?: 'legacy' | 'eip2930' | 'eip1559';
13
+ nonce?: number;
14
+ }
@@ -1,10 +1,10 @@
1
- import { TransactionRequest, PublicClient, Address } from 'viem';
2
- export type WalletUiUtils<TConnector> = {
1
+ import { PublicClient, Address } from 'viem';
2
+ import { IUITransaction } from '../transaction';
3
+ export type WalletUiUtils = {
3
4
  disabledConfirmationOnce: () => void;
4
5
  sendTransaction: (props: {
5
- connector: TConnector;
6
- handler: (transaction: TransactionRequest) => Promise<Address>;
7
- transaction: TransactionRequest;
6
+ handler: (transaction: IUITransaction) => Promise<Address>;
7
+ transaction: IUITransaction;
8
8
  provider: PublicClient;
9
9
  }) => Promise<Address>;
10
10
  signMessage: (props: {