/** * The IDL of the module. * * @module */ /** The IDL of the module. */ export declare const idl: { readonly module_id: "0x1::optional_aggregator"; readonly doc: "This module provides an interface to aggregate integers either via\naggregator (parallelizable) or via normal integers."; readonly functions: readonly []; readonly structs: readonly [{ readonly name: "0x1::optional_aggregator::Integer"; readonly doc: "Wrapper around integer to have a custom overflow limit. Note that\nMove has no traits (and trait bounds), so integer value must be u128.\n`Integer` provides API to add/subtract and read, just like `Aggregator`."; readonly fields: readonly [{ readonly name: "value"; readonly ty: "u128"; }, { readonly name: "limit"; readonly ty: "u128"; }]; readonly abilities: readonly ["store"]; }, { readonly name: "0x1::optional_aggregator::OptionalAggregator"; readonly doc: "Struct that contains either an aggregator or a normal integer, both\noverflowing on limit."; readonly fields: readonly [{ readonly name: "aggregator"; readonly ty: { readonly struct: { readonly name: "0x1::option::Option"; readonly ty_args: readonly [{ readonly struct: { readonly name: "0x1::aggregator::Aggregator"; }; }]; }; }; }, { readonly name: "integer"; readonly ty: { readonly struct: { readonly name: "0x1::option::Option"; readonly ty_args: readonly [{ readonly struct: { readonly name: "0x1::optional_aggregator::Integer"; }; }]; }; }; }]; readonly abilities: readonly ["store"]; }]; readonly errors: { readonly "1": { readonly name: "EAGGREGATOR_OVERFLOW"; }; readonly "2": { readonly name: "EAGGREGATOR_UNDERFLOW"; }; }; }; //# sourceMappingURL=idl.d.ts.map