@getpara/aa-biconomy 3.19.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.
Files changed (2) hide show
  1. package/dist/action.js +2 -6
  2. package/package.json +12 -8
package/dist/action.js CHANGED
@@ -47,10 +47,7 @@ async function createBiconomySmartAccount(params) {
47
47
  url: resolvedUrl,
48
48
  apiKey: resolvedApiKey
49
49
  });
50
- const deployment = meeClient.account.deployments.find(
51
- (d) => (d.chainId ?? d.chain?.id) === chainId
52
- );
53
- const accountAddress = deployment?.address ?? meeClient.account.deployments[0]?.address;
50
+ const accountAddress = meeClient.account.addressOn(chainId);
54
51
  assertAccountAddress(accountAddress, "Biconomy MEE client", "BICONOMY");
55
52
  const sponsorshipConfig = {
56
53
  sponsorship: true,
@@ -101,11 +98,10 @@ async function createBiconomySmartAccount(params) {
101
98
  }
102
99
  };
103
100
  const sendTransaction = async (tx) => sendBatchTransaction([tx]);
104
- const resolvedChain = deployment?.chain;
105
101
  return {
106
102
  smartAccountAddress: accountAddress,
107
103
  signer: viemAccount,
108
- chain: resolvedChain,
104
+ chain,
109
105
  mode,
110
106
  provider: "BICONOMY",
111
107
  sendTransaction,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/aa-biconomy",
3
- "version": "3.19.0",
3
+ "version": "3.21.0",
4
4
  "description": "Biconomy smart account integration for Para",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -17,23 +17,27 @@
17
17
  }
18
18
  },
19
19
  "scripts": {
20
- "build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs",
21
- "typegen": "tsc --emitDeclarationOnly --outDir dist",
22
- "test": "vitest run --coverage"
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
26
  "@biconomy/abstractjs": "1.1.21",
26
- "@getpara/viem-v2-integration": "3.19.0",
27
+ "@getpara/viem-v2-integration": "3.21.0",
28
+ "@metamask/delegation-toolkit": "^0.11.0",
29
+ "@rhinestone/module-sdk": "0.4.0",
27
30
  "@safe-global/types-kit": "^3.0.0"
28
31
  },
29
32
  "peerDependencies": {
30
- "viem": ">=2.0.0"
33
+ "viem": "^2.26.2"
31
34
  },
32
35
  "devDependencies": {
33
- "typescript": "^5.8.3"
36
+ "typescript": "^5.8.3",
37
+ "viem": "^2.39.0"
34
38
  },
35
39
  "publishConfig": {
36
40
  "access": "public"
37
41
  },
38
- "gitHead": "6bc9e2483d62220b6c6920560358c80b188c2c31"
42
+ "gitHead": "e1ca81fb06f6337aaa7cc1860584b7ba5d1d9ca8"
39
43
  }