Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DomainsManager

An interface that defines functions for buying and updating domains and reverse records.

Hierarchy

  • DomainsManager

Implemented by

Index

Methods

batch

  • batch(builder: (operationFactory: TezosDomainsOperationFactory<WalletTransferParams>) => Promise<WalletTransferParams[]>): Promise<WalletOperation>
  • Execute multiple Tezos Domains operations in a batch.

    Parameters

    Returns Promise<WalletOperation>

bid

  • Placed a bid on the specified domain label in an auction.

    Parameters

    Returns Promise<TransactionWalletOperation>

buy

  • Buys the specified domain as a second phase of the Commitment scheme using FIFS model. Note that only after commit was called and a period of time that can be discovered from getCommitment has elapsed, buy can be executed.

    Parameters

    Returns Promise<TransactionWalletOperation>

claimReverseRecord

  • Either creates a reverse record for the sender address, or updates the reverse record related to the senders address (in case the sender is different from the reverse record owner).

    Parameters

    Returns Promise<TransactionWalletOperation>

commit

  • Creates and stores a commitment as a first phase of the Commitment scheme to buy a domain using FIFS model.

    Parameters

    Returns Promise<TransactionWalletOperation>

getAcquisitionInfo

  • Gets the information about how domain can be acquired.

    Possible states are:

    • Unobtainable - TLD is disabled or auctions weren't launched yet
    • Taken - The domain is already owned by someone
    • CanBeAuctioned - An auction for this domain can be started
    • AuctionInProgress - An auction for this domain is in progress (at least 1 bid has been placed)
    • CanBeSettled - An auction for this domain has ended and the owner of the winning bid can claim it
    • CanBeBought - This domain can be bought directly

    The return value of this method also contains additional information about auction or buy/renewal where applicable.

    Parameters

    • name: string

      The name of the domain (e.g. alice.tez)

    Returns Promise<DomainAcquisitionInfo>

getBidderBalance

  • getBidderBalance(tld: string, address: string): Promise<number>
  • Gets so called 'bidder balance' of the specified address.

    When a bid is placed in an auction and then outbid by another bid, the former bid amount is stored in the contract under it's senders address. The original bidder can then use this balance for another bid, or withdraw it by calling withdraw.

    Parameters

    • tld: string

      The name of the top level domain (e.g. tez).

    • address: string

      The address for which to get the balance.

    Returns Promise<number>

getCommitment

  • Gets the information about an existing commitment created via commit.

    Parameters

    Returns Promise<CommitmentInfo | null>

getTldConfiguration

  • Gets the configuration of the specified TLD registrar.

    Parameters

    • tld: string

      The name of the top level domain (e.g. tez).

    Returns Promise<TLDConfiguration>

getTokenId

  • getTokenId(name: string): Promise<number | null>
  • Gets the NFT token id for a specified domain name.

    Parameters

    • name: string

      The name of the domain (e.g. alice.tez)

    Returns Promise<number | null>

renew

  • Renews the specified domain registration for the specified duration.

    Parameters

    Returns Promise<TransactionWalletOperation>

setChildRecord

  • Either creates a subdomain under an existing owned domain, or updates an existing domain if you own it's direct parent, but don't own the domain itself.

    Parameters

    Returns Promise<TransactionWalletOperation>

settle

  • Claims the specified domain after an auction was won.

    Parameters

    Returns Promise<TransactionWalletOperation>

transfer

  • Transfers the domain NFT token to a new owner.

    Parameters

    • name: string

      The name of the domain (e.g. alice.tez)

    • newOwner: string

      The address to transfer the token to.

    • Optional operationParams: AdditionalOperationParams

    Returns Promise<TransactionWalletOperation>

updateRecord

updateReverseRecord

withdraw

  • Withdraws all funds stored in the contract under the senders balance (see getBidderBalance) and sends them to the specified recipient address.

    Parameters

    • tld: string

      The name of the top level domain (e.g. tez).

    • recipient: string

      The address of the recipient of the withdrawn funds.

    • Optional operationParams: AdditionalOperationParams

    Returns Promise<TransactionWalletOperation>

Generated using TypeDoc