/** * Defines a fixed-point numeric type with a 32-bit integer part and * a 32-bit fractional part. * * **Module ID:** `0x1::fixed_point32` * * @module */ import type * as p from "@movingco/prelude"; /** * Define a fixed-point numeric type with 32 fractional bits. * This is just a u64 integer but it is wrapped in a struct to * make a unique type. This is a binary representation, so decimal * values may not be exactly representable, but it provides more * than 9 decimal digits of precision both before and after the * decimal point (18 digits total). For comparison, double precision * floating-point has less than 16 decimal digits of precision, so * be careful about using floating-point to convert these values to * decimal. * * Type name: `0x1::fixed_point32::FixedPoint32` */ export interface IFixedPoint32 { value: p.U64; } 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::fixed_point32"; /** The name of the module. */ export declare const NAME: "fixed_point32"; /** Module ID information. */ export declare const id: { readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::fixed_point32"; readonly NAME: "fixed_point32"; }; export * as errors from "./errors.js"; /** Module error codes. */ export declare const errorCodes: { readonly "65537": { readonly name: "EDENOMINATOR"; readonly doc: "The denominator provided was zero"; }; readonly "65540": { readonly name: "EDIVISION_BY_ZERO"; readonly doc: "A division by zero was encountered"; }; readonly "131074": { readonly name: "EDIVISION"; readonly doc: "The quotient value would be too large to be held in a `u64`"; }; readonly "131075": { readonly name: "EMULTIPLICATION"; readonly doc: "The multiplied value would be too large to be held in a `u64`"; }; readonly "131077": { readonly name: "ERATIO_OUT_OF_RANGE"; readonly doc: "The computed ratio when converting to a `FixedPoint32` would be unrepresentable"; }; }; /** 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 FixedPoint32: "0x1::fixed_point32::FixedPoint32"; }; /** * Defines a fixed-point numeric type with a 32-bit integer part and * a 32-bit fractional part. */ export declare const moduleDefinition: { readonly errorCodes: { readonly "65537": { readonly name: "EDENOMINATOR"; readonly doc: "The denominator provided was zero"; }; readonly "65540": { readonly name: "EDIVISION_BY_ZERO"; readonly doc: "A division by zero was encountered"; }; readonly "131074": { readonly name: "EDIVISION"; readonly doc: "The quotient value would be too large to be held in a `u64`"; }; readonly "131075": { readonly name: "EMULTIPLICATION"; readonly doc: "The multiplied value would be too large to be held in a `u64`"; }; readonly "131077": { readonly name: "ERATIO_OUT_OF_RANGE"; readonly doc: "The computed ratio when converting to a `FixedPoint32` would be unrepresentable"; }; }; readonly functions: {}; readonly resources: {}; readonly structs: { readonly FixedPoint32: "0x1::fixed_point32::FixedPoint32"; }; readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::fixed_point32"; readonly NAME: "fixed_point32"; }; //# sourceMappingURL=index.d.ts.map