import { Conflux, Transaction, CONST } from 'js-conflux-sdk'; import { SocketParams } from '../Logger'; /** * Wraps the Conflux Wallet so it's compatible with the RPC gateway of * `web3-jsonrpc-gateway`. */ export declare class WalletWrapper { conflux: Conflux; alwaysSynced: boolean; defaultGas: BigInt; epochLabel: CONST.EPOCH_NUMBER; estimateGasPrice: boolean; interleaveEpochs: number; lastKnownEpochNumber: number; networkId: number; constructor(networkId: number, privateKeys: string[], interleaveEpochs: number, defaultGas: BigInt, estimateGasPrice: boolean, epochLabel: string, alwaysSynced: boolean, conflux: Conflux); /** * Sends raw call to provider. * @param method JSON-RPC method * @param params JSON-RPC parameters * @returns */ call(tx: Transaction, epoch: number | string, socket: SocketParams): Promise; /** * Check for possible rollbacks on the EVM side. * @param socket Socket parms where the RPC call is coming from * @returns Last known epoch number. */ checkRollbacks(socket: SocketParams): Promise; /** * Create new eth_client block filter. */ createEthBlockFilter(_socket: SocketParams): Promise; /** * Use Conflux SDK to process `eth_estimateGas`, while making response ETH compliant */ estimateGas(params: Transaction, _socket: SocketParams): Promise; /** * Gets Account interaction object of given address, if available. */ getAccount(address: string): any | undefined; /** * Gets account info of given address */ getAccountInfo(address: string): Promise; /** * Gets addresses of the wallet. */ getAccounts(): string[]; /** * Gets eth filter changes. Only EthBlockFilters are currently supported. */ getEthFilterChanges(id: string, socket: SocketParams): Promise; /** * Gets network id. */ getNetworkId(): Promise; processChainId(): Promise; /** * Get syncing status from provider. */ getSyncingStatus(socket: SocketParams): Promise; /** * Uninstall eth_client filter (mock). */ uninstallEthFilter(params: Transaction, socket: SocketParams): Promise; /** * Signs a message using the wallet's private key. * * @remark Return type is made `any` here because the result needs to be a String, not a `Record`. */ processEthSignMessage(address: string, message: object, socket: SocketParams): Promise; /** * Signs transactinon usings wallet's private key, before forwarding to provider. * * @remark Return type is made `any` here because the result needs to be a String, not a `Record`. */ processTransaction(params: Transaction, socket: SocketParams): Promise; /** * Sends raw call to provider. * @param method JSON-RPC method * @param params JSON-RPC parameters * @returns */ send(method: string, params: any[]): Promise; } //# sourceMappingURL=wrapper.d.ts.map