@agoric/orchestration 0.1.1-dev-62c73f5.0 → 0.1.1-dev-0cfea88.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 (57) hide show
  1. package/package.json +16 -16
  2. package/src/chain-info.d.ts +3 -11
  3. package/src/chain-info.d.ts.map +1 -1
  4. package/src/examples/sendAnywhere.contract.d.ts +7 -40
  5. package/src/examples/sendAnywhere.contract.d.ts.map +1 -1
  6. package/src/examples/stakeBld.contract.d.ts +14 -41
  7. package/src/examples/stakeBld.contract.d.ts.map +1 -1
  8. package/src/examples/stakeIca.contract.d.ts +5 -10
  9. package/src/examples/stakeIca.contract.d.ts.map +1 -1
  10. package/src/examples/swapExample.contract.d.ts +5 -33
  11. package/src/examples/swapExample.contract.d.ts.map +1 -1
  12. package/src/examples/unbondExample.contract.d.ts +5 -33
  13. package/src/examples/unbondExample.contract.d.ts.map +1 -1
  14. package/src/exos/chain-account-kit.d.ts +9 -10
  15. package/src/exos/chain-account-kit.d.ts.map +1 -1
  16. package/src/exos/chain-hub.d.ts +5 -2330
  17. package/src/exos/chain-hub.d.ts.map +1 -1
  18. package/src/exos/cosmos-orchestration-account.d.ts +11 -26
  19. package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
  20. package/src/exos/icq-connection-kit.d.ts +7 -9
  21. package/src/exos/icq-connection-kit.d.ts.map +1 -1
  22. package/src/exos/local-chain-facade.d.ts +19 -125
  23. package/src/exos/local-chain-facade.d.ts.map +1 -1
  24. package/src/exos/local-orchestration-account.d.ts +18 -64
  25. package/src/exos/local-orchestration-account.d.ts.map +1 -1
  26. package/src/exos/orchestrator.d.ts +70 -2440
  27. package/src/exos/orchestrator.d.ts.map +1 -1
  28. package/src/exos/orchestrator.js +74 -27
  29. package/src/exos/remote-chain-facade.d.ts +16 -66
  30. package/src/exos/remote-chain-facade.d.ts.map +1 -1
  31. package/src/facade.d.ts +18 -188
  32. package/src/facade.d.ts.map +1 -1
  33. package/src/facade.js +7 -3
  34. package/src/proposals/orchestration-proposal.d.ts +8 -619
  35. package/src/proposals/orchestration-proposal.d.ts.map +1 -1
  36. package/src/proposals/start-stakeAtom.d.ts +3 -15
  37. package/src/proposals/start-stakeAtom.d.ts.map +1 -1
  38. package/src/proposals/start-stakeBld.d.ts +15 -48
  39. package/src/proposals/start-stakeBld.d.ts.map +1 -1
  40. package/src/proposals/start-stakeOsmo.d.ts +3 -15
  41. package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
  42. package/src/service.d.ts +17 -73
  43. package/src/service.d.ts.map +1 -1
  44. package/src/utils/address.d.ts +8 -5
  45. package/src/utils/address.d.ts.map +1 -1
  46. package/src/utils/cosmos.d.ts.map +1 -1
  47. package/src/utils/orc.d.ts.map +1 -1
  48. package/src/utils/packet.d.ts +3 -3
  49. package/src/utils/packet.d.ts.map +1 -1
  50. package/src/utils/start-helper.d.ts +8 -42
  51. package/src/utils/start-helper.d.ts.map +1 -1
  52. package/src/utils/start-helper.js +1 -0
  53. package/src/utils/time.d.ts +5 -1
  54. package/src/utils/time.d.ts.map +1 -1
  55. package/src/utils/time.js +5 -1
  56. package/src/vat-orchestration.d.ts +14 -22
  57. package/src/vat-orchestration.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"chain-hub.d.ts","sourceRoot":"","sources":["chain-hub.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AAEH;;;;;GAKG;AAEH,wCAAwC;AACxC,gCAAiC;AACjC,kCAAkC;AAClC,gDAAiD;AAqB1C,wCAHI,MAAM,YACN,MAAM,UAUhB;AAqCM;IAaH;;;;;;;;;;;OAWG;wBAFQ,MAAM;;;;;;;;IAMjB;;;;OAIG;iBADkC,CAAC,4BAAD,CAAC,AAD1B,GACC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;IAiBxC;;;;OAIG;iCAHQ,MAAM,YACN,MAAM;IAQjB;;;;OAIG;8BAHQ,MAAM,GAAG;QAAE,OAAO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iCAHQ,MAAM,YACN,MAAM,kBACN,iBAAiB;IAO5B;;;;OAIG;8BAHQ,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,UAC5B,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAC1B,OAAO,CAAC,iBAAiB,CAAC;GAqB1C;AASM,gDALI,IAAI,CAAC,OAAO,cAAc,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,QACpD,MAAM,aACN,eAAe,QACf,CAAC,GAAG,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,iBAgCzC;AAYM,uCATe,EAAE,SAAX,MAAQ,EACC,EAAE,SAAX,MAAQ,YACV,QAAQ,cACR,EAAE,cACF,EAAE,GACA,OAAO,CACnB,CAAK,eAAe,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,EAAE,CAAC,EAAE,iBAAiB,CAAC,CAC9D,CAcH;4BA5NqB,CAAC,SAAV,MAAQ,IACR,CAAC,SAAS,MAAM,WAAW,GACjC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,GACnC,SAAS;uBA2JF,UAAU,CAAC,OAAO,YAAY,CAAC;6BAtKnB,cAAc;4BAGf,kBAAkB;0BACpB,cAAc;qCAHgB,kBAAkB;uCAAlB,kBAAkB;iCAC9B,kBAAkB;+BAAlB,kBAAkB"}
@@ -29,19 +29,10 @@ export const IcaAccountHolderI: import("@endo/patterns").InterfaceGuard<{
29
29
  transferSteps: import("@endo/patterns").MethodGuard;
30
30
  deposit: import("@endo/patterns").MethodGuard;
31
31
  }>;
32
- export function prepareCosmosOrchestrationAccountKit(zone: Zone, makeRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => RecorderKit<T>, { when, watch }: {
33
- when: <T_1, TResult1 = import("@agoric/vow").EUnwrap<T_1>, TResult2 = never>(specimenP: T_1, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T_1>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
34
- watch: <T_2 = any, TResult1_1 = T_2, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_2 | import("@agoric/vow").Vow<T_2>>, watcher?: import("@agoric/vow").Watcher<T_2, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
35
- makeVowKit: <T_3>() => import("@agoric/vow").VowKit<T_3>;
36
- allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
37
- }, zcf: ZCF): (chainAddress: ChainAddress, bondDenom: string, io: {
32
+ export function prepareCosmosOrchestrationAccountKit(zone: Zone, makeRecorderKit: MakeRecorderKit, { when, watch }: VowTools, zcf: ZCF): (chainAddress: ChainAddress, bondDenom: string, io: {
38
33
  account: IcaAccount;
39
- storageNode: Remote<globalThis.StorageNode>;
40
- icqConnection: import("@endo/exo").Guarded<{
41
- getLocalAddress(): `/ibc-port/${string}`;
42
- getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
43
- query(msgs: JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<JsonSafe<ResponseQuery>[]>;
44
- }> | undefined;
34
+ storageNode: Remote<StorageNode>;
35
+ icqConnection: ICQConnection | undefined;
45
36
  timer: Remote<TimerService>;
46
37
  }) => import("@endo/exo").GuardedKit<{
47
38
  helper: {
@@ -181,12 +172,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, makeRecorderKit
181
172
  undelegate(delegations: Omit<Delegation, "delegatorAddress">[]): Promise<undefined>;
182
173
  };
183
174
  }>;
184
- export function prepareCosmosOrchestrationAccount(zone: Zone, makeRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => RecorderKit<T>, vowTools: {
185
- when: <T_1, TResult1 = import("@agoric/vow").EUnwrap<T_1>, TResult2 = never>(specimenP: T_1, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T_1>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
186
- watch: <T_2 = any, TResult1_1 = T_2, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_2 | import("@agoric/vow").Vow<T_2>>, watcher?: import("@agoric/vow").Watcher<T_2, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
187
- makeVowKit: <T_3>() => import("@agoric/vow").VowKit<T_3>;
188
- allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
189
- }, zcf: ZCF): (...args: Parameters<ReturnType<typeof prepareCosmosOrchestrationAccountKit>>) => CosmosOrchestrationAccountKit["holder"];
175
+ export function prepareCosmosOrchestrationAccount(zone: Zone, makeRecorderKit: MakeRecorderKit, vowTools: VowTools, zcf: ZCF): (...args: Parameters<ReturnType<typeof prepareCosmosOrchestrationAccountKit>>) => CosmosOrchestrationAccountKit["holder"];
190
176
  export type ComosOrchestrationAccountNotification = {
191
177
  chainAddress: ChainAddress;
192
178
  };
@@ -194,28 +180,27 @@ export type State = {
194
180
  topicKit: RecorderKit<ComosOrchestrationAccountNotification>;
195
181
  account: IcaAccount;
196
182
  chainAddress: ChainAddress;
197
- icqConnection: import("@endo/exo").Guarded<{
198
- getLocalAddress(): `/ibc-port/${string}`;
199
- getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
200
- query(msgs: JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<JsonSafe<ResponseQuery>[]>;
201
- }> | undefined;
183
+ icqConnection: ICQConnection | undefined;
202
184
  bondDenom: string;
203
185
  timer: Remote<TimerService>;
204
186
  };
205
187
  export type CosmosOrchestrationAccountKit = ReturnType<ReturnType<typeof prepareCosmosOrchestrationAccountKit>>;
206
188
  export type CosmosOrchestrationAccount = CosmosOrchestrationAccountKit["holder"];
207
189
  import type { Zone } from '@agoric/zone';
208
- import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
190
+ import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
191
+ import type { VowTools } from '@agoric/vow';
209
192
  import type { ChainAddress } from '../types.js';
210
193
  import type { IcaAccount } from '../types.js';
211
194
  import type { Remote } from '@agoric/internal';
212
- import type { JsonSafe } from '@agoric/cosmic-proto';
213
- import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
195
+ import type { ICQConnection } from '../types.js';
214
196
  import type { TimerService } from '@agoric/time';
215
197
  import type { AmountArg } from '../types.js';
216
198
  import type { Coin } from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
199
+ import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
200
+ import type { JsonSafe } from '@agoric/cosmic-proto';
217
201
  import type { DenomAmount } from '../types.js';
218
202
  import type { CosmosValidatorAddress } from '../types.js';
219
203
  import type { Delegation } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
220
204
  import type { DenomArg } from '../types.js';
205
+ import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
221
206
  //# sourceMappingURL=cosmos-orchestration-account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cosmos-orchestration-account.d.ts","sourceRoot":"","sources":["cosmos-orchestration-account.js"],"names":[],"mapp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AFQ,sBAAsB,GACpB,OAAO,CAAC,WAAW,EAAE,CAAC;QAenC;;;WAGG;0BAFQ,QAAQ,GACN,OAAO,CAAC,WAAW,CAAC;;;;;QAwCjC,kEAAkE;gCAAtD,IAAI,CAAC,UAAU,EAAE,kBAAkB,CAAC,EAAE;;GA2BzD;AAmBM,wDAVI,IAAI,mBACJ,eAAe,YACf,QAAQ,OACR,GAAG,GACD,CACZ,GAAO,IAAI,EAAE,UAAU,CACvB,UAAgB,CAAC,OAAO,oCAAoC,CAAC,CACxD,KACE,6BAA6B,CAAC,QAAQ,CAAC,CAe9C;;kBA1da,YAAY;;oBAIb;IACZ,QAAY,EAAE,YAAY,qCAAqC,CAAC,CAAC;IACjE,OAAW,EAAE,UAAU,CAAC;IACxB,YAAgB,EAAE,YAAY,CAAC;IAC/B,aAAiB,EAAE,aAAa,GAAG,SAAS,CAAC;IAC7C,SAAa,EAAE,MAAM,CAAC;IACtB,KAAS,EAAE,OAAO,YAAY,CAAC,CAAC;CAC7B;4CAkbS,UAAU,CACtB,UAAc,CAAC,OAAO,oCAAoC,CAAC,CACxD;yCA4BU,6BAA6B,CAAC,QAAQ,CAAC;0BAre9B,cAAc;qCANU,6CAA6C;8BAKjE,aAAa;kCAN0H,aAAa;gCAAb,aAAa;4BAItJ,kBAAkB;mCAJuH,aAAa;kCAKhJ,cAAc;+BALqH,aAAa;0BAExJ,kDAAkD;mCAMzC,+CAA+C;8BACpD,sBAAsB;iCATiH,aAAa;4CAAb,aAAa;gCAGlJ,wDAAwD;8BAH6E,aAAa;iCAChI,6CAA6C"}
@@ -4,12 +4,7 @@ export const ICQConnectionI: import("@endo/patterns").InterfaceGuard<{
4
4
  getRemoteAddress: import("@endo/patterns").MethodGuard;
5
5
  query: import("@endo/patterns").MethodGuard;
6
6
  }>;
7
- export function prepareICQConnectionKit(zone: Zone, { watch, when }: {
8
- when: <T, TResult1 = import("@agoric/vow").EUnwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
9
- watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
10
- makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
11
- allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
12
- }): (port: Port) => import("@endo/exo").GuardedKit<{
7
+ export function prepareICQConnectionKit(zone: Zone, { watch, when }: VowTools): (port: Port) => import("@endo/exo").GuardedKit<{
13
8
  connection: {
14
9
  getLocalAddress(): `/ibc-port/${string}`;
15
10
  getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
@@ -30,7 +25,7 @@ export function prepareICQConnectionKit(zone: Zone, { watch, when }: {
30
25
  * @param {LocalIbcAddress} localAddr
31
26
  * @param {RemoteIbcAddress} remoteAddr
32
27
  */
33
- onOpen(connection: Remote<Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
28
+ onOpen(connection: Remote<Connection>, localAddr: LocalIbcAddress, remoteAddr: RemoteIbcAddress): Promise<void>;
34
29
  onClose(_connection: any, reason: any): Promise<void>;
35
30
  onReceive(connection: any, bytes: any): Promise<string>;
36
31
  };
@@ -38,16 +33,19 @@ export function prepareICQConnectionKit(zone: Zone, { watch, when }: {
38
33
  export type ICQConnectionKitState = {
39
34
  port: Port;
40
35
  connection: Remote<Connection> | undefined;
41
- localAddress: `/ibc-port/${string}` | undefined;
42
- remoteAddress: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}` | undefined;
36
+ localAddress: LocalIbcAddress | undefined;
37
+ remoteAddress: RemoteIbcAddress | undefined;
43
38
  };
44
39
  export type ICQConnectionKit = ReturnType<ReturnType<typeof prepareICQConnectionKit>>;
45
40
  export type ICQConnection = ICQConnectionKit["connection"];
46
41
  import type { Zone } from '@agoric/base-zone';
42
+ import type { VowTools } from '@agoric/vow';
47
43
  import type { Port } from '@agoric/network';
48
44
  import type { RequestQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
49
45
  import type { JsonSafe } from '@agoric/cosmic-proto';
50
46
  import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
51
47
  import type { Connection } from '@agoric/network';
52
48
  import type { Remote } from '@agoric/vow';
49
+ import type { LocalIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
50
+ import type { RemoteIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
53
51
  //# sourceMappingURL=icq-connection-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"icq-connection-kit.d.ts","sourceRoot":"","sources":["icq-connection-kit.js"],"names":[],"mappings":"AAoBA,2DAGE;AAEF;;;;GAIG;AA2BI;wFA7CqC,CAAC;;;oBAW7B,SAAS;;;;;QAoEjB;;;;WAIG;;;;QAeH,wDAAwD;yBAA5C,MAAM;;;QAMlB;;;;WAIG;;;;;GAgBR;;;;;;;+BAEW,UAAU,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;4BACtD,gBAAgB,CAAC,YAAY,CAAC;0BAjIrB,mBAAmB;0BACP,iBAAiB;kCAGN,+CAA+C;8BADlE,sBAAsB;mCACH,+CAA+C;gCAH1D,iBAAiB;4BACjB,aAAa"}
1
+ {"version":3,"file":"icq-connection-kit.d.ts","sourceRoot":"","sources":["icq-connection-kit.js"],"names":[],"mappings":"AAoBA,2DAGE;AAEF;;;;GAIG;AA2BI,8CAHI,IAAI,mBACJ,QAAQ;;;;QAoCX;;;;WAIG;oBAHQ,SAAS,YAAY,CAAC,EAAE,GACtB,OAAO,CAAC,SAAS,aAAa,CAAC,EAAE,CAAC;;;QAiB/C,wDAAwD;yBAA5C,MAAM;;;QAMlB;;;;WAIG;2BAHQ,OAAO,UAAU,CAAC,aAClB,eAAe,cACf,gBAAgB;;;;GAiBhC;oCAvGU;IACZ,IAAQ,EAAE,IAAI,CAAC;IACf,UAAc,EAAE,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IAC/C,YAAgB,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,aAAiB,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC7C;+BAoGU,UAAU,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;4BACtD,gBAAgB,CAAC,YAAY,CAAC;0BAjIrB,mBAAmB;8BAEP,aAAa;0BADb,iBAAiB;kCAGN,+CAA+C;8BADlE,sBAAsB;mCACH,+CAA+C;gCAH1D,iBAAiB;4BACjB,aAAa;qCAGI,iCAAiC;sCAAjC,iCAAiC"}
@@ -1,142 +1,36 @@
1
1
  export function prepareLocalChainFacade(zone: Zone, { makeLocalOrchestrationAccountKit, localchain, storageNode }: {
2
- makeLocalOrchestrationAccountKit: (args_0: {
3
- account: import("@endo/exo").Guarded<{
4
- getAddress(): string;
5
- getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
6
- deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
7
- withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
8
- executeTx<MT extends {
9
- '@type': string;
10
- }[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
11
- monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
12
- }>;
13
- address: import("../orchestration-api.js").ChainAddress;
14
- storageNode: Remote<globalThis.StorageNode>;
15
- }) => import("@endo/exo").GuardedKit<{
16
- invitationMakers: {
17
- Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<Record<unknown, unknown>, undefined>>;
18
- Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Invitation<void | import("@agoric/time").TimestampRecord | import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>, undefined>>;
19
- CloseAccount(): never;
20
- };
21
- undelegateWatcher: {
22
- onFulfilled(response: [import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgUndelegateResponse & {
23
- '@type': "/cosmos.staking.v1beta1.MsgUndelegateResponse";
24
- }]): Promise<import("@agoric/time").TimestampRecord>;
25
- };
26
- getChainInfoWatcher: {
27
- onFulfilled(agoricChainInfo: ChainInfo, { destination }: {
28
- destination: import("../orchestration-api.js").ChainAddress;
29
- }): Promise<IBCConnectionInfo>;
30
- };
31
- getTimeoutTimestampWatcher: {
32
- onFulfilled(timeoutTimestamp: bigint, { opts }: {
33
- opts: import("../cosmos-api.js").IBCMsgTransferOptions;
34
- }): bigint;
35
- };
36
- transferWatcher: {
37
- onFulfilled([{ transferChannel }, timeoutTimestamp]: [{
38
- transferChannel: {
39
- portId: string;
40
- channelId: `channel-${number}`;
41
- counterPartyPortId: string;
42
- counterPartyChannelId: `channel-${number}`;
43
- ordering: import("@agoric/cosmic-proto/ibc/core/channel/v1/channel.js").Order;
44
- state: import("@agoric/cosmic-proto/ibc/core/channel/v1/channel.js").State;
45
- version: string;
46
- };
47
- }, bigint], { opts, amount, destination }: {
48
- destination: import("../orchestration-api.js").ChainAddress;
49
- opts: import("../cosmos-api.js").IBCMsgTransferOptions;
50
- amount: import("../orchestration-api.js").DenomAmount;
51
- }): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js").MsgTransferResponse & {
52
- '@type': "/ibc.applications.transfer.v1.MsgTransferResponse";
53
- }>[]>;
54
- };
55
- extractFirstResultWatcher: {
56
- onFulfilled(results: Record<unknown, unknown>[]): Record<unknown, unknown>;
57
- };
58
- returnVoidWatcher: {
59
- onFulfilled(results: Record<unknown, unknown>[]): undefined;
60
- };
61
- holder: {
62
- getBalance(denom: DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
63
- getBalances(): never;
64
- getPublicTopics(): {
65
- account: {
66
- description: string;
67
- subscriber: globalThis.Subscriber<import("./local-orchestration-account.js").LocalChainAccountNotification>;
68
- storagePath: Promise<string>;
69
- };
70
- };
71
- delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
72
- undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
73
- deposit(payment: globalThis.Payment<"nat">): Promise<void>;
74
- withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
75
- executeTx<MT extends {
76
- '@type': string;
77
- }[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
78
- getAddress(): import("../orchestration-api.js").ChainAddress;
79
- send(toAccount: any, amount: any): Promise<void>;
80
- transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
81
- transferSteps(amount: AmountArg, msg: TransferMsg): Promise<void>;
82
- };
83
- }>;
84
- orchestration: Remote<import("@endo/exo").Guarded<{
85
- makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("../cosmos-api.js").IcaAccount>;
86
- provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
87
- getLocalAddress(): `/ibc-port/${string}`;
88
- getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
89
- query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
90
- }>>;
91
- }>>;
92
- storageNode: Remote<globalThis.StorageNode>;
2
+ makeLocalOrchestrationAccountKit: MakeLocalOrchestrationAccountKit;
3
+ orchestration: Remote<OrchestrationService>;
4
+ storageNode: Remote<StorageNode>;
93
5
  timer: Remote<TimerService>;
94
- localchain: Remote<import("@endo/exo").Guarded<{
95
- makeAccount(): import("@agoric/vow").PromiseVow<import("@endo/exo").Guarded<{
96
- getAddress(): string;
97
- getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
98
- deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
99
- withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
100
- executeTx<MT extends {
101
- '@type': string;
102
- }[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
103
- monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
104
- }>>;
105
- query<T extends {
106
- '@type': string;
107
- } = {
108
- '@type': string;
109
- }>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
110
- queryMany<RT extends {
111
- '@type': string;
112
- }[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
113
- error?: string | undefined;
114
- reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
115
- }>; }>;
116
- }>>;
6
+ localchain: Remote<LocalChain>;
117
7
  }): (localChainInfo: Readonly<{
118
8
  chainId: string;
119
- connections?: Record<string, IBCConnectionInfo> | undefined;
120
- icqEnabled?: boolean | undefined;
121
- stakingTokens?: readonly {
9
+ connections?: Record<string, IBCConnectionInfo>;
10
+ icqEnabled?: boolean;
11
+ stakingTokens?: Readonly<Array<{
122
12
  denom: string;
123
- }[] | undefined;
13
+ }>>;
124
14
  }>) => import("@endo/exo").Guarded<{
125
15
  getChainInfo(): Promise<Readonly<{
126
16
  chainId: string;
127
- connections?: Record<string, IBCConnectionInfo> | undefined;
128
- icqEnabled?: boolean | undefined;
129
- stakingTokens?: readonly {
17
+ connections?: Record<string, IBCConnectionInfo>;
18
+ icqEnabled?: boolean;
19
+ stakingTokens?: Readonly<Array<{
130
20
  denom: string;
131
- }[] | undefined;
21
+ }>>;
132
22
  }>>;
133
23
  /** @returns {Promise<OrchestrationAccount<ChainInfo>>} */
134
- makeAccount(): Promise<import("../orchestration-api.js").OrchestrationAccountI>;
24
+ makeAccount(): Promise<OrchestrationAccount<ChainInfo>>;
135
25
  }>;
136
26
  export type MakeLocalChainFacade = ReturnType<typeof prepareLocalChainFacade>;
137
27
  import type { Zone } from '@agoric/base-zone';
28
+ import type { MakeLocalOrchestrationAccountKit } from './local-orchestration-account.js';
29
+ import type { OrchestrationService } from '../service.js';
138
30
  import type { Remote } from '@agoric/internal';
139
- import type { ChainInfo } from '../types.js';
140
- import type { IBCConnectionInfo } from '../types.js';
141
31
  import type { TimerService } from '@agoric/time';
32
+ import type { LocalChain } from '@agoric/vats/src/localchain.js';
33
+ import type { IBCConnectionInfo } from '../types.js';
34
+ import type { ChainInfo } from '../types.js';
35
+ import type { OrchestrationAccount } from '../types.js';
142
36
  //# sourceMappingURL=local-chain-facade.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"AAyBO;;;;8BA0C4mC,MAAM,KAAK,CAAC;6BAA6gB,QAAQ,KAAK,CAAC,mBAA6B,OAAO;6BAAwjB,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;;;;2DAA2H,OAAO,KAAK,CAAC;6DAAid,OAAO,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAgkG,wBAAwB,EAAE;;;iCAAsZ,wBAAwB,EAAE;;;8BAAngJ,QAAS;;;;;;;;;2DAAmwL,OAAO,KAAK,CAAC;6DAAksB,OAAO,KAAK,CAAC;;6BAAjyN,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;kCAA46B,SAAU,OAAM,WAAY;;;;;;;;;;;;;;;;8BAAvxF,MAAM,KAAK,CAAC;6BAA6gB,QAAQ,KAAK,CAAC,mBAA6B,OAAO;6BAAwjB,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;;;;oBAAqjG,CAAC;;;uBAA6lB,EAAE;;;;;;;;;;;;;;;;;;;;;IAtBjlN,0DAA0D;;GAmB7D;mCAEW,UAAU,CAAC,OAAO,uBAAuB,CAAC;0BA5DjC,mBAAmB;4BAEjB,kBAAkB;+BAI2C,aAAa;uCAAb,aAAa;kCALpE,cAAc"}
1
+ {"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"AAyBO,8CATI,IAAI,iEACJ;IACV,gCAAoC,EAAE,gCAAgC,CAAC;IACvE,aAAiB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IAChD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,KAAS,EAAE,OAAO,YAAY,CAAC,CAAC;IAChC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;CAChC;;;;;;;;;;;;;;;;IAsBE,0DAA0D;mBAA5C,OAAO,CAAC,qBAAqB,SAAS,CAAC,CAAC;GAmBzD;mCAEW,UAAU,CAAC,OAAO,uBAAuB,CAAC;0BA5DjC,mBAAmB;sDAKS,kCAAkC;0CAD9C,eAAe;4BAF7B,kBAAkB;kCADZ,cAAc;gCAEhB,gCAAgC;uCAGyB,aAAa;+BAAb,aAAa;0CAAb,aAAa"}
@@ -1,37 +1,7 @@
1
- export function prepareLocalOrchestrationAccountKit(zone: Zone, makeRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => RecorderKit<T>, zcf: ZCF, timerService: Remote<TimerService>, { watch, when, allVows }: {
2
- when: <T_1, TResult1 = import("@agoric/vow").EUnwrap<T_1>, TResult2 = never>(specimenP: T_1, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T_1>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
3
- watch: <T_2 = any, TResult1_1 = T_2, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_2 | import("@agoric/vow").Vow<T_2>>, watcher?: import("@agoric/vow").Watcher<T_2, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
4
- makeVowKit: <T_3>() => import("@agoric/vow").VowKit<T_3>;
5
- allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
6
- }, chainHub: import("@endo/exo").Guarded<{
7
- registerChain(name: string, chainInfo: Readonly<{
8
- chainId: string;
9
- connections?: Record<string, IBCConnectionInfo> | undefined;
10
- icqEnabled?: boolean | undefined;
11
- stakingTokens?: readonly {
12
- denom: string;
13
- }[] | undefined;
14
- }>): void;
15
- getChainInfo<K extends string>(chainName: K): Promise<import("./chain-hub.js").ActualChainInfo<K>>;
16
- registerConnection(chainId1: string, chainId2: string, connectionInfo: IBCConnectionInfo): void;
17
- getConnectionInfo(chain1: string | {
18
- chainId: string;
19
- }, chain2: string | {
20
- chainId: string;
21
- }): Promise<IBCConnectionInfo>;
22
- }>): (args_0: {
23
- account: import("@endo/exo").Guarded<{
24
- getAddress(): string;
25
- getBalance(brand: Brand<"nat">): PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
26
- deposit(payment: Payment<"nat">, optAmountShape?: Pattern): PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
27
- withdraw(amount: Amount<"nat">): PromiseVow<globalThis.Payment<"nat">>;
28
- executeTx<MT extends {
29
- '@type': string;
30
- }[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K_1]>>; }>;
31
- monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
32
- }>;
1
+ export function prepareLocalOrchestrationAccountKit(zone: Zone, makeRecorderKit: MakeRecorderKit, zcf: ZCF, timerService: Remote<TimerService>, { watch, when, allVows }: VowTools, chainHub: ChainHub): (args_0: {
2
+ account: LocalChainAccount;
33
3
  address: ChainAddress;
34
- storageNode: Remote<globalThis.StorageNode>;
4
+ storageNode: Remote<StorageNode>;
35
5
  }) => import("@endo/exo").GuardedKit<{
36
6
  invitationMakers: {
37
7
  /**
@@ -52,9 +22,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, makeRecorderKit:
52
22
  * TypedJson<'/cosmos.staking.v1beta1.MsgUndelegateResponse'>,
53
23
  * ]} response
54
24
  */
55
- onFulfilled(response: [import("@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js").MsgUndelegateResponse & {
56
- '@type': "/cosmos.staking.v1beta1.MsgUndelegateResponse";
57
- }]): Promise<TimestampRecord>;
25
+ onFulfilled(response: [TypedJson<"/cosmos.staking.v1beta1.MsgUndelegateResponse">]): Promise<TimestampRecord>;
58
26
  };
59
27
  getChainInfoWatcher: {
60
28
  /**
@@ -87,15 +55,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, makeRecorderKit:
87
55
  * }} ctx
88
56
  */
89
57
  onFulfilled([{ transferChannel }, timeoutTimestamp]: [{
90
- transferChannel: {
91
- portId: string;
92
- channelId: `channel-${number}`;
93
- counterPartyPortId: string;
94
- counterPartyChannelId: `channel-${number}`;
95
- ordering: import("@agoric/cosmic-proto/ibc/core/channel/v1/channel.js").Order;
96
- state: import("@agoric/cosmic-proto/ibc/core/channel/v1/channel.js").State;
97
- version: string;
98
- };
58
+ transferChannel: IBCConnectionInfo["transferChannel"];
99
59
  }, bigint], { opts, amount, destination }: {
100
60
  destination: ChainAddress;
101
61
  opts: IBCMsgTransferOptions;
@@ -126,7 +86,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, makeRecorderKit:
126
86
  };
127
87
  holder: {
128
88
  /** @type {OrchestrationAccount<any>['getBalance']} */
129
- getBalance(denom: DenomArg): Promise<DenomAmount>;
89
+ getBalance(denom: import("@agoric/orchestration").DenomArg): Promise<DenomAmount>;
130
90
  getBalances(): never;
131
91
  getPublicTopics(): {
132
92
  account: {
@@ -154,11 +114,9 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, makeRecorderKit:
154
114
  /** @type {OrchestrationAccount<any>['deposit']} */
155
115
  deposit(payment: globalThis.Payment<"nat">): Promise<void>;
156
116
  /** @type {LocalChainAccount['withdraw']} */
157
- withdraw(amount: Amount<"nat">): PromiseVow<globalThis.Payment<"nat">>;
117
+ withdraw(amount: Amount<"nat">): PromiseVow<Payment<"nat">>;
158
118
  /** @type {LocalChainAccount['executeTx']} */
159
- executeTx<MT extends {
160
- '@type': string;
161
- }[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K_1]>>; }>;
119
+ executeTx<MT extends TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
162
120
  /** @returns {ChainAddress} */
163
121
  getAddress(): ChainAddress;
164
122
  send(toAccount: any, amount: any): Promise<void>;
@@ -173,7 +131,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, makeRecorderKit:
173
131
  */
174
132
  transfer(amount: AmountArg, destination: ChainAddress, opts?: IBCMsgTransferOptions | undefined): Promise<void>;
175
133
  /** @type {OrchestrationAccount<any>['transferSteps']} */
176
- transferSteps(amount: AmountArg, msg: TransferMsg): Promise<void>;
134
+ transferSteps(amount: AmountArg, msg: import("@agoric/orchestration").TransferMsg): Promise<void>;
177
135
  };
178
136
  }>;
179
137
  export type LocalChainAccountNotification = {
@@ -181,30 +139,26 @@ export type LocalChainAccountNotification = {
181
139
  };
182
140
  export type State = {
183
141
  topicKit: RecorderKit<LocalChainAccountNotification>;
184
- account: import("@endo/exo").Guarded<{
185
- getAddress(): string;
186
- getBalance(brand: Brand<"nat">): PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
187
- deposit(payment: Payment<"nat">, optAmountShape?: Pattern): PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
188
- withdraw(amount: Amount<"nat">): PromiseVow<globalThis.Payment<"nat">>;
189
- executeTx<MT extends {
190
- '@type': string;
191
- }[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
192
- monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
193
- }>;
142
+ account: LocalChainAccount;
194
143
  address: ChainAddress;
195
144
  };
196
145
  export type MakeLocalOrchestrationAccountKit = ReturnType<typeof prepareLocalOrchestrationAccountKit>;
197
146
  export type LocalOrchestrationAccountKit = ReturnType<MakeLocalOrchestrationAccountKit>;
198
147
  import type { Zone } from '@agoric/zone';
199
- import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
148
+ import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
200
149
  import type { TimerService } from '@agoric/time';
201
150
  import type { Remote } from '@agoric/internal';
202
- import type { IBCConnectionInfo } from '@agoric/orchestration';
203
- import type { PromiseVow } from '@agoric/vow';
151
+ import type { VowTools } from '@agoric/vow';
152
+ import type { ChainHub } from './chain-hub.js';
153
+ import type { LocalChainAccount } from '@agoric/vats/src/localchain.js';
204
154
  import type { ChainAddress } from '@agoric/orchestration';
205
155
  import type { TimestampRecord } from '@agoric/time';
156
+ import type { TypedJson } from '@agoric/cosmic-proto';
206
157
  import type { ChainInfo } from '@agoric/orchestration';
158
+ import type { IBCConnectionInfo } from '@agoric/orchestration';
207
159
  import type { IBCMsgTransferOptions } from '@agoric/orchestration';
208
160
  import type { DenomAmount } from '@agoric/orchestration';
161
+ import type { PromiseVow } from '@agoric/vow';
209
162
  import type { AmountArg } from '@agoric/orchestration';
163
+ import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
210
164
  //# sourceMappingURL=local-orchestration-account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-orchestration-account.d.ts","sourceRoot":"","sources":["local-or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