2.0.0 • Published 1 year ago

@peter-present/user-operation v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Package for build user operation

Installation

npm install @peter-present/user-operation
  • Or if you use yarn
yarn add @peter-present/user-operation

Usage

  • Main purpose of the package is to build a user operation. First, you must create a UserOperation object.
const userOperation = new UserOperation(
  account: Account,
  callData: BytesLike,
  paymasterAndData: BytesLike,
  rpcUrl: string,
  chainId: string | number,
);
  • After having a object, you can create your user operation. If you want deploy your account abstraction, you must pass initCode in build function.
const rawUserOps = await userOperation.build(entrypointAddress, { initCode });
2.0.0

1 year ago

1.0.21

2 years ago

1.0.2

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago