Skip to content

API documentation of Agoric SDK / Exports / @agoric/zoe / tools/types-ambient

Module: tools/types-ambient

Table of contents

Interfaces

Type Aliases

Type Aliases

PriceCalculator

Ƭ PriceCalculator: (amount: Amount<"nat">) => Amount<"nat">

Type declaration

▸ (amount): Amount<"nat">

Parameters
NameType
amountAmount<"nat">
Returns

Amount<"nat">

Defined in

zoe/tools/types-ambient.js:142


PriceQuery

Ƭ PriceQuery: (calcAmountIn: PriceCalculator, calcAmountOut: PriceCalculator) => { amountIn: Amount<"nat"> ; amountOut: Amount<"nat"> ; timestamp?: TimestampRecord } | undefined

Type declaration

▸ (calcAmountIn, calcAmountOut): { amountIn: Amount<"nat"> ; amountOut: Amount<"nat"> ; timestamp?: TimestampRecord } | undefined

Parameters
NameType
calcAmountInPriceCalculator
calcAmountOutPriceCalculator
Returns

{ amountIn: Amount<"nat"> ; amountOut: Amount<"nat"> ; timestamp?: TimestampRecord } | undefined

Defined in

zoe/tools/types-ambient.js:146


PriceQuoteCreate

Ƭ PriceQuoteCreate: (priceQuery: PriceQuery) => ERef<PriceQuote> | undefined

Type declaration

▸ (priceQuery): ERef<PriceQuote> | undefined

Parameters
NameType
priceQueryPriceQuery
Returns

ERef<PriceQuote> | undefined

Defined in

zoe/tools/types-ambient.js:33


PriceQuoteTrigger

Ƭ PriceQuoteTrigger: (createQuote: PriceQuoteCreate) => any

Type declaration

▸ (createQuote): any

Parameters
NameType
createQuotePriceQuoteCreate
Returns

any

Defined in

zoe/tools/types-ambient.js:39


PriceQuoteValue

Ƭ PriceQuoteValue: [PriceDescription]

A single-valued set of PriceDescriptions. This is the value in PriceQuote.quoteAmount ({ brand, value: PriceQuoteValue }).

Defined in

zoe/tools/types-ambient.js:12