@agoric/zoe
Version:
Zoe: the Smart Contract Framework for Offer Enforcement
40 lines • 1.94 kB
TypeScript
export function makeZoeKitForTest(vatAdminSvc?: VatAdminSvc): {
zoeService: import("@endo/exo").Guarded<globalThis.ZoeService>;
zoeConfigFacet: import("@endo/exo").Guarded<{
updateZcfBundleId(bundleId: any): void;
}>;
feeMintAccess: FeeMintAccess;
setVatAdminService: ((lateVatAdminSvc: any) => void) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
};
export function makeZoeForTest(vatAdminSvc?: VatAdminSvc): import("@endo/exo").Guarded<globalThis.ZoeService>;
export function setUpZoeForTest<T extends unknown = any>({ setJig, feeIssuerConfig, vatAdminSvc, useNearRemote, }?: {
setJig?: ((jig: T) => void) | undefined;
feeIssuerConfig?: FeeIssuerConfig | undefined;
vatAdminSvc?: VatAdminSvc | undefined;
useNearRemote?: boolean | undefined;
}): Promise<{
zoe: import("@endo/exo").Guarded<globalThis.ZoeService>;
feeMintAccessP: FeeMintAccess;
bundleAndInstall: (pathOrExports: object, bundleId?: string) => Promise<Installation>;
vatAdminSvc: VatAdminSvc;
vatAdminState: {
getExitMessage: () => any;
getHasExited: () => boolean;
getExitWithFailure: () => any;
installBundle: (id: string, bundle: EndoZipBase64Bundle | TestBundle) => any;
installNamedBundle: (name: any, id: any, bundle: any) => any;
getCriticalVatKey: () => {};
getVatPowers: () => {
D: (bcap: any) => {
getBundle: () => EndoZipBase64Bundle | {
moduleFormat: "test";
} | undefined;
};
};
} | undefined;
}>;
import type { FeeIssuerConfig } from '../src/types-index.js';
import type { Installation } from '../src/types-index.js';
import type { EndoZipBase64Bundle } from '@agoric/swingset-vat';
import type { TestBundle } from '@agoric/swingset-vat';
//# sourceMappingURL=setup-zoe.d.ts.map