/** * Entrypoint builders. * * @module */ import type * as mod from "./index.js"; import type * as payloads from "./payloads.js"; /** * Entry function to register to receive a specific `CoinType`. An account that wants to hold a coin type * has to explicitly registers to do so. The register creates a special `CoinStore` * to hold the specified `CoinType`. */ export const register = ({ typeArgs, }: mod.RegisterArgs): payloads.Register => ({ type: "script_function_payload", function: "0x1::coins::register", type_arguments: [typeArgs.CoinType], arguments: [], });