import { TokenBurn } from "@gala-chain/api"; import BigNumber from "bignumber.js"; import { GalaChainContext } from "../types"; export interface FetchBurnParams { collection?: string; category?: string; type?: string; additionalKey?: string; instance?: string; created?: number; burnedBy: string; } /** * @description * * Query `TokenBurn` entries from on-chain World State using the provided * filtering parameters. * * Results will be sorted by ascending creation date (oldest first). * * Non-paginated. Broad queries with many results could exceed the * configured maximum and throw an error. Refer to the * `TokenBurn` class definition, and use `@ChainKeys` of * increasing specificity to limit queries. * * The `@ChainKeys` that make up the World State composite key are ordered, * and cannot be skipped when making partial composite key queries. * Be advised that broad queries can lead * to performance issues for large result sets. * * @param ctx * @param data * @returns */ export declare function fetchBurns(ctx: GalaChainContext, data: FetchBurnParams): Promise; export interface FetchBurnCounterParams { collection: string; category: string; type: string; additionalKey: string; } /** * @experimental * * @description * * Execute a `getStateByRange` query of `TokenBurnCounter` entries. * * The start key will be offset by the configured `lookbackTimeOffset` * (derived from the `blockTimeout`) environment variable, using an inverted * time stamp. * * New entries are expected to be composed with a simple key * generated based on the inversion of the current `ctx.txUnixTime`. * * The intent is to avoid reading new entries written in the same * block, by choosing a start key that begins a range which * will not include new writes. * * @remarks * * Unlike many other fetch queries, `fetchKnownBurnCount` * iterate over entries extended from the `RangedChainObject`. * `RangedChainObject` types do not support composite key queries. * * @param ctx * @param token * @returns */ export declare function fetchKnownBurnCount(ctx: GalaChainContext, token: FetchBurnCounterParams): Promise; //# sourceMappingURL=fetchBurns.d.ts.map