UNPKG

@mysten/suins

Version:
27 lines (25 loc) 986 B
import { MoveStruct } from "../utils/index.mjs"; import { VecMap } from "./deps/sui/vec_map.mjs"; import { bcs } from "@mysten/sui/bcs"; //#region src/contracts/suins/name_record.ts /************************************************************** * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED * **************************************************************/ /** * The `NameRecord` is a struct that represents a single record in the registry. * Can be replaced by any other data structure due to the way `NameRecord`s are * stored and managed. SuiNS has no direct and permanent dependency on this module. */ const $moduleName = "@suins/core::name_record"; const NameRecord = new MoveStruct({ name: `${$moduleName}::NameRecord`, fields: { nft_id: bcs.Address, expiration_timestamp_ms: bcs.u64(), target_address: bcs.option(bcs.Address), data: VecMap(bcs.string(), bcs.string()) } }); //#endregion export { NameRecord }; //# sourceMappingURL=name_record.mjs.map