UNPKG

@mysten/suins

Version:
19 lines (18 loc) 1.01 kB
import type { Transaction } from '@mysten/sui/transactions'; export declare function isSubName(name: string): boolean; /** * Checks if a name is a nested subname. * A nested subdomain is a subdomain that is a subdomain of another subdomain. * @param name The name to check (e.g test.example.sub.sui) */ export declare function isNestedSubName(name: string): boolean; /** * The years must be between 1 and 5. */ export declare function validateYears(years: number): void; export declare function zeroCoin(tx: Transaction, type: string): import("@mysten/sui/transactions").TransactionResult; export declare function getConfigType(suinsPackageV1: string, innerType: string): string; export declare function getDomainType(suinsPackageV1: string): string; export declare function getPricelistConfigType(suinsPackageId: string): string; export declare function getRenewalPricelistConfigType(suinsPackageId: string): string; export declare function getCoinDiscountConfigType(paymentPackageId: string): string;