/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import BN from "bn.js"; import { EventData, PastEventOptions } from "../Web3Types"; export interface RelayRegistrarContract extends Truffle.Contract { "new"( _relayRegistrationMaxAge: number | BN | string, meta?: Truffle.TransactionDetails ): Promise; } export interface OwnershipTransferred { name: "OwnershipTransferred"; args: { previousOwner: string; newOwner: string; 0: string; 1: string; }; } export interface RelayServerRegistered { name: "RelayServerRegistered"; args: { relayManager: string; relayHub: string; relayUrl: string[]; 0: string; 1: string; 2: string[]; }; } type AllEvents = OwnershipTransferred | RelayServerRegistered; export interface RelayRegistrarInstance extends Truffle.ContractInstance { /** * Returns the address of the current owner. */ owner(txDetails?: Truffle.TransactionDetails): Promise; /** * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. */ renounceOwnership: { (txDetails?: Truffle.TransactionDetails): Promise< Truffle.TransactionResponse >; call(txDetails?: Truffle.TransactionDetails): Promise; sendTransaction(txDetails?: Truffle.TransactionDetails): Promise; estimateGas(txDetails?: Truffle.TransactionDetails): Promise; }; /** * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. */ transferOwnership: { (newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< Truffle.TransactionResponse >; call( newOwner: string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( newOwner: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( newOwner: string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** */ getCreationBlock(txDetails?: Truffle.TransactionDetails): Promise; /** */ getRelayRegistrationMaxAge( txDetails?: Truffle.TransactionDetails ): Promise; /** * Change the maximum relay registration age. */ setRelayRegistrationMaxAge: { ( _relayRegistrationMaxAge: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( _relayRegistrationMaxAge: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( _relayRegistrationMaxAge: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( _relayRegistrationMaxAge: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * 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; }; /** * @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 the address of the current owner. */ owner(txDetails?: Truffle.TransactionDetails): Promise; /** * Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner. */ renounceOwnership: { (txDetails?: Truffle.TransactionDetails): Promise< Truffle.TransactionResponse >; call(txDetails?: Truffle.TransactionDetails): Promise; sendTransaction(txDetails?: Truffle.TransactionDetails): Promise; estimateGas(txDetails?: Truffle.TransactionDetails): Promise; }; /** * Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner. */ transferOwnership: { (newOwner: string, txDetails?: Truffle.TransactionDetails): Promise< Truffle.TransactionResponse >; call( newOwner: string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( newOwner: string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( newOwner: string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** */ getCreationBlock(txDetails?: Truffle.TransactionDetails): Promise; /** */ getRelayRegistrationMaxAge( txDetails?: Truffle.TransactionDetails ): Promise; /** * Change the maximum relay registration age. */ setRelayRegistrationMaxAge: { ( _relayRegistrationMaxAge: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise>; call( _relayRegistrationMaxAge: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; sendTransaction( _relayRegistrationMaxAge: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; estimateGas( _relayRegistrationMaxAge: number | BN | string, txDetails?: Truffle.TransactionDetails ): Promise; }; /** * 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; }; /** * @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; }