@agoric/zoe
Version:
Zoe: the Smart Contract Framework for Offer Enforcement
22 lines • 1.02 kB
TypeScript
/**
* This Barter Exchange accepts offers to trade arbitrary goods for other
* things. It doesn't require registration of Issuers. If two offers satisfy
* each other, it exchanges the specified amounts in each side's want clause.
* https://agoric.com/documentation/zoe/guide/contracts/barter-exchange.html
*
* The Barter Exchange only accepts offers that look like
* { give: { In: amount }, want: { Out: amount} }
* The want amount will be matched, while the give amount is a maximum. Each
* successful trader gets their `want` and may trade with counter-parties who
* specify any amount up to their specified `give`.
*
* @param {ZCF} zcf
*/
export function start(zcf: ZCF): {
publicFacet: {
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
}>;
};
//# sourceMappingURL=barterExchange.d.ts.map