UNPKG

@okcontract/sdk

Version:

One-stop-shop permissionless SDK for building any blockchain frontend

17 lines (16 loc) 818 B
import { type AnyCell, type CellArray } from "@okcontract/cells"; import type { Address, LogEntry, Network } from "@okcontract/multichain"; import { type ChainType } from "@okcontract/multichain"; import { type TokenContractData } from "./erc20"; import type { OKPage } from "./instance"; export type AnalyzedLog = { address: Address<Network>; event: string; eventArgs: { [key: string]: unknown; }; tcd?: TokenContractData; nftcd?: boolean; }; export declare const analyzeLog: (instance: OKPage, log: AnyCell<LogEntry>, ch: AnyCell<ChainType>) => AnyCell<AnalyzedLog>; export declare const analyzeLogs: (instance: OKPage, chain: AnyCell<ChainType>, logsCell: CellArray<LogEntry>) => import("@okcontract/cells").MapCell<import("@okcontract/cells").MapCell<AnalyzedLog, false>[], false>;