@agoric/orchestration 0.1.1-dev-5fd303a.0 → 0.1.1-dev-7390224.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 -16
- package/src/exos/chain-hub.d.ts +1 -0
- package/src/exos/chain-hub.d.ts.map +1 -1
- package/src/exos/chain-hub.js +1 -0
- package/src/exos/cosmos-interchain-service.d.ts +3 -3
- package/src/exos/cosmos-interchain-service.d.ts.map +1 -1
- package/src/exos/cosmos-interchain-service.js +3 -3
- package/src/typeGuards.d.ts +4 -1
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +11 -1
- package/src/types.d.ts +1 -0
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +1 -0
- package/src/vat-orchestration.d.ts +5 -5
- package/src/vat-orchestration.d.ts.map +1 -1
- package/src/vat-orchestration.js +2 -2
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-7390224.0+7390224",
|
|
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-7390224.0+7390224",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-7390224.0+7390224",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-7390224.0+7390224",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-7390224.0+7390224",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-7390224.0+7390224",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-7390224.0+7390224",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-7390224.0+7390224",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-7390224.0+7390224",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-7390224.0+7390224",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-7390224.0+7390224",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-7390224.0+7390224",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-7390224.0+7390224",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-7390224.0+7390224",
|
|
49
49
|
"@endo/base64": "^1.0.8",
|
|
50
50
|
"@endo/errors": "^1.2.7",
|
|
51
51
|
"@endo/far": "^1.1.8",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@noble/hashes": "^1.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
57
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-7390224.0+7390224",
|
|
58
58
|
"@chain-registry/client": "^1.47.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.3",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"typeCoverage": {
|
|
96
96
|
"atLeast": 97.23
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "739022455dbfb7e7d7d90e8ae7cef948cde3e97a"
|
|
99
99
|
}
|
package/src/exos/chain-hub.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export function makeChainHub(zone: Zone, agoricNames: Remote<NameHub>, vowTools:
|
|
|
113
113
|
/**
|
|
114
114
|
* @param {string} address bech32 address
|
|
115
115
|
* @returns {ChainAddress}
|
|
116
|
+
* @throws {Error} if chain info not found for bech32Prefix
|
|
116
117
|
*/
|
|
117
118
|
makeChainAddress(address: string): ChainAddress;
|
|
118
119
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-hub.d.ts","sourceRoot":"","sources":["chain-hub.js"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;GAOG;AACH,wCAAwC;AACxC,+BADW,aAAa,WAAW,CAAC,CAIlC;sBAGQ,CAAC,OAAO,OAAO,EAAE,MAAM,OAAO,OAAO,CAAC;;;;;;AAYhD,oCAAoC;AACpC,gCAAuC;AACvC,8CAA8C;AAC9C,gDAAuD;AACvD,0CAA0C;AAC1C,uCAA8C;AAqBvC,wCAHI,MAAM,YACN,MAAM,UAUhB;AAoCM,wDALI,MAAM,kBACN,MAAM,YACN,iBAAiB,GACf,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAavC;AA4DM,mCAJI,IAAI,eACJ,OAAO,OAAO,CAAC,YACf,QAAQ;IAsHf;;;;;;;;;;;OAWG;wBAFQ,MAAM,aACN,eAAe;IAQ1B;;;;OAIG;iBAHmB,CAAC,SAAV,MAAQ,aACV,CAAC,GACC,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;IAYpC;;;;OAIG;uCAHQ,MAAM,uBACN,MAAM,kBACN,iBAAiB;IAW5B;;;;OAIG;+BAHQ,MAAM,GAAG;QAAE,OAAO,EAAE,M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,OAAO,EAAE,MAAM,CAAA;KAAE,WAC5B,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAC1B,IAAI,iBAAiB,CAAC;IAmBnC;;;;;;;;OAQG;2BAPmB,EAAE,SAAX,MAAQ,EACC,EAAE,SAAX,MAAQ,eACV,EAAE,eACF,EAAE,GACA,IACZ,CAAK,eAAe,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAC9D;IAOJ;;;;;;;OAOG;yBAHQ,KAAK,UAEL,WAAW;IAatB;;;;;OAKG;oBAFQ,KAAK,GACH,WAAW,GAAG,SAAS;IAQpC;;;;;OAKG;oBAFQ,KAAK,GACH,KAAK,GAAG,SAAS;IAQ9B;;;;OAIG;8BAHQ,MAAM,GACJ,YAAY;GAmB5B;AAUM,yCAJI,QAAQ,QACR,MAAM,UACN,eAAe,EAAE,QAe3B;;;;4BA7cqB,CAAC,SAAV,MAAQ,IACR,CAAC,SAAS,MAAM,WAAW,GACjC,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,GAC/C,SAAS;;;;;cAMF,MAAM;;;;eACN,KAAK;;;;eACL,MAAM;;;;;;uBA4aN,UAAU,CAAC,OAAO,YAAY,CAAC;kCA7bd,kBAAkB;uCAJqB,kBAAkB;0BADjE,cAAc;6BAFX,cAAc;4BAMf,kBAAkB;8BALX,aAAa;qCAEyB,kBAAkB;yBAFxD,aAAa;2BAIP,yBAAyB;kCAAzB,yBAAyB;qCAFO,kBAAkB;iCAC/C,kBAAkB;+BAAlB,kBAAkB"}
|
package/src/exos/chain-hub.js
CHANGED
|
@@ -445,6 +445,7 @@ export const makeChainHub = (zone, agoricNames, vowTools) => {
|
|
|
445
445
|
/**
|
|
446
446
|
* @param {string} address bech32 address
|
|
447
447
|
* @returns {ChainAddress}
|
|
448
|
+
* @throws {Error} if chain info not found for bech32Prefix
|
|
448
449
|
*/
|
|
449
450
|
makeChainAddress(address) {
|
|
450
451
|
const prefix = getBech32Prefix(address);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function prepareCosmosInterchainService(zone: Zone, vowTools: VowTools): (powers: Partial<
|
|
1
|
+
export function prepareCosmosInterchainService(zone: Zone, vowTools: VowTools): (powers: Partial<CosmosOrchestrationPowers>) => import("@endo/exo").Guarded<{
|
|
2
2
|
/**
|
|
3
3
|
* @satisfies {CosmosInterchainService['makeAccount']}
|
|
4
4
|
* @param {string} chainId
|
|
@@ -18,7 +18,7 @@ export function prepareCosmosInterchainService(zone: Zone, vowTools: VowTools):
|
|
|
18
18
|
*/
|
|
19
19
|
provideICQConnection(controllerConnectionId: IBCConnectionID, version?: string | undefined): Vow<ICQConnection> | ICQConnection;
|
|
20
20
|
}>;
|
|
21
|
-
export type
|
|
21
|
+
export type CosmosOrchestrationPowers = {
|
|
22
22
|
portAllocator: Remote<PortAllocator>;
|
|
23
23
|
/**
|
|
24
24
|
* reserve a state key for future use. can hold
|
|
@@ -31,7 +31,7 @@ export type ConnectionKit = IcaAccountKit | ICQConnectionKit;
|
|
|
31
31
|
export type OrchestrationState = {
|
|
32
32
|
icqConnections: ICQConnectionStore;
|
|
33
33
|
sharedICQPort: Remote<Port> | undefined;
|
|
34
|
-
} &
|
|
34
|
+
} & CosmosOrchestrationPowers;
|
|
35
35
|
export type MakeCosmosInterchainService = ReturnType<typeof prepareCosmosInterchainService>;
|
|
36
36
|
import type { Zone } from '@agoric/base-zone';
|
|
37
37
|
import type { VowTools } from '@agoric/vow';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos-interchain-service.d.ts","sourceRoot":"","sources":["cosmos-interchain-service.js"],"names":[],"mappings":"AAmQO,qDAJI,IAAI,YACJ,QAAQ;IAvEX;;;;;;;;;OASG;yBAPQ,MAAM,oBACN,eAAe,0BAEf,eAAe,6CAGb,IAAI,UAAU,CAAC;IAkB5B;;;;;OAKG;iDAHQ,eAAe,iCAEb,IAAI,aAAa,CAAC,GAAG,aAAa;GA6DtD;;mBAxPa,OAAO,aAAa,CAAC;;;;;cACrB,SAAS;;iCAIT,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;4BAElC,aAAa,GAAG,gBAAgB;iCAGjC;IACR,cAAc,EAAE,kBAAkB,CAAC;IACnC,aAAa,EAAE,OAAO,IAAI,CAAC,GAAG,SAAS,CAAC;CACzC,GAAG,
|
|
1
|
+
{"version":3,"file":"cosmos-interchain-service.d.ts","sourceRoot":"","sources":["cosmos-interchain-service.js"],"names":[],"mappings":"AAmQO,qDAJI,IAAI,YACJ,QAAQ;IAvEX;;;;;;;;;OASG;yBAPQ,MAAM,oBACN,eAAe,0BAEf,eAAe,6CAGb,IAAI,UAAU,CAAC;IAkB5B;;;;;OAKG;iDAHQ,eAAe,iCAEb,IAAI,aAAa,CAAC,GAAG,aAAa;GA6DtD;;mBAxPa,OAAO,aAAa,CAAC;;;;;cACrB,SAAS;;iCAIT,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;4BAElC,aAAa,GAAG,gBAAgB;iCAGjC;IACR,cAAc,EAAE,kBAAkB,CAAC;IACnC,aAAa,EAAE,OAAO,IAAI,CAAC,GAAG,SAAS,CAAC;CACzC,GAAG,yBAAyB;0CA8OlB,UAAU,CAAC,OAAO,8BAA8B,CAAC;0BAxQxC,mBAAmB;8BAKV,aAAa;qCAFX,cAAc;2CAIR,qBAAqB;gCADgB,aAAa;yBAD1D,aAAa;mCACgC,aAAa;mCAJxC,iBAAiB;4BAD1C,kBAAkB;sCAKkC,aAAa;mCAAb,aAAa;0BAJxC,iBAAiB"}
|
|
@@ -25,7 +25,7 @@ import { prepareICQConnectionKit } from './icq-connection-kit.js';
|
|
|
25
25
|
|
|
26
26
|
const { Vow$ } = NetworkShape; // TODO #9611
|
|
27
27
|
/**
|
|
28
|
-
* @typedef {object}
|
|
28
|
+
* @typedef {object} CosmosOrchestrationPowers
|
|
29
29
|
* @property {Remote<PortAllocator>} portAllocator
|
|
30
30
|
* @property {undefined} reserved reserve a state key for future use. can hold
|
|
31
31
|
* an additional power or a record of powers
|
|
@@ -39,7 +39,7 @@ const { Vow$ } = NetworkShape; // TODO #9611
|
|
|
39
39
|
* @typedef {{
|
|
40
40
|
* icqConnections: ICQConnectionStore;
|
|
41
41
|
* sharedICQPort: Remote<Port> | undefined;
|
|
42
|
-
* } &
|
|
42
|
+
* } & CosmosOrchestrationPowers} OrchestrationState
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -101,7 +101,7 @@ const prepareCosmosOrchestrationServiceKit = (
|
|
|
101
101
|
.returns(Vow$(M.remotable('ICQConnection'))),
|
|
102
102
|
}),
|
|
103
103
|
},
|
|
104
|
-
/** @param {Partial<
|
|
104
|
+
/** @param {Partial<CosmosOrchestrationPowers>} powers */
|
|
105
105
|
powers => {
|
|
106
106
|
mustMatch(powers?.portAllocator, M.remotable('PortAllocator'));
|
|
107
107
|
const icqConnections = zone.detached().mapStore('ICQConnections');
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import {TypedPattern} from '@agoric/internal';
|
|
3
|
-
* @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount, DenomInfo, AmountArg, CosmosValidatorAddress} from './types.js';
|
|
3
|
+
* @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount, DenomInfo, AmountArg, CosmosValidatorAddress, OrchestrationPowers} from './types.js';
|
|
4
4
|
* @import {Any as Proto3Msg} from '@agoric/cosmic-proto/google/protobuf/any.js';
|
|
5
5
|
* @import {TxBody} from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
6
6
|
* @import {TypedJson} from '@agoric/cosmic-proto';
|
|
@@ -76,6 +76,8 @@ export const TxBodyOptsShape: import("@endo/patterns").Matcher;
|
|
|
76
76
|
* permits Nat (fungible) amounts.
|
|
77
77
|
*/
|
|
78
78
|
export const AnyNatAmountsRecord: import("@endo/patterns").Matcher;
|
|
79
|
+
/** @type {TypedPattern<OrchestrationPowers>} */
|
|
80
|
+
export const OrchestrationPowersShape: TypedPattern<OrchestrationPowers>;
|
|
79
81
|
import type { ChainAddress } from './types.js';
|
|
80
82
|
import type { TypedPattern } from '@agoric/internal';
|
|
81
83
|
import type { Any as Proto3Msg } from '@agoric/cosmic-proto/google/protobuf/any.js';
|
|
@@ -87,4 +89,5 @@ import type { DenomAmount } from './types.js';
|
|
|
87
89
|
import type { AmountArg } from './types.js';
|
|
88
90
|
import type { CosmosValidatorAddress } from './types.js';
|
|
89
91
|
import type { TypedJson } from '@agoric/cosmic-proto';
|
|
92
|
+
import type { OrchestrationPowers } from './types.js';
|
|
90
93
|
//# 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":"AAGA;;;;;;GAMG;AAEH;;;;GAIG;AACH;;;GAQE;AAEF,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CAKnC;AAGF,sCAAsC;AACtC,0BADW,aAAa,SAAS,CAAC,CACoC;AAGtE,gBAAgB;AAChB,uEAUE;AAEF,gBAAgB;AAChB,iEAA4C;AAE5C,gBAAgB;AAChB,mEAQG;AAEH,gBAAgB;AAChB,oEAA+C;AAE/C,gBAAgB;AAChB,sEASG;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CASrC;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CAYtC;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CAG/B;AACH,0DAAqC;AAErC,gDAAgD;AAChD,6BADW,aAAa,UAAU,GAAG,EAAE,GAAG,CAAC,CAAC,CAM1C;AAGF,wCAAwC;AACxC,+BADW,aAAa,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S,EAAE,sBAAsB,CAAC;IAClC,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC,CAQH;AAEF,sCAAsC;AACtC,2DAGE;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CACmC;;;;;;;;;AAmBrE;;;;GAIG;AACH,+DAQE;AAEF;;;GAGG;AACH,mEAGE;AAEF,gDAAgD;AAChD,uCADW,aAAa,mBAAmB,CAAC,CAO1C;kCAxMiK,YAAY;kCADhJ,kBAAkB;sCAEd,6CAA6C;qCADmF,YAAY;qCAAZ,YAAY;+BAAZ,YAAY;+BAAZ,YAAY;iCAAZ,YAAY;+BAAZ,YAAY;4CAAZ,YAAY;+BAGnJ,sBAAsB;yCAHiH,YAAY"}
|
package/src/typeGuards.js
CHANGED
|
@@ -3,7 +3,7 @@ import { M } from '@endo/patterns';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @import {TypedPattern} from '@agoric/internal';
|
|
6
|
-
* @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount, DenomInfo, AmountArg, CosmosValidatorAddress} from './types.js';
|
|
6
|
+
* @import {ChainAddress, CosmosAssetInfo, Chain, ChainInfo, CosmosChainInfo, DenomAmount, DenomInfo, AmountArg, CosmosValidatorAddress, OrchestrationPowers} from './types.js';
|
|
7
7
|
* @import {Any as Proto3Msg} from '@agoric/cosmic-proto/google/protobuf/any.js';
|
|
8
8
|
* @import {TxBody} from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
9
9
|
* @import {TypedJson} from '@agoric/cosmic-proto';
|
|
@@ -195,3 +195,13 @@ export const AnyNatAmountsRecord = M.and(
|
|
|
195
195
|
M.recordOf(M.string(), AnyNatAmountShape),
|
|
196
196
|
M.not({}),
|
|
197
197
|
);
|
|
198
|
+
|
|
199
|
+
/** @type {TypedPattern<OrchestrationPowers>} */
|
|
200
|
+
export const OrchestrationPowersShape = {
|
|
201
|
+
agoricNames: M.remotable(),
|
|
202
|
+
localchain: M.remotable(),
|
|
203
|
+
orchestrationService: M.remotable(),
|
|
204
|
+
storageNode: M.remotable(),
|
|
205
|
+
timerService: M.remotable(),
|
|
206
|
+
};
|
|
207
|
+
harden(OrchestrationPowersShape);
|
package/src/types.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export type * from './exos/local-chain-facade.js';
|
|
|
12
12
|
export type * from './exos/portfolio-holder-kit.js';
|
|
13
13
|
export type * from './orchestration-api.js';
|
|
14
14
|
export type * from './vat-orchestration.js';
|
|
15
|
+
export type * from './utils/start-helper.js';
|
|
15
16
|
/**
|
|
16
17
|
* ({@link ZCF})-like tools for use in {@link OrchestrationFlow}s.
|
|
17
18
|
*/
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,qCAAqC,CAAC;AACzD,mBAAmB,0BAA0B,CAAC;AAC9C,mBAAmB,2BAA2B,CAAC;AAC/C,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,gCAAgC,CAAC;AACpD,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,yBAAyB,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,mBAAmB,EAAE,GAAG,CAAC,qBAAqB,CAAC,CAAC;IAChD,eAAe,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACxC,cAAc,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CACvC"}
|
package/src/types.ts
CHANGED
|
@@ -13,6 +13,7 @@ export type * from './exos/local-chain-facade.js';
|
|
|
13
13
|
export type * from './exos/portfolio-holder-kit.js';
|
|
14
14
|
export type * from './orchestration-api.js';
|
|
15
15
|
export type * from './vat-orchestration.js';
|
|
16
|
+
export type * from './utils/start-helper.js';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* ({@link ZCF})-like tools for use in {@link OrchestrationFlow}s.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export function buildRootObject(vatPowers: VatPowers & {
|
|
2
2
|
D: DProxy;
|
|
3
3
|
}, vatParameters: never, baggage: Baggage): {
|
|
4
|
-
/** @param {Partial<
|
|
5
|
-
makeCosmosInterchainService(initialPowers?: Partial<
|
|
4
|
+
/** @param {Partial<CosmosOrchestrationPowers>} [initialPowers] */
|
|
5
|
+
makeCosmosInterchainService(initialPowers?: Partial<CosmosOrchestrationPowers> | undefined): import("@endo/exo").Guarded<{
|
|
6
6
|
makeAccount(chainId: string, hostConnectionId: import("@agoric/vats").IBCConnectionID, controllerConnectionId: import("@agoric/vats").IBCConnectionID, opts?: import("./utils/address.js").ICAChannelAddressOpts | undefined): import("@agoric/vow").Vow<import("./cosmos-api.js").IcaAccount>;
|
|
7
7
|
provideICQConnection(controllerConnectionId: import("@agoric/vats").IBCConnectionID, version?: string | undefined): import("@agoric/vow").Vow<import("./types.js").ICQConnection> | import("./types.js").ICQConnection;
|
|
8
8
|
}>;
|
|
9
9
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
10
|
-
/** @param {Partial<
|
|
11
|
-
makeCosmosInterchainService(initialPowers?: Partial<
|
|
10
|
+
/** @param {Partial<CosmosOrchestrationPowers>} [initialPowers] */
|
|
11
|
+
makeCosmosInterchainService(initialPowers?: Partial<CosmosOrchestrationPowers> | undefined): import("@endo/exo").Guarded<{
|
|
12
12
|
makeAccount(chainId: string, hostConnectionId: import("@agoric/vats").IBCConnectionID, controllerConnectionId: import("@agoric/vats").IBCConnectionID, opts?: import("./utils/address.js").ICAChannelAddressOpts | undefined): import("@agoric/vow").Vow<import("./cosmos-api.js").IcaAccount>;
|
|
13
13
|
provideICQConnection(controllerConnectionId: import("@agoric/vats").IBCConnectionID, version?: string | undefined): import("@agoric/vow").Vow<import("./types.js").ICQConnection> | import("./types.js").ICQConnection;
|
|
14
14
|
}>;
|
|
15
15
|
}>;
|
|
16
16
|
export type OrchestrationVat = ReturnType<typeof buildRootObject>;
|
|
17
17
|
import type { Baggage } from '@agoric/vat-data';
|
|
18
|
-
import type {
|
|
18
|
+
import type { CosmosOrchestrationPowers } from './exos/cosmos-interchain-service.js';
|
|
19
19
|
//# sourceMappingURL=vat-orchestration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-orchestration.d.ts","sourceRoot":"","sources":["vat-orchestration.js"],"names":[],"mappings":"AAmBO,2CANI,SAAS,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;CACX,iBACO,KAAK,WACL,OAAO;IAWd,
|
|
1
|
+
{"version":3,"file":"vat-orchestration.d.ts","sourceRoot":"","sources":["vat-orchestration.js"],"names":[],"mappings":"AAmBO,2CANI,SAAS,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;CACX,iBACO,KAAK,WACL,OAAO;IAWd,kEAAkE;;;;;;IAAlE,kEAAkE;;;;;GAKrE;+BAEa,UAAU,CAAC,OAAO,eAAe,CAAC;6BA7BtB,kBAAkB;+CACA,qCAAqC"}
|
package/src/vat-orchestration.js
CHANGED
|
@@ -5,7 +5,7 @@ import { prepareCosmosInterchainService } from './exos/cosmos-interchain-service
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @import {Baggage} from '@agoric/vat-data';
|
|
8
|
-
* @import {
|
|
8
|
+
* @import {CosmosOrchestrationPowers} from './exos/cosmos-interchain-service.js';
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -26,7 +26,7 @@ export const buildRootObject = (vatPowers, vatParameters, baggage) => {
|
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
return Far('OrchestrationVat', {
|
|
29
|
-
/** @param {Partial<
|
|
29
|
+
/** @param {Partial<CosmosOrchestrationPowers>} [initialPowers] */
|
|
30
30
|
makeCosmosInterchainService(initialPowers = {}) {
|
|
31
31
|
return makeCosmosInterchainService(initialPowers);
|
|
32
32
|
},
|