@agoric/orchestration 0.1.1-dev-989aa19.0 → 0.1.1-dev-9274bc7.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.
Files changed (56) hide show
  1. package/package.json +18 -16
  2. package/src/chain-info.js +1 -1
  3. package/src/examples/stakeBld.contract.d.ts +10 -20
  4. package/src/examples/stakeBld.contract.d.ts.map +1 -1
  5. package/src/examples/stakeBld.contract.js +4 -2
  6. package/src/examples/stakeIca.contract.d.ts +9 -9
  7. package/src/examples/stakeIca.contract.d.ts.map +1 -1
  8. package/src/examples/stakeIca.contract.js +4 -1
  9. package/src/exos/chain-account-kit.d.ts +10 -1
  10. package/src/exos/chain-account-kit.d.ts.map +1 -1
  11. package/src/exos/chain-account-kit.js +35 -13
  12. package/src/exos/chain-hub.d.ts +2392 -0
  13. package/src/{utils/chainHub.d.ts.map → exos/chain-hub.d.ts.map} +1 -1
  14. package/src/{utils/chainHub.js → exos/chain-hub.js} +69 -9
  15. package/src/exos/cosmos-orchestration-account.d.ts +50 -15
  16. package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
  17. package/src/exos/cosmos-orchestration-account.js +113 -57
  18. package/src/exos/icq-connection-kit.d.ts +10 -1
  19. package/src/exos/icq-connection-kit.d.ts.map +1 -1
  20. package/src/exos/icq-connection-kit.js +27 -11
  21. package/src/exos/local-chain-facade.d.ts +46 -9
  22. package/src/exos/local-chain-facade.d.ts.map +1 -1
  23. package/src/exos/local-chain-facade.js +1 -1
  24. package/src/exos/local-orchestration-account.d.ts +115 -2343
  25. package/src/exos/local-orchestration-account.d.ts.map +1 -1
  26. package/src/exos/local-orchestration-account.js +185 -56
  27. package/src/exos/orchestrator.d.ts +9 -2313
  28. package/src/exos/orchestrator.d.ts.map +1 -1
  29. package/src/exos/orchestrator.js +1 -1
  30. package/src/exos/remote-chain-facade.d.ts +6 -6
  31. package/src/facade.d.ts +48 -11
  32. package/src/facade.d.ts.map +1 -1
  33. package/src/facade.js +2 -2
  34. package/src/proposals/orchestration-proposal.d.ts +36 -6
  35. package/src/proposals/orchestration-proposal.js +1 -1
  36. package/src/proposals/start-stakeAtom.d.ts +9 -9
  37. package/src/proposals/start-stakeAtom.d.ts.map +1 -1
  38. package/src/proposals/start-stakeAtom.js +5 -6
  39. package/src/proposals/start-stakeBld.d.ts +10 -20
  40. package/src/proposals/start-stakeBld.d.ts.map +1 -1
  41. package/src/proposals/start-stakeOsmo.d.ts +9 -9
  42. package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
  43. package/src/proposals/start-stakeOsmo.js +5 -6
  44. package/src/service.d.ts +92 -9
  45. package/src/service.d.ts.map +1 -1
  46. package/src/service.js +143 -66
  47. package/src/utils/start-helper.d.ts +8 -2320
  48. package/src/utils/start-helper.d.ts.map +1 -1
  49. package/src/utils/start-helper.js +5 -2
  50. package/src/utils/time.d.ts +2 -0
  51. package/src/utils/time.d.ts.map +1 -1
  52. package/src/utils/time.js +2 -0
  53. package/src/vat-orchestration.d.ts +36 -6
  54. package/src/vat-orchestration.d.ts.map +1 -1
  55. package/src/vat-orchestration.js +3 -0
  56. package/src/utils/chainHub.d.ts +0 -2404
@@ -1 +1 @@
1
- {"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["orchestrator.js"],"names":[],"mappings":"AAgCA,0BAA0B;AAC1B;;;;;GAKG;AAiBI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAwBG,CAAF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+DAZF,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BACwJ,MAAM,KAAK,CAAC;yBAA6gB,QAAQ,KAAK,CAAC,mBAA6B,OAAO;yBAAwjB,OAAO,KAAK,CAAC;;;uBAA6rB,EAAE;;;;;GAF5+D;0BA7EoB,mBAAmB;yBAGpB,aAAa;uCASwE,aAAa;4BAL/F,kBAAkB;iCADI,6CAA6C;kCAF7D,cAAc;2BAQ8D,aAAa"}
@@ -13,7 +13,7 @@ import {
13
13
 
14
14
  /**
15
15
  * @import {Zone} from '@agoric/base-zone';
16
- * @import {ChainHub} from '../utils/chainHub.js';
16
+ * @import {ChainHub} from './chain-hub.js';
17
17
  * @import {AsyncFlowTools} from '@agoric/async-flow';
18
18
  * @import {Vow} from '@agoric/vow';
19
19
  * @import {TimerService} from '@agoric/time';
@@ -18,10 +18,10 @@ export function prepareRemoteChainFacade(zone: Zone, { makeCosmosOrchestrationAc
18
18
  };
19
19
  };
20
20
  invitationMakers: import("@endo/exo").Guarded<{
21
- Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
22
- Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
21
+ Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
22
+ Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
23
23
  WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("../orchestration-api.js").DenomAmount[], undefined>>;
24
- Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<void, undefined>>;
24
+ Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<undefined, undefined>>;
25
25
  CloseAccount(): never;
26
26
  TransferAccount(): never;
27
27
  }>;
@@ -35,17 +35,17 @@ export function prepareRemoteChainFacade(zone: Zone, { makeCosmosOrchestrationAc
35
35
  };
36
36
  };
37
37
  getAddress(): import("../orchestration-api.js").ChainAddress;
38
- delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
38
+ delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<undefined>;
39
39
  deposit(payment: any): Promise<void>;
40
40
  getBalances(): Promise<never>;
41
- redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
41
+ redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<undefined>;
42
42
  withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<import("../orchestration-api.js").DenomAmount[]>;
43
43
  getBalance(denom: import("../orchestration-api.js").DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
44
44
  send(toAccount: any, amount: any): never;
45
45
  transfer(amount: any, msg: any): never;
46
46
  transferSteps(amount: any, msg: any): never;
47
47
  withdrawRewards(): never;
48
- undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<void>;
48
+ undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<undefined>;
49
49
  }>;
50
50
  orchestration: Remote<import("@endo/exo").Guarded<{
51
51
  makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("../cosmos-api.js").IcaAccount>;
package/src/facade.d.ts CHANGED
@@ -34,7 +34,7 @@ export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode,
34
34
  reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
35
35
  }>; }>;
36
36
  }>>;
37
- chainHub: import("./utils/chainHub.js").ChainHub;
37
+ chainHub: import("./exos/chain-hub.js").ChainHub;
38
38
  makeLocalOrchestrationAccountKit: (args_0: {
39
39
  account: import("@endo/exo").Guarded<{
40
40
  getAddress(): string;
@@ -50,12 +50,50 @@ export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode,
50
50
  storageNode: Remote<globalThis.StorageNode>;
51
51
  }) => import("@endo/exo").GuardedKit<{
52
52
  invitationMakers: {
53
- Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgDelegateResponse & {
54
- '@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
55
- }>, undefined>>;
56
- Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<void, undefined>>;
53
+ Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<Record<unknown, unknown>, undefined>>;
54
+ Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<void | import("@agoric/time").TimestampRecord | Vow<void | import("@agoric/time").TimestampRecord>, undefined>>;
57
55
  CloseAccount(): never;
58
56
  };
57
+ undelegateWatcher: {
58
+ onFulfilled(response: [import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgUndelegateResponse & {
59
+ '@type': "/cosmos.staking.v1beta1.MsgUndelegateResponse";
60
+ }]): Promise<import("@agoric/time").TimestampRecord>;
61
+ };
62
+ getChainInfoWatcher: {
63
+ onFulfilled(agoricChainInfo: ChainInfo, { destination }: {
64
+ destination: import("./orchestration-api.js").ChainAddress;
65
+ }): Promise<IBCConnectionInfo>;
66
+ };
67
+ getTimeoutTimestampWatcher: {
68
+ onFulfilled(timeoutTimestamp: bigint, { opts }: {
69
+ opts: import("./cosmos-api.js").IBCMsgTransferOptions;
70
+ }): bigint;
71
+ };
72
+ transferWatcher: {
73
+ onFulfilled([{ transferChannel }, timeoutTimestamp]: [{
74
+ transferChannel: {
75
+ portId: string;
76
+ channelId: `channel-${number}`;
77
+ counterPartyPortId: string;
78
+ counterPartyChannelId: `channel-${number}`;
79
+ ordering: import("@agoric/cosmic-proto/ibc/core/channel/v1/channel.js").Order;
80
+ state: import("@agoric/cosmic-proto/ibc/core/channel/v1/channel.js").State;
81
+ version: string;
82
+ };
83
+ }, bigint], { opts, amount, destination }: {
84
+ destination: import("./orchestration-api.js").ChainAddress;
85
+ opts: import("./cosmos-api.js").IBCMsgTransferOptions;
86
+ amount: import("./orchestration-api.js").DenomAmount;
87
+ }): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js").MsgTransferResponse & {
88
+ '@type': "/ibc.applications.transfer.v1.MsgTransferResponse";
89
+ }>[]>;
90
+ };
91
+ extractFirstResultWatcher: {
92
+ onFulfilled(results: Record<unknown, unknown>[]): Record<unknown, unknown>;
93
+ };
94
+ returnVoidWatcher: {
95
+ onFulfilled(results: Record<unknown, unknown>[]): undefined;
96
+ };
59
97
  holder: {
60
98
  getBalance(denom: DenomArg): Promise<import("./orchestration-api.js").DenomAmount>;
61
99
  getBalances(): never;
@@ -66,10 +104,8 @@ export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode,
66
104
  storagePath: Promise<string>;
67
105
  };
68
106
  };
69
- delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgDelegateResponse & {
70
- '@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
71
- }>>;
72
- undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
107
+ delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
108
+ undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
73
109
  deposit(payment: globalThis.Payment<"nat">): Promise<void>;
74
110
  withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
75
111
  executeTx<MT extends {
@@ -167,8 +203,9 @@ export type OrchestrationFacade = ReturnType<typeof makeOrchestrationFacade>;
167
203
  import type { Zone } from '@agoric/zone';
168
204
  import type { TimerService } from '@agoric/time';
169
205
  import type { Remote } from '@agoric/internal';
170
- import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
171
- import type { IBCConnectionInfo } from './types.js';
172
206
  import type { Vow } from '@agoric/vow';
207
+ import type { ChainInfo } from './types.js';
208
+ import type { IBCConnectionInfo } from './types.js';
209
+ import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
173
210
  import type { Orchestrator } from './types.js';
174
211
  //# sourceMappingURL=facade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AAuCO;;;SAbG,GAAG;;;;;;;;;;;;;8BAyEiH,MAAM,KAAK,CAAC;6BAA6gB,QAAQ,KAAK,CAAC,mBAA6B,OAAO;6BAAwjB,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;;;;oBAAqjG,CAAC;;;uBAA6lB,EAAE;;;;;cArEnlL,OAAO,qBAAqB,EAAE,QAAQ;;;;8BAqEyE,MAAM,KAAK,CAAC;6BAA6gB,QAAQ,KAAK,CAAC,mBAA6B,OAAO;6BAAwjB,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;;;;2DAAxlD,OAAO,KAAK,CAAC;;;6DAAid,OAAO,KAAK,CAAC;;;;8BAA0tB,QAAS;;;;;;;;;2DAAiyB,OAAO,KAAK,CAAC;;;6DAA+yB,OAAO,KAAK,CAAC;;6BAA56D,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;kCAA46B,SAAU,OAAM,WAAY;;;wCAA/xC,WAAW,GAAE,QAAS,OAAO,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;oCAlE/oD,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgDpC;;;;;;;;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;EAQnD;kCAEa,UAAU,CAAC,OAAO,uBAAuB,CAAC;0BA1FjC,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AuB,CAAC;0BA1FjC,cAAc;kCAEN,cAAc;4BAIpB,kBAAkB;yBALX,aAAa;+BAO8D,YAAY;uCAAZ,YAAY;iCAHxE,6CAA6C;kCAGe,YAAY"}
package/src/facade.js CHANGED
@@ -7,7 +7,7 @@ import { prepareOrchestrator } from './exos/orchestrator.js';
7
7
  /**
8
8
  * @import {AsyncFlowTools} from '@agoric/async-flow';
9
9
  * @import {Zone} from '@agoric/zone';
10
- * @import {Vow} from '@agoric/vow';
10
+ * @import {Vow, VowTools} from '@agoric/vow';
11
11
  * @import {TimerService} from '@agoric/time';
12
12
  * @import {IBCConnectionID} from '@agoric/vats';
13
13
  * @import {LocalChain} from '@agoric/vats/src/localchain.js';
@@ -28,7 +28,7 @@ import { prepareOrchestrator } from './exos/orchestrator.js';
28
28
  * storageNode: Remote<StorageNode>;
29
29
  * orchestrationService: Remote<OrchestrationService>;
30
30
  * localchain: Remote<LocalChain>;
31
- * chainHub: import('./utils/chainHub.js').ChainHub;
31
+ * chainHub: import('./exos/chain-hub.js').ChainHub;
32
32
  * makeLocalOrchestrationAccountKit: MakeLocalOrchestrationAccountKit;
33
33
  * makeRecorderKit: MakeRecorderKit;
34
34
  * makeCosmosOrchestrationAccount: any;
@@ -606,9 +606,24 @@ export function getManifestForOrchestration(_powers: any, { orchestrationRef }:
606
606
  export type OrchestrationVats = {
607
607
  orchestration: globalThis.ERef<{
608
608
  makeOrchestrationKit(initialPowers?: Partial<import("../service.js").OrchestrationPowers> | undefined): import("@endo/exo").GuardedKit<{
609
- self: {
610
- allocateICAControllerPort(): Promise<import("@agoric/network").Port>;
611
- allocateICQControllerPort(): Promise<import("@agoric/network").Port>;
609
+ requestICAChannelWatcher: {
610
+ onFulfilled(port: import("@agoric/network").Port, { chainId, remoteConnAddr }: {
611
+ chainId: string;
612
+ remoteConnAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
613
+ }): import("@agoric/vow").Vow<any>;
614
+ };
615
+ requestICQChannelWatcher: {
616
+ onFulfilled(port: import("@agoric/network").Port, { remoteConnAddr, controllerConnectionId }: {
617
+ remoteConnAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
618
+ controllerConnectionId: `connection-${number}`;
619
+ }): import("@agoric/vow").Vow<any>;
620
+ };
621
+ channelOpenWatcher: {
622
+ onFulfilled(_connection: import("@agoric/network").Connection, { connectionKit, returnFacet, saveICQConnection }: {
623
+ connectionKit: import("../service.js").ConnectionKit;
624
+ returnFacet: string;
625
+ saveICQConnection?: `connection-${number}` | undefined;
626
+ }): any;
612
627
  };
613
628
  public: {
614
629
  makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("../cosmos-api.js").IcaAccount>;
@@ -621,9 +636,24 @@ export type OrchestrationVats = {
621
636
  }>;
622
637
  } & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
623
638
  makeOrchestrationKit(initialPowers?: Partial<import("../service.js").OrchestrationPowers> | undefined): import("@endo/exo").GuardedKit<{
624
- self: {
625
- allocateICAControllerPort(): Promise<import("@agoric/network").Port>;
626
- allocateICQControllerPort(): Promise<import("@agoric/network").Port>;
639
+ requestICAChannelWatcher: {
640
+ onFulfilled(port: import("@agoric/network").Port, { chainId, remoteConnAddr }: {
641
+ chainId: string;
642
+ remoteConnAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
643
+ }): import("@agoric/vow").Vow<any>;
644
+ };
645
+ requestICQChannelWatcher: {
646
+ onFulfilled(port: import("@agoric/network").Port, { remoteConnAddr, controllerConnectionId }: {
647
+ remoteConnAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
648
+ controllerConnectionId: `connection-${number}`;
649
+ }): import("@agoric/vow").Vow<any>;
650
+ };
651
+ channelOpenWatcher: {
652
+ onFulfilled(_connection: import("@agoric/network").Connection, { connectionKit, returnFacet, saveICQConnection }: {
653
+ connectionKit: import("../service.js").ConnectionKit;
654
+ returnFacet: string;
655
+ saveICQConnection?: `connection-${number}` | undefined;
656
+ }): any;
627
657
  };
628
658
  public: {
629
659
  makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("../cosmos-api.js").IcaAccount>;
@@ -3,7 +3,7 @@ import { E, Far } from '@endo/far';
3
3
  import { makeMarshal } from '@endo/marshal';
4
4
  import { Fail } from '@agoric/assert';
5
5
  import { registerChainNamespace } from '../chain-info.js';
6
- import { CHAIN_KEY, CONNECTIONS_KEY } from '../utils/chainHub.js';
6
+ import { CHAIN_KEY, CONNECTIONS_KEY } from '../exos/chain-hub.js';
7
7
 
8
8
  const trace = makeTracer('CoreEvalOrchestration', true);
9
9
 
@@ -30,10 +30,10 @@ export function startStakeAtom({ consume: { agoricNames, board, chainStorage, ch
30
30
  };
31
31
  };
32
32
  invitationMakers: import("@endo/exo").Guarded<{
33
- Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
34
- Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
33
+ Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
34
+ Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
35
35
  WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("../orchestration-api.js").DenomAmount[], undefined>>;
36
- Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<void, undefined>>;
36
+ Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<undefined, undefined>>;
37
37
  CloseAccount(): never;
38
38
  TransferAccount(): never;
39
39
  }>;
@@ -47,17 +47,17 @@ export function startStakeAtom({ consume: { agoricNames, board, chainStorage, ch
47
47
  };
48
48
  };
49
49
  getAddress(): import("../orchestration-api.js").ChainAddress;
50
- delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
50
+ delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<undefined>;
51
51
  deposit(payment: any): Promise<void>;
52
52
  getBalances(): Promise<never>;
53
- redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
53
+ redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<undefined>;
54
54
  withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<import("../orchestration-api.js").DenomAmount[]>;
55
55
  getBalance(denom: import("../orchestration-api.js").DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
56
56
  send(toAccount: any, amount: any): never;
57
57
  transfer(amount: any, msg: any): never;
58
58
  transferSteps(amount: any, msg: any): never;
59
59
  withdrawRewards(): never;
60
- undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<void>;
60
+ undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<undefined>;
61
61
  }>>;
62
62
  makeAccountInvitationMaker(): Promise<Invitation<{
63
63
  publicSubscribers: {
@@ -68,10 +68,10 @@ export function startStakeAtom({ consume: { agoricNames, board, chainStorage, ch
68
68
  };
69
69
  };
70
70
  invitationMakers: import("@endo/exo").Guarded<{
71
- Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
72
- Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
71
+ Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
72
+ Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
73
73
  WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("../orchestration-api.js").DenomAmount[], undefined>>;
74
- Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<void, undefined>>;
74
+ Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<undefined, undefined>>;
75
75
  CloseAccount(): never;
76
76
  TransferAccount(): never;
77
77
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,OA2CtB,IACH,aAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA1CJ,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAuDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCApG4C,+BAA+B"}
1
+ {"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,OA6Cf,IAAI,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA3CxB,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAsDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCAnG4C,+BAA+B"}
@@ -1,7 +1,7 @@
1
1
  import { makeTracer } from '@agoric/internal';
2
2
  import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
3
3
  import { E } from '@endo/far';
4
- import { makeChainHub } from '../utils/chainHub.js';
4
+ import { getChainsAndConnection, makeChainHub } from '../exos/chain-hub.js';
5
5
 
6
6
  /**
7
7
  * @import {IBCConnectionID} from '@agoric/vats';
@@ -46,11 +46,10 @@ export const startStakeAtom = async ({
46
46
 
47
47
  const chainHub = makeChainHub(await agoricNames);
48
48
 
49
- const agoric = await chainHub.getChainInfo('agoric');
50
- const cosmoshub = await chainHub.getChainInfo('cosmoshub');
51
- const connectionInfo = await chainHub.getConnectionInfo(
52
- agoric.chainId,
53
- cosmoshub.chainId,
49
+ const [_, cosmoshub, connectionInfo] = await getChainsAndConnection(
50
+ chainHub,
51
+ 'agoric',
52
+ 'cosmoshub',
54
53
  );
55
54
 
56
55
  /** @type {StartUpgradableOpts<StakeIcaSF>} */
@@ -45,10 +45,8 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
45
45
  };
46
46
  };
47
47
  invitationMakers: import("@endo/exo").Guarded<{
48
- Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgDelegateResponse & {
49
- '@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
50
- }>, undefined>>;
51
- Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<void, undefined>>;
48
+ Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<Record<unknown, unknown>, undefined>>;
49
+ Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<void | import("@agoric/time").TimestampRecord | import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>, undefined>>;
52
50
  CloseAccount(): never;
53
51
  }>;
54
52
  account: import("@endo/exo").Guarded<{
@@ -61,10 +59,8 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
61
59
  storagePath: Promise<string>;
62
60
  };
63
61
  };
64
- delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgDelegateResponse & {
65
- '@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
66
- }>>;
67
- undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
62
+ delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
63
+ undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
68
64
  deposit(payment: globalThis.Payment<"nat">): Promise<void>;
69
65
  withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
70
66
  executeTx<MT extends {
@@ -86,10 +82,8 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
86
82
  storagePath: Promise<string>;
87
83
  };
88
84
  };
89
- delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgDelegateResponse & {
90
- '@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
91
- }>>;
92
- undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
85
+ delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
86
+ undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
93
87
  deposit(payment: globalThis.Payment<"nat">): Promise<void>;
94
88
  withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
95
89
  executeTx<MT extends {
@@ -109,10 +103,8 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
109
103
  };
110
104
  };
111
105
  invitationMakers: import("@endo/exo").Guarded<{
112
- Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgDelegateResponse & {
113
- '@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
114
- }>, undefined>>;
115
- Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<void, undefined>>;
106
+ Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<Record<unknown, unknown>, undefined>>;
107
+ Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<void | import("@agoric/time").TimestampRecord | import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>, undefined>>;
116
108
  CloseAccount(): never;
117
109
  }>;
118
110
  account: import("@endo/exo").Guarded<{
@@ -125,10 +117,8 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
125
117
  storagePath: Promise<string>;
126
118
  };
127
119
  };
128
- delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgDelegateResponse & {
129
- '@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
130
- }>>;
131
- undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
120
+ delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
121
+ undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
132
122
  deposit(payment: globalThis.Payment<"nat">): Promise<void>;
133
123
  withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
134
124
  executeTx<MT extends {
@@ -1 +1 @@
1
- {"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,OA6BpB,GAAG;;;;;0CA+Dk0B,MAAM,KAAK,CAAC;yCAA6gB,QAAQ,KAAK,CAAC,mBAA6B,OAAO;yCAAwjB,OAAO,KAAK,CAAC;;;uCAA6rB,EAAE;;;;;;;gCAAqjG,CAAC;;;mCAA6lB,EAAE;;;;;;;;;;;;;wBA1DpyM,OAAO,kBAAkB,EAAG,OAAM;;;;;;;;;;;2EA0DqhC,OAAO,KAAK,CAAC;;;6EAAid,OAAO,KAAK,CAAC;;;;8CAA0tB,QAAS;;;;;;;;;2EAAiyB,OAAO,KAAK,CAAC;;;6EAA+yB,OAAO,KAAK,CAAC;;6CAA56D,OAAO,KAAK,CAAC;;;2CAA6rB,EAAE;;;;kDAA46B,SAAU,OAAM,WAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA1F7lH,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAwDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BN;sBApGqB,gCAAgC"}
1
+ {"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,OA6BH,GAAG;;;;;0CA+DizB,MAAM,KAAK,CAAC;yCAA6gB,QAAQ,KAAK,CAAC,mBAA6B,OAAO;yCAAwjB,OAAO,KAAK,CAAC;;;uCAA6rB,EAAE;;;;;;;gCAAqjG,CAAC;;;mCAA6lB,EAAE;;;;;;;;;;;;;wBA1DnxM,OAAO,kBACxC,EAAI,OAAK;;;;;;;;;;;2EAyDixF,OAAO,KAAK,CAAC;6EAAid,OAAO,KAAK,CAAC;;;;8CAAz/B,QAAS;;;;;;;;;2EAAmwL,OAAO,KAAK,CAAC;6EAAksB,OAAO,KAAK,CAAC;;6CAAjyN,OAAO,KAAK,CAAC;;;2CAA6rB,EAAE;;;;kDAA46B,SAAU,OAAM,WAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA1F7lH,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAwDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BN;sBApGqB,gCAAgC"}
@@ -30,10 +30,10 @@ export function startStakeOsmo({ consume: { agoricNames, board, chainStorage, ch
30
30
  };
31
31
  };
32
32
  invitationMakers: import("@endo/exo").Guarded<{
33
- Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
34
- Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
33
+ Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
34
+ Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
35
35
  WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("../orchestration-api.js").DenomAmount[], undefined>>;
36
- Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<void, undefined>>;
36
+ Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<undefined, undefined>>;
37
37
  CloseAccount(): never;
38
38
  TransferAccount(): never;
39
39
  }>;
@@ -47,17 +47,17 @@ export function startStakeOsmo({ consume: { agoricNames, board, chainStorage, ch
47
47
  };
48
48
  };
49
49
  getAddress(): import("../orchestration-api.js").ChainAddress;
50
- delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
50
+ delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<undefined>;
51
51
  deposit(payment: any): Promise<void>;
52
52
  getBalances(): Promise<never>;
53
- redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
53
+ redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<undefined>;
54
54
  withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<import("../orchestration-api.js").DenomAmount[]>;
55
55
  getBalance(denom: import("../orchestration-api.js").DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
56
56
  send(toAccount: any, amount: any): never;
57
57
  transfer(amount: any, msg: any): never;
58
58
  transferSteps(amount: any, msg: any): never;
59
59
  withdrawRewards(): never;
60
- undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<void>;
60
+ undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<undefined>;
61
61
  }>>;
62
62
  makeAccountInvitationMaker(): Promise<Invitation<{
63
63
  publicSubscribers: {
@@ -68,10 +68,10 @@ export function startStakeOsmo({ consume: { agoricNames, board, chainStorage, ch
68
68
  };
69
69
  };
70
70
  invitationMakers: import("@endo/exo").Guarded<{
71
- Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
72
- Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
71
+ Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
72
+ Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<undefined, undefined>>;
73
73
  WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("../orchestration-api.js").DenomAmount[], undefined>>;
74
- Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<void, undefined>>;
74
+ Undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Promise<Invitation<undefined, undefined>>;
75
75
  CloseAccount(): never;
76
76
  TransferAccount(): never;
77
77
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,OA2ChB,IAAI,aACf,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA1CK,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAwDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN"}
1
+ {"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,OA6CM,IAAI,aAC9B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA5CF,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAuDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN"}
@@ -1,7 +1,7 @@
1
1
  import { makeTracer } from '@agoric/internal';
2
2
  import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
3
3
  import { E } from '@endo/far';
4
- import { makeChainHub } from '../utils/chainHub.js';
4
+ import { getChainsAndConnection, makeChainHub } from '../exos/chain-hub.js';
5
5
 
6
6
  /**
7
7
  * @import {IBCConnectionID} from '@agoric/vats';
@@ -47,11 +47,10 @@ export const startStakeOsmo = async ({
47
47
 
48
48
  const chainHub = makeChainHub(await agoricNames);
49
49
 
50
- const agoric = await chainHub.getChainInfo('agoric');
51
- const osmosis = await chainHub.getChainInfo('osmosis');
52
- const connectionInfo = await chainHub.getConnectionInfo(
53
- agoric.chainId,
54
- osmosis.chainId,
50
+ const [_, osmosis, connectionInfo] = await getChainsAndConnection(
51
+ chainHub,
52
+ 'agoric',
53
+ 'osmosis',
55
54
  );
56
55
 
57
56
  /** @type {StartUpgradableOpts<StakeIcaSF>} */