UNPKG

@ardier16/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

103 lines (88 loc) 2.62 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { ContractOptions } from "web3-eth-contract"; import { EventLog } from "web3-core"; import { EventEmitter } from "events"; import { Callback, PayableTransactionObject, NonPayableTransactionObject, BlockType, ContractEventLog, BaseContract, } from "./types"; interface EventOptions { filter?: object; fromBlock?: BlockType; topics?: string[]; } export type OwnershipTransferred = ContractEventLog<{ previousOwner: string; newOwner: string; 0: string; 1: string; }>; export type ValidatorAdded = ContractEventLog<{ _validator: string; 0: string; }>; export type ValidatorRemoved = ContractEventLog<{ _validator: string; 0: string; }>; export interface TokenBridgeAdminProxy extends BaseContract { constructor( jsonInterface: any[], address?: string, options?: ContractOptions ): TokenBridgeAdminProxy; clone(): TokenBridgeAdminProxy; methods: { owner(): NonPayableTransactionObject<string>; renounceOwnership(): NonPayableTransactionObject<void>; transferOwnership(newOwner: string): NonPayableTransactionObject<void>; initialize( _registry: string, _bridgeValidators: string ): NonPayableTransactionObject<void>; updateTokenbridgeValidators(): NonPayableTransactionObject<void>; }; events: { OwnershipTransferred(cb?: Callback<OwnershipTransferred>): EventEmitter; OwnershipTransferred( options?: EventOptions, cb?: Callback<OwnershipTransferred> ): EventEmitter; ValidatorAdded(cb?: Callback<ValidatorAdded>): EventEmitter; ValidatorAdded( options?: EventOptions, cb?: Callback<ValidatorAdded> ): EventEmitter; ValidatorRemoved(cb?: Callback<ValidatorRemoved>): EventEmitter; ValidatorRemoved( options?: EventOptions, cb?: Callback<ValidatorRemoved> ): EventEmitter; allEvents(options?: EventOptions, cb?: Callback<EventLog>): EventEmitter; }; once(event: "OwnershipTransferred", cb: Callback<OwnershipTransferred>): void; once( event: "OwnershipTransferred", options: EventOptions, cb: Callback<OwnershipTransferred> ): void; once(event: "ValidatorAdded", cb: Callback<ValidatorAdded>): void; once( event: "ValidatorAdded", options: EventOptions, cb: Callback<ValidatorAdded> ): void; once(event: "ValidatorRemoved", cb: Callback<ValidatorRemoved>): void; once( event: "ValidatorRemoved", options: EventOptions, cb: Callback<ValidatorRemoved> ): void; }