@mysten/suins
Version:
27 lines (25 loc) • 871 B
JavaScript
import { MoveStruct } from "../../../utils/index.mjs";
import { bcs } from "@mysten/sui/bcs";
//#region src/contracts/suins_discounts/deps/sui/linked_table.ts
/**************************************************************
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
**************************************************************/
/**
* Similar to `sui::table` but the values are linked together, allowing for ordered
* insertion and removal
*/
const $moduleName = "0x2::linked_table";
function LinkedTable(...typeParameters) {
return new MoveStruct({
name: `${$moduleName}::LinkedTable<${typeParameters[0].name}, phantom V>`,
fields: {
id: bcs.Address,
size: bcs.u64(),
head: bcs.option(typeParameters[0]),
tail: bcs.option(typeParameters[0])
}
});
}
//#endregion
export { LinkedTable };
//# sourceMappingURL=linked_table.mjs.map