Interface IEtherspotWallet

Hierarchy

  • BaseContract
    • IEtherspotWallet

Index

Constructors

constructor

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

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

    Returns IEtherspotWallet

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: { addDeposit: any; addGuardian: any; addOwner: any; changeProposalTimelock: any; discardCurrentProposal: any; entryPoint: any; execute: any; executeBatch: any; getDeposit: any; getProposal: any; guardianCosign: any; guardianPropose: any; isGuardian: any; isOwner: any; isValidSignature: any; removeGuardian: any; removeOwner: any; withdrawDepositTo: any }

Type declaration

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

      • Optional overrides: CallOverrides

      Returns Promise<void>

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

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

      Returns Promise<void>

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

      Returns Promise<void>

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

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

      Returns Promise<void>

  • discardCurrentProposal: function
    • discardCurrentProposal(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>

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

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getProposal: function
    • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>
    • Parameters

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

      Returns Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>

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

      • Optional overrides: CallOverrides

      Returns Promise<void>

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

      Returns Promise<void>

  • isGuardian: function
    • isGuardian(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

  • isOwner: function
    • isOwner(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

  • isValidSignature: function
  • removeGuardian: function
    • removeGuardian(_guardian: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>
    • Parameters

      Returns Promise<void>

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

      Returns Promise<void>

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

      Returns Promise<void>

Readonly deployTransaction

deployTransaction: TransactionResponse

estimateGas

estimateGas: { addDeposit: any; addGuardian: any; addOwner: any; changeProposalTimelock: any; discardCurrentProposal: any; entryPoint: any; execute: any; executeBatch: any; getDeposit: any; getProposal: any; guardianCosign: any; guardianPropose: any; isGuardian: any; isOwner: any; isValidSignature: any; removeGuardian: any; removeOwner: any; withdrawDepositTo: any }

Type declaration

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

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

      Returns Promise<BigNumber>

  • addGuardian: function
    • Parameters

      Returns Promise<BigNumber>

  • addOwner: function
  • changeProposalTimelock: function
    • changeProposalTimelock(_newTimelock: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

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

      Returns Promise<BigNumber>

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

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

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

      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getProposal: function
    • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

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

      Returns Promise<BigNumber>

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

      Returns Promise<BigNumber>

  • guardianPropose: function
  • isGuardian: function
    • isGuardian(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      Returns Promise<BigNumber>

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

      Returns Promise<BigNumber>

  • isValidSignature: function
    • Parameters

      Returns Promise<BigNumber>

  • removeGuardian: function
  • removeOwner: function
  • withdrawDepositTo: function

filters

filters: { EtherspotWalletInitialized: any; EtherspotWalletInitialized(address,address): any; EtherspotWalletReceived: any; EtherspotWalletReceived(address,uint256): any; GuardianAdded: any; GuardianAdded(address): any; GuardianRemoved: any; GuardianRemoved(address): any; OwnerAdded: any; OwnerAdded(address): any; OwnerRemoved: any; OwnerRemoved(address): any; ProposalDiscarded: any; ProposalDiscarded(uint256,address): any; ProposalSubmitted: any; ProposalSubmitted(uint256,address,address): any; ProposalTimelockChanged: any; ProposalTimelockChanged(uint256): any; QuorumNotReached: any; QuorumNotReached(uint256,address,uint256): any }

Type declaration

functions

functions: { addDeposit: any; addGuardian: any; addOwner: any; changeProposalTimelock: any; discardCurrentProposal: any; entryPoint: any; execute: any; executeBatch: any; getDeposit: any; getProposal: any; guardianCosign: any; guardianPropose: any; isGuardian: any; isOwner: any; isValidSignature: any; removeGuardian: any; removeOwner: any; withdrawDepositTo: any }

Type declaration

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

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

      Returns Promise<ContractTransaction>

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

      Returns Promise<ContractTransaction>

  • addOwner: function
    • Parameters

      Returns Promise<ContractTransaction>

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

      Returns Promise<ContractTransaction>

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

      Returns Promise<ContractTransaction>

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

      • Optional overrides: CallOverrides

      Returns Promise<[]>

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

      • Optional overrides: CallOverrides

      Returns Promise<[]>

  • getProposal: function
    • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>
    • Parameters

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

      Returns Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>

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

      Returns Promise<ContractTransaction>

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

      Returns Promise<ContractTransaction>

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

      Returns Promise<[]>

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

      Returns Promise<[]>

  • isValidSignature: function
    • isValidSignature(hash: PromiseOrValue<BytesLike>, signature: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[] & { magicValue: string }>
    • Parameters

      Returns Promise<[] & { magicValue: string }>

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

      Returns Promise<ContractTransaction>

  • removeOwner: function
    • Parameters

      Returns Promise<ContractTransaction>

  • withdrawDepositTo: function

interface

off

off: OnEvent<this>

on

on: OnEvent<this>

once

once: OnEvent<this>

populateTransaction

populateTransaction: { addDeposit: any; addGuardian: any; addOwner: any; changeProposalTimelock: any; discardCurrentProposal: any; entryPoint: any; execute: any; executeBatch: any; getDeposit: any; getProposal: any; guardianCosign: any; guardianPropose: any; isGuardian: any; isOwner: any; isValidSignature: any; removeGuardian: any; removeOwner: any; withdrawDepositTo: any }

Type declaration

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

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

  • addOwner: function
    • Parameters

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

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

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

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

      • Optional overrides: CallOverrides

      Returns Promise<PopulatedTransaction>

  • getProposal: function
    • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

  • isValidSignature: function
    • isValidSignature(hash: PromiseOrValue<BytesLike>, signature: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>
    • Parameters

      Returns Promise<PopulatedTransaction>

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

      Returns Promise<PopulatedTransaction>

  • removeOwner: function
    • Parameters

      Returns Promise<PopulatedTransaction>

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

addDeposit

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

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

    Returns Promise<ContractTransaction>

addGuardian

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

    Returns Promise<ContractTransaction>

addOwner

  • Parameters

    Returns Promise<ContractTransaction>

attach

  • attach(addressOrName: string): this
  • Parameters

    • addressOrName: string

    Returns this

changeProposalTimelock

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

    Returns Promise<ContractTransaction>

connect

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

    • signerOrProvider: Signer | Provider | string

    Returns this

deployed

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

discardCurrentProposal

  • discardCurrentProposal(overrides?: Overrides & { 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

entryPoint

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

    • Optional overrides: CallOverrides

    Returns Promise<string>

execute

executeBatch

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>

getProposal

  • getProposal(_proposalId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>
  • Parameters

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

    Returns Promise<[] & { approvalCount_: BigNumber; guardiansApproved_: string[]; ownerProposed_: string; proposedAt_: BigNumber; resolved_: boolean }>

guardianCosign

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

    Returns Promise<ContractTransaction>

guardianPropose

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

    Returns Promise<ContractTransaction>

isGuardian

  • isGuardian(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    Returns Promise<boolean>

isOwner

  • isOwner(_address: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>
  • Parameters

    Returns Promise<boolean>

isValidSignature

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

removeGuardian

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

    Returns Promise<ContractTransaction>

removeOwner

  • Parameters

    Returns Promise<ContractTransaction>

withdrawDepositTo

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