@agoric/orchestration 0.1.1-dev-7946226.0 → 0.1.1-dev-55a8847.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/orchestrator.d.ts +1 -45
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/orchestrator.js +0 -21
- package/src/orchestration-api.d.ts +3 -7
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +2 -7
- package/src/typeGuards.d.ts +0 -1
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +0 -1
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/start-helper.js +0 -7
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-55a8847.0+55a8847",
|
|
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-55a8847.0+55a8847",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-55a8847.0+55a8847",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-55a8847.0+55a8847",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-55a8847.0+55a8847",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-55a8847.0+55a8847",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-55a8847.0+55a8847",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-55a8847.0+55a8847",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-55a8847.0+55a8847",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-55a8847.0+55a8847",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-55a8847.0+55a8847",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-55a8847.0+55a8847",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-55a8847.0+55a8847",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-55a8847.0+55a8847",
|
|
49
49
|
"@endo/base64": "^1.0.8",
|
|
50
50
|
"@endo/errors": "^1.2.6",
|
|
51
51
|
"@endo/far": "^1.1.6",
|
|
@@ -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-55a8847.0+55a8847",
|
|
58
58
|
"@chain-registry/client": "^1.47.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.3",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"typeCoverage": {
|
|
95
95
|
"atLeast": 97.3
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "55a8847943d19b700f08560ef2347b7aa90342ef"
|
|
98
98
|
}
|
|
@@ -1,33 +1,17 @@
|
|
|
1
1
|
/** @see {Orchestrator} */
|
|
2
2
|
export const OrchestratorI: import("@endo/patterns").InterfaceGuard<{
|
|
3
3
|
getChain: import("@endo/patterns").MethodGuard;
|
|
4
|
-
makeLocalAccount: import("@endo/patterns").MethodGuard;
|
|
5
4
|
getDenomInfo: import("@endo/patterns").MethodGuard;
|
|
6
5
|
asAmount: import("@endo/patterns").MethodGuard;
|
|
7
6
|
}>;
|
|
8
7
|
export function prepareOrchestrator(zone: Zone, powers: {
|
|
9
|
-
asyncFlowTools: AsyncFlowTools;
|
|
10
8
|
chainHub: ChainHub;
|
|
11
|
-
localchain: Remote<LocalChain>;
|
|
12
|
-
makeRecorderKit: MakeRecorderKit;
|
|
13
9
|
makeLocalChainFacade: MakeLocalChainFacade;
|
|
14
10
|
makeRemoteChainFacade: MakeRemoteChainFacade;
|
|
15
|
-
orchestrationService: Remote<CosmosInterchainService>;
|
|
16
|
-
storageNode: Remote<StorageNode>;
|
|
17
|
-
timerService: Remote<TimerService>;
|
|
18
11
|
vowTools: VowTools;
|
|
19
|
-
zcf: ZCF;
|
|
20
12
|
}): () => import("@endo/exo").Guarded<{
|
|
21
13
|
/** @type {HostOf<Orchestrator['getChain']>} */
|
|
22
14
|
getChain(chainName: string): Vow<HostInterface<Chain<any>>>;
|
|
23
|
-
makeLocalAccount(): Vow<import("@endo/exo").Guarded<{
|
|
24
|
-
getAddress(): string;
|
|
25
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
26
|
-
deposit(payment: ERef<Payment<"nat">>, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
27
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
28
|
-
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
29
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
30
|
-
}>>;
|
|
31
15
|
/** @type {HostOf<Orchestrator['getDenomInfo']>} */
|
|
32
16
|
getDenomInfo(denom: string): HostInterface<import("../orchestration-api.js").DenomInfo<"agoric" | "celestia" | "cosmoshub" | "dydx" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee", "agoric" | "celestia" | "cosmoshub" | "dydx" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee">>;
|
|
33
17
|
/** @type {HostOf<Orchestrator['asAmount']>} */
|
|
@@ -39,15 +23,9 @@ export function prepareOrchestrator(zone: Zone, powers: {
|
|
|
39
23
|
*/
|
|
40
24
|
export type HostOrchestrator = ReturnType<ReturnType<typeof prepareOrchestratorKit>>["orchestrator"];
|
|
41
25
|
import type { Zone } from '@agoric/base-zone';
|
|
42
|
-
import type { AsyncFlowTools } from '@agoric/async-flow';
|
|
43
26
|
import type { ChainHub } from './chain-hub.js';
|
|
44
|
-
import type { LocalChain } from '@agoric/vats/src/localchain.js';
|
|
45
|
-
import type { Remote } from '@agoric/internal';
|
|
46
|
-
import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
47
27
|
import type { MakeLocalChainFacade } from './local-chain-facade.js';
|
|
48
28
|
import type { MakeRemoteChainFacade } from './remote-chain-facade.js';
|
|
49
|
-
import type { CosmosInterchainService } from './exo-interfaces.js';
|
|
50
|
-
import type { TimerService } from '@agoric/time';
|
|
51
29
|
import type { VowTools } from '@agoric/vow';
|
|
52
30
|
import type { Chain } from '../types.js';
|
|
53
31
|
import type { HostInterface } from '@agoric/async-flow';
|
|
@@ -57,31 +35,17 @@ import type { HostOf } from '@agoric/async-flow';
|
|
|
57
35
|
/**
|
|
58
36
|
* @param {Zone} zone
|
|
59
37
|
* @param {{
|
|
60
|
-
* asyncFlowTools: AsyncFlowTools;
|
|
61
38
|
* chainHub: ChainHub;
|
|
62
|
-
* localchain: Remote<LocalChain>;
|
|
63
|
-
* makeRecorderKit: MakeRecorderKit;
|
|
64
39
|
* makeLocalChainFacade: MakeLocalChainFacade;
|
|
65
40
|
* makeRemoteChainFacade: MakeRemoteChainFacade;
|
|
66
|
-
* orchestrationService: Remote<CosmosInterchainService>;
|
|
67
|
-
* storageNode: Remote<StorageNode>;
|
|
68
|
-
* timerService: Remote<TimerService>;
|
|
69
41
|
* vowTools: VowTools;
|
|
70
|
-
* zcf: ZCF;
|
|
71
42
|
* }} powers
|
|
72
43
|
*/
|
|
73
|
-
declare function prepareOrchestratorKit(zone: Zone, { chainHub,
|
|
74
|
-
asyncFlowTools: AsyncFlowTools;
|
|
44
|
+
declare function prepareOrchestratorKit(zone: Zone, { chainHub, makeLocalChainFacade, makeRemoteChainFacade, vowTools: { watch, asVow }, }: {
|
|
75
45
|
chainHub: ChainHub;
|
|
76
|
-
localchain: Remote<LocalChain>;
|
|
77
|
-
makeRecorderKit: MakeRecorderKit;
|
|
78
46
|
makeLocalChainFacade: MakeLocalChainFacade;
|
|
79
47
|
makeRemoteChainFacade: MakeRemoteChainFacade;
|
|
80
|
-
orchestrationService: Remote<CosmosInterchainService>;
|
|
81
|
-
storageNode: Remote<StorageNode>;
|
|
82
|
-
timerService: Remote<TimerService>;
|
|
83
48
|
vowTools: VowTools;
|
|
84
|
-
zcf: ZCF;
|
|
85
49
|
}): () => import("@endo/exo").GuardedKit<{
|
|
86
50
|
/** Waits for `chainInfo` and returns a LocalChainFacade */
|
|
87
51
|
makeLocalChainFacadeWatcher: {
|
|
@@ -151,14 +115,6 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, localchain, make
|
|
|
151
115
|
orchestrator: {
|
|
152
116
|
/** @type {HostOf<Orchestrator['getChain']>} */
|
|
153
117
|
getChain(chainName: string): Vow<HostInterface<Chain<any>>>;
|
|
154
|
-
makeLocalAccount(): Vow<import("@endo/exo").Guarded<{
|
|
155
|
-
getAddress(): string;
|
|
156
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
157
|
-
deposit(payment: ERef<Payment<"nat">>, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
158
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
159
|
-
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
160
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
161
|
-
}>>;
|
|
162
118
|
/** @type {HostOf<Orchestrator['getDenomInfo']>} */
|
|
163
119
|
getDenomInfo(denom: string): HostInterface<import("../orchestration-api.js").DenomInfo<"agoric" | "celestia" | "cosmoshub" | "dydx" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee", "agoric" | "celestia" | "cosmoshub" | "dydx" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee">>;
|
|
164
120
|
/** @type {HostOf<Orchestrator['asAmount']>} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["orchestrator.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["orchestrator.js"],"names":[],"mappings":"AAiCA,0BAA0B;AAC1B;;;;GAIG;AA2II,0CARI,IAAI,UACJ;IACN,QAAQ,EAAE,QAAQ,CAAC;IACnB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,EAAE,QAAQ,CAAC;CACpB;IA1DI,+CAA+C;;IAsB/C,mDAAmD;;IAqBnD,+CAA+C;cAApC,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC;GAoBlD;;;;;+BAMY,UAAU,CAClB,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAC1C,CAAC,cAAc,CAAC;0BA7KG,mBAAmB;8BACE,gBAAgB;0CASrB,yBAAyB;2CACxB,0BAA0B;8BARlC,aAAa;2BASuB,aAAa;mCAVzB,oBAAoB;yBAC5C,aAAa;kCASuB,aAAa;4BAVzB,oBAAoB;AAuB5E;;;;;;;;GAQG;AACH,8CARW,IAAI,0FACJ;IACN,QAAQ,EAAE,QAAQ,CAAC;IACnB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,EAAE,QAAQ,CAAC;CACpB;IAwCE,2DAA2D;;QAEzD;;WAEG;qCADQ,gBAAgB,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;IAQtC;;;OAGG;;QAED;;;;;;WAMG;0HADQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;QASjB,+CAA+C;;QAsB/C,mDAAmD;;QAqBnD,+CAA+C;kBAApC,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC;;GAKlD;qCArJ2C,gBAAgB;uCAWQ,aAAa;+BAAb,aAAa"}
|
package/src/exos/orchestrator.js
CHANGED
|
@@ -4,14 +4,12 @@ import { pickFacet } from '@agoric/vat-data';
|
|
|
4
4
|
import { makeTracer } from '@agoric/internal';
|
|
5
5
|
import { Shape as NetworkShape } from '@agoric/network';
|
|
6
6
|
import { Fail, q } from '@endo/errors';
|
|
7
|
-
import { E } from '@endo/far';
|
|
8
7
|
import { M } from '@endo/patterns';
|
|
9
8
|
import {
|
|
10
9
|
DenomInfoShape,
|
|
11
10
|
ChainInfoShape,
|
|
12
11
|
DenomAmountShape,
|
|
13
12
|
DenomShape,
|
|
14
|
-
LocalChainAccountShape,
|
|
15
13
|
} from '../typeGuards.js';
|
|
16
14
|
|
|
17
15
|
/**
|
|
@@ -36,7 +34,6 @@ const trace = makeTracer('Orchestrator');
|
|
|
36
34
|
/** @see {Orchestrator} */
|
|
37
35
|
export const OrchestratorI = M.interface('Orchestrator', {
|
|
38
36
|
getChain: M.call(M.string()).returns(Vow$(ChainInfoShape)),
|
|
39
|
-
makeLocalAccount: M.call().returns(Vow$(LocalChainAccountShape)),
|
|
40
37
|
getDenomInfo: M.call(DenomShape).returns(DenomInfoShape),
|
|
41
38
|
asAmount: M.call(DenomAmountShape).returns(AmountShape),
|
|
42
39
|
});
|
|
@@ -44,24 +41,16 @@ export const OrchestratorI = M.interface('Orchestrator', {
|
|
|
44
41
|
/**
|
|
45
42
|
* @param {Zone} zone
|
|
46
43
|
* @param {{
|
|
47
|
-
* asyncFlowTools: AsyncFlowTools;
|
|
48
44
|
* chainHub: ChainHub;
|
|
49
|
-
* localchain: Remote<LocalChain>;
|
|
50
|
-
* makeRecorderKit: MakeRecorderKit;
|
|
51
45
|
* makeLocalChainFacade: MakeLocalChainFacade;
|
|
52
46
|
* makeRemoteChainFacade: MakeRemoteChainFacade;
|
|
53
|
-
* orchestrationService: Remote<CosmosInterchainService>;
|
|
54
|
-
* storageNode: Remote<StorageNode>;
|
|
55
|
-
* timerService: Remote<TimerService>;
|
|
56
47
|
* vowTools: VowTools;
|
|
57
|
-
* zcf: ZCF;
|
|
58
48
|
* }} powers
|
|
59
49
|
*/
|
|
60
50
|
const prepareOrchestratorKit = (
|
|
61
51
|
zone,
|
|
62
52
|
{
|
|
63
53
|
chainHub,
|
|
64
|
-
localchain,
|
|
65
54
|
makeLocalChainFacade,
|
|
66
55
|
makeRemoteChainFacade,
|
|
67
56
|
vowTools: { watch, asVow },
|
|
@@ -148,9 +137,6 @@ const prepareOrchestratorKit = (
|
|
|
148
137
|
return vow;
|
|
149
138
|
});
|
|
150
139
|
},
|
|
151
|
-
makeLocalAccount() {
|
|
152
|
-
return watch(E(localchain).makeAccount());
|
|
153
|
-
},
|
|
154
140
|
/** @type {HostOf<Orchestrator['getDenomInfo']>} */
|
|
155
141
|
getDenomInfo(denom) {
|
|
156
142
|
const denomDetail = chainHub.getAsset(denom);
|
|
@@ -183,17 +169,10 @@ harden(prepareOrchestratorKit);
|
|
|
183
169
|
/**
|
|
184
170
|
* @param {Zone} zone
|
|
185
171
|
* @param {{
|
|
186
|
-
* asyncFlowTools: AsyncFlowTools;
|
|
187
172
|
* chainHub: ChainHub;
|
|
188
|
-
* localchain: Remote<LocalChain>;
|
|
189
|
-
* makeRecorderKit: MakeRecorderKit;
|
|
190
173
|
* makeLocalChainFacade: MakeLocalChainFacade;
|
|
191
174
|
* makeRemoteChainFacade: MakeRemoteChainFacade;
|
|
192
|
-
* orchestrationService: Remote<CosmosInterchainService>;
|
|
193
|
-
* storageNode: Remote<StorageNode>;
|
|
194
|
-
* timerService: Remote<TimerService>;
|
|
195
175
|
* vowTools: VowTools;
|
|
196
|
-
* zcf: ZCF;
|
|
197
176
|
* }} powers
|
|
198
177
|
*/
|
|
199
178
|
export const prepareOrchestrator = (zone, powers) => {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Amount, Brand, NatAmount } from '@agoric/ertp/src/types.js';
|
|
7
7
|
import type { Timestamp } from '@agoric/time';
|
|
8
|
-
import type {
|
|
8
|
+
import type { QueryManyFn } from '@agoric/vats/src/localchain.js';
|
|
9
9
|
import type { ResolvedPublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
10
10
|
import type { Passable } from '@endo/marshal';
|
|
11
11
|
import type { AgoricChainMethods, ChainInfo, CosmosChainAccountMethods, CosmosChainInfo, IBCMsgTransferOptions, KnownChains, LocalAccountMethods, ICQQueryFunction } from './types.js';
|
|
@@ -61,8 +61,8 @@ export type OrchestrationAccount<CI extends ChainInfo> = OrchestrationAccountI &
|
|
|
61
61
|
export interface Chain<CI extends ChainInfo> {
|
|
62
62
|
getChainInfo: () => Promise<CI>;
|
|
63
63
|
/**
|
|
64
|
-
* Creates a new
|
|
65
|
-
* @returns an object that controls
|
|
64
|
+
* Creates a new Orchestration Account on the current Chain.
|
|
65
|
+
* @returns an object that controls the account
|
|
66
66
|
*/
|
|
67
67
|
makeAccount: () => Promise<OrchestrationAccount<CI>>;
|
|
68
68
|
query: CI extends {
|
|
@@ -89,10 +89,6 @@ export interface Orchestrator {
|
|
|
89
89
|
* @param {C} chainName name of the chain in KnownChains or the ChainHub backing the Orchestrator
|
|
90
90
|
*/
|
|
91
91
|
getChain: <C extends string>(chainName: C) => Promise<Chain<C extends keyof KnownChains ? KnownChains[C] : any> & (C extends 'agoric' ? AgoricChainMethods : {})>;
|
|
92
|
-
/**
|
|
93
|
-
* Make a new local (Agoric) ChainAccount
|
|
94
|
-
*/
|
|
95
|
-
makeLocalAccount: () => Promise<LocalChainAccount>;
|
|
96
92
|
/**
|
|
97
93
|
* For a denom, return information about a denom including the equivalent
|
|
98
94
|
* local Brand, the Chain on which the denom is held, and the Chain that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-api.d.ts","sourceRoot":"","sources":["orchestration-api.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"orchestration-api.d.ts","sourceRoot":"","sources":["orchestration-api.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE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AAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACrE;AAED;;;;;;GAMG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,YAAY,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,aAAa;AACb,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,YAAY,CAAC;CAC3B;AACD,aAAa;AACb,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,aAAa;AACb,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
package/src/orchestration-api.ts
CHANGED
|
@@ -91,8 +91,8 @@ export interface Chain<CI extends ChainInfo> {
|
|
|
91
91
|
|
|
92
92
|
// "makeAccount" suggests an operation within a vat
|
|
93
93
|
/**
|
|
94
|
-
* Creates a new
|
|
95
|
-
* @returns an object that controls
|
|
94
|
+
* Creates a new Orchestration Account on the current Chain.
|
|
95
|
+
* @returns an object that controls the account
|
|
96
96
|
*/
|
|
97
97
|
makeAccount: () => Promise<OrchestrationAccount<CI>>;
|
|
98
98
|
// FUTURE supply optional port object; also fetch port object
|
|
@@ -136,11 +136,6 @@ export interface Orchestrator {
|
|
|
136
136
|
(C extends 'agoric' ? AgoricChainMethods : {})
|
|
137
137
|
>;
|
|
138
138
|
|
|
139
|
-
/**
|
|
140
|
-
* Make a new local (Agoric) ChainAccount
|
|
141
|
-
*/
|
|
142
|
-
makeLocalAccount: () => Promise<LocalChainAccount>;
|
|
143
|
-
|
|
144
139
|
/**
|
|
145
140
|
* For a denom, return information about a denom including the equivalent
|
|
146
141
|
* local Brand, the Chain on which the denom is held, and the Chain that
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ export const CosmosAssetInfoShape: TypedPattern<CosmosAssetInfo>;
|
|
|
35
35
|
export const CosmosChainInfoShape: TypedPattern<CosmosChainInfo>;
|
|
36
36
|
/** @type {TypedPattern<ChainInfo>} */
|
|
37
37
|
export const ChainInfoShape: TypedPattern<ChainInfo>;
|
|
38
|
-
export const LocalChainAccountShape: import("@endo/patterns").Matcher;
|
|
39
38
|
export const DenomShape: import("@endo/patterns").Matcher;
|
|
40
39
|
/** @type {TypedPattern<DenomInfo<any, any>>} */
|
|
41
40
|
export const DenomInfoShape: TypedPattern<DenomInfo<any, any>>;
|
package/src/typeGuards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH;;;;GAIG;AACH;;;GAQE;AAEF,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CAKnC;AAEF,sCAAsC;AACtC,0BADW,aAAa,SAAS,CAAC,CAIhC;AAEF,gBAAgB;AAChB,uEAUE;AAEF,gBAAgB;AAChB,iEAA4C;AAC5C,gBAAgB;AAChB,mEAQG;AACH,gBAAgB;AAChB,oEAA+C;AAC/C,gBAAgB;AAChB,sEASG;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CASrC;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CAWtC;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CAG/B;AACH,
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AAEH;;;;GAIG;AACH;;;GAQE;AAEF,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CAKnC;AAEF,sCAAsC;AACtC,0BADW,aAAa,SAAS,CAAC,CAIhC;AAEF,gBAAgB;AAChB,uEAUE;AAEF,gBAAgB;AAChB,iEAA4C;AAC5C,gBAAgB;AAChB,mEAQG;AACH,gBAAgB;AAChB,oEAA+C;AAC/C,gBAAgB;AAChB,sEASG;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CASrC;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CAWtC;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CAG/B;AACH,0DAAqC;AAErC,gDAAgD;AAChD,6BADW,aAAa,UAAU,GAAG,EAAE,GAAG,CAAC,CAAC,CAM1C;AAEF,wCAAwC;AACxC,+BADW,aAAa,WAAW,CAAC,CACqC;AAEzE,0CAA0C;AAC1C,gCADW,aAAa,MAAM,CAAC,KAAK,CAAC,CAAC,CAInC;AAEH,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CACsC;AAExE;;;;;GAKG;AACH,8BALU,aAAa;IAClB,SAAS,EAAE,sBAAsB,CAAC;IAClC,MAAM,EAAE,SAAS,CAAC;CACnB,CAAC,CAQH;AAEF,sCAAsC;AACtC,2DAGE;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CACmC;;;;;;;;;AAiBrE;;;;GAIG;AACH,+DAQE;AAEF;;;GAGG;AACH,mEAGE;kCAxLyJ,YAAY;kCADxI,kBAAkB;sCAEd,6CAA6C;qCAD2E,YAAY;qCAAZ,YAAY;+BAAZ,YAAY;+BAAZ,YAAY;iCAAZ,YAAY;+BAAZ,YAAY;4CAAZ,YAAY;+BAI3I,sBAAsB"}
|
package/src/typeGuards.js
CHANGED
|
@@ -105,7 +105,6 @@ export const CosmosChainInfoShape = M.splitRecord(
|
|
|
105
105
|
export const ChainInfoShape = M.splitRecord({
|
|
106
106
|
chainId: M.string(),
|
|
107
107
|
});
|
|
108
|
-
export const LocalChainAccountShape = M.remotable('LocalChainAccount');
|
|
109
108
|
export const DenomShape = M.string();
|
|
110
109
|
|
|
111
110
|
/** @type {TypedPattern<DenomInfo<any, any>>} */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AA8CO,0CANI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;+
|
|
1
|
+
{"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AA8CO,0CANI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;+BAqGR,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BhB;AA8BM,kCAdgC,EAAE,SAA3B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAE,EAGhC,EAAE,SAFM,mBAAmB,GAAG;IAC/B,UAAU,EAAE,UAAU,CAAC;CACvB,EACQ,CAAC,cACH,CACN,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,EACZ,WAAW,EAAE,EAAE,EACf,IAAI,EAAE,IAAI,EACV,KAAK,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;kCA1LU;IACR,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,oBAAoB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IACtD,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,YAAY,EAAE,OAAO,YAAY,CAAC,CAAC;IACnC,WAAW,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;iCAgJU,IAAI,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,EAAE,MAAM,CAAC;6BA9JzC,kBAAkB;0BAGrB,cAAc;gCALR,gCAAgC;4BAIpC,aAAa;6CAEI,2BAA2B;kCAL1B,cAAc;6BAE/B,cAAc"}
|
|
@@ -130,17 +130,10 @@ export const provideOrchestration = (
|
|
|
130
130
|
});
|
|
131
131
|
|
|
132
132
|
const makeOrchestrator = prepareOrchestrator(zones.orchestration, {
|
|
133
|
-
asyncFlowTools,
|
|
134
133
|
chainHub,
|
|
135
|
-
localchain: remotePowers.localchain,
|
|
136
|
-
makeRecorderKit,
|
|
137
134
|
makeLocalChainFacade,
|
|
138
135
|
makeRemoteChainFacade,
|
|
139
|
-
storageNode: remotePowers.storageNode,
|
|
140
|
-
orchestrationService: remotePowers.orchestrationService,
|
|
141
|
-
timerService,
|
|
142
136
|
vowTools,
|
|
143
|
-
zcf,
|
|
144
137
|
});
|
|
145
138
|
|
|
146
139
|
/**
|