/** * This module provides an interface to aggregate integers either via * aggregator (parallelizable) or via normal integers. * * **Module ID:** `0x1::optional_aggregator` * * @module */ import type * as p from "@movingco/prelude"; /** * Wrapper around integer to have a custom overflow limit. Note that * Move has no traits (and trait bounds), so integer value must be u128. * `Integer` provides API to add/subtract and read, just like `Aggregator`. * * Type name: `0x1::optional_aggregator::Integer` */ export interface IInteger { value: p.U128; limit: p.U128; } /** * Struct that contains either an aggregator or a normal integer, both * overflowing on limit. * * Type name: `0x1::optional_aggregator::OptionalAggregator` */ export interface IOptionalAggregator { aggregator: { vec: ReadonlyArray<{ handle: p.U128; key: p.U128; limit: p.U128; }>; }; integer: { vec: ReadonlyArray<{ value: p.U128; limit: p.U128; }>; }; } export { idl } from "./idl.js"; /** The address of the module. */ export declare const ADDRESS: "0x1"; /** The full module name. */ export declare const FULL_NAME: "0x1::optional_aggregator"; /** The name of the module. */ export declare const NAME: "optional_aggregator"; /** Module ID information. */ export declare const id: { readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::optional_aggregator"; readonly NAME: "optional_aggregator"; }; export * as errors from "./errors.js"; /** Module error codes. */ export declare const errorCodes: { readonly "1": { readonly name: "EAGGREGATOR_OVERFLOW"; }; readonly "2": { readonly name: "EAGGREGATOR_UNDERFLOW"; }; }; /** All module function IDLs. */ export declare const functions: {}; /** All struct types with ability `key`. */ export declare const resources: {}; /** All struct types. */ export declare const structs: { readonly Integer: "0x1::optional_aggregator::Integer"; readonly OptionalAggregator: "0x1::optional_aggregator::OptionalAggregator"; }; /** * This module provides an interface to aggregate integers either via * aggregator (parallelizable) or via normal integers. */ export declare const moduleDefinition: { readonly errorCodes: { readonly "1": { readonly name: "EAGGREGATOR_OVERFLOW"; }; readonly "2": { readonly name: "EAGGREGATOR_UNDERFLOW"; }; }; readonly functions: {}; readonly resources: {}; readonly structs: { readonly Integer: "0x1::optional_aggregator::Integer"; readonly OptionalAggregator: "0x1::optional_aggregator::OptionalAggregator"; }; readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::optional_aggregator"; readonly NAME: "optional_aggregator"; }; //# sourceMappingURL=index.d.ts.map