ZCF<CT>: {
    assertUniqueKeyword: ((keyword) => void);
    atomicRearrange: ((transfers) => void);
    getAssetKind: GetAssetKindByBrand;
    getBrandForIssuer: (<K>(issuer) => Brand<K>);
    getInstance: (() => Instance);
    getInvitationIssuer: (() => Issuer<"set">);
    getIssuerForBrand: (<K_1>(brand) => Issuer<K_1>);
    getOfferFilter: (() => Promise<string[]>);
    getTerms: (() => StandardTerms & CT);
    getZoeService: (() => ERef<ZoeService>);
    makeEmptySeatKit: ZCFMakeEmptySeatKit;
    makeInvitation: MakeInvitation;
    makeZCFMint: (<K_2>(keyword, assetKind?, displayInfo?, options?) => Promise<ZCFMint<K_2>>);
    reallocate: Reallocate;
    registerFeeMint: ZCFRegisterFeeMint;
    saveIssuer: ((issuerP, keyword) => Promise<IssuerRecord<any>>);
    setOfferFilter: ((strings) => Promise<void>);
    setTestJig: SetTestJig;
    shutdown: ((completion) => void);
    shutdownWithFailure: ShutdownWithFailure;
    stopAcceptingOffers: (() => Promise<void>);
}

Zoe Contract Facet

The Zoe interface specific to a contract instance. The Zoe Contract Facet is an API object used by running contract instances to access the Zoe state for that instance. The Zoe Contract Facet is accessed synchronously from within the contract, and usually is referred to in code as zcf.

Type Parameters

  • CT extends unknown = Record<string, unknown>

Type declaration

  • assertUniqueKeyword: ((keyword) => void)
      • (keyword): void
        • check whether a keyword is valid and unique and could be added in saveIssuer

        Parameters

        Returns void

  • atomicRearrange: ((transfers) => void)
      • (transfers): void
        • atomically reallocate amounts among seats.

        Parameters

        Returns void

  • getAssetKind: GetAssetKindByBrand
  • getBrandForIssuer: (<K>(issuer) => Brand<K>)
      • <K>(issuer): Brand<K>
      • Type Parameters

        • K extends AssetKind

        Parameters

        • issuer: Issuer<K>

        Returns Brand<K>

  • getInstance: (() => Instance)
  • getInvitationIssuer: (() => Issuer<"set">)
      • (): Issuer<"set">
      • Returns Issuer<"set">

  • getIssuerForBrand: (<K_1>(brand) => Issuer<K_1>)
      • <K_1>(brand): Issuer<K_1>
      • Type Parameters

        • K_1 extends AssetKind

        Parameters

        • brand: Brand<K_1>

        Returns Issuer<K_1>

  • getOfferFilter: (() => Promise<string[]>)
      • (): Promise<string[]>
      • Returns Promise<string[]>

  • getTerms: (() => StandardTerms & CT)
  • getZoeService: (() => ERef<ZoeService>)
  • makeEmptySeatKit: ZCFMakeEmptySeatKit
  • makeInvitation: MakeInvitation

    Make a credible Zoe invitation for a particular smart contract indicated by the instance in the details of the invitation. Zoe also puts the installation and a unique handle in the details of the invitation. The contract must provide a description for the invitation and should include whatever information is necessary for a potential buyer of the invitation to know what they are getting in the customDetails. customDetails will be placed in the details of the invitation.

  • makeZCFMint: (<K_2>(keyword, assetKind?, displayInfo?, options?) => Promise<ZCFMint<K_2>>)
      • <K_2>(keyword, assetKind?, displayInfo?, options?): Promise<ZCFMint<K_2>>
      • Type Parameters

        • K_2 extends AssetKind = "nat"

        Parameters

        Returns Promise<ZCFMint<K_2>>

  • reallocate: Reallocate
    • reallocate amounts among seats.

    Deprecated

    Use atomicRearrange instead.

  • registerFeeMint: ZCFRegisterFeeMint
  • saveIssuer: ((issuerP, keyword) => Promise<IssuerRecord<any>>)
      • (issuerP, keyword): Promise<IssuerRecord<any>>
      • Informs Zoe about an issuer and returns a promise for acknowledging when the issuer is added and ready.

        Parameters

        • issuerP: ERef<Issuer>
        • keyword: Keyword

        Returns Promise<IssuerRecord<any>>

        the AmountMath and brand synchronously accessible after saving

  • setOfferFilter: ((strings) => Promise<void>)
      • (strings): Promise<void>
      • Parameters

        • strings: string[]

        Returns Promise<void>

  • setTestJig: SetTestJig
  • shutdown: ((completion) => void)
      • (completion): void
      • Parameters

        Returns void

  • shutdownWithFailure: ShutdownWithFailure
  • stopAcceptingOffers: (() => Promise<void>)
      • (): Promise<void>
      • Returns Promise<void>

Generated using TypeDoc