@agoric/orchestration 0.1.1-dev-67275c2.0 → 0.1.1-dev-74be420.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 (77) hide show
  1. package/index.d.ts +2 -0
  2. package/index.js +3 -0
  3. package/package.json +17 -17
  4. package/src/chain-info.d.ts +11 -2
  5. package/src/chain-info.d.ts.map +1 -1
  6. package/src/chain-info.js +16 -4
  7. package/src/cosmos-api.d.ts +38 -10
  8. package/src/cosmos-api.d.ts.map +1 -1
  9. package/src/cosmos-api.ts +39 -10
  10. package/src/examples/auto-stake-it.contract.d.ts +5 -16
  11. package/src/examples/auto-stake-it.contract.d.ts.map +1 -1
  12. package/src/examples/auto-stake-it.contract.js +1 -16
  13. package/src/examples/basic-flows.contract.d.ts.map +1 -1
  14. package/src/examples/basic-flows.contract.js +1 -2
  15. package/src/examples/send-anywhere.contract.d.ts +3 -30
  16. package/src/examples/send-anywhere.contract.d.ts.map +1 -1
  17. package/src/examples/send-anywhere.contract.js +1 -17
  18. package/src/examples/staking-combinations.contract.d.ts +1 -1
  19. package/src/examples/staking-combinations.contract.d.ts.map +1 -1
  20. package/src/examples/staking-combinations.contract.js +1 -1
  21. package/src/examples/swap.contract.d.ts +2 -2
  22. package/src/examples/swap.contract.d.ts.map +1 -1
  23. package/src/examples/swap.contract.js +1 -1
  24. package/src/examples/unbond.contract.d.ts +1 -1
  25. package/src/examples/unbond.contract.d.ts.map +1 -1
  26. package/src/examples/unbond.contract.js +1 -1
  27. package/src/examples/unbond.flows.js +1 -1
  28. package/src/exos/chain-hub-admin.d.ts +8 -4
  29. package/src/exos/chain-hub-admin.d.ts.map +1 -1
  30. package/src/exos/chain-hub-admin.js +15 -2
  31. package/src/exos/chain-hub.d.ts +1 -1
  32. package/src/exos/chain-hub.d.ts.map +1 -1
  33. package/src/exos/chain-hub.js +5 -1
  34. package/src/exos/cosmos-interchain-service.d.ts +70 -19
  35. package/src/exos/cosmos-interchain-service.d.ts.map +1 -1
  36. package/src/exos/cosmos-interchain-service.js +13 -6
  37. package/src/exos/cosmos-orchestration-account.d.ts +5 -0
  38. package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
  39. package/src/exos/cosmos-orchestration-account.js +2 -0
  40. package/src/exos/exo-interfaces.d.ts +27 -0
  41. package/src/exos/exo-interfaces.d.ts.map +1 -0
  42. package/src/exos/exo-interfaces.ts +35 -0
  43. package/src/exos/ica-account-kit.d.ts +3 -1
  44. package/src/exos/ica-account-kit.d.ts.map +1 -1
  45. package/src/exos/ica-account-kit.js +7 -1
  46. package/src/exos/icq-connection-kit.d.ts.map +1 -1
  47. package/src/exos/icq-connection-kit.js +3 -0
  48. package/src/exos/local-chain-facade.d.ts +4 -1
  49. package/src/exos/local-chain-facade.d.ts.map +1 -1
  50. package/src/exos/local-chain-facade.js +6 -1
  51. package/src/exos/local-orchestration-account.d.ts +3 -0
  52. package/src/exos/local-orchestration-account.d.ts.map +1 -1
  53. package/src/exos/local-orchestration-account.js +2 -0
  54. package/src/exos/orchestrator.d.ts +1 -1
  55. package/src/exos/orchestrator.d.ts.map +1 -1
  56. package/src/exos/orchestrator.js +1 -1
  57. package/src/exos/remote-chain-facade.d.ts +1 -1
  58. package/src/exos/remote-chain-facade.d.ts.map +1 -1
  59. package/src/exos/remote-chain-facade.js +1 -1
  60. package/src/facade.d.ts +1 -1
  61. package/src/facade.d.ts.map +1 -1
  62. package/src/facade.js +1 -1
  63. package/src/orchestration-api.d.ts +45 -8
  64. package/src/orchestration-api.d.ts.map +1 -1
  65. package/src/orchestration-api.ts +51 -7
  66. package/src/typeGuards.d.ts +19 -7
  67. package/src/typeGuards.d.ts.map +1 -1
  68. package/src/typeGuards.js +15 -2
  69. package/src/types.d.ts +1 -0
  70. package/src/types.d.ts.map +1 -1
  71. package/src/types.ts +1 -0
  72. package/src/utils/start-helper.d.ts +1 -1
  73. package/src/utils/start-helper.d.ts.map +1 -1
  74. package/src/utils/start-helper.js +9 -2
  75. package/src/vat-orchestration.d.ts +4 -1
  76. package/src/vat-orchestration.d.ts.map +1 -1
  77. package/src/vat-orchestration.js +14 -2
package/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from "./src/types.js";
2
2
  export * from "./src/exos/cosmos-interchain-service.js";
3
+ export * from "./src/exos/chain-hub-admin.js";
3
4
  export * from "./src/typeGuards.js";
5
+ export { withOrchestration } from "./src/utils/start-helper.js";
4
6
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -4,4 +4,7 @@
4
4
 
5
5
  export * from './src/types.js';
6
6
  export * from './src/exos/cosmos-interchain-service.js';
7
+ export * from './src/exos/chain-hub-admin.js';
7
8
  export * from './src/typeGuards.js';
9
+
10
+ export { withOrchestration } from './src/utils/start-helper.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/orchestration",
3
- "version": "0.1.1-dev-67275c2.0+67275c2",
3
+ "version": "0.1.1-dev-74be420.0+74be420",
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-67275c2.0+67275c2",
37
- "@agoric/cosmic-proto": "0.4.1-dev-67275c2.0+67275c2",
38
- "@agoric/ertp": "0.16.3-dev-67275c2.0+67275c2",
39
- "@agoric/internal": "0.3.3-dev-67275c2.0+67275c2",
40
- "@agoric/network": "0.1.1-dev-67275c2.0+67275c2",
41
- "@agoric/notifier": "0.6.3-dev-67275c2.0+67275c2",
42
- "@agoric/store": "0.9.3-dev-67275c2.0+67275c2",
43
- "@agoric/time": "0.3.3-dev-67275c2.0+67275c2",
44
- "@agoric/vat-data": "0.5.3-dev-67275c2.0+67275c2",
45
- "@agoric/vats": "0.15.2-dev-67275c2.0+67275c2",
46
- "@agoric/vow": "0.1.1-dev-67275c2.0+67275c2",
47
- "@agoric/zoe": "0.26.3-dev-67275c2.0+67275c2",
48
- "@agoric/zone": "0.2.3-dev-67275c2.0+67275c2",
36
+ "@agoric/async-flow": "0.1.1-dev-74be420.0+74be420",
37
+ "@agoric/cosmic-proto": "0.4.1-dev-74be420.0+74be420",
38
+ "@agoric/ertp": "0.16.3-dev-74be420.0+74be420",
39
+ "@agoric/internal": "0.3.3-dev-74be420.0+74be420",
40
+ "@agoric/network": "0.1.1-dev-74be420.0+74be420",
41
+ "@agoric/notifier": "0.6.3-dev-74be420.0+74be420",
42
+ "@agoric/store": "0.9.3-dev-74be420.0+74be420",
43
+ "@agoric/time": "0.3.3-dev-74be420.0+74be420",
44
+ "@agoric/vat-data": "0.5.3-dev-74be420.0+74be420",
45
+ "@agoric/vats": "0.15.2-dev-74be420.0+74be420",
46
+ "@agoric/vow": "0.1.1-dev-74be420.0+74be420",
47
+ "@agoric/zoe": "0.26.3-dev-74be420.0+74be420",
48
+ "@agoric/zone": "0.2.3-dev-74be420.0+74be420",
49
49
  "@endo/base64": "^1.0.7",
50
50
  "@endo/errors": "^1.2.5",
51
51
  "@endo/far": "^1.1.5",
@@ -54,7 +54,7 @@
54
54
  "@noble/hashes": "^1.5.0"
55
55
  },
56
56
  "devDependencies": {
57
- "@agoric/swingset-liveslots": "0.10.3-dev-67275c2.0+67275c2",
57
+ "@agoric/swingset-liveslots": "0.10.3-dev-74be420.0+74be420",
58
58
  "@chain-registry/client": "^1.47.4",
59
59
  "@cosmjs/amino": "^0.32.3",
60
60
  "@cosmjs/proto-signing": "^0.32.3",
@@ -92,7 +92,7 @@
92
92
  "access": "public"
93
93
  },
94
94
  "typeCoverage": {
95
- "atLeast": 98.1
95
+ "atLeast": 97.57
96
96
  },
97
- "gitHead": "67275c2ac643b53bb74422cc92fe1f3565150d12"
97
+ "gitHead": "74be420fcca6eb43ebd8e85f574e6c06949e2642"
98
98
  }
@@ -1,15 +1,24 @@
1
1
  export function registerChainAssets(agoricNamesAdmin: ERef<NameAdmin>, name: string, assets: CosmosAssetInfo[]): Promise<void>;
2
2
  export function registerChain(agoricNamesAdmin: ERef<NameAdmin>, name: string, chainInfo: CosmosChainInfo, log?: ((...messages: string[]) => void) | undefined, handledConnections?: Set<string> | undefined): Promise<void>;
3
3
  export function registerKnownChains(agoricNamesAdmin: ERef<import("@agoric/vats").NameHubKit["nameAdmin"]>, log?: ((...messages: string[]) => void) | undefined): Promise<void>;
4
+ /**
5
+ * Info used to build a {@link Chain} object - channel, connection, and denom
6
+ * info.
7
+ */
4
8
  export type ChainInfo = CosmosChainInfo | EthChainInfo;
5
9
  export type KnownChains = typeof knownChains;
6
10
  import type { NameAdmin } from '@agoric/vats';
7
11
  import type { CosmosAssetInfo } from './types.js';
8
12
  import type { CosmosChainInfo } from './types.js';
9
13
  import type { EthChainInfo } from './types.js';
10
- /** @import {CosmosAssetInfo, CosmosChainInfo, EthChainInfo, IBCConnectionInfo} from './types.js'; */
14
+ /** @import {Chain, CosmosAssetInfo, CosmosChainInfo, EthChainInfo, IBCConnectionInfo} from './types.js'; */
11
15
  /** @import {NameAdmin} from '@agoric/vats'; */
12
- /** @typedef {CosmosChainInfo | EthChainInfo} ChainInfo */
16
+ /**
17
+ * Info used to build a {@link Chain} object - channel, connection, and denom
18
+ * info.
19
+ *
20
+ * @typedef {CosmosChainInfo | EthChainInfo} ChainInfo
21
+ */
13
22
  declare const knownChains: {
14
23
  agoriclocal: {
15
24
  chainId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"chain-info.d.ts","sourceRoot":"","sources":["chain-info.js"],"names":[],"mappings":"AAgFO,sDAJI,IAAI,CAAC,SAAS,CAAC,QACf,MAAM,UACN,eAAe,EAAE,iBAO3B;AAUM,gDAPI,IAAI,CAAC,SAAS,CAAC,QACf,MAAM,aACN,eAAe,uBACD,MAAM,EAAE,KAAK,IAAI,4EA6CzC;AAQM,sDAHI,IAAI,CAAC,OAAO,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqDE"}
package/src/chain-info.js CHANGED
@@ -9,10 +9,15 @@ import {
9
9
  import fetchedChainInfo from './fetched-chain-info.js'; // Refresh with scripts/refresh-chain-info.ts
10
10
  import { CosmosAssetInfoShape, CosmosChainInfoShape } from './typeGuards.js';
11
11
 
12
- /** @import {CosmosAssetInfo, CosmosChainInfo, EthChainInfo, IBCConnectionInfo} from './types.js'; */
12
+ /** @import {Chain, CosmosAssetInfo, CosmosChainInfo, EthChainInfo, IBCConnectionInfo} from './types.js'; */
13
13
  /** @import {NameAdmin} from '@agoric/vats'; */
14
14
 
15
- /** @typedef {CosmosChainInfo | EthChainInfo} ChainInfo */
15
+ /**
16
+ * Info used to build a {@link Chain} object - channel, connection, and denom
17
+ * info.
18
+ *
19
+ * @typedef {CosmosChainInfo | EthChainInfo} ChainInfo
20
+ */
16
21
 
17
22
  const knownChains = /** @satisfies {Record<string, ChainInfo>} */ (
18
23
  harden({
@@ -69,14 +74,19 @@ const knownChains = /** @satisfies {Record<string, ChainInfo>} */ (
69
74
  })
70
75
  );
71
76
 
72
- /** @typedef {typeof knownChains} KnownChains */
77
+ /**
78
+ * @typedef {typeof knownChains} KnownChains
79
+ * @internal
80
+ */
73
81
 
82
+ // TODO(#9572): include this in registerChain
74
83
  /**
75
- * TODO(#9572): include this in registerChain
84
+ * Register chain assets into agoricNames
76
85
  *
77
86
  * @param {ERef<NameAdmin>} agoricNamesAdmin
78
87
  * @param {string} name
79
88
  * @param {CosmosAssetInfo[]} assets
89
+ * @alpha
80
90
  */
81
91
  export const registerChainAssets = async (agoricNamesAdmin, name, assets) => {
82
92
  mustMatch(assets, M.arrayOf(CosmosAssetInfoShape));
@@ -86,6 +96,8 @@ export const registerChainAssets = async (agoricNamesAdmin, name, assets) => {
86
96
  };
87
97
 
88
98
  /**
99
+ * Register a chain into agoricNames
100
+ *
89
101
  * @param {ERef<NameAdmin>} agoricNamesAdmin
90
102
  * @param {string} name
91
103
  * @param {CosmosChainInfo} chainInfo
@@ -17,7 +17,7 @@ export type CosmosValidatorAddress = ChainAddress & {
17
17
  encoding: 'bech32';
18
18
  };
19
19
  /** Represents an IBC Connection between two chains, which can contain multiple Channels. */
20
- export type IBCConnectionInfo = {
20
+ export interface IBCConnectionInfo {
21
21
  id: IBCConnectionID;
22
22
  client_id: string;
23
23
  state: IBCConnectionState;
@@ -37,11 +37,11 @@ export type IBCConnectionInfo = {
37
37
  state: IBCChannelState;
38
38
  version: string;
39
39
  };
40
- };
40
+ }
41
41
  /**
42
42
  * https://github.com/cosmos/chain-registry/blob/master/assetlist.schema.json
43
43
  */
44
- export type CosmosAssetInfo = {
44
+ export interface CosmosAssetInfo extends Record<string, unknown> {
45
45
  base: Denom;
46
46
  name: string;
47
47
  display: string;
@@ -62,7 +62,7 @@ export type CosmosAssetInfo = {
62
62
  path: string;
63
63
  };
64
64
  }>;
65
- } & Record<string, unknown>;
65
+ }
66
66
  /**
67
67
  * Info for a Cosmos-based chain.
68
68
  */
@@ -77,6 +77,12 @@ export type CosmosChainInfo = Readonly<{
77
77
  denom: string;
78
78
  }>>;
79
79
  }>;
80
+ /**
81
+ * Queries for the staking properties of an account.
82
+ *
83
+ * @see {@link https://docs.cosmos.network/main/build/modules/staking#messages x/staking messages}
84
+ * {@link https://cosmos.github.io/cosmjs/latest/stargate/interfaces/StakingExtension.html StakingExtension} in cosmjs
85
+ */
80
86
  export interface StakingAccountQueries {
81
87
  /**
82
88
  * @returns all active delegations from the account to any validator (or [] if none)
@@ -109,6 +115,12 @@ export interface StakingAccountQueries {
109
115
  */
110
116
  getReward: (validator: CosmosValidatorAddress) => Promise<DenomAmount[]>;
111
117
  }
118
+ /**
119
+ * Transactions for doing staking operations on an individual account.
120
+ *
121
+ * @see {@link https://docs.cosmos.network/main/build/modules/staking#messages x/staking messages} and
122
+ * {@link https://cosmos.github.io/cosmjs/latest/stargate/interfaces/StakingExtension.html StakingExtension} in cosmjs
123
+ */
112
124
  export interface StakingAccountActions {
113
125
  /**
114
126
  * Delegate an amount to a validator. The promise settles when the delegation is complete.
@@ -190,10 +202,12 @@ export interface IcaAccount {
190
202
  /** @returns the port the ICA channel is bound to */
191
203
  getPort: () => Port;
192
204
  }
193
- export type LiquidStakingMethods = {
205
+ /** Methods on chains that support Liquid Staking */
206
+ export interface LiquidStakingMethods {
194
207
  liquidStake: (amount: AmountArg) => Promise<void>;
195
- };
196
- export type LocalAccountMethods = {
208
+ }
209
+ /** Methods supported only on Agoric chain accounts */
210
+ export interface LocalAccountMethods {
197
211
  /** deposit payment (from zoe, for example) to the account */
198
212
  deposit: (payment: Payment<'nat'>) => Promise<void>;
199
213
  /** withdraw a Payment from the account */
@@ -209,12 +223,26 @@ export type LocalAccountMethods = {
209
223
  * @param tap
210
224
  */
211
225
  monitorTransfers: (tap: TargetApp) => Promise<TargetRegistration>;
212
- };
213
- export type IBCMsgTransferOptions = {
226
+ }
227
+ /**
228
+ * Options for {@link OrchestrationAccountI} `transfer` method.
229
+ *
230
+ * @see {@link https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures ICS 20 Data Structures}
231
+ */
232
+ export interface IBCMsgTransferOptions {
214
233
  timeoutHeight?: MsgTransfer['timeoutHeight'];
215
234
  timeoutTimestamp?: MsgTransfer['timeoutTimestamp'];
216
235
  memo?: string;
217
- };
236
+ }
237
+ /**
238
+ * Cosmos-specific methods to extend `OrchestrationAccountI`, parameterized
239
+ * by `CosmosChainInfo`.
240
+ *
241
+ * In particular, if the chain info includes a staking token, {@link StakingAccountActions}
242
+ * are available.
243
+ *
244
+ * @see {OrchestrationAccountI}
245
+ */
218
246
  export type CosmosChainAccountMethods<CCI extends CosmosChainInfo> = (CCI extends {
219
247
  icaEnabled: true;
220
248
  } ? IcaAccount : {}) & CCI extends {
@@ -1 +1 @@
1
- {"version":3,"file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;;GAQG;AACH,MAAM,MAAM,yBAAyB,CAAC,GAAG,SAAS,eAAe,IAC/D,CAAC,GAAG,SAAS;IACX,UAAU,EAAE,IAAI,CAAC;CAClB,GACG,UAAU,GACV,EAAE,CAAC,GACL,GAAG,SAAS;IACZ,aAAa,EAAE,EAAE,CAAC;CACnB,GACG,qBAAqB,GACrB,EAAE,CAAC;AAET,MAAM,MAAM,gBAAgB,GAAG,CAC7B,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,KAC3B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC"}
package/src/cosmos-api.ts CHANGED
@@ -36,7 +36,7 @@ export type CosmosValidatorAddress = ChainAddress & {
36
36
  };
37
37
 
38
38
  /** Represents an IBC Connection between two chains, which can contain multiple Channels. */
39
- export type IBCConnectionInfo = {
39
+ export interface IBCConnectionInfo {
40
40
  id: IBCConnectionID; // e.g. connection-0
41
41
  client_id: string; // '07-tendermint-0'
42
42
  state: IBCConnectionState;
@@ -56,12 +56,12 @@ export type IBCConnectionInfo = {
56
56
  state: IBCChannelState;
57
57
  version: string; // e.eg. 'ics20-1'
58
58
  };
59
- };
59
+ }
60
60
 
61
61
  /**
62
62
  * https://github.com/cosmos/chain-registry/blob/master/assetlist.schema.json
63
63
  */
64
- export type CosmosAssetInfo = {
64
+ export interface CosmosAssetInfo extends Record<string, unknown> {
65
65
  base: Denom;
66
66
  name: string;
67
67
  display: string;
@@ -79,7 +79,7 @@ export type CosmosAssetInfo = {
79
79
  path: string;
80
80
  };
81
81
  }>;
82
- } & Record<string, unknown>;
82
+ }
83
83
 
84
84
  /**
85
85
  * Info for a Cosmos-based chain.
@@ -97,6 +97,12 @@ export type CosmosChainInfo = Readonly<{
97
97
  stakingTokens?: Readonly<Array<{ denom: string }>>;
98
98
  }>;
99
99
 
100
+ /**
101
+ * Queries for the staking properties of an account.
102
+ *
103
+ * @see {@link https://docs.cosmos.network/main/build/modules/staking#messages x/staking messages}
104
+ * {@link https://cosmos.github.io/cosmjs/latest/stargate/interfaces/StakingExtension.html StakingExtension} in cosmjs
105
+ */
100
106
  export interface StakingAccountQueries {
101
107
  /**
102
108
  * @returns all active delegations from the account to any validator (or [] if none)
@@ -141,6 +147,13 @@ export interface StakingAccountQueries {
141
147
  */
142
148
  getReward: (validator: CosmosValidatorAddress) => Promise<DenomAmount[]>;
143
149
  }
150
+
151
+ /**
152
+ * Transactions for doing staking operations on an individual account.
153
+ *
154
+ * @see {@link https://docs.cosmos.network/main/build/modules/staking#messages x/staking messages} and
155
+ * {@link https://cosmos.github.io/cosmjs/latest/stargate/interfaces/StakingExtension.html StakingExtension} in cosmjs
156
+ */
144
157
  export interface StakingAccountActions {
145
158
  /**
146
159
  * Delegate an amount to a validator. The promise settles when the delegation is complete.
@@ -241,11 +254,13 @@ export interface IcaAccount {
241
254
  getPort: () => Port;
242
255
  }
243
256
 
244
- export type LiquidStakingMethods = {
257
+ /** Methods on chains that support Liquid Staking */
258
+ export interface LiquidStakingMethods {
245
259
  liquidStake: (amount: AmountArg) => Promise<void>;
246
- };
260
+ }
247
261
 
248
- export type LocalAccountMethods = {
262
+ /** Methods supported only on Agoric chain accounts */
263
+ export interface LocalAccountMethods {
249
264
  /** deposit payment (from zoe, for example) to the account */
250
265
  deposit: (payment: Payment<'nat'>) => Promise<void>;
251
266
  /** withdraw a Payment from the account */
@@ -261,14 +276,28 @@ export type LocalAccountMethods = {
261
276
  * @param tap
262
277
  */
263
278
  monitorTransfers: (tap: TargetApp) => Promise<TargetRegistration>;
264
- };
279
+ }
265
280
 
266
- export type IBCMsgTransferOptions = {
281
+ /**
282
+ * Options for {@link OrchestrationAccountI} `transfer` method.
283
+ *
284
+ * @see {@link https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures ICS 20 Data Structures}
285
+ */
286
+ export interface IBCMsgTransferOptions {
267
287
  timeoutHeight?: MsgTransfer['timeoutHeight'];
268
288
  timeoutTimestamp?: MsgTransfer['timeoutTimestamp'];
269
289
  memo?: string;
270
- };
290
+ }
271
291
 
292
+ /**
293
+ * Cosmos-specific methods to extend `OrchestrationAccountI`, parameterized
294
+ * by `CosmosChainInfo`.
295
+ *
296
+ * In particular, if the chain info includes a staking token, {@link StakingAccountActions}
297
+ * are available.
298
+ *
299
+ * @see {OrchestrationAccountI}
300
+ */
272
301
  export type CosmosChainAccountMethods<CCI extends CosmosChainInfo> =
273
302
  (CCI extends {
274
303
  icaEnabled: true;
@@ -11,32 +11,21 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
11
11
  }>;
12
12
  }>>, {
13
13
  chainName: string;
14
- validator: import("@agoric/orchestration").CosmosValidatorAddress;
14
+ validator: import("../cosmos-api.js").CosmosValidatorAddress;
15
15
  }>>;
16
16
  }>;
17
17
  creatorFacet: import("@endo/exo").Guarded<{
18
18
  initChain(chainName: string, chainInfo: Readonly<{
19
19
  chainId: string;
20
- connections?: Record<string, import("@agoric/orchestration").IBCConnectionInfo>;
20
+ connections?: Record<string, import("../cosmos-api.js").IBCConnectionInfo>;
21
21
  icqEnabled?: boolean;
22
22
  stakingTokens?: Readonly<Array<{
23
23
  denom: string;
24
24
  }>>;
25
- }>, connectionInfo: import("@agoric/orchestration").IBCConnectionInfo): Promise<void>;
26
- registerAsset(denom: import("@agoric/orchestration").Denom, detail: import("@agoric/orchestration").DenomDetail): Promise<void>;
25
+ }>, connectionInfo: import("../cosmos-api.js").IBCConnectionInfo): Promise<void>;
26
+ registerAsset(denom: import("../orchestration-api.js").Denom, detail: import("../types.js").DenomDetail): Promise<void>;
27
27
  }>;
28
28
  }>;
29
- export type OrchestrationPowers = {
30
- localchain: Remote<LocalChain>;
31
- orchestrationService: Remote<CosmosInterchainService>;
32
- storageNode: Remote<StorageNode>;
33
- timerService: Remote<TimerService>;
34
- agoricNames: Remote<NameHub>;
35
- };
36
29
  export type AutoStakeItSF = typeof start;
37
- import type { LocalChain } from '@agoric/vats/src/localchain.js';
38
- import type { Remote } from '@agoric/vow';
39
- import type { CosmosInterchainService } from '@agoric/orchestration';
40
- import type { TimerService } from '@agoric/time';
41
- import type { NameHub } from '@agoric/vats';
30
+ import type { OrchestrationPowers } from '../utils/start-helper.js';
42
31
  //# sourceMappingURL=auto-stake-it.contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auto-stake-it.contract.d.ts","sourceRoot":"","sources":["auto-stake-it.contract.js"],"names":[],"mappings":"AAuFA;gBAhDiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDsB;kCAjEpC;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC1D,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;4BA8DU,OAAO,KAAK;gCA7EG,gCAAgC;4BAEpC,aAAa;6CAEI,uBAAuB;kCALlC,cAAc;6BAEnB,cAAc"}
1
+ {"version":3,"file":"auto-stake-it.contract.d.ts","sourceRoot":"","sources":["auto-stake-it.contract.js"],"names":[],"mappings":"AAwEA;gBAhDiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDsB;4BAGnC,OAAO,KAAK;yCA9DgC,0BAA0B"}
@@ -10,23 +10,8 @@ import { prepareStakingTap } from './auto-stake-it-tap-kit.js';
10
10
  import * as flows from './auto-stake-it.flows.js';
11
11
 
12
12
  /**
13
- * @import {TimerService} from '@agoric/time';
14
- * @import {LocalChain} from '@agoric/vats/src/localchain.js';
15
- * @import {NameHub} from '@agoric/vats';
16
- * @import {Remote} from '@agoric/vow';
17
13
  * @import {Zone} from '@agoric/zone';
18
- * @import {CosmosInterchainService} from '@agoric/orchestration';
19
- * @import {OrchestrationTools} from '../utils/start-helper.js';
20
- */
21
-
22
- /**
23
- * @typedef {{
24
- * localchain: Remote<LocalChain>;
25
- * orchestrationService: Remote<CosmosInterchainService>;
26
- * storageNode: Remote<StorageNode>;
27
- * timerService: Remote<TimerService>;
28
- * agoricNames: Remote<NameHub>;
29
- * }} OrchestrationPowers
14
+ * @import {OrchestrationPowers, OrchestrationTools} from '../utils/start-helper.js';
30
15
  */
31
16
 
32
17
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"basic-flows.contract.d.ts","sourceRoot":"","sources":["basic-flows.contract.js"],"names":[],"mappings":"AA8DA;gBA3CiB,UAAU;;;;;;;;;;;;;;;;;GA2CsB;2BAGnC,OAAO,KAAK;yCArDY,0BAA0B"}
1
+ {"version":3,"file":"basic-flows.contract.d.ts","sourceRoot":"","sources":["basic-flows.contract.js"],"names":[],"mappings":"AA6DA;gBA3CiB,UAAU;;;;;;;;;;;;;;;;;GA2CsB;2BAGnC,OAAO,KAAK;yCApDgC,0BAA0B"}
@@ -10,8 +10,7 @@ import * as flows from './basic-flows.flows.js';
10
10
 
11
11
  /**
12
12
  * @import {Zone} from '@agoric/zone';
13
- * @import {OrchestrationPowers} from '../utils/start-helper.js';
14
- * @import {OrchestrationTools} from '../utils/start-helper.js';
13
+ * @import {OrchestrationPowers, OrchestrationTools} from '../utils/start-helper.js';
15
14
  */
16
15
 
17
16
  /**
@@ -1,28 +1,13 @@
1
1
  /**
2
- * @import {TimerService} from '@agoric/time';
3
- * @import {LocalChain} from '@agoric/vats/src/localchain.js';
4
- * @import {NameHub} from '@agoric/vats';
5
- * @import {Remote, Vow} from '@agoric/vow';
6
2
  * @import {Zone} from '@agoric/zone';
7
- * @import {VBankAssetDetail} from '@agoric/vats/tools/board-utils.js';
8
- * @import {CosmosInterchainService} from '../exos/cosmos-interchain-service.js';
9
- * @import {OrchestrationTools} from '../utils/start-helper.js';
10
- */
11
- /**
12
- * @typedef {{
13
- * localchain: Remote<LocalChain>;
14
- * orchestrationService: Remote<CosmosInterchainService>;
15
- * storageNode: Remote<StorageNode>;
16
- * timerService: Remote<TimerService>;
17
- * agoricNames: Remote<NameHub>;
18
- * }} OrchestrationPowers
3
+ * @import {OrchestrationPowers, OrchestrationTools} from '../utils/start-helper.js';
19
4
  */
20
5
  export const SingleAmountRecord: import("@endo/patterns").Matcher;
21
6
  export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: OrchestrationPowers & {
22
7
  marshaller: Marshaller;
23
8
  }, baggage: import("@agoric/vat-data").Baggage) => Promise<{
24
9
  publicFacet: import("@endo/exo").Guarded<{
25
- makeSendInvitation(): Promise<Invitation<Vow<void>, {
10
+ makeSendInvitation(): Promise<Invitation<import("@agoric/vow").Vow<void>, {
26
11
  chainName: string;
27
12
  destAddr: string;
28
13
  }>>;
@@ -39,17 +24,5 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
39
24
  registerAsset(denom: import("../orchestration-api.js").Denom, detail: import("../types.js").DenomDetail): Promise<void>;
40
25
  }>;
41
26
  }>;
42
- export type OrchestrationPowers = {
43
- localchain: Remote<LocalChain>;
44
- orchestrationService: Remote<CosmosInterchainService>;
45
- storageNode: Remote<StorageNode>;
46
- timerService: Remote<TimerService>;
47
- agoricNames: Remote<NameHub>;
48
- };
49
- import type { Vow } from '@agoric/vow';
50
- import type { LocalChain } from '@agoric/vats/src/localchain.js';
51
- import type { Remote } from '@agoric/vow';
52
- import type { CosmosInterchainService } from '../exos/cosmos-interchain-service.js';
53
- import type { TimerService } from '@agoric/time';
54
- import type { NameHub } from '@agoric/vats';
27
+ import type { OrchestrationPowers } from '../utils/start-helper.js';
55
28
  //# sourceMappingURL=send-anywhere.contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-anywhere.contract.d.ts","sourceRoot":"","sources":["send-anywhere.contract.js"],"names":[],"mappings":"AAQA;;;;;;;;;GASG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;AAsDF;gBA9CiB,UAAU;;;;;;;;;;;;;;;;;;;GA8CsB;kCApEpC;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC1D,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;yBAd0B,aAAa;gCAFd,gCAAgC;4BAE/B,aAAa;6CAGD,sCAAsC;kCANjD,cAAc;6BAEnB,cAAc"}
1
+ {"version":3,"file":"send-anywhere.contract.d.ts","sourceRoot":"","sources":["send-anywhere.contract.js"],"names":[],"mappings":"AAQA;;;GAGG;AAEH,kEAKE;AAsDF;gBA9CiB,UAAU;;;;;;;;;;;;;;;;;;;GA8CsB;yCA9DS,0BAA0B"}
@@ -7,24 +7,8 @@ import * as flows from './send-anywhere.flows.js';
7
7
  import { prepareChainHubAdmin } from '../exos/chain-hub-admin.js';
8
8
 
9
9
  /**
10
- * @import {TimerService} from '@agoric/time';
11
- * @import {LocalChain} from '@agoric/vats/src/localchain.js';
12
- * @import {NameHub} from '@agoric/vats';
13
- * @import {Remote, Vow} from '@agoric/vow';
14
10
  * @import {Zone} from '@agoric/zone';
15
- * @import {VBankAssetDetail} from '@agoric/vats/tools/board-utils.js';
16
- * @import {CosmosInterchainService} from '../exos/cosmos-interchain-service.js';
17
- * @import {OrchestrationTools} from '../utils/start-helper.js';
18
- */
19
-
20
- /**
21
- * @typedef {{
22
- * localchain: Remote<LocalChain>;
23
- * orchestrationService: Remote<CosmosInterchainService>;
24
- * storageNode: Remote<StorageNode>;
25
- * timerService: Remote<TimerService>;
26
- * agoricNames: Remote<NameHub>;
27
- * }} OrchestrationPowers
11
+ * @import {OrchestrationPowers, OrchestrationTools} from '../utils/start-helper.js';
28
12
  */
29
13
 
30
14
  export const SingleAmountRecord = M.and(
@@ -15,7 +15,7 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: {
15
15
  import type { NameHub } from '@agoric/vats';
16
16
  import type { Remote } from '@agoric/internal';
17
17
  import type { LocalChain } from '@agoric/vats/src/localchain.js';
18
- import type { CosmosInterchainService } from '../exos/cosmos-interchain-service.js';
18
+ import type { CosmosInterchainService } from '../exos/exo-interfaces.js';
19
19
  import type { TimerService } from '@agoric/time';
20
20
  import type { ContinuingOfferResult } from '@agoric/smart-wallet/src/types.js';
21
21
  import type { Vow } from '@agoric/vow';
@@ -1 +1 @@
1
- {"version":3,"file":"staking-combinations.contract.d.ts","sourceRoot":"","sources":["staking-combinations.contract.js"],"names":[],"mappings":"AA8HA;iBArFkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;gBACpB,UAAU;kBACR,OAAO,YAAY,CAAC;;;;;;;GAgFU;6BA1GvB,cAAc;4BAEf,kBAAkB;gCAHd,gCAAgC;6CAKnB,sCAAsC;kCANjD,cAAc;2CADL,mCAAmC;yBAIrD,aAAa"}
1
+ {"version":3,"file":"staking-combinations.contract.d.ts","sourceRoot":"","sources":["staking-combinations.contract.js"],"names":[],"mappings":"AA8HA;iBArFkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;gBACpB,UAAU;kBACR,OAAO,YAAY,CAAC;;;;;;;GAgFU;6BA1GvB,cAAc;4BAEf,kBAAkB;gCAHd,gCAAgC;6CAKnB,2BAA2B;kCANtC,cAAc;2CADL,mCAAmC;yBAIrD,aAAa"}
@@ -22,7 +22,7 @@ import * as flows from './staking-combinations.flows.js';
22
22
  * @import {Vow} from '@agoric/vow';
23
23
  * @import {Remote} from '@agoric/internal';
24
24
  * @import {Zone} from '@agoric/zone';
25
- * @import {CosmosInterchainService} from '../exos/cosmos-interchain-service.js';
25
+ * @import {CosmosInterchainService} from '../exos/exo-interfaces.js';
26
26
  * @import {OrchestrationTools} from '../utils/start-helper.js';
27
27
  * @import {CosmosOrchestrationAccount} from '../exos/cosmos-orchestration-account.js';
28
28
  */
@@ -2,7 +2,7 @@
2
2
  * @import {TimerService} from '@agoric/time';
3
3
  * @import {LocalChain} from '@agoric/vats/src/localchain.js';
4
4
  * @import {Remote} from '@agoric/internal';
5
- * @import {CosmosInterchainService} from '../exos/cosmos-interchain-service.js';
5
+ * @import {CosmosInterchainService} from '../exos/exo-interfaces.js';
6
6
  * @import {NameHub} from '@agoric/vats';
7
7
  * @import {Zone} from '@agoric/zone';
8
8
  * @import {OrchestrationTools} from '../utils/start-helper.js';
@@ -31,6 +31,6 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: {
31
31
  import type { NameHub } from '@agoric/vats';
32
32
  import type { Remote } from '@agoric/internal';
33
33
  import type { LocalChain } from '@agoric/vats/src/localchain.js';
34
- import type { CosmosInterchainService } from '../exos/cosmos-interchain-service.js';
34
+ import type { CosmosInterchainService } from '../exos/exo-interfaces.js';
35
35
  import type { TimerService } from '@agoric/time';
36
36
  //# sourceMappingURL=swap.contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swap.contract.d.ts","sourceRoot":"","sources":["swap.contract.js"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AAiDtD;iBAzCkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;kBAClB,OAAO,YAAY,CAAC;gBACtB,UAAU;;;;;;;;GAoCsB;6BA3EvB,cAAc;4BAFf,kBAAkB;gCADd,gCAAgC;6CAEnB,sCAAsC;kCAHjD,cAAc"}
1
+ {"version":3,"file":"swap.contract.d.ts","sourceRoot":"","sources":["swap.contract.js"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AAiDtD;iBAzCkB,OAAO,OAAO,CAAC;gBAChB,OAAO,UAAU,CAAC;0BACR,OAAO,uBAAuB,CAAC;iBACxC,OAAO,WAAW,CAAC;kBAClB,OAAO,YAAY,CAAC;gBACtB,UAAU;;;;;;;;GAoCsB;6BA3EvB,cAAc;4BAFf,kBAAkB;gCADd,gCAAgC;6CAEnB,2BAA2B;kCAHtC,cAAc"}
@@ -8,7 +8,7 @@ import * as flows from './swap.flows.js';
8
8
  * @import {TimerService} from '@agoric/time';
9
9
  * @import {LocalChain} from '@agoric/vats/src/localchain.js';
10
10
  * @import {Remote} from '@agoric/internal';
11
- * @import {CosmosInterchainService} from '../exos/cosmos-interchain-service.js';
11
+ * @import {CosmosInterchainService} from '../exos/exo-interfaces.js';
12
12
  * @import {NameHub} from '@agoric/vats';
13
13
  * @import {Zone} from '@agoric/zone';
14
14
  * @import {OrchestrationTools} from '../utils/start-helper.js';