New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@alchemy/aa-ethers

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alchemy/aa-ethers - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

19

dist/cjs/account-signer.d.ts

@@ -9,3 +9,20 @@ import { type AccountMiddlewareFn, type FeeDataMiddleware, type GasEstimatorMiddleware, type ISmartContractAccount, type PaymasterAndDataMiddleware, type PublicErc4337Client } from "@alchemy/aa-core";

private account?;
sendUserOperation: (data: import("@alchemy/aa-core").UserOperationCallData | import("@alchemy/aa-core").BatchUserOperationCallData, overrides?: Partial<Pick<import("@alchemy/aa-core").UserOperationStruct, "maxFeePerGas" | "maxPriorityFeePerGas" | "paymasterAndData">> | undefined) => Promise<import("@alchemy/aa-core").SendUserOperationResult>;
sendUserOperation: (data: import("@alchemy/aa-core").UserOperationCallData | import("@alchemy/aa-core").BatchUserOperationCallData, overrides?: Partial<{
callGasLimit: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
maxFeePerGas: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
maxPriorityFeePerGas: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
preVerificationGas: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
verificationGasLimit: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
paymasterAndData: import("@alchemy/aa-core").BytesLike;
}> | undefined) => Promise<import("@alchemy/aa-core").SendUserOperationResult>;
waitForUserOperationTransaction: (hash: `0x${string}`) => Promise<`0x${string}`>;

@@ -12,0 +29,0 @@ constructor(provider: EthersProviderAdapter);

2

dist/cjs/provider-adapter.d.ts

@@ -7,3 +7,3 @@ import { SmartAccountProvider, type AccountMiddlewareFn, type FeeDataMiddleware, type GasEstimatorMiddleware, type HttpTransport, type ISmartContractAccount, type PaymasterAndDataMiddleware, type PublicErc4337Client } from "@alchemy/aa-core";

readonly accountProvider: SmartAccountProvider<HttpTransport>;
constructor(opts: EthersProviderAdapterOpts);
constructor(opts_: EthersProviderAdapterOpts);
send(method: string, params: any[]): Promise<any>;

@@ -10,0 +10,0 @@ connectToAccount<TAccount extends ISmartContractAccount>(fn: (rpcClient: PublicErc4337Client) => TAccount): AccountSigner<TAccount>;

@@ -10,4 +10,4 @@ "use strict";

class EthersProviderAdapter extends providers_1.JsonRpcProvider {
constructor(opts) {
schema_js_1.EthersProviderAdapterOptsSchema.parse(opts);
constructor(opts_) {
const opts = schema_js_1.EthersProviderAdapterOptsSchema.parse(opts_);
super();

@@ -14,0 +14,0 @@ Object.defineProperty(this, "accountProvider", {

import { z } from "zod";
import type { EthersProviderAdapterOptsSchema } from "./schema";
export type EthersProviderAdapterOpts = z.infer<typeof EthersProviderAdapterOptsSchema>;
export type EthersProviderAdapterOpts = z.input<typeof EthersProviderAdapterOptsSchema>;

@@ -9,3 +9,20 @@ import { type AccountMiddlewareFn, type FeeDataMiddleware, type GasEstimatorMiddleware, type ISmartContractAccount, type PaymasterAndDataMiddleware, type PublicErc4337Client } from "@alchemy/aa-core";

private account?;
sendUserOperation: (data: import("@alchemy/aa-core").UserOperationCallData | import("@alchemy/aa-core").BatchUserOperationCallData, overrides?: Partial<Pick<import("@alchemy/aa-core").UserOperationStruct, "maxFeePerGas" | "maxPriorityFeePerGas" | "paymasterAndData">> | undefined) => Promise<import("@alchemy/aa-core").SendUserOperationResult>;
sendUserOperation: (data: import("@alchemy/aa-core").UserOperationCallData | import("@alchemy/aa-core").BatchUserOperationCallData, overrides?: Partial<{
callGasLimit: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
maxFeePerGas: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
maxPriorityFeePerGas: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
preVerificationGas: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
verificationGasLimit: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
paymasterAndData: import("@alchemy/aa-core").BytesLike;
}> | undefined) => Promise<import("@alchemy/aa-core").SendUserOperationResult>;
waitForUserOperationTransaction: (hash: `0x${string}`) => Promise<`0x${string}`>;

@@ -12,0 +29,0 @@ constructor(provider: EthersProviderAdapter);

@@ -7,3 +7,3 @@ import { SmartAccountProvider, type AccountMiddlewareFn, type FeeDataMiddleware, type GasEstimatorMiddleware, type HttpTransport, type ISmartContractAccount, type PaymasterAndDataMiddleware, type PublicErc4337Client } from "@alchemy/aa-core";

readonly accountProvider: SmartAccountProvider<HttpTransport>;
constructor(opts: EthersProviderAdapterOpts);
constructor(opts_: EthersProviderAdapterOpts);
send(method: string, params: any[]): Promise<any>;

@@ -10,0 +10,0 @@ connectToAccount<TAccount extends ISmartContractAccount>(fn: (rpcClient: PublicErc4337Client) => TAccount): AccountSigner<TAccount>;

@@ -7,4 +7,4 @@ import { SmartAccountProvider, getChain, } from "@alchemy/aa-core";

export class EthersProviderAdapter extends JsonRpcProvider {
constructor(opts) {
EthersProviderAdapterOptsSchema.parse(opts);
constructor(opts_) {
const opts = EthersProviderAdapterOptsSchema.parse(opts_);
super();

@@ -11,0 +11,0 @@ Object.defineProperty(this, "accountProvider", {

import { z } from "zod";
import type { EthersProviderAdapterOptsSchema } from "./schema";
export type EthersProviderAdapterOpts = z.infer<typeof EthersProviderAdapterOptsSchema>;
export type EthersProviderAdapterOpts = z.input<typeof EthersProviderAdapterOptsSchema>;

@@ -9,3 +9,20 @@ import { type AccountMiddlewareFn, type FeeDataMiddleware, type GasEstimatorMiddleware, type ISmartContractAccount, type PaymasterAndDataMiddleware, type PublicErc4337Client } from "@alchemy/aa-core";

private account?;
sendUserOperation: (data: import("@alchemy/aa-core").UserOperationCallData | import("@alchemy/aa-core").BatchUserOperationCallData, overrides?: Partial<Pick<import("@alchemy/aa-core").UserOperationStruct, "maxFeePerGas" | "maxPriorityFeePerGas" | "paymasterAndData">> | undefined) => Promise<import("@alchemy/aa-core").SendUserOperationResult>;
sendUserOperation: (data: import("@alchemy/aa-core").UserOperationCallData | import("@alchemy/aa-core").BatchUserOperationCallData, overrides?: Partial<{
callGasLimit: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
maxFeePerGas: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
maxPriorityFeePerGas: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
preVerificationGas: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
verificationGasLimit: number | bigint | `0x${string}` | {
percentage: number;
} | undefined;
paymasterAndData: import("@alchemy/aa-core").BytesLike;
}> | undefined) => Promise<import("@alchemy/aa-core").SendUserOperationResult>;
waitForUserOperationTransaction: (hash: `0x${string}`) => Promise<`0x${string}`>;

@@ -12,0 +29,0 @@ constructor(provider: EthersProviderAdapter);

@@ -8,3 +8,3 @@ import { SmartAccountProvider, type AccountMiddlewareFn, type FeeDataMiddleware, type GasEstimatorMiddleware, type HttpTransport, type ISmartContractAccount, type PaymasterAndDataMiddleware, type PublicErc4337Client } from "@alchemy/aa-core";

readonly accountProvider: SmartAccountProvider<HttpTransport>;
constructor(opts: EthersProviderAdapterOpts);
constructor(opts_: EthersProviderAdapterOpts);
/**

@@ -11,0 +11,0 @@ * Rewrites the send method to use the account provider's EIP-1193

import { z } from "zod";
import type { EthersProviderAdapterOptsSchema } from "./schema";
export type EthersProviderAdapterOpts = z.infer<typeof EthersProviderAdapterOptsSchema>;
export type EthersProviderAdapterOpts = z.input<typeof EthersProviderAdapterOptsSchema>;
//# sourceMappingURL=types.d.ts.map
{
"name": "@alchemy/aa-ethers",
"license": "MIT",
"version": "1.2.0",
"version": "1.2.1",
"description": "Ethers.js wrapper for @alchemy/aa-core",

@@ -52,3 +52,3 @@ "author": "Alchemy",

"dependencies": {
"@alchemy/aa-core": "^1.2.0",
"@alchemy/aa-core": "^1.2.1",
"@ethersproject/abi": "^5.7.0",

@@ -71,3 +71,3 @@ "@ethersproject/abstract-signer": "^5.7.0",

},
"gitHead": "3f24fe0daff3125a8a902a10448c33c05d10fd3a"
"gitHead": "032b2814d8804d86a6a9bb9f492f288a88b9e5df"
}
# `@alchemy/aa-ethers`
This package contains `EthersProviderAdapter` and `AccountSigner`, respective extensions of the [`JsonRpcProvider`](https://docs.ethers.org/v5/api/providers/jsonrpc-provider/) and [`Signer`](https://docs.ethers.org/v5/api/signer/#Signer-getaddress) classes defined in [`ethers.js`](https://docs.ethers.org/v5/) external library.
This package contains `EthersProviderAdapter` and `AccountSigner`, respective extensions of the [`JsonRpcProvider`](https://docs.ethers.org/v5/api/providers/jsonrpc-provider/) and [`Signer`](https://docs.ethers.org/v5/api/signer/) classes defined in [`ethers.js`](https://docs.ethers.org/v5/) external library.

@@ -5,0 +5,0 @@ If you currently rely `ethers.js` for web3 development, you can use these `ethers.js`-compatible `JsonRpcProvider` and `Signer` to integrate Account Abstraction into your dApp. You may also find the [`util`](https://accountkit.alchemy.com/packages/aa-ethers/utils/introduction.html) methods helpful.

@@ -22,4 +22,4 @@ import {

constructor(opts: EthersProviderAdapterOpts) {
EthersProviderAdapterOptsSchema.parse(opts);
constructor(opts_: EthersProviderAdapterOpts) {
const opts = EthersProviderAdapterOptsSchema.parse(opts_);

@@ -26,0 +26,0 @@ super();

import { z } from "zod";
import type { EthersProviderAdapterOptsSchema } from "./schema";
export type EthersProviderAdapterOpts = z.infer<
export type EthersProviderAdapterOpts = z.input<
typeof EthersProviderAdapterOptsSchema
>;

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc