/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { EventData, PastEventOptions } from "../Web3Types"; export interface IRelayRegistrarContract extends Truffle.Contract { "new"(meta?: Truffle.TransactionDetails): Promise; } export interface RelayServerRegistered { name: "RelayServerRegistered"; args: { relayManager: string; relayHub: string; relayUrl: string[]; 0: string; 1: string; 2: string[]; }; } type AllEvents = RelayServerRegistered; export interface IRelayRegistrarInstance extends Truffle.ContractInstance { /** * Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas. */ supportsInterface( interfaceId: string, txDetails?: Truffle.TransactionDetails ): Promise; /** * This function is called by Relay Servers in order to register or to update their registration. * @param relayHub The address of the `RelayHub` contract for which this action is performed. * @param url The URL of the Relay Server that is listening to the clients' requests. */ registerRelayServer: { ( relayHub: string, url: string[], txDetails?: Truffle.TransactionDetails ): Promise>; call( relayHub: string, url: string[], txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( relayHub: string, url: string[], txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( relayHub: string, url: string[], txDetails?: Truffle.TransactionDetails ): Promise; }; /** */ getCreationBlock(txDetails?: Truffle.TransactionDetails): Promise; /** */ getRelayRegistrationMaxAge( txDetails?: Truffle.TransactionDetails ): Promise; /** * Change the maximum relay registration age. */ setRelayRegistrationMaxAge: { ( arg0: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( arg0: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( arg0: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( arg0: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * @param relayHub The address of the `RelayHub` contract for which this action is performed. * @param relayManager An address of a Relay Manager. */ getRelayInfo( relayHub: string, relayManager: string, txDetails?: Truffle.TransactionDetails ): Promise<{ lastSeenBlockNumber: BN; lastSeenTimestamp: BN; firstSeenBlockNumber: BN; firstSeenTimestamp: BN; urlParts: string[]; relayManager: string; }>; /** * Read relay info of registered Relay Server from an on-chain storage. * @param relayHub The address of the `RelayHub` contract for which this action is performed. */ readRelayInfos( relayHub: string, txDetails?: Truffle.TransactionDetails ): Promise< { lastSeenBlockNumber: BN; lastSeenTimestamp: BN; firstSeenBlockNumber: BN; firstSeenTimestamp: BN; urlParts: string[]; relayManager: string; }[] >; /** * Read relay info of registered Relay Server from an on-chain storage. * @param maxCount The maximum amount of relays to be returned by this function. * @param oldestBlockNumber The latest block number in which a Relay Server may be registered. * @param oldestBlockTimestamp The latest block timestamp in which a Relay Server may be registered. * @param relayHub The address of the `RelayHub` contract for which this action is performed. */ readRelayInfosInRange( relayHub: string, oldestBlockNumber: number | BN | string, oldestBlockTimestamp: number | BN | string, maxCount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise< { lastSeenBlockNumber: BN; lastSeenTimestamp: BN; firstSeenBlockNumber: BN; firstSeenTimestamp: BN; urlParts: string[]; relayManager: string; }[] >; methods: { /** * Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas. */ supportsInterface( interfaceId: string, txDetails?: Truffle.TransactionDetails ): Promise; /** * This function is called by Relay Servers in order to register or to update their registration. * @param relayHub The address of the `RelayHub` contract for which this action is performed. * @param url The URL of the Relay Server that is listening to the clients' requests. */ registerRelayServer: { ( relayHub: string, url: string[], txDetails?: Truffle.TransactionDetails ): Promise>; call( relayHub: string, url: string[], txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( relayHub: string, url: string[], txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( relayHub: string, url: string[], txDetails?: Truffle.TransactionDetails ): Promise; }; /** */ getCreationBlock(txDetails?: Truffle.TransactionDetails): Promise; /** */ getRelayRegistrationMaxAge( txDetails?: Truffle.TransactionDetails ): Promise; /** * Change the maximum relay registration age. */ setRelayRegistrationMaxAge: { ( arg0: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( arg0: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( arg0: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( arg0: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * @param relayHub The address of the `RelayHub` contract for which this action is performed. * @param relayManager An address of a Relay Manager. */ getRelayInfo( relayHub: string, relayManager: string, txDetails?: Truffle.TransactionDetails ): Promise<{ lastSeenBlockNumber: BN; lastSeenTimestamp: BN; firstSeenBlockNumber: BN; firstSeenTimestamp: BN; urlParts: string[]; relayManager: string; }>; /** * Read relay info of registered Relay Server from an on-chain storage. * @param relayHub The address of the `RelayHub` contract for which this action is performed. */ readRelayInfos( relayHub: string, txDetails?: Truffle.TransactionDetails ): Promise< { lastSeenBlockNumber: BN; lastSeenTimestamp: BN; firstSeenBlockNumber: BN; firstSeenTimestamp: BN; urlParts: string[]; relayManager: string; }[] >; /** * Read relay info of registered Relay Server from an on-chain storage. * @param maxCount The maximum amount of relays to be returned by this function. * @param oldestBlockNumber The latest block number in which a Relay Server may be registered. * @param oldestBlockTimestamp The latest block timestamp in which a Relay Server may be registered. * @param relayHub The address of the `RelayHub` contract for which this action is performed. */ readRelayInfosInRange( relayHub: string, oldestBlockNumber: number | BN | string, oldestBlockTimestamp: number | BN | string, maxCount: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise< { lastSeenBlockNumber: BN; lastSeenTimestamp: BN; firstSeenBlockNumber: BN; firstSeenTimestamp: BN; urlParts: string[]; relayManager: string; }[] >; }; getPastEvents(event: string): Promise; getPastEvents( event: string, options: PastEventOptions, callback: (error: Error, event: EventData) => void ): Promise; getPastEvents(event: string, options: PastEventOptions): Promise; getPastEvents( event: string, callback: (error: Error, event: EventData) => void ): Promise; }