@agoric/orchestration 0.1.1-dev-6b5e706.0 → 0.1.1-dev-2dc53d7.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 (72) hide show
  1. package/index.d.ts +4 -0
  2. package/index.js +0 -1
  3. package/package.json +17 -15
  4. package/src/chain-info.d.ts +37 -0
  5. package/src/chain-info.d.ts.map +1 -0
  6. package/src/chain-info.ts +64 -0
  7. package/src/cosmos-api.d.ts +159 -0
  8. package/src/cosmos-api.d.ts.map +1 -0
  9. package/src/cosmos-api.ts +199 -0
  10. package/src/ethereum-api.d.ts +8 -0
  11. package/src/ethereum-api.d.ts.map +1 -0
  12. package/src/ethereum-api.ts +7 -0
  13. package/src/examples/stakeAtom.contract.d.ts +84 -0
  14. package/src/examples/stakeAtom.contract.d.ts.map +1 -0
  15. package/src/examples/stakeAtom.contract.js +0 -1
  16. package/src/examples/stakeBld.contract.d.ts +39 -0
  17. package/src/examples/stakeBld.contract.d.ts.map +1 -0
  18. package/src/examples/stakeBld.contract.js +0 -1
  19. package/src/examples/swapExample.contract.d.ts +31 -0
  20. package/src/examples/swapExample.contract.d.ts.map +1 -0
  21. package/src/examples/swapExample.contract.js +2 -3
  22. package/src/examples/unbondExample.contract.d.ts +24 -0
  23. package/src/examples/unbondExample.contract.d.ts.map +1 -0
  24. package/src/examples/unbondExample.contract.js +1 -2
  25. package/src/exos/chainAccountKit.d.ts +71 -0
  26. package/src/exos/chainAccountKit.d.ts.map +1 -0
  27. package/src/exos/chainAccountKit.js +0 -1
  28. package/src/exos/icqConnectionKit.d.ts +43 -0
  29. package/src/exos/icqConnectionKit.d.ts.map +1 -0
  30. package/src/exos/icqConnectionKit.js +0 -1
  31. package/src/exos/localchainAccountKit.d.ts +68 -0
  32. package/src/exos/localchainAccountKit.d.ts.map +1 -0
  33. package/src/exos/localchainAccountKit.js +0 -1
  34. package/src/exos/stakingAccountKit.d.ts +146 -0
  35. package/src/exos/stakingAccountKit.d.ts.map +1 -0
  36. package/src/exos/stakingAccountKit.js +12 -13
  37. package/src/facade.d.ts +29 -0
  38. package/src/facade.d.ts.map +1 -0
  39. package/src/facade.js +7 -3
  40. package/src/orchestration-api.d.ts +158 -0
  41. package/src/orchestration-api.d.ts.map +1 -0
  42. package/src/orchestration-api.ts +195 -0
  43. package/src/proposals/orchestration-proposal.d.ts +629 -0
  44. package/src/proposals/orchestration-proposal.d.ts.map +1 -0
  45. package/src/proposals/orchestration-proposal.js +0 -1
  46. package/src/proposals/start-stakeAtom.d.ts +115 -0
  47. package/src/proposals/start-stakeAtom.d.ts.map +1 -0
  48. package/src/proposals/start-stakeAtom.js +0 -1
  49. package/src/proposals/start-stakeBld.d.ts +80 -0
  50. package/src/proposals/start-stakeBld.d.ts.map +1 -0
  51. package/src/proposals/start-stakeBld.js +2 -2
  52. package/src/service.d.ts +67 -0
  53. package/src/service.d.ts.map +1 -0
  54. package/src/service.js +2 -3
  55. package/src/typeGuards.d.ts +28 -0
  56. package/src/typeGuards.d.ts.map +1 -0
  57. package/src/types.d.ts +8 -482
  58. package/src/types.d.ts.map +1 -0
  59. package/src/types.ts +10 -0
  60. package/src/utils/address.d.ts +11 -0
  61. package/src/utils/address.d.ts.map +1 -0
  62. package/src/utils/address.js +0 -1
  63. package/src/utils/orc.d.ts +14 -0
  64. package/src/utils/orc.d.ts.map +1 -0
  65. package/src/utils/orc.js +0 -1
  66. package/src/utils/packet.d.ts +52 -0
  67. package/src/utils/packet.d.ts.map +1 -0
  68. package/src/utils/packet.js +0 -1
  69. package/src/vat-orchestration.d.ts +36 -0
  70. package/src/vat-orchestration.d.ts.map +1 -0
  71. package/src/vat-orchestration.js +0 -1
  72. package/src/types.js +0 -6
@@ -0,0 +1,115 @@
1
+ export function startStakeAtom({ consume: { agoricNames, board, chainStorage, chainTimerService, orchestration, startUpgradable, }, installation: { consume: { stakeAtom }, }, instance: { produce: { stakeAtom: produceInstance }, }, }: BootstrapPowers & {
2
+ installation: {
3
+ consume: {
4
+ stakeAtom: Installation<(zcf: ZCF<StakeAtomTerms>, privateArgs: {
5
+ orchestration: import("@endo/exo").Guarded<{
6
+ makeAccount(hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("../cosmos-api.js").IcaAccount>;
7
+ provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
8
+ getLocalAddress(): `/ibc-port/${string}`;
9
+ getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
10
+ query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
11
+ }>>;
12
+ }>;
13
+ storageNode: globalThis.StorageNode;
14
+ marshaller: {
15
+ toCapData: import("@endo/marshal").ToCapData<unknown>;
16
+ fromCapData: import("@endo/marshal").FromCapData<unknown>;
17
+ serialize: import("@endo/marshal").ToCapData<unknown>;
18
+ unserialize: import("@endo/marshal").FromCapData<unknown>;
19
+ };
20
+ timer: import("@agoric/time").TimerService;
21
+ }, baggage: import("@agoric/vat-data").Baggage) => Promise<{
22
+ publicFacet: import("@endo/exo").Guarded<{
23
+ makeAccount(): Promise<import("@endo/exo").Guarded<{
24
+ getPublicTopics(): {
25
+ account: {
26
+ description: string;
27
+ subscriber: globalThis.Subscriber<import("../exos/stakingAccountKit.js").StakingAccountNotification>;
28
+ storagePath: Promise<string>;
29
+ };
30
+ };
31
+ getAddress(): import("../orchestration-api.js").ChainAddress;
32
+ delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
33
+ redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
34
+ withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<import("../orchestration-api.js").DenomAmount[]>;
35
+ getBalance(denom?: string | undefined): Promise<import("../orchestration-api.js").DenomAmount>;
36
+ withdrawRewards(): never;
37
+ undelegate(delegations: import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation[]): Promise<void>;
38
+ }>>;
39
+ makeAcountInvitationMaker(): Promise<Invitation<{
40
+ publicSubscribers: {
41
+ account: {
42
+ description: string;
43
+ subscriber: globalThis.Subscriber<import("../exos/stakingAccountKit.js").StakingAccountNotification>;
44
+ storagePath: Promise<string>;
45
+ };
46
+ };
47
+ invitationMakers: import("@endo/exo").Guarded<{
48
+ Delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: Amount<"nat">): Promise<Invitation<void, undefined>>;
49
+ Redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<Invitation<void, undefined>>;
50
+ WithdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<Invitation<import("../orchestration-api.js").DenomAmount[], undefined>>;
51
+ Undelegate(delegations: import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation[]): Promise<Invitation<void, undefined>>;
52
+ CloseAccount(): never;
53
+ TransferAccount(): never;
54
+ }>;
55
+ account: import("@endo/exo").Guarded<{
56
+ getPublicTopics(): {
57
+ account: {
58
+ description: string;
59
+ subscriber: globalThis.Subscriber<import("../exos/stakingAccountKit.js").StakingAccountNotification>;
60
+ storagePath: Promise<string>;
61
+ };
62
+ };
63
+ getAddress(): import("../orchestration-api.js").ChainAddress;
64
+ delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
65
+ redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Promise<void>;
66
+ withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Promise<import("../orchestration-api.js").DenomAmount[]>;
67
+ getBalance(denom?: string | undefined): Promise<import("../orchestration-api.js").DenomAmount>;
68
+ withdrawRewards(): never;
69
+ undelegate(delegations: import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation[]): Promise<void>;
70
+ }>;
71
+ }, undefined>>;
72
+ }>;
73
+ }>>;
74
+ };
75
+ };
76
+ }, { options: { hostConnectionId, controllerConnectionId, bondDenom } }: {
77
+ options: StakeAtomTerms;
78
+ }): Promise<void>;
79
+ export function getManifestForStakeAtom({ restoreRef }: {
80
+ restoreRef: any;
81
+ }, { installKeys, ...options }: {
82
+ [x: string]: any;
83
+ installKeys: any;
84
+ }): {
85
+ manifest: {
86
+ [x: string]: {
87
+ consume: {
88
+ agoricNames: boolean;
89
+ board: boolean;
90
+ chainStorage: boolean;
91
+ chainTimerService: boolean;
92
+ orchestration: boolean;
93
+ startUpgradable: boolean;
94
+ };
95
+ installation: {
96
+ consume: {
97
+ stakeAtom: boolean;
98
+ };
99
+ };
100
+ instance: {
101
+ produce: {
102
+ stakeAtom: boolean;
103
+ };
104
+ };
105
+ };
106
+ };
107
+ installations: {
108
+ stakeAtom: any;
109
+ };
110
+ options: {
111
+ [x: string]: any;
112
+ };
113
+ };
114
+ import type { StakeAtomTerms } from '../examples/stakeAtom.contract';
115
+ //# sourceMappingURL=start-stakeAtom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAYO,0OAHI,eAAe,GAAG;IAAE,YAAY,EAAE;QAAC,OAAO,EAAE;YAAC,SAAS,EAAE,YAAY,OA+BjE,IAAK,cAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2GAwD+lJ,OAAO,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;eAvF3gJ,CAAA;SAAC,CAAA;KAAC,CAAA;CAAC;;kBAuDpI;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;oCA3FgD,gCAAgC"}
@@ -1,4 +1,3 @@
1
- // @ts-check
2
1
  import { makeTracer } from '@agoric/internal';
3
2
  import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
4
3
  import { E } from '@endo/far';
@@ -0,0 +1,80 @@
1
+ export function startStakeBld({ consume: { board, chainStorage, localchain, startUpgradable }, installation: { consume: { stakeBld }, }, instance: { produce: { stakeBld: produceInstance }, }, issuer: { consume: { [Stake.symbol]: stakeIssuer }, }, }: BootstrapPowers & {
2
+ installation: {
3
+ consume: {
4
+ stakeBld: Installation<(zcf: ZCF, privateArgs: {
5
+ localchain: import("@agoric/vats/src/localchain.js").LocalChain;
6
+ marshaller: Marshaller;
7
+ storageNode: StorageNode;
8
+ }, baggage: import("@agoric/vat-data").Baggage) => Promise<{
9
+ publicFacet: import("@endo/exo").Guarded<{
10
+ makeStakeBldInvitation(): Promise<Invitation<{
11
+ publicSubscribers: {
12
+ account: {
13
+ description: string;
14
+ subscriber: globalThis.Subscriber<import("../exos/localchainAccountKit.js").LocalChainAccountNotification>;
15
+ storagePath: Promise<string>;
16
+ };
17
+ };
18
+ invitationMakers: import("@endo/exo").Guarded<{
19
+ Delegate(validatorAddress: any, amount: any): Promise<Invitation<(import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgDelegateResponse & {
20
+ '@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
21
+ })[], undefined>>;
22
+ CloseAccount(): never;
23
+ TransferAccount(): never;
24
+ }>;
25
+ account: import("@endo/exo").Guarded<{
26
+ getPublicTopics(): {
27
+ account: {
28
+ description: string;
29
+ subscriber: globalThis.Subscriber<import("../exos/localchainAccountKit.js").LocalChainAccountNotification>;
30
+ storagePath: Promise<string>;
31
+ };
32
+ };
33
+ makeDelegateInvitation(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<(import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgDelegateResponse & {
34
+ '@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
35
+ })[], undefined>>;
36
+ makeCloseAccountInvitation(): never;
37
+ makeTransferAccountInvitation(): never;
38
+ }>;
39
+ }, undefined>>;
40
+ }>;
41
+ }>>;
42
+ };
43
+ };
44
+ }): Promise<void>;
45
+ export function getManifestForStakeBld({ restoreRef }: {
46
+ restoreRef: any;
47
+ }, { installKeys }: {
48
+ installKeys: any;
49
+ }): {
50
+ manifest: {
51
+ [x: string]: {
52
+ consume: {
53
+ board: boolean;
54
+ chainStorage: boolean;
55
+ localchain: boolean;
56
+ startUpgradable: boolean;
57
+ };
58
+ installation: {
59
+ consume: {
60
+ stakeBld: boolean;
61
+ };
62
+ };
63
+ instance: {
64
+ produce: {
65
+ stakeBld: boolean;
66
+ };
67
+ };
68
+ issuer: {
69
+ consume: {
70
+ BLD: boolean;
71
+ };
72
+ };
73
+ };
74
+ };
75
+ installations: {
76
+ stakeBld: any;
77
+ };
78
+ };
79
+ import { Stake } from '@agoric/internal/src/tokens.js';
80
+ //# sourceMappingURL=start-stakeBld.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAUO,0PAFI,eAAe,GAAG;IAAC,YAAY,EAAE;QAAC,OAAO,EAAE;YAAC,QAAQ,EAAE,YAAY,OAI3E,GAAA,eACE;gBAAA,YAAe,OACjB,gCAEW,EAAE,UAAU,CAAC;gBAAA,YACxB,UACG,CAAC;gBAAA,aACO,WAAW,CAAC;aAAK,WAE1B,OACD,kBAAkB,EAAG,OAAM;;;;;;;;;;;;;;;;;;;;;;;;;yFAqDuhD,OAAO,KAAK,CAAC;;;;;;;;eAnE57C,CAAA;SAAC,CAAA;KAAC,CAAA;CAAC,iBAsCxI;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBN;sBAxEqB,gCAAgC"}
@@ -6,7 +6,7 @@ import { E } from '@endo/far';
6
6
  const trace = makeTracer('StartStakeBld', true);
7
7
 
8
8
  /**
9
- * @param {BootstrapPowers & {installation: {consume: {stakeBld: Installation<import('../../test/examples/stakeBld.contract.js').start>}}}} powers
9
+ * @param {BootstrapPowers & {installation: {consume: {stakeBld: Installation<import('../../src/examples/stakeBld.contract.js').start>}}}} powers
10
10
  */
11
11
  export const startStakeBld = async ({
12
12
  consume: { board, chainStorage, localchain, startUpgradable },
@@ -29,7 +29,7 @@ export const startStakeBld = async ({
29
29
  const marshaller = await E(board).getPublishingMarshaller();
30
30
 
31
31
  // FIXME this isn't detecting missing privateArgs
32
- /** @type {StartUpgradableOpts<import('../../test/examples/stakeBld.contract.js').start>} */
32
+ /** @type {StartUpgradableOpts<import('../../src/examples/stakeBld.contract.js').start>} */
33
33
  const startOpts = {
34
34
  label: 'stakeBld',
35
35
  installation: stakeBld,
@@ -0,0 +1,67 @@
1
+ export const OrchestrationI: import("@endo/patterns").InterfaceGuard<{
2
+ makeAccount: import("@endo/patterns").MethodGuard;
3
+ provideICQConnection: import("@endo/patterns").MethodGuard;
4
+ }>;
5
+ export function prepareOrchestrationTools(zone: Zone): {
6
+ makeOrchestrationKit: (initialPowers?: Partial<OrchestrationPowers> | undefined) => import("@endo/exo").GuardedKit<{
7
+ self: {
8
+ allocateICAControllerPort(): Promise<any>;
9
+ allocateICQControllerPort(): Promise<any>;
10
+ };
11
+ public: {
12
+ /**
13
+ * @param {IBCConnectionID} hostConnectionId
14
+ * the counterparty connection_id
15
+ * @param {IBCConnectionID} controllerConnectionId
16
+ * self connection_id
17
+ * @returns {Promise<IcaAccount>}
18
+ */
19
+ makeAccount(hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<IcaAccount>;
20
+ /**
21
+ * @param {IBCConnectionID} controllerConnectionId
22
+ * @returns {Promise<ICQConnection>}
23
+ */
24
+ provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
25
+ getLocalAddress(): `/ibc-port/${string}`;
26
+ getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
27
+ query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
28
+ }>>;
29
+ };
30
+ }>;
31
+ };
32
+ export type OrchestrationPowers = {
33
+ portAllocator: globalThis.ERef<import("@endo/exo").Guarded<{
34
+ allocateCustomIBCPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
35
+ allocateICAControllerPort(): import("@agoric/vow").Vow<any>;
36
+ allocateICQControllerPort(): import("@agoric/vow").Vow<any>;
37
+ allocateCustomLocalPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
38
+ }>>;
39
+ };
40
+ /**
41
+ * PowerStore is used so additional powers can be added on upgrade. See
42
+ * [#7337](https://github.com/Agoric/agoric-sdk/issues/7337) for tracking on Exo
43
+ * state migrations.
44
+ */
45
+ export type PowerStore = MapStore<keyof OrchestrationPowers, OrchestrationPowers[keyof OrchestrationPowers]>;
46
+ export type ICQConnectionStore = import("@endo/pass-style").RemotableObject & import("@agoric/store").MapStoreMethods<`connection-${number}`, import("@endo/exo").GuardedKit<{
47
+ connection: {
48
+ getLocalAddress(): `/ibc-port/${string}`;
49
+ getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
50
+ query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
51
+ };
52
+ connectionHandler: {
53
+ onOpen(connection: import("@agoric/vow").Remote<import("@agoric/network").Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
54
+ onClose(_connection: any, reason: any): Promise<void>;
55
+ onReceive(connection: any, bytes: any): Promise<string>;
56
+ };
57
+ }>>;
58
+ export type OrchestrationState = {
59
+ powers: PowerStore;
60
+ icqConnections: ICQConnectionStore;
61
+ };
62
+ export type OrchestrationTools = ReturnType<typeof prepareOrchestrationTools>;
63
+ export type OrchestrationKit = ReturnType<OrchestrationTools["makeOrchestrationKit"]>;
64
+ export type OrchestrationService = OrchestrationKit["public"];
65
+ import type { Zone } from '@agoric/base-zone';
66
+ import type { IcaAccount } from './types.js';
67
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["service.js"],"names":[],"mappings":"AAsDA;;;GAOG;AA4GI;;;;;;;YAzDC;;;;;;eAMG;;YAkBH;;;eAGG;;;;;;;;EAwCV;;;;;;;;;;;;;;yBAjJY,QAAQ,CACpB,MAAU,mBAAmB,EAC7B,mBAAuB,CAAC,MAAM,mBAAmB,CAAC,CAC/C;;;;;;;;;;;;;iCA0BU;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,cAAc,EAAE,kBAAkB,CAAA;CAAE;iCAuH1D,UAAU,CAAC,OAAO,yBAAyB,CAAC;+BAC5C,UAAU,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;mCACtD,gBAAgB,CAAC,QAAQ,CAAC;0BAxKf,mBAAmB;gCAGoB,YAAY"}
package/src/service.js CHANGED
@@ -1,4 +1,3 @@
1
- // @ts-check
2
1
  /** @file Orchestration service */
3
2
 
4
3
  // XXX ambient types runtime imports until https://github.com/Agoric/agoric-sdk/issues/6512
@@ -18,7 +17,7 @@ import {
18
17
  * @import { Zone } from '@agoric/base-zone';
19
18
  * @import { Port, PortAllocator } from '@agoric/network';
20
19
  * @import { IBCConnectionID } from '@agoric/vats';
21
- * @import { ICQConnection, ChainAccount, ICQConnectionKit } from './types.js';
20
+ * @import { ICQConnection, IcaAccount, ICQConnectionKit } from './types.js';
22
21
  */
23
22
 
24
23
  const { Fail, bare } = assert;
@@ -116,7 +115,7 @@ const prepareOrchestrationKit = (
116
115
  * the counterparty connection_id
117
116
  * @param {IBCConnectionID} controllerConnectionId
118
117
  * self connection_id
119
- * @returns {Promise<ChainAccount>}
118
+ * @returns {Promise<IcaAccount>}
120
119
  */
121
120
  async makeAccount(hostConnectionId, controllerConnectionId) {
122
121
  const port = await this.facets.self.allocateICAControllerPort();
@@ -0,0 +1,28 @@
1
+ export const ConnectionHandlerI: import("@endo/patterns").InterfaceGuard<{
2
+ onOpen: import("@endo/patterns").MethodGuard;
3
+ onClose: import("@endo/patterns").MethodGuard;
4
+ onReceive: import("@endo/patterns").MethodGuard;
5
+ }>;
6
+ export namespace ChainAddressShape {
7
+ let address: import("@endo/patterns").Matcher;
8
+ let chainId: import("@endo/patterns").Matcher;
9
+ let addressEncoding: import("@endo/patterns").Matcher;
10
+ }
11
+ export namespace Proto3Shape {
12
+ let typeUrl: import("@endo/patterns").Matcher;
13
+ let value: import("@endo/patterns").Matcher;
14
+ }
15
+ export namespace CoinShape {
16
+ let value_1: import("@endo/patterns").Matcher;
17
+ export { value_1 as value };
18
+ export let denom: import("@endo/patterns").Matcher;
19
+ }
20
+ export namespace ChainAmountShape {
21
+ let denom_1: import("@endo/patterns").Matcher;
22
+ export { denom_1 as denom };
23
+ let value_2: import("@endo/patterns").Matcher;
24
+ export { value_2 as value };
25
+ }
26
+ export const AmountArgShape: import("@endo/patterns").Matcher;
27
+ export const DelegationShape: import("@endo/patterns").Matcher;
28
+ //# sourceMappingURL=typeGuards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAIA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;AAiBH,8DAAkE;AAElE,+DAA0C"}