UNPKG

@electra.finance/contracts

Version:
33 lines (32 loc) 1.39 kB
import type BN from "bn.js"; import type { ContractOptions } from "web3-eth-contract"; import type { EventLog } from "web3-core"; import type { EventEmitter } from "events"; import type { Callback, NonPayableTransactionObject, BlockType, BaseContract } from "./types"; export interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export interface DelegateStorage extends BaseContract { constructor(jsonInterface: any[], address?: string, options?: ContractOptions): DelegateStorage; clone(): DelegateStorage; methods: { changeDelegateFrom(request: [ string, boolean, number | string | BN, string, string | number[] ]): NonPayableTransactionObject<void>; delegateFromTimeout(trader: string): NonPayableTransactionObject<string>; delegatedAction(trader: string, call_data: string | number[]): NonPayableTransactionObject<string>; delegations(trader: string): NonPayableTransactionObject<string>; removeDelegate(): NonPayableTransactionObject<void>; setDelegate(delegate: string): NonPayableTransactionObject<void>; usedDelegationRequests(hash: string | number[]): NonPayableTransactionObject<boolean>; }; events: { allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; }