Function withOrchestration
- withOrchestration<CT, PA, R>(contractFn): ((zcf: ZCF<CT>, privateArgs: PA, baggage: Baggage) => Promise<R>)
Type Parameters
- CT extends Record<string, unknown>
- PA extends OrchestrationPowers & {
marshaller: {
fromCapData: FromCapData<unknown>;
serialize: ToCapData<unknown>;
toCapData: ToCapData<unknown>;
unserialize: FromCapData<unknown>;
};
} - R
Returns ((zcf: ZCF<CT>, privateArgs: PA, baggage: Baggage) => Promise<R>)
a
Zoe start function
- (zcf, privateArgs, baggage): Promise<R>
Returns Promise<R>
Simplifies contract functions for Orchestration by wrapping a simpler function with all the tools it needs in order to use Orchestration.
Example