Socket
Socket
Sign inDemoInstall

@biconomy/account

Package Overview
Dependencies
66
Maintainers
7
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 4.1.1

2

dist/cjs/utils/Constants.d.ts

@@ -1,2 +0,2 @@

import { EntryPointAddresses, BiconomyFactories, BiconomyImplementations, EntryPointAddressesByVersion, BiconomyFactoriesByVersion, BiconomyImplementationsByVersion } from "./Types";
import { EntryPointAddresses, BiconomyFactories, BiconomyImplementations, EntryPointAddressesByVersion, BiconomyFactoriesByVersion, BiconomyImplementationsByVersion } from "./Types.js";
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";

@@ -3,0 +3,0 @@ export declare const DEFAULT_ENTRYPOINT_ADDRESS = "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789";

@@ -1,3 +0,3 @@

export * from "./Types";
export * from "./Utils";
export * from "./Constants";
export * from "./Types.js";
export * from "./Utils.js";
export * from "./Constants.js";

@@ -17,5 +17,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./Types"), exports);
__exportStar(require("./Utils"), exports);
__exportStar(require("./Constants"), exports);
__exportStar(require("./Types.js"), exports);
__exportStar(require("./Utils.js"), exports);
__exportStar(require("./Constants.js"), exports);
//# sourceMappingURL=index.js.map
import { Chain } from "viem";
import type { UserOperationStruct } from "@alchemy/aa-core";
import { SupportedSigner } from "@biconomy/common";
import { BiconomySmartAccountV2Config } from "./Types";
import { BiconomySmartAccountV2Config } from "./Types.js";
export declare function packUserOp(op: Partial<UserOperationStruct>, forSignature?: boolean): string;

@@ -6,0 +6,0 @@ export declare const isNullOrUndefined: (value: any) => value is undefined;

@@ -32,3 +32,3 @@ "use strict";

const chains = __importStar(require("viem/chains"));
const Constants_1 = require("./Constants");
const Constants_js_1 = require("./Constants.js");
function packUserOp(op, forSignature = true) {

@@ -110,5 +110,5 @@ if (!op.initCode || !op.callData || !op.paymasterAndData)

}
throw new Error(Constants_1.ERROR_MESSAGES.CHAIN_NOT_FOUND);
throw new Error(Constants_js_1.ERROR_MESSAGES.CHAIN_NOT_FOUND);
};
exports.getChain = getChain;
//# sourceMappingURL=Utils.js.map

@@ -1,2 +0,2 @@

import { EntryPointAddresses, BiconomyFactories, BiconomyImplementations, EntryPointAddressesByVersion, BiconomyFactoriesByVersion, BiconomyImplementationsByVersion } from "./Types";
import { EntryPointAddresses, BiconomyFactories, BiconomyImplementations, EntryPointAddressesByVersion, BiconomyFactoriesByVersion, BiconomyImplementationsByVersion } from "./Types.js";
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";

@@ -3,0 +3,0 @@ export declare const DEFAULT_ENTRYPOINT_ADDRESS = "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789";

@@ -1,3 +0,3 @@

export * from "./Types";
export * from "./Utils";
export * from "./Constants";
export * from "./Types.js";
export * from "./Utils.js";
export * from "./Constants.js";

@@ -1,1 +0,1 @@

"use strict";export*from"./Types";export*from"./Utils";export*from"./Constants";
"use strict";export*from"./Types.js";export*from"./Utils.js";export*from"./Constants.js";
import { Chain } from "viem";
import type { UserOperationStruct } from "@alchemy/aa-core";
import { SupportedSigner } from "@biconomy/common";
import { BiconomySmartAccountV2Config } from "./Types";
import { BiconomySmartAccountV2Config } from "./Types.js";
export declare function packUserOp(op: Partial<UserOperationStruct>, forSignature?: boolean): string;

@@ -6,0 +6,0 @@ export declare const isNullOrUndefined: (value: any) => value is undefined;

@@ -1,1 +0,1 @@

"use strict";import{encodeAbiParameters as s,parseAbiParameters as d,keccak256 as a}from"viem";import{convertSigner as m}from"@biconomy/common";import{extractChainIdFromBundlerUrl as l}from"@biconomy/bundler";import{extractChainIdFromPaymasterUrl as c}from"@biconomy/bundler";import*as o from"viem/chains";import{ERROR_MESSAGES as f}from"./Constants";export function packUserOp(e,r=!0){if(!e.initCode||!e.callData||!e.paymasterAndData)throw new Error("Missing userOp properties");return r?s(d("address, uint256, bytes32, bytes32, uint256, uint256, uint256, uint256, uint256, bytes32"),[e.sender,BigInt(e.nonce),a(e.initCode),a(e.callData),BigInt(e.callGasLimit),BigInt(e.verificationGasLimit),BigInt(e.preVerificationGas),BigInt(e.maxFeePerGas),BigInt(e.maxPriorityFeePerGas),a(e.paymasterAndData)]):s(d("address, uint256, bytes, bytes, uint256, uint256, uint256, uint256, uint256, bytes, bytes"),[e.sender,BigInt(e.nonce),e.initCode,e.callData,BigInt(e.callGasLimit),BigInt(e.verificationGasLimit),BigInt(e.preVerificationGas),BigInt(e.maxFeePerGas),BigInt(e.maxPriorityFeePerGas),e.paymasterAndData,e.signature])}export const isNullOrUndefined=e=>e==null,compareChainIds=async(e,r,u)=>{const i=await m(e,u),t=r.bundlerUrl?l(r.bundlerUrl):r.bundler?l(r.bundler.getBundlerUrl()):void 0,n=r.paymasterUrl?c(r.paymasterUrl):void 0;if(isNullOrUndefined(i.chainId)){if(t!==void 0&&n!==void 0&&t!==n)throw new Error(`Chain IDs from bundler (${t}) and paymaster (${n}) do not match.`)}else{if(t!==void 0&&i.chainId!==t)throw new Error(`Chain IDs from signer (${i.chainId}) and bundler (${t}) do not match.`);if(n!==void 0&&i.chainId!==n)throw new Error(`Chain IDs from signer (${i.chainId}) and paymaster (${n}) do not match.`)}},isValidRpcUrl=e=>/^(https:\/\/|wss:\/\/).*/.test(e),addressEquals=(e,r)=>!!e&&!!r&&e?.toLowerCase()===r.toLowerCase(),getChain=e=>{for(const r of Object.values(o))if(r.id===e)return r;throw new Error(f.CHAIN_NOT_FOUND)};
"use strict";import{encodeAbiParameters as s,parseAbiParameters as d,keccak256 as a}from"viem";import{convertSigner as m}from"@biconomy/common";import{extractChainIdFromBundlerUrl as l}from"@biconomy/bundler";import{extractChainIdFromPaymasterUrl as c}from"@biconomy/bundler";import*as o from"viem/chains";import{ERROR_MESSAGES as f}from"./Constants.js";export function packUserOp(e,r=!0){if(!e.initCode||!e.callData||!e.paymasterAndData)throw new Error("Missing userOp properties");return r?s(d("address, uint256, bytes32, bytes32, uint256, uint256, uint256, uint256, uint256, bytes32"),[e.sender,BigInt(e.nonce),a(e.initCode),a(e.callData),BigInt(e.callGasLimit),BigInt(e.verificationGasLimit),BigInt(e.preVerificationGas),BigInt(e.maxFeePerGas),BigInt(e.maxPriorityFeePerGas),a(e.paymasterAndData)]):s(d("address, uint256, bytes, bytes, uint256, uint256, uint256, uint256, uint256, bytes, bytes"),[e.sender,BigInt(e.nonce),e.initCode,e.callData,BigInt(e.callGasLimit),BigInt(e.verificationGasLimit),BigInt(e.preVerificationGas),BigInt(e.maxFeePerGas),BigInt(e.maxPriorityFeePerGas),e.paymasterAndData,e.signature])}export const isNullOrUndefined=e=>e==null,compareChainIds=async(e,r,u)=>{const i=await m(e,u),t=r.bundlerUrl?l(r.bundlerUrl):r.bundler?l(r.bundler.getBundlerUrl()):void 0,n=r.paymasterUrl?c(r.paymasterUrl):void 0;if(isNullOrUndefined(i.chainId)){if(t!==void 0&&n!==void 0&&t!==n)throw new Error(`Chain IDs from bundler (${t}) and paymaster (${n}) do not match.`)}else{if(t!==void 0&&i.chainId!==t)throw new Error(`Chain IDs from signer (${i.chainId}) and bundler (${t}) do not match.`);if(n!==void 0&&i.chainId!==n)throw new Error(`Chain IDs from signer (${i.chainId}) and paymaster (${n}) do not match.`)}},isValidRpcUrl=e=>/^(https:\/\/|wss:\/\/).*/.test(e),addressEquals=(e,r)=>!!e&&!!r&&e?.toLowerCase()===r.toLowerCase(),getChain=e=>{for(const r of Object.values(o))if(r.id===e)return r;throw new Error(f.CHAIN_NOT_FOUND)};

@@ -1,2 +0,2 @@

import { EntryPointAddresses, BiconomyFactories, BiconomyImplementations, EntryPointAddressesByVersion, BiconomyFactoriesByVersion, BiconomyImplementationsByVersion } from "./Types";
import { EntryPointAddresses, BiconomyFactories, BiconomyImplementations, EntryPointAddressesByVersion, BiconomyFactoriesByVersion, BiconomyImplementationsByVersion } from "./Types.js";
export declare const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";

@@ -3,0 +3,0 @@ export declare const DEFAULT_ENTRYPOINT_ADDRESS = "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789";

@@ -1,4 +0,4 @@

export * from "./Types";
export * from "./Utils";
export * from "./Constants";
export * from "./Types.js";
export * from "./Utils.js";
export * from "./Constants.js";
//# sourceMappingURL=index.d.ts.map
import { Chain } from "viem";
import type { UserOperationStruct } from "@alchemy/aa-core";
import { SupportedSigner } from "@biconomy/common";
import { BiconomySmartAccountV2Config } from "./Types";
import { BiconomySmartAccountV2Config } from "./Types.js";
/**

@@ -6,0 +6,0 @@ * pack the userOperation

{
"name": "@biconomy/account",
"version": "4.1.0",
"version": "4.1.1",
"description": "This package provides apis for ERC-4337 based smart account implementations",

@@ -71,9 +71,9 @@ "main": "./dist/cjs/index.js",

"@alchemy/aa-core": "^3.1.1",
"@biconomy/bundler": "^4.1.0",
"@biconomy/common": "^4.1.0",
"@biconomy/modules": "^4.1.0",
"@biconomy/paymaster": "^4.1.0",
"@biconomy/bundler": "^4.1.1",
"@biconomy/common": "^4.1.1",
"@biconomy/modules": "^4.1.1",
"@biconomy/paymaster": "^4.1.1",
"viem": "^2.7.12"
},
"gitHead": "466968dbbcf2fabbe4fce76de1cdb7dc44bf5c3e"
"gitHead": "04bc6c5bbda82cdc042da2b9dcb5cab60a0bf0a7"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc