@getpara/aa-thirdweb 3.20.0 → 3.21.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/dist/action.d.ts +1 -1
- package/dist/action.js +3 -4
- package/package.json +11 -8
package/dist/action.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Account } from 'thirdweb/wallets';
|
|
2
2
|
import type { SmartAccount4337, SmartAccount7702 } from '@getpara/viem-v2-integration/aa';
|
|
3
3
|
import type { CreateThirdwebSmartAccountParams } from './types.js';
|
|
4
4
|
export type { CreateThirdwebSmartAccountParams } from './types.js';
|
package/dist/action.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createThirdwebClient } from "thirdweb";
|
|
2
2
|
import { defineChain } from "thirdweb/chains";
|
|
3
|
-
import { smartWallet } from "thirdweb/wallets";
|
|
4
|
-
import { create7702MinimalAccount } from "thirdweb/wallets/smart";
|
|
3
|
+
import { create7702MinimalAccount, smartWallet } from "thirdweb/wallets/smart";
|
|
5
4
|
import {
|
|
6
5
|
wrapProviderError,
|
|
7
6
|
ensureExternalWalletChain,
|
|
@@ -93,7 +92,7 @@ async function createThirdwebSmartAccount(params) {
|
|
|
93
92
|
chainId: thirdwebOptions?.chainId || chain?.id,
|
|
94
93
|
...thirdwebOptions?.gas && { gas: thirdwebOptions.gas }
|
|
95
94
|
});
|
|
96
|
-
return publicClient.
|
|
95
|
+
return await publicClient.waitForTransactionReceipt({ hash: result.transactionHash });
|
|
97
96
|
} catch (error) {
|
|
98
97
|
throw wrapProviderError(error, "THIRDWEB");
|
|
99
98
|
}
|
|
@@ -117,7 +116,7 @@ async function createThirdwebSmartAccount(params) {
|
|
|
117
116
|
chainId: txChainId
|
|
118
117
|
}))
|
|
119
118
|
);
|
|
120
|
-
return publicClient.
|
|
119
|
+
return await publicClient.waitForTransactionReceipt({ hash: result.transactionHash });
|
|
121
120
|
} catch (error) {
|
|
122
121
|
throw wrapProviderError(error, "THIRDWEB");
|
|
123
122
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/aa-thirdweb",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "Thirdweb smart account integration for Para",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -17,22 +17,25 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"build": "rm -rf dist &&
|
|
21
|
-
"
|
|
22
|
-
"
|
|
20
|
+
"build": "rm -rf dist && node ./scripts/build.mjs && yarn build:types",
|
|
21
|
+
"test": "vitest run --coverage",
|
|
22
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
23
|
+
"typecheck": "tsc --noEmit"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@getpara/viem-v2-integration": "3.
|
|
26
|
+
"@getpara/viem-v2-integration": "3.21.0",
|
|
26
27
|
"thirdweb": "^5.118.2"
|
|
27
28
|
},
|
|
28
29
|
"peerDependencies": {
|
|
29
|
-
"viem": "
|
|
30
|
+
"viem": "^2.10.0"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"
|
|
33
|
+
"react": "^18.3.1",
|
|
34
|
+
"typescript": "^5.8.3",
|
|
35
|
+
"viem": "^2.39.0"
|
|
33
36
|
},
|
|
34
37
|
"publishConfig": {
|
|
35
38
|
"access": "public"
|
|
36
39
|
},
|
|
37
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "e1ca81fb06f6337aaa7cc1860584b7ba5d1d9ca8"
|
|
38
41
|
}
|