@agoric/zoe
Version:
Zoe: the Smart Contract Framework for Offer Enforcement
17 lines • 1.42 kB
TypeScript
export function mintQuote(quoteBrand: Brand<"set">, amountIn: Amount<"nat">, amountOut: Amount<"nat">, timer: import("@agoric/time").TimerService, timestamp: import("@agoric/time").TimestampRecord, quoteMint: ERef<Mint<"set", PriceDescription>>): Promise<PriceQuote>;
export function makePriceAuthorityTransform({ quoteMint, sourcePriceAuthority, sourceBrandIn, sourceBrandOut, actualBrandIn, actualBrandOut, makeSourceAmountIn, makeSourceAmountOut, transformSourceAmountIn, transformSourceAmountOut, }: {
quoteMint: ERef<Mint<"set", PriceDescription>>;
sourcePriceAuthority: ERef<PriceAuthority>;
sourceBrandIn: Brand<"nat">;
sourceBrandOut: Brand<"nat">;
actualBrandIn?: globalThis.Brand<"nat"> | undefined;
actualBrandOut?: globalThis.Brand<"nat"> | undefined;
makeSourceAmountIn?: ((amountIn: Amount<"nat">) => Amount<"nat">) | undefined;
makeSourceAmountOut?: ((amountOut: Amount<"nat">) => Amount<"nat">) | undefined;
transformSourceAmountIn?: ((sourceAmountIn: Amount<"nat">) => Amount<"nat">) | undefined;
transformSourceAmountOut?: ((sourceAmountOut: Amount<"nat">) => Amount<"nat">) | undefined;
}): Promise<PriceAuthority>;
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
//# sourceMappingURL=priceAuthorityTransform.d.ts.map