@agoric/orchestration 0.1.1-dev-76f3e6f.0 → 0.1.1-dev-ab4941a.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 +17 -17
- package/src/examples/basic-flows.contract.d.ts +4 -1
- package/src/examples/basic-flows.contract.d.ts.map +1 -1
- package/src/examples/basic-flows.contract.js +1 -1
- package/src/examples/sendAnywhere.contract.d.ts +1 -1
- package/src/examples/swapExample.contract.d.ts +1 -1
- package/src/examples/swapExample.contract.d.ts.map +1 -1
- package/src/examples/swapExample.contract.js +0 -7
- package/src/examples/unbondExample.contract.d.ts +2 -3
- package/src/examples/unbondExample.contract.d.ts.map +1 -1
- package/src/examples/unbondExample.contract.js +0 -2
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.js +0 -1
- package/src/exos/local-chain-facade.d.ts +1 -0
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-chain-facade.js +1 -0
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +0 -1
- package/src/exos/remote-chain-facade.d.ts +1 -0
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.js +1 -0
- package/src/facade.d.ts +5 -2
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +14 -21
- package/src/typeGuards.d.ts +17 -22
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +7 -1
- package/src/utils/start-helper.d.ts +2 -2
- package/src/utils/start-helper.d.ts.map +1 -1
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-ab4941a.0+ab4941a",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/network": "0.1.1-dev-
|
|
41
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
45
|
-
"@agoric/vats": "0.15.2-dev-
|
|
46
|
-
"@agoric/vow": "0.1.1-dev-
|
|
47
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
48
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/async-flow": "0.1.1-dev-ab4941a.0+ab4941a",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-ab4941a.0+ab4941a",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-ab4941a.0+ab4941a",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-ab4941a.0+ab4941a",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-ab4941a.0+ab4941a",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-ab4941a.0+ab4941a",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-ab4941a.0+ab4941a",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-ab4941a.0+ab4941a",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-ab4941a.0+ab4941a",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-ab4941a.0+ab4941a",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-ab4941a.0+ab4941a",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-ab4941a.0+ab4941a",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-ab4941a.0+ab4941a",
|
|
49
49
|
"@endo/base64": "^1.0.5",
|
|
50
50
|
"@endo/errors": "^1.2.2",
|
|
51
51
|
"@endo/far": "^1.1.2",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@noble/hashes": "github:paulmillr/noble-hashes#ae060da"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
57
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-ab4941a.0+ab4941a",
|
|
58
58
|
"@chain-registry/client": "^1.47.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.3",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"access": "public"
|
|
93
93
|
},
|
|
94
94
|
"typeCoverage": {
|
|
95
|
-
"atLeast":
|
|
95
|
+
"atLeast": 98.04
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "ab4941a38e563ef355fadbf464e1694e02923d54"
|
|
98
98
|
}
|
|
@@ -2,10 +2,13 @@ export function start(zcf: ZCF, privateArgs: OrchestrationPowers & {
|
|
|
2
2
|
marshaller: Marshaller;
|
|
3
3
|
}, baggage: Baggage): Promise<{
|
|
4
4
|
publicFacet: import("@endo/exo").Guarded<{
|
|
5
|
-
makeOrchAccountInvitation(): Promise<Invitation<
|
|
5
|
+
makeOrchAccountInvitation(): Promise<Invitation<Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>, {
|
|
6
|
+
chainName: string;
|
|
7
|
+
}>>;
|
|
6
8
|
}>;
|
|
7
9
|
}>;
|
|
8
10
|
export type BasicFlowsSF = typeof start;
|
|
9
11
|
import type { OrchestrationPowers } from '../utils/start-helper.js';
|
|
10
12
|
import type { Baggage } from '@agoric/vat-data';
|
|
13
|
+
import type { Vow } from '@agoric/vow';
|
|
11
14
|
//# sourceMappingURL=basic-flows.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-flows.contract.d.ts","sourceRoot":"","sources":["basic-flows.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"basic-flows.contract.d.ts","sourceRoot":"","sources":["basic-flows.contract.js"],"names":[],"mappings":"AAuCO,2BANI,GAAG,eACH,mBAAmB,GAAG;IAChC,UAAc,EAAE,UAAU,CAAC;CACxB,WACO,OAAO;;;uBAfM,MAAM;;;GA+C7B;2BAEa,OAAO,KAAK;yCA3DY,0BAA0B;6BAHtC,kBAAkB;yBAEZ,aAAa"}
|
|
@@ -9,6 +9,7 @@ import { provideOrchestration } from '../utils/start-helper.js';
|
|
|
9
9
|
/**
|
|
10
10
|
* @import {Baggage} from '@agoric/vat-data';
|
|
11
11
|
* @import {Orchestrator} from '@agoric/orchestration';
|
|
12
|
+
* @import {Vow, VowTools} from '@agoric/vow';
|
|
12
13
|
* @import {OrchestrationPowers} from '../utils/start-helper.js';
|
|
13
14
|
*/
|
|
14
15
|
|
|
@@ -44,7 +45,6 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
44
45
|
privateArgs.marshaller,
|
|
45
46
|
);
|
|
46
47
|
|
|
47
|
-
/** @type {OfferHandler} */
|
|
48
48
|
const makeOrchAccount = orchestrate(
|
|
49
49
|
'makeOrchAccount',
|
|
50
50
|
undefined,
|
|
@@ -22,7 +22,7 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
|
|
|
22
22
|
marshaller: Marshaller;
|
|
23
23
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
24
24
|
publicFacet: import("@endo/exo").Guarded<{
|
|
25
|
-
makeSendInvitation(): Promise<Invitation<any
|
|
25
|
+
makeSendInvitation(): Promise<Invitation<import("@agoric/vow").Vow<any>, any>>;
|
|
26
26
|
}>;
|
|
27
27
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
28
28
|
/**
|
|
@@ -13,7 +13,7 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: {
|
|
|
13
13
|
marshaller: Marshaller;
|
|
14
14
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
15
15
|
publicFacet: import("@endo/exo").Guarded<{
|
|
16
|
-
makeSwapAndStakeInvitation(): Promise<Invitation<
|
|
16
|
+
makeSwapAndStakeInvitation(): Promise<Invitation<import("@agoric/vow").Vow<void>, {
|
|
17
17
|
staked: Amount<"nat">;
|
|
18
18
|
validator: CosmosValidatorAddress;
|
|
19
19
|
}>>;
|
|
@@ -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":"AA6DA,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AA6CtD;iBAtCkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;kBAClB,OAAO,YAAY,CAAC;gBACtB,UAAU;;;;oBAtEhB,MAAM,CAAC,KAAK,CAAC;uBACb,sBAAsB;;;GAsGgB;6BAlHvB,cAAc;4BAFf,kBAAkB;gCADd,gCAAgC;6CAEnB,sCAAsC;kCAHjD,cAAc;4CADU,aAAa"}
|
|
@@ -5,7 +5,6 @@ import { orcUtils } from '../utils/orc.js';
|
|
|
5
5
|
import { withOrchestration } from '../utils/start-helper.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @import {GuestInterface, GuestOf} from '@agoric/async-flow';
|
|
9
8
|
* @import {LocalTransfer} from '../utils/zoe-tools.js';
|
|
10
9
|
* @import {Orchestrator, CosmosValidatorAddress} from '../types.js'
|
|
11
10
|
* @import {TimerService} from '@agoric/time';
|
|
@@ -102,12 +101,6 @@ const contract = async (zcf, privateArgs, zone, { orchestrate, zoeTools }) => {
|
|
|
102
101
|
const { brands } = zcf.getTerms();
|
|
103
102
|
|
|
104
103
|
/** deprecated historical example */
|
|
105
|
-
/**
|
|
106
|
-
* @type {OfferHandler<
|
|
107
|
-
* unknown,
|
|
108
|
-
* { staked: Amount<'nat'>; validator: CosmosValidatorAddress }
|
|
109
|
-
* >}
|
|
110
|
-
*/
|
|
111
104
|
const swapAndStakeHandler = orchestrate(
|
|
112
105
|
'LSTTia',
|
|
113
106
|
{ zcf, localTransfer: zoeTools.localTransfer },
|
|
@@ -5,9 +5,9 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: {
|
|
|
5
5
|
storageNode: Remote<StorageNode>;
|
|
6
6
|
marshaller: Marshaller;
|
|
7
7
|
timerService: Remote<TimerService>;
|
|
8
|
-
}, baggage: Baggage) => Promise<{
|
|
8
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
9
9
|
publicFacet: import("@endo/exo").Guarded<{
|
|
10
|
-
makeUnbondAndLiquidStakeInvitation(): Promise<Invitation<
|
|
10
|
+
makeUnbondAndLiquidStakeInvitation(): Promise<Invitation<import("@agoric/vow").Vow<void>, undefined>>;
|
|
11
11
|
}>;
|
|
12
12
|
}>;
|
|
13
13
|
import type { NameHub } from '@agoric/vats';
|
|
@@ -15,5 +15,4 @@ import type { Remote } from '@agoric/internal';
|
|
|
15
15
|
import type { LocalChain } from '@agoric/vats/src/localchain.js';
|
|
16
16
|
import type { CosmosInterchainService } from '../exos/cosmos-interchain-service.js';
|
|
17
17
|
import type { TimerService } from '@agoric/time';
|
|
18
|
-
import type { Baggage } from '@agoric/vat-data';
|
|
19
18
|
//# sourceMappingURL=unbondExample.contract.d.ts.map
|
|
@@ -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":"AAqFA;iBApCkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;gBACpB,UAAU;kBACR,OAAO,YAAY,CAAC;;;;;GA+BU;6BA9EvB,cAAc;4BACf,kBAAkB;gCAFd,gCAAgC;6CAInB,sCAAsC;kCALjD,cAAc"}
|
|
@@ -4,7 +4,6 @@ import { withOrchestration } from '../utils/start-helper.js';
|
|
|
4
4
|
/**
|
|
5
5
|
* @import {Orchestrator, IcaAccount, CosmosValidatorAddress} from '../types.js'
|
|
6
6
|
* @import {TimerService} from '@agoric/time';
|
|
7
|
-
* @import {Baggage} from '@agoric/vat-data';
|
|
8
7
|
* @import {LocalChain} from '@agoric/vats/src/localchain.js';
|
|
9
8
|
* @import {NameHub} from '@agoric/vats';
|
|
10
9
|
* @import {Remote} from '@agoric/internal';
|
|
@@ -59,7 +58,6 @@ const unbondAndLiquidStakeFn = async (orch, { zcf }, _seat, _offerArgs) => {
|
|
|
59
58
|
* @param {OrchestrationTools} tools
|
|
60
59
|
*/
|
|
61
60
|
const contract = async (zcf, privateArgs, zone, { orchestrate }) => {
|
|
62
|
-
/** @type {OfferHandler} */
|
|
63
61
|
const unbondAndLiquidStake = orchestrate(
|
|
64
62
|
'LSTTia',
|
|
65
63
|
{ zcf },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos-orchestration-account.d.ts","sourceRoot":"","sources":["cosmos-orchestration-account.js"],"names":[],"mappings":"AAsDA;;;GAGG;AAEH;;;;;;;;;GASG;AAEH,mCAAmC;AACnC;;;;;;;;;;;;;;GAaG;AAgBI,2DALI,IAAI,mBACJ,eAAe,0BACf,QAAQ,OACR,GAAG;aAwDC,UAAU;iBACV,OAAO,WAAW,CAAC;mBACnB,aAAa,GAA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|
|
100
100
|
export type MakeLocalChainFacade = ReturnType<typeof prepareLocalChainFacade>;
|
|
101
|
+
export type LocalChainFacade = ReturnType<MakeLocalChainFacade>;
|
|
101
102
|
import type { Zone } from '@agoric/base-zone';
|
|
102
103
|
import type { IBCConnectionInfo } from '../types.js';
|
|
103
104
|
import type { Vow } from '@agoric/vow';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"AAiIO,8CAHI,IAAI,UACJ,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;QArDzB,6DAA6D;uBAA/C,IAAI,4BAA4B,CAAC,QAAQ,CAAC,CAAC;;;QAazD;;WAEG;wCADQ,CAAC,iBAAiB,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;QAWrD;;;;;;WAMG;+BALQ,OAAO,WAAW,CAAC,wBACnB;YACV,OAAW,EAAE,iBAAiB,CAAC;YAC/B,OAAW,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;SAChC;;;;;;;;;;;;;;;;;;;;;;;;cA4BX;qCA9GY;IACZ,gCAAoC,EAAE,gCAAgC,CAAC;IACvE,aAAiB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IACnD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,KAAS,EAAE,OAAO,YAAY,CAAC,CAAC;IAChC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,QAAY,EAAE,QAAQ,CAAC;CACpB;mCA0GU,UAAU,CAAC,OAAO,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"AAiIO,8CAHI,IAAI,UACJ,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;QArDzB,6DAA6D;uBAA/C,IAAI,4BAA4B,CAAC,QAAQ,CAAC,CAAC;;;QAazD;;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oteChainFacade>;
|
|
101
|
+
export type RemoteChainFacade = ReturnType<MakeRemoteChainFacade>;
|
|
101
102
|
import type { Zone } from '@agoric/base-zone';
|
|
102
103
|
import type { IBCConnectionInfo } from '../types.js';
|
|
103
104
|
import type { HostInterface } from '@agoric/async-flow';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-chain-facade.d.ts","sourceRoot":"","sources":["remote-chain-facade.js"],"names":[],"mappings":"AA2KO,+CAHI,IAAI,UACJ,uBAAuB;;;;;;;;;;;;;;;;QAnF1B,4CAA4C;;QAK5C,2CAA2C;;;;QAqB3C;;;;WAIG;6BADQ,UAAU;;;;;;;;;;;;;;;;;QAWrB;;;WAGG;kCAFQ,YAAY,WACZ,UAAU;;;;;;;;;;;;;;;;;QAWrB;;;;;;WAMG;+BALQ,OAAO,WAAW,CAAC,6BACnB;YACV,OAAW,EAAE,UAAU,CAAC;YACxB,YAAgB,EAAE,YAAY,CAAC;SAC5B;;;;;;;;;;;;;;;;cA8BX;sCApJY;IACZ,8BAAkC,EAAE,UAAU,CAC9C,wCAA8C,CACzC,CAAC;IACN,aAAiB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IACnD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,KAAS,EAAE,OAAO,YAAY,CAAC,CAAC;IAChC,QAAY,EAAE,QAAQ,CAAC;CACpB;oCA+IU,UAAU,CAAC,OAAO,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"remote-chain-facade.d.ts","sourceRoot":"","sources":["remote-chain-facade.js"],"names":[],"mappings":"AA2KO,+CAHI,IAAI,UACJ,uBAAuB;;;;;;;;;;;;;;;;QAnF1B,4CAA4C;;QAK5C,2CAA2C;;;;QAqB3C;;;;WAIG;6BADQ,UAAU;;;;;;;;;;;;;;;;;QAWrB;;;WAGG;kCAFQ,YAAY,WACZ,UAAU;;;;;;;;;;;;;;;;;QAWrB;;;;;;WAMG;+BALQ,OAAO,WAAW,CAAC,6BACnB;YACV,OAAW,EAAE,UAAU,CAAC;YACxB,YAAgB,EAAE,YAAY,CAAC;SAC5B;;;;;;;;;;;;;;;;cA8BX;sCApJY;IACZ,8BAAkC,EAAE,UAAU,CAC9C,wCAA8C,CACzC,CAAC;IACN,aAAiB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IACnD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,KAAS,EAAE,OAAO,YAAY,CAAC,CAAC;IAChC,QAAY,EAAE,QAAQ,CAAC;CACpB;oCA+IU,UAAU,CAAC,OAAO,wBAAwB,CAAC;gCAC3C,UAAU,CAAC,qBAAqB,CAAC;0BAxKxB,mBAAmB;uCAMoF,aAAa;mCAPnG,oBAAoB;yBAI5B,aAAa;0CAGiF,aAAa;gCAAb,aAAa;kCAAb,aAAa;4BAJlH,kBAAkB;uDAGS,mCAAmC;6CAD7C,gCAAgC;kCAH3C,cAAc;8BAEb,aAAa"}
|
package/src/facade.d.ts
CHANGED
|
@@ -14,11 +14,11 @@ export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode,
|
|
|
14
14
|
wakeAll(): void;
|
|
15
15
|
getFlowForOutcomeVow(outcomeVow: any): any;
|
|
16
16
|
}>;
|
|
17
|
-
orchestrate: <
|
|
17
|
+
orchestrate: <GR, HC, GA extends any[]>(durableName: string, hostCtx: HC, guestFn: (guestOrc: Orchestrator, guestCtx: GuestInterface<HC>, ...args: GA) => Promise<GR>) => (...args: HostArgs<GA>) => Vow<GR>;
|
|
18
18
|
orchestrateAll: (guestFns: {
|
|
19
19
|
[durableName: string]: (...args: any[]) => any;
|
|
20
20
|
}, hostCtx: any) => {
|
|
21
|
-
[k: string]: (...args: any[]) =>
|
|
21
|
+
[k: string]: (...args: any[]) => Vow<any>;
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
export type OrchestrationFacade = ReturnType<typeof makeOrchestrationFacade>;
|
|
@@ -31,4 +31,7 @@ import type { HostOrchestrator } from './exos/orchestrator.js';
|
|
|
31
31
|
import type { VowTools } from '@agoric/vow';
|
|
32
32
|
import type { AsyncFlowTools } from '@agoric/async-flow';
|
|
33
33
|
import type { Orchestrator } from './types.js';
|
|
34
|
+
import type { GuestInterface } from '@agoric/async-flow';
|
|
35
|
+
import type { HostArgs } from '@agoric/async-flow';
|
|
36
|
+
import type { Vow } from '@agoric/vow';
|
|
34
37
|
//# sourceMappingURL=facade.d.ts.map
|
package/src/facade.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AA6BO,sKAZI;IACV,IAAQ,EAAE,IAAI,CAAC;IACf,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,GAAO,EAAE,GAAG,CAAC;IACb,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,oBAAwB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC1D,eAAmB,EAAE,eAAe,CAAC;IACrC,gBAAoB,EAAE,MAAM,gBAAgB,CAAC;IAC7C,QAAY,EAAE,QAAQ,CAAC;IACvB,cAAkB,EAAE,cAAc,CAAC;CAChC;;;;;;
|
|
1
|
+
{"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AA6BO,sKAZI;IACV,IAAQ,EAAE,IAAI,CAAC;IACf,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,GAAO,EAAE,GAAG,CAAC;IACb,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,oBAAwB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC1D,eAAmB,EAAE,eAAe,CAAC;IACrC,gBAAoB,EAAE,MAAM,gBAAgB,CAAC;IAC7C,QAAY,EAAE,QAAQ,CAAC;IACvB,cAAkB,EAAE,cAAc,CAAC;CAChC;;;;;;kBA4BW,EAAE,EACF,EAAE,EACM,EAAE,SAAT,GAAG,EAAG,eACT,MAAM,WAEN,EAAE,WACF,CACV,QAAY,EAAE,YAAY,EAC1B,QAAY,EAAE,eAAe,EAAE,CAAC,EAChC,GAAO,IAAI,EAAE,EAAE,KACR,OAAO,CAAC,EAAE,CAAC,KACN,CAAC,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC;+BA2BpC;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;KAAE,WAClD,GAAG;yCA5B0B,QAAO;;EA2ChD;kCAEa,UAAU,CAAC,OAAO,uBAAuB,CAAC;0BAzGjC,cAAc;kCAEN,cAAc;4BAGpB,kBAAkB;6CACD,qCAAqC;qCAHhC,6CAA6C;sCACzD,wBAAwB;8BAH3B,aAAa;oCAFc,oBAAoB;kCAQ4B,YAAY;oCAR5D,oBAAoB;8BAApB,oBAAoB;yBAE/C,aAAa"}
|
package/src/facade.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { assertAllDefined } from '@agoric/internal';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @import {AsyncFlowTools} from '@agoric/async-flow';
|
|
6
|
+
* @import {AsyncFlowTools, GuestInterface, HostArgs} from '@agoric/async-flow';
|
|
7
7
|
* @import {Zone} from '@agoric/zone';
|
|
8
8
|
* @import {Vow, VowTools} from '@agoric/vow';
|
|
9
9
|
* @import {TimerService} from '@agoric/time';
|
|
@@ -52,27 +52,19 @@ export const makeOrchestrationFacade = ({
|
|
|
52
52
|
|
|
53
53
|
const { prepareEndowment, asyncFlow, adminAsyncFlow } = asyncFlowTools;
|
|
54
54
|
|
|
55
|
-
const { when } = vowTools;
|
|
56
|
-
|
|
57
55
|
/**
|
|
58
|
-
* @template
|
|
59
|
-
* @template
|
|
60
|
-
* @template
|
|
61
|
-
* @template HostContext
|
|
62
|
-
* @template {any[]} GuestArgs
|
|
63
|
-
* @template {any[]} HostArgs
|
|
56
|
+
* @template GR - return type
|
|
57
|
+
* @template HC - host context
|
|
58
|
+
* @template {any[]} GA - guest args
|
|
64
59
|
* @param {string} durableName - the orchestration flow identity in the zone
|
|
65
60
|
* (to resume across upgrades)
|
|
66
|
-
* @param {
|
|
67
|
-
* membrane
|
|
61
|
+
* @param {HC} hostCtx - values to pass through the async flow membrane
|
|
68
62
|
* @param {(
|
|
69
63
|
* guestOrc: Orchestrator,
|
|
70
|
-
* guestCtx:
|
|
71
|
-
* ...args:
|
|
72
|
-
* ) => Promise<
|
|
73
|
-
* @returns {(...args: HostArgs) =>
|
|
74
|
-
* Promise for now for compat before use of asyncFlow. But really should be
|
|
75
|
-
* `Vow<HostReturn>`
|
|
64
|
+
* guestCtx: GuestInterface<HC>,
|
|
65
|
+
* ...args: GA
|
|
66
|
+
* ) => Promise<GR>} guestFn
|
|
67
|
+
* @returns {(...args: HostArgs<GA>) => Vow<GR>}
|
|
76
68
|
*/
|
|
77
69
|
const orchestrate = (durableName, hostCtx, guestFn) => {
|
|
78
70
|
const subZone = zone.subZone(durableName);
|
|
@@ -86,10 +78,11 @@ export const makeOrchestrationFacade = ({
|
|
|
86
78
|
|
|
87
79
|
const hostFn = asyncFlow(subZone, 'asyncFlow', guestFn);
|
|
88
80
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
81
|
+
// cast because return could be arbitrary subtype
|
|
82
|
+
const orcFn = /** @type {(...args: HostArgs<GA>) => Vow<GR>} */ (
|
|
83
|
+
(...args) => hostFn(wrappedOrc, wrappedCtx, ...args)
|
|
84
|
+
);
|
|
85
|
+
|
|
93
86
|
return harden(orcFn);
|
|
94
87
|
};
|
|
95
88
|
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import {TypedPattern} from '@agoric/internal';
|
|
3
|
-
* @import {ChainInfo, CosmosChainInfo} from './types.js';
|
|
3
|
+
* @import {ChainAddress, ChainInfo, CosmosChainInfo, DenomAmount} from './types.js';
|
|
4
|
+
* @import {Delegation} from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
|
|
4
5
|
*/
|
|
5
6
|
/**
|
|
6
7
|
* Used for IBC Channel Connections that only send outgoing transactions. If
|
|
@@ -11,32 +12,26 @@ export const OutboundConnectionHandlerI: import("@endo/patterns").InterfaceGuard
|
|
|
11
12
|
onOpen: import("@endo/patterns").MethodGuard;
|
|
12
13
|
onClose: import("@endo/patterns").MethodGuard;
|
|
13
14
|
}>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
/** @type {TypedPattern<ChainAddress>} */
|
|
16
|
+
export const ChainAddressShape: TypedPattern<ChainAddress>;
|
|
17
|
+
export namespace Proto3Shape {
|
|
18
|
+
let typeUrl: import("@endo/patterns").Matcher;
|
|
17
19
|
let value: import("@endo/patterns").Matcher;
|
|
18
20
|
}
|
|
19
|
-
export namespace
|
|
20
|
-
export let typeUrl: import("@endo/patterns").Matcher;
|
|
21
|
+
export namespace CoinShape {
|
|
21
22
|
let value_1: import("@endo/patterns").Matcher;
|
|
22
23
|
export { value_1 as value };
|
|
23
|
-
}
|
|
24
|
-
export namespace CoinShape {
|
|
25
|
-
let value_2: import("@endo/patterns").Matcher;
|
|
26
|
-
export { value_2 as value };
|
|
27
24
|
export let denom: import("@endo/patterns").Matcher;
|
|
28
25
|
}
|
|
29
26
|
export namespace ChainAmountShape {
|
|
30
27
|
let denom_1: import("@endo/patterns").Matcher;
|
|
31
28
|
export { denom_1 as denom };
|
|
32
|
-
let
|
|
33
|
-
export {
|
|
29
|
+
let value_2: import("@endo/patterns").Matcher;
|
|
30
|
+
export { value_2 as value };
|
|
34
31
|
}
|
|
35
32
|
export const AmountArgShape: import("@endo/patterns").Matcher;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
let shares: import("@endo/patterns").Matcher;
|
|
39
|
-
}
|
|
33
|
+
/** @type {TypedPattern<Delegation>} */
|
|
34
|
+
export const DelegationShape: TypedPattern<Delegation>;
|
|
40
35
|
export const IBCTransferOptionsShape: import("@endo/patterns").Matcher;
|
|
41
36
|
export const IBCChannelIDShape: import("@endo/patterns").Matcher;
|
|
42
37
|
export const IBCChannelInfoShape: import("@endo/patterns").Matcher;
|
|
@@ -49,11 +44,8 @@ export const ChainInfoShape: TypedPattern<ChainInfo>;
|
|
|
49
44
|
export const LocalChainAccountShape: import("@endo/patterns").Matcher;
|
|
50
45
|
export const DenomShape: import("@endo/patterns").Matcher;
|
|
51
46
|
export const BrandInfoShape: import("@endo/patterns").Matcher;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
let value_4: import("@endo/patterns").Matcher;
|
|
55
|
-
export { value_4 as value };
|
|
56
|
-
}
|
|
47
|
+
/** @type {TypedPattern<DenomAmount>} */
|
|
48
|
+
export const DenomAmountShape: TypedPattern<DenomAmount>;
|
|
57
49
|
/** @see {Chain} */
|
|
58
50
|
export const ChainFacadeI: import("@endo/patterns").InterfaceGuard<{
|
|
59
51
|
getChainInfo: import("@endo/patterns").MethodGuard;
|
|
@@ -63,7 +55,10 @@ export namespace TimestampProtoShape {
|
|
|
63
55
|
let seconds: import("@endo/patterns").Matcher;
|
|
64
56
|
let nanos: import("@endo/patterns").Matcher;
|
|
65
57
|
}
|
|
66
|
-
import type {
|
|
58
|
+
import type { ChainAddress } from './types.js';
|
|
67
59
|
import type { TypedPattern } from '@agoric/internal';
|
|
60
|
+
import type { Delegation } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
|
|
61
|
+
import type { CosmosChainInfo } from './types.js';
|
|
68
62
|
import type { ChainInfo } from './types.js';
|
|
63
|
+
import type { DenomAmount } from './types.js';
|
|
69
64
|
//# sourceMappingURL=typeGuards.d.ts.map
|
package/src/typeGuards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAIA;;;;GAIG;AAEH;;;;GAIG;AACH;;;GAQE;AAEF,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CAKnC;;;;;;;;;;;;;;;;AAYF,8DAAkE;AAGlE,uCAAuC;AACvC,8BADW,aAAa,UAAU,CAAC,CAIhC;AAEH,uEAUE;AAEF,iEAA4C;AAC5C,mEAQG;AACH,oEAA+C;AAC/C,sEAYG;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CAWtC;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CAG/B;AACH,sEAAuE;AACvE,0DAAqC;AAErC,8DAAsC;AAEtC,wCAAwC;AACxC,+BADW,aAAa,WAAW,CAAC,CACqC;AAEzE,mBAAmB;AACnB;;;GAGG;;;;;kCA/GqE,YAAY;kCADrD,kBAAkB;gCAEpB,wDAAwD;qCADb,YAAY;+BAAZ,YAAY;iCAAZ,YAAY"}
|
package/src/typeGuards.js
CHANGED
|
@@ -4,7 +4,8 @@ import { M } from '@endo/patterns';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @import {TypedPattern} from '@agoric/internal';
|
|
7
|
-
* @import {ChainInfo, CosmosChainInfo} from './types.js';
|
|
7
|
+
* @import {ChainAddress, ChainInfo, CosmosChainInfo, DenomAmount} from './types.js';
|
|
8
|
+
* @import {Delegation} from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
|
|
8
9
|
*/
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -22,6 +23,7 @@ export const OutboundConnectionHandlerI = M.interface(
|
|
|
22
23
|
},
|
|
23
24
|
);
|
|
24
25
|
|
|
26
|
+
/** @type {TypedPattern<ChainAddress>} */
|
|
25
27
|
export const ChainAddressShape = {
|
|
26
28
|
chainId: M.string(),
|
|
27
29
|
encoding: M.string(),
|
|
@@ -33,12 +35,15 @@ export const Proto3Shape = {
|
|
|
33
35
|
value: M.string(),
|
|
34
36
|
};
|
|
35
37
|
|
|
38
|
+
// XXX same as ChainAmountShape and DenomAmount type
|
|
36
39
|
export const CoinShape = { value: M.bigint(), denom: M.string() };
|
|
37
40
|
|
|
38
41
|
export const ChainAmountShape = harden({ denom: M.string(), value: M.nat() });
|
|
39
42
|
|
|
40
43
|
export const AmountArgShape = M.or(AmountShape, ChainAmountShape);
|
|
41
44
|
|
|
45
|
+
// FIXME missing `delegatorAddress` from the type
|
|
46
|
+
/** @type {TypedPattern<Delegation>} */
|
|
42
47
|
export const DelegationShape = harden({
|
|
43
48
|
validatorAddress: M.string(),
|
|
44
49
|
shares: M.string(), // TODO: bigint?
|
|
@@ -103,6 +108,7 @@ export const DenomShape = M.string();
|
|
|
103
108
|
// TODO define for #9211
|
|
104
109
|
export const BrandInfoShape = M.any();
|
|
105
110
|
|
|
111
|
+
/** @type {TypedPattern<DenomAmount>} */
|
|
106
112
|
export const DenomAmountShape = { denom: DenomShape, value: M.bigint() };
|
|
107
113
|
|
|
108
114
|
/** @see {Chain} */
|
|
@@ -28,11 +28,11 @@ export function provideOrchestration(zcf: ZCF, baggage: Baggage, remotePowers: O
|
|
|
28
28
|
wakeAll(): void;
|
|
29
29
|
getFlowForOutcomeVow(outcomeVow: any): any;
|
|
30
30
|
}>;
|
|
31
|
-
orchestrate: <
|
|
31
|
+
orchestrate: <GR, HC, GA extends any[]>(durableName: string, hostCtx: HC, guestFn: (guestOrc: import("../orchestration-api.js").Orchestrator, guestCtx: import("@agoric/async-flow").GuestInterface<HC>, ...args: GA) => Promise<GR>) => (...args: import("@agoric/async-flow").HostArgs<GA>) => import("@agoric/vow").Vow<GR>;
|
|
32
32
|
orchestrateAll: (guestFns: {
|
|
33
33
|
[durableName: string]: (...args: any[]) => any;
|
|
34
34
|
}, hostCtx: any) => {
|
|
35
|
-
[k: string]: (...args: any[]) =>
|
|
35
|
+
[k: string]: (...args: any[]) => import("@agoric/vow").Vow<any>;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
export function withOrchestration<CT extends Record<string, unknown>, PA extends OrchestrationPowers & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AA8CO,0CALI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;;;;;;;;;;;;;;;;;wCA+B+B,GAAG;;+BAjDjD,GAAG,+EAIY,GAAG,yCACA,GAAG;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AA8CO,0CALI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;;;;;;;;;;;;;;;;;wCA+B+B,GAAG;;+BAjDjD,GAAG,+EAIY,GAAG,yCACA,GAAG;;;;;;;;;;;6MAgBvB,GACI,8BAIQ,GAAG;;gCA0B6C,GAAG;;;;EAsElE;AAuBM,kCAdgC,EAAE,SAA3B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE,EAGhC,EAAE,SAFM,mBAAmB,GAAG;IACnC,UAAc,EAAE,UAAU,CAAC;CACvB,EACQ,CAAC,cACH,CACV,GAAO,EAAE,GAAG,CAAC,EAAE,CAAC,EAChB,WAAe,EAAE,EAAE,EACnB,IAAQ,EAAE,IAAI,EACd,KAAS,EAAE,kBAAkB,KACtB,OAAO,CAAC,CAAC,CAAC,GACL,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAYzE;kCA1JU;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC1D,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,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