UNPKG

@agoric/zoe

Version:

Zoe: the Smart Contract Framework for Offer Enforcement

24 lines 1.07 kB
export function withAmountUtils(kit: Pick<IssuerKit<"nat", any>, "brand" | "issuer" | "mint">): { /** @param {NatValue} v */ make: (v: NatValue) => import("@agoric/ertp").NatAmount; makeEmpty: () => import("@agoric/ertp").NatAmount; /** * @param {NatValue} n * @param {NatValue} [d] */ makeRatio: (n: NatValue, d?: NatValue) => import("@agoric/ertp/src/ratio.js").Ratio; /** @param {number} n */ units: (n: number) => import("@agoric/ertp").NatAmount; /** The intact Exo remotable */ issuerKit: Pick<IssuerKit<"nat", any>, "brand" | "issuer" | "mint">; brand: Brand<"nat">; issuer: Issuer<"nat", any>; mint: globalThis.Mint<"nat", any>; }; export { makeFakeStorageKit } from "@agoric/internal/src/storage-test-utils.js"; export type AmountUtils = ReturnType<typeof withAmountUtils>; import type { IssuerKit } from '@agoric/ertp'; import type { NatValue } from '@agoric/ertp'; import type { Brand } from '@agoric/ertp'; import type { Issuer } from '@agoric/ertp'; //# sourceMappingURL=test-utils.d.ts.map