Skip to content

API documentation of Agoric SDK / Exports / @agoric/inter-protocol / clientSupport

Module: clientSupport

Table of contents

Variables

Functions

Variables

Offers

Const Offers: Object

Type declaration

NameType
auction{ Bid: (agoricNames: Pick<AgoricNamesRemotes, "brand" | "vbankAsset">, opts: { give: string ; maxBuy: string ; offerId: string ; wantMinimum?: string } & { price: number } | { discount: number }) => OfferSpec = makeBidOffer }
auction.Bid(agoricNames: Pick<AgoricNamesRemotes, "brand" | "vbankAsset">, opts: { give: string ; maxBuy: string ; offerId: string ; wantMinimum?: string } & { price: number } | { discount: number }) => OfferSpec
fluxAggregator{ PushPrice: (_agoricNames: unknown, opts: { offerId: string ; roundId?: bigint ; unitPrice: bigint }, previousOffer: string) => OfferSpec = makePushPriceOffer }
fluxAggregator.PushPrice(_agoricNames: unknown, opts: { offerId: string ; roundId?: bigint ; unitPrice: bigint }, previousOffer: string) => OfferSpec
psm{ swap: (agoricNames: Pick<AgoricNamesRemotes, "brand">, instance: Instance, opts: { feePct?: number ; offerId: string ; pair: [string, string] } & { wantMinted: number } | { giveMinted: number }) => OfferSpec = makePsmSwapOffer }
psm.swap(agoricNames: Pick<AgoricNamesRemotes, "brand">, instance: Instance, opts: { feePct?: number ; offerId: string ; pair: [string, string] } & { wantMinted: number } | { giveMinted: number }) => OfferSpec
reserve{ AddCollateral: (agoricNames: Pick<AgoricNamesRemotes, "brand">, opts: { collateralBrandKey: string ; give: number ; offerId: string }) => OfferSpec = makeAddCollateralOffer }
reserve.AddCollateral(agoricNames: Pick<AgoricNamesRemotes, "brand">, opts: { collateralBrandKey: string ; give: number ; offerId: string }) => OfferSpec
vaults{ AdjustBalances: (agoricNames: Pick<AgoricNamesRemotes, "brand">, opts: { collateralBrandKey?: string ; giveCollateral?: number ; giveMinted?: number ; offerId: string ; wantCollateral?: number ; wantMinted?: number }, previousOffer: string) => OfferSpec = makeAdjustOffer; CloseVault: (agoricNames: Pick<AgoricNamesRemotes, "brand">, opts: { collateralBrandKey?: string ; giveMinted: number ; offerId: string }, previousOffer: string) => OfferSpec = makeCloseOffer; OpenVault: (agoricNames: Pick<AgoricNamesRemotes, "brand">, opts: { collateralBrandKey: string ; giveCollateral: number ; offerId: string ; wantMinted: number }) => OfferSpec = makeOpenOffer }
vaults.AdjustBalances(agoricNames: Pick<AgoricNamesRemotes, "brand">, opts: { collateralBrandKey?: string ; giveCollateral?: number ; giveMinted?: number ; offerId: string ; wantCollateral?: number ; wantMinted?: number }, previousOffer: string) => OfferSpec
vaults.CloseVault(agoricNames: Pick<AgoricNamesRemotes, "brand">, opts: { collateralBrandKey?: string ; giveMinted: number ; offerId: string }, previousOffer: string) => OfferSpec
vaults.OpenVault(agoricNames: Pick<AgoricNamesRemotes, "brand">, opts: { collateralBrandKey: string ; giveCollateral: number ; offerId: string ; wantMinted: number }) => OfferSpec

Defined in

clientSupport.js:435

Functions

lookupOfferIdForVault

lookupOfferIdForVault(vaultId, currentP): Promise<string>

Parameters

NameType
vaultIdstring
currentPPromise<CurrentWalletRecord>

Returns

Promise<string>

offer id in which the vault was made

Defined in

clientSupport.js:167


makeParseAmount

makeParseAmount(agoricNames, makeError?): (a: string) => Amount<"nat">

Parameters

NameTypeDescription
agoricNamesPick<AgoricNamesRemotes, "brand" | "vbankAsset">-
makeError(msg: string) => Errorerror constructor

Returns

fn

▸ (a): Amount<"nat">

Parameters
NameType
astring
Returns

Amount<"nat">

Defined in

clientSupport.js:260