/** * The IDL of the module. * * @module */ /** The IDL of the module. */ export declare const idl: { readonly module_id: "0x1::bucket_table"; readonly doc: "A bucket table implementation based on linear hashing. (https://en.wikipedia.org/wiki/Linear_hashing)\nCompare to Table, it uses less storage slots but has higher chance of collision, it's a trade-off between space and time.\nCompare to other implementation, linear hashing splits one bucket a time instead of doubling buckets when expanding to avoid unexpected gas cost.\nBucketTable uses faster hash function SipHash instead of cryptographically secure hash functions like sha3-256 since it tolerates collisions."; readonly functions: readonly []; readonly structs: readonly [{ readonly name: "0x1::bucket_table::BucketTable"; readonly fields: readonly [{ readonly name: "buckets"; readonly ty: { readonly struct: { readonly name: "0x1::table_with_length::TableWithLength"; readonly ty_args: readonly ["u64", { readonly vector: { readonly struct: { readonly name: "0x1::bucket_table::Entry"; readonly ty_args: readonly [{ readonly type_param: 0; }, { readonly type_param: 1; }]; }; }; }]; }; }; }, { readonly name: "num_buckets"; readonly ty: "u64"; }, { readonly name: "level"; readonly ty: "u8"; }, { readonly name: "len"; readonly ty: "u64"; }]; readonly type_params: readonly [{ readonly name: "K"; }, { readonly name: "V"; }]; readonly abilities: readonly ["store"]; }, { readonly name: "0x1::bucket_table::Entry"; readonly doc: "BucketTable entry contains both the key and value."; readonly fields: readonly [{ readonly name: "hash"; readonly ty: "u64"; }, { readonly name: "key"; readonly ty: { readonly type_param: 0; }; }, { readonly name: "value"; readonly ty: { readonly type_param: 1; }; }]; readonly type_params: readonly [{ readonly name: "K"; }, { readonly name: "V"; }]; readonly abilities: readonly ["store"]; }]; readonly errors: { readonly "1": { readonly name: "ENOT_FOUND"; readonly doc: "Key not found in the bucket table"; }; readonly "2": { readonly name: "EZERO_CAPACITY"; readonly doc: "Bucket table capacity must be larger than 0"; }; readonly "3": { readonly name: "ENOT_EMPTY"; readonly doc: "Cannot destroy non-empty hashmap"; }; readonly "4": { readonly name: "EALREADY_EXIST"; readonly doc: "Key already exists"; }; }; }; //# sourceMappingURL=idl.d.ts.map