Namespace IEntryPoint

Index

Type aliases

UserOpsPerAggregatorStruct

UserOpsPerAggregatorStruct: { aggregator: PromiseOrValue<string>; signature: PromiseOrValue<BytesLike>; userOps: UserOperationStruct[] }

Type declaration

UserOpsPerAggregatorStructOutput

UserOpsPerAggregatorStructOutput: [] & { aggregator: string; signature: string; userOps: UserOperationStructOutput[] }

Constructors

constructor

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

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

    Returns IEntryPoint

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: { addStake: any; balanceOf: any; depositTo: any; getDepositInfo: any; getNonce: any; getSenderAddress: any; getUserOpHash: any; handleAggregatedOps: any; handleOps: any; incrementNonce: any; simulateHandleOp: any; simulateValidation: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

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

  • getDepositInfo: function
  • getNonce: 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
  • incrementNonce: function
    • incrementNonce(key: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

  • 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: { addStake: any; balanceOf: any; depositTo: any; getDepositInfo: any; getNonce: any; getSenderAddress: any; getUserOpHash: any; handleAggregatedOps: any; handleOps: any; incrementNonce: any; simulateHandleOp: any; simulateValidation: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

filters

filters: { AccountDeployed: any; AccountDeployed(bytes32,address,address,address): any; BeforeExecution: any; BeforeExecution(): 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: { addStake: any; balanceOf: any; depositTo: any; getDepositInfo: any; getNonce: any; getSenderAddress: any; getUserOpHash: any; handleAggregatedOps: any; handleOps: any; incrementNonce: any; simulateHandleOp: any; simulateValidation: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

interface

off

off: OnEvent<this>

on

on: OnEvent<this>

once

once: OnEvent<this>

populateTransaction

populateTransaction: { addStake: any; balanceOf: any; depositTo: any; getDepositInfo: any; getNonce: any; getSenderAddress: any; getUserOpHash: any; handleAggregatedOps: any; handleOps: any; incrementNonce: any; simulateHandleOp: any; simulateValidation: any; unlockStake: any; withdrawStake: any; withdrawTo: any }

Type declaration

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

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

      Returns Promise<PopulatedTransaction>

  • getNonce: function
    • 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
  • incrementNonce: function
    • incrementNonce(key: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

  • 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

_checkRunningEvents

  • _checkRunningEvents(runningEvent: RunningEvent): void

_deployed

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

    • Optional blockTag: BlockTag

    Returns Promise<Contract>

_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>

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

getNonce

getSenderAddress

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

    Returns Promise<ContractTransaction>

getUserOpHash

  • Parameters

    Returns Promise<string>

handleAggregatedOps

handleOps

incrementNonce

  • incrementNonce(key: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

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