@actalink/commonlib 0.0.4 → 0.0.5

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/index.cjs CHANGED
@@ -618,7 +618,6 @@ var import_constants = require("@zerodev/sdk/constants");
618
618
  var import_ecdsa_validator = require("@zerodev/ecdsa-validator");
619
619
  var import_permissionless = require("permissionless");
620
620
  var import_pimlico = require("permissionless/clients/pimlico");
621
- var import_pimlico2 = require("permissionless/experimental/pimlico");
622
621
 
623
622
  // src/rpc.ts
624
623
  function getRpcByChainId(chainId) {
@@ -1146,8 +1145,7 @@ var ActaAccount = class {
1146
1145
  userOperation: {
1147
1146
  estimateFeesPerGas: () => __async(this, null, function* () {
1148
1147
  return (yield pimlicoClient.getUserOperationGasPrice()).fast;
1149
- }),
1150
- prepareUserOperation: (0, import_pimlico2.prepareUserOperationForErc20Paymaster)(pimlicoClient)
1148
+ })
1151
1149
  }
1152
1150
  });
1153
1151
  return { paymasterClient, pimlicoClient, accountClient };
@@ -1282,15 +1280,15 @@ var ActaAccount = class {
1282
1280
  functionName: "transferFrom",
1283
1281
  args: [
1284
1282
  fromAddress,
1285
- "0x061BA68bc8208F4AddBeE86F74F17D77129cCF70",
1286
- receiverAmount
1283
+ "0xC4910E5ec82Da0A41aF9C6360b7A1f531e1e37B0",
1284
+ estimatedGasCostInToken
1287
1285
  ]
1288
1286
  },
1289
1287
  {
1290
1288
  to: (0, import_viem4.getAddress)(token2.address),
1291
1289
  abi: (0, import_viem4.parseAbi)(["function transferFrom(address,address,uint)"]),
1292
1290
  functionName: "transferFrom",
1293
- args: [fromAddress, receiver, estimatedTotalFeesInToken]
1291
+ args: [fromAddress, receiver, receiverAmount]
1294
1292
  }
1295
1293
  ]
1296
1294
  });
@@ -1397,7 +1395,7 @@ var ActaAccount = class {
1397
1395
  },
1398
1396
  {
1399
1397
  condition: import_policies2.ParamCondition.ONE_OF,
1400
- value: ["0x061BA68bc8208F4AddBeE86F74F17D77129cCF70", receiver]
1398
+ value: ["0xC4910E5ec82Da0A41aF9C6360b7A1f531e1e37B0", receiver]
1401
1399
  },
1402
1400
  {
1403
1401
  condition: import_policies2.ParamCondition.LESS_THAN_OR_EQUAL,
package/dist/index.js CHANGED
@@ -534,7 +534,6 @@ import { getEntryPoint, KERNEL_V3_1 } from "@zerodev/sdk/constants";
534
534
  import { signerToEcdsaValidator } from "@zerodev/ecdsa-validator";
535
535
  import { createSmartAccountClient } from "permissionless";
536
536
  import { createPimlicoClient } from "permissionless/clients/pimlico";
537
- import { prepareUserOperationForErc20Paymaster } from "permissionless/experimental/pimlico";
538
537
 
539
538
  // src/rpc.ts
540
539
  function getRpcByChainId(chainId) {
@@ -1102,8 +1101,7 @@ var ActaAccount = class {
1102
1101
  userOperation: {
1103
1102
  estimateFeesPerGas: () => __async(this, null, function* () {
1104
1103
  return (yield pimlicoClient.getUserOperationGasPrice()).fast;
1105
- }),
1106
- prepareUserOperation: prepareUserOperationForErc20Paymaster(pimlicoClient)
1104
+ })
1107
1105
  }
1108
1106
  });
1109
1107
  return { paymasterClient, pimlicoClient, accountClient };
@@ -1238,15 +1236,15 @@ var ActaAccount = class {
1238
1236
  functionName: "transferFrom",
1239
1237
  args: [
1240
1238
  fromAddress,
1241
- "0x061BA68bc8208F4AddBeE86F74F17D77129cCF70",
1242
- receiverAmount
1239
+ "0xC4910E5ec82Da0A41aF9C6360b7A1f531e1e37B0",
1240
+ estimatedGasCostInToken
1243
1241
  ]
1244
1242
  },
1245
1243
  {
1246
1244
  to: getAddress2(token2.address),
1247
1245
  abi: parseAbi2(["function transferFrom(address,address,uint)"]),
1248
1246
  functionName: "transferFrom",
1249
- args: [fromAddress, receiver, estimatedTotalFeesInToken]
1247
+ args: [fromAddress, receiver, receiverAmount]
1250
1248
  }
1251
1249
  ]
1252
1250
  });
@@ -1353,7 +1351,7 @@ var ActaAccount = class {
1353
1351
  },
1354
1352
  {
1355
1353
  condition: ParamCondition.ONE_OF,
1356
- value: ["0x061BA68bc8208F4AddBeE86F74F17D77129cCF70", receiver]
1354
+ value: ["0xC4910E5ec82Da0A41aF9C6360b7A1f531e1e37B0", receiver]
1357
1355
  },
1358
1356
  {
1359
1357
  condition: ParamCondition.LESS_THAN_OR_EQUAL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actalink/commonlib",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "author": "Actalink",
5
5
  "license": "MIT license",
6
6
  "publishConfig": {