import { ISubmittableResult } from '@polkadot/types/types'; import BigNumber from 'bignumber.js'; import { Context, Offering, PostTransactionValue, Procedure, Venue } from "../../internal"; import { OfferingTier, PortfolioLike } from "../../types"; import { PortfolioId, ProcedureAuthorization } from "../../types/internal"; /** * @hidden */ export interface LaunchOfferingParams { /** * portfolio in which the Asset tokens to be sold are stored */ offeringPortfolio: PortfolioLike; /** * portfolio in which the raised funds will be stored */ raisingPortfolio: PortfolioLike; /** * ticker symbol of the currency in which the funds are being raised (i.e. 'USD' or 'CAD'). * Other Assets can be used as currency as well */ raisingCurrency: string; /** * venue through which all offering related trades will be settled * (optional, defaults to the first `Sto` type Venue owned by the owner of the Offering Portfolio. * If passed, it must be of type `Sto`) */ venue?: Venue; name: string; /** * start date of the Offering (optional, defaults to right now) */ start?: Date; /** * end date of the Offering (optional, defaults to never) */ end?: Date; /** * array of sale tiers. Each tier consists of an amount of Assets to be sold at a certain price. * Tokens in a tier can only be bought when all tokens in previous tiers have been bought */ tiers: OfferingTier[]; /** * minimum amount that can be spent on this offering */ minInvestment: BigNumber; } /** * @hidden */ export declare type Params = LaunchOfferingParams & { ticker: string; }; /** * @hidden */ export interface Storage { offeringPortfolioId: PortfolioId; raisingPortfolioId: PortfolioId; } /** * @hidden */ export declare const createOfferingResolver: (ticker: string, context: Context) => (receipt: ISubmittableResult) => Offering; /** * @hidden */ export declare function prepareLaunchOffering(this: Procedure, args: Params): Promise>; /** * @hidden */ export declare function getAuthorization(this: Procedure, { ticker }: Params): ProcedureAuthorization; /** * @hidden */ export declare function prepareStorage(this: Procedure, { offeringPortfolio, raisingPortfolio }: Params): Promise; /** * @hidden */ export declare const launchOffering: () => Procedure; //# sourceMappingURL=launchOffering.d.ts.map