UNPKG

@iota/iota-names-sdk

Version:
24 lines (23 loc) 1.47 kB
import type { Transaction } from '@iota/iota-sdk/transactions'; export declare function isSubname(name: string): boolean; /** * Checks if a name is a nested subname. * A nested subname is a subname that is a subname of another subname. * @param name The name to check (e.g test.example.sub.iota) */ 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("@iota/iota-sdk/dist/cjs/transactions/Transaction.js").TransactionResult; export declare function getConfigType(iotaNamesPackageV1: string, innerType: string): string; export declare function getRegistryKeyType(iotaNamesPackageId: string, innerType: string): string; export declare function getNameType(iotaNamesPackageV1: string): string; export declare function getPricelistConfigType(iotaNamesPackageId: string): string; export declare function getRenewalPricelistConfigType(iotaNamesPackageId: string): string; export declare function getNameRegistrationType(iotaNamesPackageId: string): string; export declare function getSubnameRegistrationType(iotaNamesPackageId: string): string; export declare function getCoreConfigType(iotaNamesPackageId: string): string; export declare function getDenyListType(iotaNamesPackageId: string): string; export declare function getSubnamesConfigType(iotaNamesPackageId: string): string;