Interface EtherspotPaymaster

Hierarchy

  • BaseContract
    • EtherspotPaymaster

Index

Constructors

constructor

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

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: { addBatchToWhitelist: any; addStake: any; addToWhitelist: any; check: any; depositFunds: any; entryPoint: any; getDeposit: any; getHash: any; getSponsorBalance: any; owner: any; parsePaymasterAndData: any; postOp: any; removeBatchFromWhitelist: any; removeFromWhitelist: any; renounceOwnership: any; transferOwnership: any; unlockStake: any; validatePaymasterUserOp: any; withdrawFunds: any; withdrawStake: any }

Type declaration

  • addBatchToWhitelist: function
    • addBatchToWhitelist(_accounts: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<void>
    • Parameters

      • _accounts: PromiseOrValue<string>[]
      • Optional overrides: CallOverrides

      Returns Promise<void>

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

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

      Returns Promise<void>

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

      Returns Promise<void>

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

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • entryPoint: function
    • entryPoint(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

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

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getHash: function
  • getSponsorBalance: function
    • getSponsorBalance(_sponsor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • owner: function
    • owner(overrides?: CallOverrides): Promise<string>
    • Parameters

      • Optional overrides: CallOverrides

      Returns Promise<string>

  • parsePaymasterAndData: function
    • parsePaymasterAndData(paymasterAndData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[] & { signature: string; validAfter: number; validUntil: number }>
    • Parameters

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

      Returns Promise<[] & { signature: string; validAfter: number; validUntil: number }>

  • postOp: function
  • removeBatchFromWhitelist: function
    • removeBatchFromWhitelist(_accounts: PromiseOrValue<string>[], overrides?: CallOverrides): Promise<void>
    • Parameters

      • _accounts: PromiseOrValue<string>[]
      • Optional overrides: CallOverrides

      Returns Promise<void>

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

      Returns Promise<void>

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

      • Optional overrides: CallOverrides

      Returns Promise<void>

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

      Returns Promise<void>

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

      • Optional overrides: CallOverrides

      Returns Promise<void>

  • validatePaymasterUserOp: function
  • withdrawFunds: function
    • withdrawFunds(_amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>
    • Parameters

      • _amount: PromiseOrValue<BigNumberish>
      • 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>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { addBatchToWhitelist: any; addStake: any; addToWhitelist: any; check: any; depositFunds: any; entryPoint: any; getDeposit: any; getHash: any; getSponsorBalance: any; owner: any; parsePaymasterAndData: any; postOp: any; removeBatchFromWhitelist: any; removeFromWhitelist: any; renounceOwnership: any; transferOwnership: any; unlockStake: any; validatePaymasterUserOp: any; withdrawFunds: any; withdrawStake: any }

Type declaration

  • addBatchToWhitelist: function
    • Parameters

      Returns Promise<BigNumber>

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

      Returns Promise<BigNumber>

  • addToWhitelist: function
  • check: function
  • depositFunds: function
    • depositFunds(overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<BigNumber>
    • Parameters

      • Optional overrides: PayableOverrides & { from?: PromiseOrValue<string> }

      Returns Promise<BigNumber>

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

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

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

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getHash: function
  • getSponsorBalance: function
    • getSponsorBalance(_sponsor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

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

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • parsePaymasterAndData: function
    • parsePaymasterAndData(paymasterAndData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

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

      Returns Promise<BigNumber>

  • postOp: function
  • removeBatchFromWhitelist: function
    • removeBatchFromWhitelist(_accounts: PromiseOrValue<string>[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

  • removeFromWhitelist: function
  • renounceOwnership: function
    • renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

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

      Returns Promise<BigNumber>

  • validatePaymasterUserOp: function
  • withdrawFunds: function
    • Parameters

      Returns Promise<BigNumber>

  • withdrawStake: function
    • Parameters

      Returns Promise<BigNumber>

filters

filters: { AddedBatchToWhitelist: any; AddedBatchToWhitelist(address,address[]): any; AddedToWhitelist: any; AddedToWhitelist(address,address): any; OwnershipTransferred: any; OwnershipTransferred(address,address): any; RemovedBatchFromWhitelist: any; RemovedBatchFromWhitelist(address,address[]): any; RemovedFromWhitelist: any; RemovedFromWhitelist(address,address): any; SponsorSuccessful: any; SponsorSuccessful(address,address): any }

Type declaration

functions

functions: { addBatchToWhitelist: any; addStake: any; addToWhitelist: any; check: any; depositFunds: any; entryPoint: any; getDeposit: any; getHash: any; getSponsorBalance: any; owner: any; parsePaymasterAndData: any; postOp: any; removeBatchFromWhitelist: any; removeFromWhitelist: any; renounceOwnership: any; transferOwnership: any; unlockStake: any; validatePaymasterUserOp: any; withdrawFunds: any; withdrawStake: any }

Type declaration

  • addBatchToWhitelist: function
    • addBatchToWhitelist(_accounts: PromiseOrValue<string>[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

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

      Returns Promise<ContractTransaction>

  • addToWhitelist: function
    • Parameters

      Returns Promise<ContractTransaction>

  • check: function
  • depositFunds: function
    • depositFunds(overrides?: PayableOverrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      • Optional overrides: PayableOverrides & { from?: PromiseOrValue<string> }

      Returns Promise<ContractTransaction>

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

      • Optional overrides: CallOverrides

      Returns Promise<[]>

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

      • Optional overrides: CallOverrides

      Returns Promise<[]>

  • getHash: function
  • getSponsorBalance: function
    • getSponsorBalance(_sponsor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[]>
    • Parameters

      Returns Promise<[]>

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

      • Optional overrides: CallOverrides

      Returns Promise<[]>

  • parsePaymasterAndData: function
    • parsePaymasterAndData(paymasterAndData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[] & { signature: string; validAfter: number; validUntil: number }>
    • Parameters

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

      Returns Promise<[] & { signature: string; validAfter: number; validUntil: number }>

  • postOp: function
  • removeBatchFromWhitelist: function
    • removeBatchFromWhitelist(_accounts: PromiseOrValue<string>[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
    • Parameters

      Returns Promise<ContractTransaction>

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

      Returns Promise<ContractTransaction>

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

      Returns Promise<ContractTransaction>

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

      Returns Promise<ContractTransaction>

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

      Returns Promise<ContractTransaction>

  • validatePaymasterUserOp: function
  • withdrawFunds: function
    • withdrawFunds(_amount: PromiseOrValue<BigNumberish>, 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>

interface

off

off: OnEvent<this>

on

on: OnEvent<this>

once

once: OnEvent<this>

populateTransaction

populateTransaction: { addBatchToWhitelist: any; addStake: any; addToWhitelist: any; check: any; depositFunds: any; entryPoint: any; getDeposit: any; getHash: any; getSponsorBalance: any; owner: any; parsePaymasterAndData: any; postOp: any; removeBatchFromWhitelist: any; removeFromWhitelist: any; renounceOwnership: any; transferOwnership: any; unlockStake: any; validatePaymasterUserOp: any; withdrawFunds: any; withdrawStake: any }

Type declaration

  • addBatchToWhitelist: function
    • addBatchToWhitelist(_accounts: PromiseOrValue<string>[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

  • check: function
    • Parameters

      Returns Promise<PopulatedTransaction>

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

      • Optional overrides: PayableOverrides & { from?: PromiseOrValue<string> }

      Returns Promise<PopulatedTransaction>

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

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

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

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • getHash: function
  • getSponsorBalance: function
    • getSponsorBalance(_sponsor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

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

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • parsePaymasterAndData: function
    • parsePaymasterAndData(paymasterAndData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

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

      Returns Promise<PopulatedTransaction>

  • postOp: function
  • removeBatchFromWhitelist: function
    • removeBatchFromWhitelist(_accounts: PromiseOrValue<string>[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

  • validatePaymasterUserOp: function
  • withdrawFunds: function
    • withdrawFunds(_amount: PromiseOrValue<BigNumberish>, 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>

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

addBatchToWhitelist

  • addBatchToWhitelist(_accounts: PromiseOrValue<string>[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

addStake

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

    Returns Promise<ContractTransaction>

addToWhitelist

  • Parameters

    Returns Promise<ContractTransaction>

attach

  • attach(addressOrName: string): this
  • Parameters

    • addressOrName: string

    Returns this

check

connect

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

    • signerOrProvider: Signer | Provider | string

    Returns this

deployed

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

depositFunds

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

    • Optional overrides: PayableOverrides & { from?: PromiseOrValue<string> }

    Returns Promise<ContractTransaction>

emit

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

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

    Returns boolean

entryPoint

  • entryPoint(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

fallback

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

    • Optional overrides: TransactionRequest

    Returns Promise<TransactionResponse>

getDeposit

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

    • Optional overrides: CallOverrides

    Returns Promise<BigNumber>

getHash

getSponsorBalance

  • getSponsorBalance(_sponsor: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
  • Parameters

    Returns Promise<BigNumber>

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>

owner

  • owner(overrides?: CallOverrides): Promise<string>
  • Parameters

    • Optional overrides: CallOverrides

    Returns Promise<string>

parsePaymasterAndData

  • parsePaymasterAndData(paymasterAndData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[] & { signature: string; validAfter: number; validUntil: number }>
  • Parameters

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

    Returns Promise<[] & { signature: string; validAfter: number; validUntil: number }>

postOp

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

removeBatchFromWhitelist

  • removeBatchFromWhitelist(_accounts: PromiseOrValue<string>[], overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<ContractTransaction>
  • Parameters

    Returns Promise<ContractTransaction>

removeFromWhitelist

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

    Returns Promise<ContractTransaction>

renounceOwnership

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

    Returns Promise<ContractTransaction>

transferOwnership

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

    Returns Promise<ContractTransaction>

unlockStake

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

    Returns Promise<ContractTransaction>

validatePaymasterUserOp

withdrawFunds

  • withdrawFunds(_amount: PromiseOrValue<BigNumberish>, 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>

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