@agoric/orchestration 0.1.1-dev-f908f89.0 → 0.1.1-dev-a035bbe.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -15
- package/src/examples/sendAnywhere.contract.d.ts.map +1 -1
- package/src/examples/sendAnywhere.contract.js +7 -27
- package/src/examples/swapExample.contract.d.ts.map +1 -1
- package/src/examples/swapExample.contract.js +13 -32
- package/src/examples/unbondExample.contract.d.ts.map +1 -1
- package/src/examples/unbondExample.contract.js +11 -24
- package/src/facade.d.ts +33 -1
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +15 -7
- package/src/utils/start-helper.d.ts +2365 -0
- package/src/utils/start-helper.d.ts.map +1 -0
- package/src/utils/start-helper.js +73 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-a035bbe.0+a035bbe",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -32,19 +32,20 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@agoric/assert": "0.6.1-dev-
|
|
36
|
-
"@agoric/
|
|
37
|
-
"@agoric/
|
|
38
|
-
"@agoric/
|
|
39
|
-
"@agoric/
|
|
40
|
-
"@agoric/
|
|
41
|
-
"@agoric/
|
|
42
|
-
"@agoric/
|
|
43
|
-
"@agoric/
|
|
44
|
-
"@agoric/
|
|
45
|
-
"@agoric/
|
|
46
|
-
"@agoric/
|
|
47
|
-
"@agoric/
|
|
35
|
+
"@agoric/assert": "0.6.1-dev-a035bbe.0+a035bbe",
|
|
36
|
+
"@agoric/async-flow": "0.1.1-dev-a035bbe.0+a035bbe",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-a035bbe.0+a035bbe",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-a035bbe.0+a035bbe",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-a035bbe.0+a035bbe",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-a035bbe.0+a035bbe",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-a035bbe.0+a035bbe",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-a035bbe.0+a035bbe",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-a035bbe.0+a035bbe",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-a035bbe.0+a035bbe",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-a035bbe.0+a035bbe",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-a035bbe.0+a035bbe",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-a035bbe.0+a035bbe",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-a035bbe.0+a035bbe",
|
|
48
49
|
"@endo/base64": "^1.0.5",
|
|
49
50
|
"@endo/far": "^1.1.2",
|
|
50
51
|
"@endo/marshal": "^1.5.0",
|
|
@@ -87,5 +88,5 @@
|
|
|
87
88
|
"typeCoverage": {
|
|
88
89
|
"atLeast": 97.1
|
|
89
90
|
},
|
|
90
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "a035bbe9d3a46247ed2199e4ca707103a9e04bfd"
|
|
91
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"AAYA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;AASK,2BANI,GAAG,eACH,mBAAmB,GAAG;IAChC,UAAc,EAAE,UAAU,CAAC;CACxB;;;;;QAsFE;;;WAGG;;;;;;;;;;GAgBR;;;;;8BAtCS,MAAA,KAAC,CAAC;6BAuBF,QAAQ,KAAK,CAAC,mBAChB,OAAE;6BAesJ,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;;;;oBAAqjG,CAAC;;;uBAA6lB,EAAE;;;;;;;;;;;;;;;;;6BAxIv+I,kBAAkB;uCACS,eAAe;4BAK3C,aAAa;kCAJK,cAAc;6BAG/B,cAAc"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M, mustMatch } from '@endo/patterns';
|
|
1
|
+
import { withdrawFromSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js';
|
|
3
2
|
import { InvitationShape } from '@agoric/zoe/src/typeGuards.js';
|
|
4
3
|
import { E } from '@endo/far';
|
|
5
|
-
import {
|
|
4
|
+
import { M, mustMatch } from '@endo/patterns';
|
|
6
5
|
|
|
7
6
|
import { AmountShape } from '@agoric/ertp';
|
|
8
|
-
import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
9
7
|
import { CosmosChainInfoShape } from '../typeGuards.js';
|
|
10
|
-
import {
|
|
11
|
-
import { prepareLocalChainAccountKit } from '../exos/local-chain-account-kit.js';
|
|
12
|
-
import { makeChainHub } from '../utils/chainHub.js';
|
|
8
|
+
import { provideOrchestration } from '../utils/start-helper.js';
|
|
13
9
|
|
|
14
10
|
const { entries } = Object;
|
|
15
11
|
const { Fail } = assert;
|
|
@@ -49,28 +45,12 @@ export const SingleAmountRecord = M.and(
|
|
|
49
45
|
* @param {Baggage} baggage
|
|
50
46
|
*/
|
|
51
47
|
export const start = async (zcf, privateArgs, baggage) => {
|
|
52
|
-
const zone =
|
|
53
|
-
|
|
54
|
-
const chainHub = makeChainHub(privateArgs.agoricNames);
|
|
55
|
-
|
|
56
|
-
// TODO once durability is settled, provide some helpers to reduce boilerplate
|
|
57
|
-
const { marshaller, ...orchPowers } = privateArgs;
|
|
58
|
-
const { makeRecorderKit } = prepareRecorderKitMakers(baggage, marshaller);
|
|
59
|
-
const makeLocalChainAccountKit = prepareLocalChainAccountKit(
|
|
60
|
-
zone,
|
|
61
|
-
makeRecorderKit,
|
|
48
|
+
const { chainHub, orchestrate, zone } = provideOrchestration(
|
|
62
49
|
zcf,
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
baggage,
|
|
51
|
+
privateArgs,
|
|
52
|
+
privateArgs.marshaller,
|
|
65
53
|
);
|
|
66
|
-
const { orchestrate } = makeOrchestrationFacade({
|
|
67
|
-
zcf,
|
|
68
|
-
zone,
|
|
69
|
-
chainHub,
|
|
70
|
-
makeLocalChainAccountKit,
|
|
71
|
-
makeRecorderKit,
|
|
72
|
-
...orchPowers,
|
|
73
|
-
});
|
|
74
54
|
|
|
75
55
|
let contractAccount;
|
|
76
56
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AASA;;;;;;;;GAQG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AAc/C,2BAXI,GAAG;;;;;8BAiEuC,MAC/C,KAAG,CAAC;6BAgBmC,QAAQ,KAClD,CAAC,mBAGgB,OAAO;6BAkB4H,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;;;;oBAAqjG,CAAC;;;uBAA6lB,EAAE;;;;;;;;;;;;;;;gBAjGv+I,UAAU;;;;oBAiCV,MAAM,CAAC,KAAK,CAAC;;;;;oBAAb,MAAM,CAAC,KAAK,CAAC;;;;GA+D7B;6BAlIyB,cAAc;4BAHf,kBAAkB;gCAHwB,aAAa;kCACjD,cAAc;6BAInB,kBAAkB;4CALuB,aAAa"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { StorageNodeShape } from '@agoric/internal';
|
|
2
2
|
import { TimerServiceShape } from '@agoric/time';
|
|
3
3
|
import { withdrawFromSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js';
|
|
4
|
-
import {
|
|
5
|
-
import { E, Far } from '@endo/far';
|
|
4
|
+
import { Far } from '@endo/far';
|
|
6
5
|
import { deeplyFulfilled } from '@endo/marshal';
|
|
7
6
|
import { M, objectMap } from '@endo/patterns';
|
|
8
|
-
import { provideAll } from '@agoric/zoe/src/contractSupport';
|
|
9
|
-
import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
10
|
-
import { makeOrchestrationFacade } from '../facade.js';
|
|
11
7
|
import { orcUtils } from '../utils/orc.js';
|
|
12
|
-
import {
|
|
13
|
-
import { prepareLocalChainAccountKit } from '../exos/local-chain-account-kit.js';
|
|
8
|
+
import { provideOrchestration } from '../utils/start-helper.js';
|
|
14
9
|
|
|
15
10
|
/**
|
|
16
11
|
* @import {Orchestrator, IcaAccount, CosmosValidatorAddress} from '../types.js'
|
|
@@ -58,10 +53,6 @@ export const makeNatAmountShape = (brand, min) =>
|
|
|
58
53
|
* @param {Baggage} baggage
|
|
59
54
|
*/
|
|
60
55
|
export const start = async (zcf, privateArgs, baggage) => {
|
|
61
|
-
const { brands } = zcf.getTerms();
|
|
62
|
-
|
|
63
|
-
const zone = makeDurableZone(baggage);
|
|
64
|
-
|
|
65
56
|
const {
|
|
66
57
|
agoricNames,
|
|
67
58
|
localchain,
|
|
@@ -71,30 +62,20 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
71
62
|
marshaller,
|
|
72
63
|
} = privateArgs;
|
|
73
64
|
|
|
74
|
-
const
|
|
75
|
-
const { makeRecorderKit } = prepareRecorderKitMakers(baggage, marshaller);
|
|
76
|
-
const makeLocalChainAccountKit = prepareLocalChainAccountKit(
|
|
77
|
-
zone,
|
|
78
|
-
makeRecorderKit,
|
|
65
|
+
const { orchestrate } = provideOrchestration(
|
|
79
66
|
zcf,
|
|
80
|
-
|
|
81
|
-
|
|
67
|
+
baggage,
|
|
68
|
+
{
|
|
69
|
+
agoricNames,
|
|
70
|
+
localchain,
|
|
71
|
+
orchestrationService,
|
|
72
|
+
storageNode,
|
|
73
|
+
timerService,
|
|
74
|
+
},
|
|
75
|
+
marshaller,
|
|
82
76
|
);
|
|
83
|
-
const { accountsStorageNode } = await provideAll(baggage, {
|
|
84
|
-
accountsStorageNode: () => E(storageNode).makeChildNode('accounts'),
|
|
85
|
-
});
|
|
86
77
|
|
|
87
|
-
const {
|
|
88
|
-
localchain,
|
|
89
|
-
orchestrationService,
|
|
90
|
-
storageNode: accountsStorageNode,
|
|
91
|
-
timerService,
|
|
92
|
-
zcf,
|
|
93
|
-
zone,
|
|
94
|
-
chainHub,
|
|
95
|
-
makeLocalChainAccountKit,
|
|
96
|
-
makeRecorderKit,
|
|
97
|
-
});
|
|
78
|
+
const { brands } = zcf.getTerms();
|
|
98
79
|
|
|
99
80
|
/** deprecated historical example */
|
|
100
81
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"AA0BO,2BAXI,GAAG;;;;;8BAoFuL,MAAM,KAAK,CAAC;6BAA6gB,QAAQ,KAAK,CAAC,mBAA6B,OAAO;6BAAwjB,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;;;;oBAAqjG,CAAC;;;uBAA6lB,EAAE;;;;;;;;;;;;;;gBA9ExpL,UAAU;;;;;;;;GA6E1B;6BAzFyB,cAAc;4BACf,kBAAkB;gCALwB,aAAa;kCACjD,cAAc;6BACnB,kBAAkB"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { makeDurableZone } from '@agoric/zone/durable.js';
|
|
2
1
|
import { Far } from '@endo/far';
|
|
3
2
|
import { M } from '@endo/patterns';
|
|
4
|
-
import {
|
|
5
|
-
import { makeOrchestrationFacade } from '../facade.js';
|
|
6
|
-
import { makeChainHub } from '../utils/chainHub.js';
|
|
7
|
-
import { prepareLocalChainAccountKit } from '../exos/local-chain-account-kit.js';
|
|
3
|
+
import { provideOrchestration } from '../utils/start-helper.js';
|
|
8
4
|
|
|
9
5
|
/**
|
|
10
6
|
* @import {Orchestrator, IcaAccount, CosmosValidatorAddress} from '../types.js'
|
|
@@ -37,28 +33,19 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
37
33
|
marshaller,
|
|
38
34
|
timerService,
|
|
39
35
|
} = privateArgs;
|
|
40
|
-
const zone = makeDurableZone(baggage);
|
|
41
36
|
|
|
42
|
-
const
|
|
43
|
-
const { makeRecorderKit } = prepareRecorderKitMakers(baggage, marshaller);
|
|
44
|
-
const makeLocalChainAccountKit = prepareLocalChainAccountKit(
|
|
45
|
-
zone,
|
|
46
|
-
makeRecorderKit,
|
|
37
|
+
const { orchestrate } = provideOrchestration(
|
|
47
38
|
zcf,
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
baggage,
|
|
40
|
+
{
|
|
41
|
+
agoricNames,
|
|
42
|
+
localchain,
|
|
43
|
+
orchestrationService,
|
|
44
|
+
storageNode,
|
|
45
|
+
timerService,
|
|
46
|
+
},
|
|
47
|
+
marshaller,
|
|
50
48
|
);
|
|
51
|
-
const { orchestrate } = makeOrchestrationFacade({
|
|
52
|
-
localchain,
|
|
53
|
-
orchestrationService,
|
|
54
|
-
storageNode,
|
|
55
|
-
timerService,
|
|
56
|
-
zcf,
|
|
57
|
-
zone,
|
|
58
|
-
chainHub: makeChainHub(agoricNames),
|
|
59
|
-
makeLocalChainAccountKit,
|
|
60
|
-
makeRecorderKit,
|
|
61
|
-
});
|
|
62
49
|
|
|
63
50
|
/** @type {OfferHandler} */
|
|
64
51
|
const unbondAndLiquidStake = orchestrate(
|
package/src/facade.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode, orchestrationService, localchain, chainHub, makeLocalChainAccountKit, makeRecorderKit, }: {
|
|
1
|
+
export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode, orchestrationService, localchain, chainHub, makeLocalChainAccountKit, makeRecorderKit, asyncFlowTools, }: {
|
|
2
2
|
zone: Zone;
|
|
3
3
|
timerService: Remote<TimerService>;
|
|
4
4
|
zcf: ZCF;
|
|
@@ -37,6 +37,38 @@ export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode,
|
|
|
37
37
|
chainHub: import("./utils/chainHub.js").ChainHub;
|
|
38
38
|
makeLocalChainAccountKit: ReturnType<typeof import("./exos/local-chain-account-kit.js").prepareLocalChainAccountKit>;
|
|
39
39
|
makeRecorderKit: <T_1>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T_1> | undefined) => RecorderKit<T_1>;
|
|
40
|
+
asyncFlowTools: {
|
|
41
|
+
prepareAsyncFlowKit: (zone: Zone, tag: string, guestAsyncFunc: import("../../../node_modules/@agoric/async-flow/src/types.js").GuestAsyncFunc, options?: {
|
|
42
|
+
startEager?: boolean | undefined;
|
|
43
|
+
} | undefined) => (activationArgs: any) => import("@endo/exo").GuardedKit<{
|
|
44
|
+
flow: {
|
|
45
|
+
getFlowState(): import("../../../node_modules/@agoric/async-flow/src/types.js").FlowState;
|
|
46
|
+
restart(eager?: boolean | undefined): void;
|
|
47
|
+
wake(): void;
|
|
48
|
+
getOutcome(): import("@agoric/vow").Vow<any>;
|
|
49
|
+
dump(): ([op: "doFulfill", vow: import("@agoric/vow").Vow<import("@endo/pass-style").Passable>, fulfillment: import("@endo/pass-style").Passable] | [op: "doReject", vow: import("@agoric/vow").Vow<import("@endo/pass-style").Passable>, reason: import("@endo/pass-style").Passable] | [op: "doReturn", callIndex: number, result: import("@endo/pass-style").Passable] | [op: "doThrow", callIndex: number, problem: import("@endo/pass-style").Passable] | [op: "checkCall", target: import("@endo/pass-style").Passable, optVerb: PropertyKey | undefined, args: import("@endo/pass-style").Passable[], callIndex: number])[];
|
|
50
|
+
getOptFatalProblem(): any;
|
|
51
|
+
};
|
|
52
|
+
admin: {
|
|
53
|
+
reset(): void;
|
|
54
|
+
complete(): void;
|
|
55
|
+
panic(fatalProblem: any): never;
|
|
56
|
+
};
|
|
57
|
+
wakeWatcher: {
|
|
58
|
+
onFulfilled(_fulfillment: any): void;
|
|
59
|
+
onRejected(_fulfillment: any): void;
|
|
60
|
+
};
|
|
61
|
+
}>;
|
|
62
|
+
asyncFlow: (zone: Zone, tag: string, guestFunc: import("../../../node_modules/@agoric/async-flow/src/types.js").GuestAsyncFunc, options?: {
|
|
63
|
+
startEager?: boolean | undefined;
|
|
64
|
+
} | undefined) => import("../../../node_modules/@agoric/async-flow/src/types.js").HostAsyncFuncWrapper;
|
|
65
|
+
adminAsyncFlow: import("@endo/exo").Guarded<{
|
|
66
|
+
getFailures(): import("@endo/patterns").CopyMap<any, import("@endo/pass-style").Passable>;
|
|
67
|
+
wakeAll(): void;
|
|
68
|
+
getFlowForOutcomeVow(outcomeVow: any): any;
|
|
69
|
+
}>;
|
|
70
|
+
allWokenP: Promise<void>;
|
|
71
|
+
};
|
|
40
72
|
}): {
|
|
41
73
|
/**
|
|
42
74
|
* @template Context
|
package/src/facade.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AAmKO;;;SAZG,GAAG;;;;;;;;;;;;;8BAjDQ,MAAM,KAAK,CAAC;6BAoBrB,QAAO,KAAK,CAAC,mBAA6B,OACtD;6BAoBI,OACF,KACD,CAAC;;;2BA4BI,EAAE;;;;;;;oBAiE4nC,CAAC;;;uBAA6lB,EAAE;;;;;cAnFrtD,OAAO,qBAAqB,EAAE,QAAQ;8BACtB,UAAU,CACxC,cAAoB,mCAAmC,EAAE,2BAA2B,CAC/E;wCAD+B,WAAW,GAAE,QAAS,OAAO,WAAW,EAAE,MAAM,CACpF,WACE,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6BD;;;;;;;;OAQG;gBAFkC,OAAO,EACrB,IAAI,6BAJhB,MAAM,OAGoB,OAAO,AAD1B,gCACmB,OAAO,WACrB,IAAI,AADgC,KAAK,MAAM,GACzD,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC;EAwCnD;kCAEa,UAAU,CAAC,OAAO,uBAAuB,CAAC;0BArOjC,cAAc;kCACN,cAAc;4BAIpB,kBAAkB;iCADI,6CAA6C;kCAGe,YAAY"}
|
package/src/facade.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/** @file Orchestration service */
|
|
2
2
|
|
|
3
3
|
import { V as E } from '@agoric/vow/vat.js';
|
|
4
|
+
import { Fail } from '@agoric/assert';
|
|
4
5
|
import { prepareCosmosOrchestrationAccount } from './exos/cosmosOrchestrationAccount.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
8
|
+
* @import {AsyncFlowTools} from '@agoric/async-flow';
|
|
7
9
|
* @import {Zone} from '@agoric/zone';
|
|
8
10
|
* @import {TimerService} from '@agoric/time';
|
|
9
11
|
* @import {IBCConnectionID} from '@agoric/vats';
|
|
@@ -156,6 +158,7 @@ const makeRemoteChainFacade = (
|
|
|
156
158
|
* typeof import('./exos/local-chain-account-kit.js').prepareLocalChainAccountKit
|
|
157
159
|
* >;
|
|
158
160
|
* makeRecorderKit: MakeRecorderKit;
|
|
161
|
+
* asyncFlowTools: AsyncFlowTools;
|
|
159
162
|
* }} powers
|
|
160
163
|
*/
|
|
161
164
|
export const makeOrchestrationFacade = ({
|
|
@@ -168,14 +171,19 @@ export const makeOrchestrationFacade = ({
|
|
|
168
171
|
chainHub,
|
|
169
172
|
makeLocalChainAccountKit,
|
|
170
173
|
makeRecorderKit,
|
|
174
|
+
asyncFlowTools,
|
|
171
175
|
}) => {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
(zone &&
|
|
177
|
+
timerService &&
|
|
178
|
+
zcf &&
|
|
179
|
+
storageNode &&
|
|
180
|
+
orchestrationService &&
|
|
181
|
+
// @ts-expect-error type says defined but double check
|
|
182
|
+
makeLocalChainAccountKit &&
|
|
183
|
+
// @ts-expect-error type says defined but double check
|
|
184
|
+
makeRecorderKit &&
|
|
185
|
+
asyncFlowTools) ||
|
|
186
|
+
Fail`params missing`;
|
|
179
187
|
|
|
180
188
|
return {
|
|
181
189
|
/**
|