@getpara/aa-rhinestone 2.16.0 → 2.17.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 +9 -5
- package/dist/types.d.ts +1 -1
- package/package.json +3 -3
package/dist/action.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SmartAccount4337 } from '@getpara/viem-v2-integration';
|
|
1
|
+
import type { SmartAccount4337 } from '@getpara/viem-v2-integration/aa';
|
|
2
2
|
import type { CreateRhinestoneSmartAccountParams } from './types.js';
|
|
3
3
|
export type { CreateRhinestoneSmartAccountParams } from './types.js';
|
|
4
4
|
/**
|
package/dist/action.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { RhinestoneSDK } from "@rhinestone/sdk";
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
SmartAccountError,
|
|
4
|
+
wrapProviderError,
|
|
5
|
+
ensureExternalWalletChain,
|
|
6
|
+
resolveSigner
|
|
7
|
+
} from "@getpara/viem-v2-integration/aa";
|
|
4
8
|
import { createPublicClient, http } from "viem";
|
|
5
9
|
async function createRhinestoneSmartAccount(params) {
|
|
6
10
|
const { para, chain, rpcUrl, rhinestoneApiKey, pimlicoApiKey } = params;
|
|
7
|
-
const
|
|
8
|
-
if (!
|
|
9
|
-
const viemAccount = createParaAccount(para, walletAddress);
|
|
11
|
+
const viemAccount = resolveSigner(para, params);
|
|
12
|
+
if (!viemAccount) return null;
|
|
10
13
|
const publicClient = createPublicClient({
|
|
11
14
|
chain,
|
|
12
15
|
transport: http(rpcUrl)
|
|
@@ -27,6 +30,7 @@ async function createRhinestoneSmartAccount(params) {
|
|
|
27
30
|
});
|
|
28
31
|
const accountAddress = rhinestoneAccount.getAddress();
|
|
29
32
|
const sendBatchTransaction = async (calls) => {
|
|
33
|
+
await ensureExternalWalletChain(params.signer, chain, "RHINESTONE");
|
|
30
34
|
if (!chain) {
|
|
31
35
|
throw new SmartAccountError({
|
|
32
36
|
code: "MISSING_CHAIN",
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChainBasedSmartAccountConfig, CreateSmartAccountParams } from '@getpara/viem-v2-integration';
|
|
1
|
+
import type { ChainBasedSmartAccountConfig, CreateSmartAccountParams } from '@getpara/viem-v2-integration/aa';
|
|
2
2
|
/**
|
|
3
3
|
* Configuration for Rhinestone smart account.
|
|
4
4
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/aa-rhinestone",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.0",
|
|
4
4
|
"description": "Rhinestone smart account integration for Para",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"test": "vitest run --coverage"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@getpara/viem-v2-integration": "2.
|
|
25
|
+
"@getpara/viem-v2-integration": "2.17.0",
|
|
26
26
|
"@rhinestone/module-sdk": "0.4.0",
|
|
27
27
|
"@rhinestone/sdk": "^1.2.14",
|
|
28
28
|
"permissionless": "^0.2.12"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "3ed1f835b97ae720f1ac747611296e3b86f61138"
|
|
40
40
|
}
|