Namespace EntryPoint

Index

Type aliases

MemoryUserOpStruct

MemoryUserOpStruct: { callGasLimit: PromiseOrValue<BigNumberish>; maxFeePerGas: PromiseOrValue<BigNumberish>; maxPriorityFeePerGas: PromiseOrValue<BigNumberish>; nonce: PromiseOrValue<BigNumberish>; paymaster: PromiseOrValue<string>; preVerificationGas: PromiseOrValue<BigNumberish>; sender: PromiseOrValue<string>; verificationGasLimit: PromiseOrValue<BigNumberish> }

Type declaration

MemoryUserOpStructOutput

MemoryUserOpStructOutput: [] & { callGasLimit: BigNumber; maxFeePerGas: BigNumber; maxPriorityFeePerGas: BigNumber; nonce: BigNumber; paymaster: string; preVerificationGas: BigNumber; sender: string; verificationGasLimit: BigNumber }

UserOpInfoStruct

UserOpInfoStruct: { contextOffset: PromiseOrValue<BigNumberish>; mUserOp: MemoryUserOpStruct; preOpGas: PromiseOrValue<BigNumberish>; prefund: PromiseOrValue<BigNumberish>; userOpHash: PromiseOrValue<BytesLike> }

Type declaration

UserOpInfoStructOutput

UserOpInfoStructOutput: [] & { contextOffset: BigNumber; mUserOp: MemoryUserOpStructOutput; preOpGas: BigNumber; prefund: BigNumber; userOpHash: string }

Constructors

constructor

  • new EntryPoint(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): EntryPoint
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns EntryPoint

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

_runningEvents

_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent

_wrappedEmits

_wrappedEmits: {}

Type declaration

  • [eventTag: string]: (...args: Array<any>) => void
      • (...args: Array<any>): void
      • Parameters

        • Rest ...args: Array<any>

        Returns void

Readonly address

address: string

callStatic

callStatic: { SIG_VALIDATION_FAILED: any; _validateSenderAndPaymaster: any; addStake: any; balanceOf: any; depositTo: any; deposits: any; getDepositInfo: any; getSenderAddress: any; getUserOpHash: any; handleAggregatedOps: any; handleOps: any; innerHandleOp: any; simulateHandleOp: any; simulateValidation: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

  • SIG_VALIDATION_FAILED: function
    • SIG_VALIDATION_FAILED(overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • _validateSenderAndPaymaster: function
  • addStake: function
    • addStake(unstakeDelaySec: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>
    • Parameters

      • unstakeDelaySec: PromiseOrValue<BigNumberish>
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • balanceOf: function
    • balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • depositTo: function
    • depositTo(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

  • deposits: function
    • deposits(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[] & { deposit: BigNumber; stake: BigNumber; staked: boolean; unstakeDelaySec: number; withdrawTime: number }>
    • Parameters

      Returns Promise<[] & { deposit: BigNumber; stake: BigNumber; staked: boolean; unstakeDelaySec: number; withdrawTime: number }>

  • getDepositInfo: function
  • getSenderAddress: function
    • getSenderAddress(initCode: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>
    • Parameters

      • initCode: PromiseOrValue<BytesLike>
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • getUserOpHash: function
    • Parameters

      Returns Promise<string>

  • handleAggregatedOps: function
  • handleOps: function
  • innerHandleOp: function
  • simulateHandleOp: function
  • simulateValidation: function
    • Parameters

      Returns Promise<void>

  • unlockStake: function
    • unlockStake(overrides?: CallOverrides): Promise<void>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • withdrawStake: function
    • withdrawStake(withdrawAddress: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      • withdrawAddress: PromiseOrValue<string>
      • Optional overrides: CallOverrides

      Returns Promise<void>

  • withdrawTo: function
    • withdrawTo(withdrawAddress: PromiseOrValue<string>, withdrawAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { SIG_VALIDATION_FAILED: any; _validateSenderAndPaymaster: any; addStake: any; balanceOf: any; depositTo: any; deposits: any; getDepositInfo: any; getSenderAddress: any; getUserOpHash: any; handleAggregatedOps: any; handleOps: any; innerHandleOp: any; simulateHandleOp: any; simulateValidation: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

filters

filters: { AccountDeployed: any; AccountDeployed(bytes32,address,address,address): any; Deposited: any; Deposited(address,uint256): any; SignatureAggregatorChanged: any; SignatureAggregatorChanged(address): any; StakeLocked: any; StakeLocked(address,uint256,uint256): any; StakeUnlocked: any; StakeUnlocked(address,uint256): any; StakeWithdrawn: any; StakeWithdrawn(address,address,uint256): any; UserOperationEvent: any; UserOperationEvent(bytes32,address,address,uint256,bool,uint256,uint256): any; UserOperationRevertReason: any; UserOperationRevertReason(bytes32,address,uint256,bytes): any; Withdrawn: any; Withdrawn(address,address,uint256): any }

Type declaration

functions

functions: { SIG_VALIDATION_FAILED: any; _validateSenderAndPaymaster: any; addStake: any; balanceOf: any; depositTo: any; deposits: any; getDepositInfo: any; getSenderAddress: any; getUserOpHash: any; handleAggregatedOps: any; handleOps: any; innerHandleOp: any; simulateHandleOp: any; simulateValidation: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

  • SIG_VALIDATION_FAILED: function
    • SIG_VALIDATION_FAILED(overrides?: CallOverrides): Promise<[]>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<[]>

  • _validateSenderAndPaymaster: function
  • addStake: function
    • addStake(unstakeDelaySec: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • balanceOf: function
    • balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[]>
    • Parameters

      Returns Promise<[]>

  • depositTo: function
    • depositTo(account: PromiseOrValue<string>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • deposits: function
    • deposits(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[] & { deposit: BigNumber; stake: BigNumber; staked: boolean; unstakeDelaySec: number; withdrawTime: number }>
    • Parameters

      Returns Promise<[] & { deposit: BigNumber; stake: BigNumber; staked: boolean; unstakeDelaySec: number; withdrawTime: number }>

  • getDepositInfo: function
  • getSenderAddress: function
    • getSenderAddress(initCode: PromiseOrValue<BytesLike>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • getUserOpHash: function
  • handleAggregatedOps: function
  • handleOps: function
  • innerHandleOp: function
  • simulateHandleOp: function
  • simulateValidation: function
  • unlockStake: function
    • unlockStake(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • withdrawStake: function
    • withdrawStake(withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

  • withdrawTo: function

interface

off

off: OnEvent<this>

on

on: OnEvent<this>

once

once: OnEvent<this>

populateTransaction

populateTransaction: { SIG_VALIDATION_FAILED: any; _validateSenderAndPaymaster: any; addStake: any; balanceOf: any; depositTo: any; deposits: any; getDepositInfo: any; getSenderAddress: any; getUserOpHash: any; handleAggregatedOps: any; handleOps: any; innerHandleOp: any; simulateHandleOp: any; simulateValidation: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

  • SIG_VALIDATION_FAILED: function
    • SIG_VALIDATION_FAILED(overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • _validateSenderAndPaymaster: function
  • addStake: function
    • addStake(unstakeDelaySec: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • balanceOf: function
    • balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • depositTo: function
    • depositTo(account: PromiseOrValue<string>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • deposits: function
    • deposits(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • getDepositInfo: function
    • getDepositInfo(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • getSenderAddress: function
    • getSenderAddress(initCode: PromiseOrValue<BytesLike>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • getUserOpHash: function
    • getUserOpHash(userOp: UserOperationStruct, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • handleAggregatedOps: function
  • handleOps: function
  • innerHandleOp: function
  • simulateHandleOp: function
  • simulateValidation: function
  • unlockStake: function
    • unlockStake(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • withdrawStake: function
    • withdrawStake(withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • withdrawTo: function

Readonly provider

provider: Provider

removeListener

removeListener: OnEvent<this>

Readonly resolvedAddress

resolvedAddress: Promise<string>

Readonly signer

signer: Signer

Methods

SIG_VALIDATION_FAILED

  • SIG_VALIDATION_FAILED(overrides?: CallOverrides): Promise<BigNumber>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

_checkRunningEvents

  • _checkRunningEvents(runningEvent: RunningEvent): void

_deployed

  • _deployed(blockTag?: BlockTag): Promise<Contract>
  • Parameters

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

_validateSenderAndPaymaster

_wrapEvent

  • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
  • Parameters

    • runningEvent: RunningEvent
    • log: Log
    • listener: Listener

    Returns Event

addStake

  • addStake(unstakeDelaySec: PromiseOrValue<BigNumberish>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

attach

  • attach(addressOrName: string): this
  • Parameters

    • addressOrName: string

    Returns this

balanceOf

  • balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
  • Parameters

    Returns Promise<BigNumber>

connect

  • connect(signerOrProvider: Signer | Provider | string): this
  • Parameters

    • signerOrProvider: Signer | Provider | string

    Returns this

deployed

  • deployed(): Promise<this>
  • Returns Promise<this>

depositTo

  • depositTo(account: PromiseOrValue<string>, overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

deposits

  • deposits(arg0: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[] & { deposit: BigNumber; stake: BigNumber; staked: boolean; unstakeDelaySec: number; withdrawTime: number }>
  • Parameters

    Returns Promise<[] & { deposit: BigNumber; stake: BigNumber; staked: boolean; unstakeDelaySec: number; withdrawTime: number }>

emit

  • emit(eventName: EventFilter | string, ...args: Array<any>): boolean
  • Parameters

    • eventName: EventFilter | string
    • Rest ...args: Array<any>

    Returns boolean

fallback

  • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
  • Parameters

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

getDepositInfo

getSenderAddress

  • getSenderAddress(initCode: PromiseOrValue<BytesLike>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

getUserOpHash

  • Parameters

    Returns Promise<string>

handleAggregatedOps

handleOps

innerHandleOp

listenerCount

  • listenerCount(eventName?: EventFilter | string): number
  • Parameters

    • Optional eventName: EventFilter | string

    Returns number

listeners

  • Type parameters

    Parameters

    Returns Array<TypedListener<TEvent>>

  • Parameters

    • Optional eventName: string

    Returns Array<Listener>

queryFilter

  • queryFilter<TEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>
  • Type parameters

    Parameters

    • event: TypedEventFilter<TEvent>
    • Optional fromBlockOrBlockhash: string | number | undefined
    • Optional toBlock: string | number | undefined

    Returns Promise<Array<TEvent>>

removeAllListeners

  • removeAllListeners<TEvent>(eventFilter: TypedEventFilter<TEvent>): this
  • removeAllListeners(eventName?: string): this
  • Type parameters

    Parameters

    Returns this

  • Parameters

    • Optional eventName: string

    Returns this

simulateHandleOp

simulateValidation

unlockStake

  • unlockStake(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

withdrawStake

  • withdrawStake(withdrawAddress: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

withdrawTo

Static getContractAddress

  • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
  • Parameters

    • transaction: { from: string; nonce: BigNumberish }
      • from: string
      • nonce: BigNumberish

    Returns string

Static getInterface

  • getInterface(contractInterface: ContractInterface): Interface
  • Parameters

    • contractInterface: ContractInterface

    Returns Interface

Static isIndexed

  • isIndexed(value: any): value is Indexed
  • Parameters

    • value: any

    Returns value is Indexed