Skip to content

API documentation of Agoric SDK / Exports / @agoric/zoe / src/zoeService/zoe

Module: src/zoeService/zoe

Table of contents

Type Aliases

Functions

Type Aliases

ZoeKit

Ƭ ZoeKit: ReturnType<typeof makeDurableZoeKit>

Defined in

zoe/src/zoeService/zoe.js:290

Functions

makeDurableZoeKit

makeDurableZoeKit(options): Object

Create a durable instance of Zoe.

Parameters

NameTypeDefault valueDescription
optionsObjectundefined-
options.feeIssuerConfigundefined | FeeIssuerConfigdefaultFeeIssuerConfig-
options.shutdownZoeVatundefined | ShutdownWithFailureundefineda function to shutdown the Zoe Vat. This function needs to use the vatPowers available to a vat.
options.vatAdminSvcundefined | VatAdminSvc | Promise<VatAdminSvc>undefinedThe vatAdmin Service, which carries the power to create a new vat. If it's not available when makeZoe() is called, it must be provided later using setVatAdminService().
options.zcfSpecundefined | ZCFSpecundefinedPointer to the contract facet bundle.
options.zoeBaggageBaggageundefinedthe baggage for Zoe durability. Must be provided by caller

Returns

Object

NameType
feeMintAccessFeeMintAccess
setVatAdminService(lateVatAdminSvc: any) => void & RemotableBrand<{}, (lateVatAdminSvc: any) => void>
zoeConfigFacetGuarded<{ updateZcfBundleId: (bundleId: any) => void }>
zoeServiceZoeService

Defined in

zoe/src/zoeService/zoe.js:49


makeZoeKit

makeZoeKit(vatAdminSvc?, shutdownZoeVat?, feeIssuerConfig?, zcfSpec?): Object

Parameters

NameTypeDescription
vatAdminSvc?VatAdminSvc | Promise<VatAdminSvc>The vatAdmin Service, which carries the power to create a new vat. If it's not available when makeZoe() is called, it must be provided later using setVatAdminService().
shutdownZoeVat?ShutdownWithFailurea function to shutdown the Zoe Vat. This function needs to use the vatPowers available to a vat.
feeIssuerConfig?FeeIssuerConfig-
zcfSpec?ZCFSpecPointer to the contract facet bundle.

Returns

Object

NameType
feeMintAccessFeeMintAccess
setVatAdminService(lateVatAdminSvc: any) => void & RemotableBrand<{}, (lateVatAdminSvc: any) => void>
zoeConfigFacetGuarded<{ updateZcfBundleId: (bundleId: any) => void }>
zoeServiceZoeService

Deprecated

Create an instance of Zoe.

This will fail upgrades and should only be used in tests through the helper makeZoeKitForTest.

Defined in

zoe/src/zoeService/zoe.js:277