@aomi-labs/client 0.1.20 → 0.1.21

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/cli.js CHANGED
@@ -22,7 +22,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
22
  // package.json
23
23
  var package_default = {
24
24
  name: "@aomi-labs/client",
25
- version: "0.1.19",
25
+ version: "0.1.20",
26
26
  description: "Platform-agnostic TypeScript client for the Aomi backend API",
27
27
  type: "module",
28
28
  main: "./dist/index.cjs",
@@ -3321,6 +3321,7 @@ function isAlchemySponsorshipLimitError(error) {
3321
3321
  import { createAlchemySmartAccount } from "@getpara/aa-alchemy";
3322
3322
  import { createPimlicoSmartAccount } from "@getpara/aa-pimlico";
3323
3323
  import { privateKeyToAccount } from "viem/accounts";
3324
+ var ALCHEMY_7702_DELEGATION_ADDRESS = "0x69007702764179f14F51cdce752f4f775d74E139";
3324
3325
  async function createAAProviderState(options) {
3325
3326
  if (options.provider === "alchemy") {
3326
3327
  return createAlchemyAAState({
@@ -3520,7 +3521,7 @@ async function createAlchemyWalletApisState(params) {
3520
3521
  provider: "alchemy",
3521
3522
  mode: params.mode,
3522
3523
  AAAddress: accountAddress,
3523
- delegationAddress: params.mode === "7702" ? signer.address : void 0,
3524
+ delegationAddress: params.mode === "7702" ? ALCHEMY_7702_DELEGATION_ADDRESS : void 0,
3524
3525
  sendTransaction: async (call) => sendCalls([call]),
3525
3526
  sendBatchTransaction: async (calls) => sendCalls(calls)
3526
3527
  };
package/dist/index.cjs CHANGED
@@ -1907,6 +1907,7 @@ function isAlchemySponsorshipLimitError(error) {
1907
1907
  var import_aa_alchemy = require("@getpara/aa-alchemy");
1908
1908
  var import_aa_pimlico = require("@getpara/aa-pimlico");
1909
1909
  var import_accounts = require("viem/accounts");
1910
+ var ALCHEMY_7702_DELEGATION_ADDRESS = "0x69007702764179f14F51cdce752f4f775d74E139";
1910
1911
  async function createAAProviderState(options) {
1911
1912
  if (options.provider === "alchemy") {
1912
1913
  return createAlchemyAAState({
@@ -2106,7 +2107,7 @@ async function createAlchemyWalletApisState(params) {
2106
2107
  provider: "alchemy",
2107
2108
  mode: params.mode,
2108
2109
  AAAddress: accountAddress,
2109
- delegationAddress: params.mode === "7702" ? signer.address : void 0,
2110
+ delegationAddress: params.mode === "7702" ? ALCHEMY_7702_DELEGATION_ADDRESS : void 0,
2110
2111
  sendTransaction: async (call) => sendCalls([call]),
2111
2112
  sendBatchTransaction: async (calls) => sendCalls(calls)
2112
2113
  };