import { AddressOrPair } from '@polkadot/api/types'; import { SignTxFunction } from '../polkadot'; import { AccountKey } from './account-key'; import { Auction, AuctionsClientBackend } from './auctions'; import { DomainKey } from './domain-key'; /** * Main API for DXNS auctions management. */ export declare class AuctionsClient { private readonly _backend; constructor(_backend: AuctionsClientBackend); /** * Get an auction by name. */ getAuction(name: string): Promise; /** * Returns a collection of all auctions (ongoing and closed) in DXOS. */ listAuctions(): Promise; /** * Creates a new auction. * @param name An object of the auction. * @param startAmount The initial amount offered. */ createAuction(name: string, startAmount: number): Promise; /** * Offers a new amount in the auction. * @param name An object of the auction. * @param amount The offered amount. */ bidAuction(name: string, amount: number): Promise; /** * Closes an auction. Note! This DOES NOT transfer the ownership to the highest bidder. They need to claim * by invoking separate operation. * @param name An object of the auction. */ closeAuction(name: string): Promise; /** * Forces close an auction. This arbitrarily closes the ongoing auction even its time is not reached yet. * Note! This is reserved to sudo/admin accounts. * @param name An object of the auction. * @param sudoSignFn A transaction signing function using a sudo/admin account with rights to to execute this high-privilege operation. */ forceCloseAuction(name: string, sudoSignFn: SignTxFunction | AddressOrPair): Promise; /** * Allows for transferring the ownership of the name to the highest bidder. * @param name An object of the auction. * @param account The DXNS Account that will claim the ownership of the domain. */ claimAuction(domainName: string, account: AccountKey): Promise; } //# sourceMappingURL=auctions-client.d.ts.map