import { type Any } from '@bufbuild/protobuf/wkt'; import { type BalanceAtReply, type BalanceAtRequest, type BalanceAtRequestJson, type CallContractReply, type CallContractRequest, type CallContractRequestJson, type EstimateGasReply, type EstimateGasRequest, type EstimateGasRequestJson, type FilterLogsReply, type FilterLogsRequest, type FilterLogsRequestJson, type FilterLogTriggerRequest, type FilterLogTriggerRequestJson, type GasConfig, type GasConfigJson, type GetTransactionByHashReply, type GetTransactionByHashRequest, type GetTransactionByHashRequestJson, type GetTransactionReceiptReply, type GetTransactionReceiptRequest, type GetTransactionReceiptRequestJson, type HeaderByNumberReply, type HeaderByNumberRequest, type HeaderByNumberRequestJson, type Log, type WriteReportReply, type WriteReportRequest } from '../../../../../generated/capabilities/blockchain/evm/v1alpha/client_pb'; import type { Runtime } from '../../../../../sdk'; import { Report } from '../../../../../sdk/report'; import type { Trigger } from '../../../../../sdk/utils/triggers/trigger-interface'; import type { CapabilityInput, NoExcess } from '../../../../../sdk/utils/types/no-excess'; export type WriteCreReportRequest = { receiver: Uint8Array; report?: Report; gasConfig?: GasConfig; $report: true; }; export type WriteCreReportRequestJson = { receiver: string; report?: Report; gasConfig?: GasConfigJson; }; export declare function x_generatedCodeOnly_wrap_WriteCreReportRequest(input: WriteReportRequest): WriteCreReportRequest; export declare function createWriteCreReportRequest(input: WriteCreReportRequestJson): WriteCreReportRequest; export declare function x_generatedCodeOnly_unwrap_WriteCreReportRequest(input: WriteCreReportRequest): WriteReportRequest; /** * Client Capability * * Capability ID: evm@1.0.0 * Capability Name: evm * Capability Version: 1.0.0 */ export declare class ClientCapability { private readonly ChainSelector; /** The capability ID for this service */ static readonly CAPABILITY_ID = "evm@1.0.0"; static readonly CAPABILITY_NAME = "evm"; static readonly CAPABILITY_VERSION = "1.0.0"; /** Available ChainSelector values */ static readonly SUPPORTED_CHAIN_SELECTORS: { readonly 'adi-mainnet': 4059281736450291836n; readonly 'adi-testnet': 9418205736192840573n; readonly 'apechain-testnet-curtis': 9900119385908781505n; readonly 'arc-testnet': 3034092155422581607n; readonly 'avalanche-mainnet': 6433500567565415381n; readonly 'avalanche-testnet-fuji': 14767482510784806043n; readonly 'binance_smart_chain-mainnet': 11344663589394136015n; readonly 'binance_smart_chain-testnet': 13264668187771770619n; readonly 'celo-mainnet': 1346049177634351622n; readonly 'celo-sepolia': 3761762704474186180n; readonly 'cronos-testnet': 2995292832068775165n; readonly 'dtcc-testnet-andesite': 15513093881969820114n; readonly 'ethereum-mainnet': 5009297550715157269n; readonly 'ethereum-mainnet-arbitrum-1': 4949039107694359620n; readonly 'ethereum-mainnet-base-1': 15971525489660198786n; readonly 'ethereum-mainnet-ink-1': 3461204551265785888n; readonly 'ethereum-mainnet-linea-1': 4627098889531055414n; readonly 'ethereum-mainnet-mantle-1': 1556008542357238666n; readonly 'ethereum-mainnet-optimism-1': 3734403246176062136n; readonly 'ethereum-mainnet-scroll-1': 13204309965629103672n; readonly 'ethereum-mainnet-worldchain-1': 2049429975587534727n; readonly 'ethereum-mainnet-xlayer-1': 3016212468291539606n; readonly 'ethereum-mainnet-zksync-1': 1562403441176082196n; readonly 'ethereum-testnet-sepolia': 16015286601757825753n; readonly 'ethereum-testnet-sepolia-arbitrum-1': 3478487238524512106n; readonly 'ethereum-testnet-sepolia-base-1': 10344971235874465080n; readonly 'ethereum-testnet-sepolia-linea-1': 5719461335882077547n; readonly 'ethereum-testnet-sepolia-mantle-1': 8236463271206331221n; readonly 'ethereum-testnet-sepolia-optimism-1': 5224473277236331295n; readonly 'ethereum-testnet-sepolia-scroll-1': 2279865765895943307n; readonly 'ethereum-testnet-sepolia-unichain-1': 14135854469784514356n; readonly 'ethereum-testnet-sepolia-worldchain-1': 5299555114858065850n; readonly 'ethereum-testnet-sepolia-zksync-1': 6898391096552792247n; readonly 'gnosis_chain-mainnet': 465200170687744372n; readonly 'gnosis_chain-testnet-chiado': 8871595565390010547n; readonly 'hyperliquid-mainnet': 2442541497099098535n; readonly 'hyperliquid-testnet': 4286062357653186312n; readonly 'ink-testnet-sepolia': 9763904284804119144n; readonly 'jovay-mainnet': 1523760397290643893n; readonly 'jovay-testnet': 945045181441419236n; readonly 'megaeth-mainnet': 6093540873831549674n; readonly 'megaeth-testnet-2': 18241817625092392675n; readonly 'pharos-atlantic-testnet': 16098325658947243212n; readonly 'pharos-mainnet': 7801139999541420232n; readonly 'plasma-mainnet': 9335212494177455608n; readonly 'plasma-testnet': 3967220077692964309n; readonly 'polygon-mainnet': 4051577828743386545n; readonly 'polygon-testnet-amoy': 16281711391670634445n; readonly 'private-testnet-andesite': 6915682381028791124n; readonly 'private-testnet-pumice': 1564738277398880633n; readonly 'private-testnet-quartzite': 4175996748267305081n; readonly 'private-testnet-rhyolite': 604447335222770945n; readonly 'sonic-mainnet': 1673871237479749969n; readonly 'sonic-testnet': 1763698235108410440n; readonly 'tac-testnet': 9488606126177218005n; readonly 'xlayer-testnet': 10212741611335999305n; }; constructor(ChainSelector: bigint); callContract(runtime: Runtime, input: CapabilityInput): { result: () => CallContractReply; }; filterLogs(runtime: Runtime, input: CapabilityInput): { result: () => FilterLogsReply; }; balanceAt(runtime: Runtime, input: CapabilityInput): { result: () => BalanceAtReply; }; estimateGas(runtime: Runtime, input: CapabilityInput): { result: () => EstimateGasReply; }; getTransactionByHash(runtime: Runtime, input: CapabilityInput): { result: () => GetTransactionByHashReply; }; getTransactionReceipt(runtime: Runtime, input: CapabilityInput): { result: () => GetTransactionReceiptReply; }; headerByNumber(runtime: Runtime, input: CapabilityInput): { result: () => HeaderByNumberReply; }; logTrigger(config: NoExcess): ClientLogTrigger; writeReport(runtime: Runtime, input: CapabilityInput): { result: () => WriteReportReply; }; } /** * Trigger implementation for LogTrigger */ declare class ClientLogTrigger implements Trigger { private readonly _capabilityId; private readonly _method; private readonly ChainSelector; readonly config: FilterLogTriggerRequest; constructor(config: FilterLogTriggerRequest | FilterLogTriggerRequestJson, _capabilityId: string, _method: string, ChainSelector: bigint); capabilityId(): string; method(): string; outputSchema(): import("@bufbuild/protobuf/codegenv2").GenMessage; configAsAny(): Any; /** * Transform the raw trigger output - override this method if needed * Default implementation returns the raw output unchanged */ adapt(rawOutput: Log): Log; } export {};