UNPKG

@agoric/zoe

Version:

Zoe: the Smart Contract Framework for Offer Enforcement

25 lines 1.06 kB
/** * This is a very trivial contract to explain and test Zoe. * AutomaticRefund just gives you back what you put in. * AutomaticRefund tells Zoe to complete the * offer, which gives the user their payout through Zoe. Other * contracts will use these same steps, but they will have more * sophisticated logic and interfaces. * * Since the contract doesn't attempt any reallocation, the offer can contain * anything in `give` and `want`. The amount in `give` will be returned, and * `want` will be ignored. * * @param {ZCF<{}>} zcf */ export function start(zcf: ZCF<{}>): { creatorInvitation: Promise<globalThis.Invitation<unknown, never>>; publicFacet: { getOffersCount: () => bigint; makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>; } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, { getOffersCount: () => bigint; makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>; }>; }; //# sourceMappingURL=automaticRefund.d.ts.map