UNPKG

@agoric/zoe

Version:

Zoe: the Smart Contract Framework for Offer Enforcement

32 lines 1.42 kB
/** * @typedef {object} FakePriceAuthorityOptions * @property {Brand<'nat'>} actualBrandIn * @property {Brand<'nat'>} actualBrandOut * @property {Array<number>} [priceList] * @property {Array<[number, number]>} [tradeList] * @property {import('@agoric/time').TimerService} timer * @property {import('@agoric/time').RelativeTime} [quoteInterval] * @property {ERef<Mint<'set', PriceDescription>>} [quoteMint] * @property {Amount<'nat'>} [unitAmountIn] */ /** * TODO: multiple price Schedules for different goods, or for moving the price * in different directions? * * @param {FakePriceAuthorityOptions} options * @returns {Promise<PriceAuthority>} */ export function makeFakePriceAuthority(options: FakePriceAuthorityOptions): Promise<PriceAuthority>; export type FakePriceAuthorityOptions = { actualBrandIn: Brand<"nat">; actualBrandOut: Brand<"nat">; priceList?: number[] | undefined; tradeList?: [number, number][] | undefined; timer: import("@agoric/time").TimerService; quoteInterval?: import("@agoric/time").RelativeTime | undefined; quoteMint?: globalThis.ERef<globalThis.Mint<"set", PriceDescription>> | undefined; unitAmountIn?: import("@agoric/ertp").NatAmount | undefined; }; import type { PriceAuthority } from '@agoric/zoe/tools/types.js'; import type { PriceDescription } from '@agoric/zoe/tools/types.js'; //# sourceMappingURL=fakePriceAuthority.d.ts.map