Class DomainRepository

Repository to interact with domains on the Meta Names contract

Hierarchy

  • DomainRepository

Constructors

Properties

config: Config
contractRepository: IContractRepository
domainValidator: DomainValidator
metaNamesContract: IMetaNamesContractRepository

Methods

  • Create a transaction to approve the amount of fees required to mint a domain on the BYOC contract. To get the BYOC contract, please refer to calculateMintFees function The function will throw an error if the domain name is invalid.

    Parameters

    • domainName: string

      A valid domain name

    • byocSymbol: BYOCSymbol
    • subscriptionYears: number = 1

    Returns Promise<ITransactionIntent>

  • Calculate mint fees for a domain. The function will throw an error if the domain name is invalid.

    Parameters

    • domainName: string

      A valid domain name

    • tokenSymbol: BYOCSymbol

    Returns Promise<{
        address: string;
        fees: BN;
        feesLabel: number;
        symbol: BYOCSymbol;
    }>

Generated using TypeDoc