@agoric/orchestration 0.1.1-dev-2f0f355.0.2f0f355 → 0.1.1-dev-aa6629d.0.aa6629d

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 (42) hide show
  1. package/package.json +17 -16
  2. package/src/examples/stake-bld.contract.d.ts +1 -0
  3. package/src/examples/stake-bld.contract.d.ts.map +1 -1
  4. package/src/examples/stake-bld.contract.js +6 -0
  5. package/src/examples/stake-ica.contract.d.ts +1 -0
  6. package/src/examples/stake-ica.contract.d.ts.map +1 -1
  7. package/src/examples/stake-ica.contract.js +9 -0
  8. package/src/exos/cosmos-orchestration-account.d.ts +45 -9
  9. package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
  10. package/src/exos/cosmos-orchestration-account.js +184 -10
  11. package/src/exos/ibc-packet.d.ts.map +1 -1
  12. package/src/exos/ibc-packet.js +20 -0
  13. package/src/exos/local-chain-facade.d.ts +36 -0
  14. package/src/exos/local-chain-facade.d.ts.map +1 -1
  15. package/src/exos/local-orchestration-account.d.ts +5 -2
  16. package/src/exos/local-orchestration-account.d.ts.map +1 -1
  17. package/src/exos/local-orchestration-account.js +46 -3
  18. package/src/exos/orchestrator.d.ts +287 -612
  19. package/src/exos/orchestrator.d.ts.map +1 -1
  20. package/src/exos/packet-tools.d.ts +8 -0
  21. package/src/exos/packet-tools.d.ts.map +1 -1
  22. package/src/exos/packet-tools.js +5 -0
  23. package/src/exos/portfolio-holder-kit.d.ts +6 -0
  24. package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
  25. package/src/exos/remote-chain-facade.d.ts +36 -0
  26. package/src/exos/remote-chain-facade.d.ts.map +1 -1
  27. package/src/orchestration-api.d.ts +7 -2
  28. package/src/orchestration-api.d.ts.map +1 -1
  29. package/src/orchestration-api.ts +8 -1
  30. package/src/typeGuards.d.ts.map +1 -1
  31. package/src/typeGuards.js +6 -1
  32. package/src/types.d.ts +1 -0
  33. package/src/types.d.ts.map +1 -1
  34. package/src/types.ts +1 -0
  35. package/src/utils/orchestrationAccount.d.ts +79 -0
  36. package/src/utils/orchestrationAccount.d.ts.map +1 -1
  37. package/src/utils/orchestrationAccount.js +204 -0
  38. package/src/utils/progress.d.ts +41 -0
  39. package/src/utils/progress.d.ts.map +1 -0
  40. package/src/utils/progress.js +180 -0
  41. package/src/utils/start-helper.d.ts.map +1 -1
  42. package/src/utils/start-helper.js +6 -0
@@ -14,6 +14,12 @@ export function prepareLocalChainFacade(zone: Zone, powers: LocalChainFacadePowe
14
14
  denom: import("../orchestration-api.ts").Denom;
15
15
  value: bigint;
16
16
  }>;
17
+ makeProgressTracker: () => import("@endo/exo").Guarded<{
18
+ getCurrentProgressReport(): import("../types.js").ProgressReport;
19
+ update(progressReport: ProgressReport): import("../types.js").ProgressReport;
20
+ finish(): import("../types.js").ProgressReport;
21
+ exposePublicationInternals(): PublicationInternals<ProgressReport>;
22
+ }>;
17
23
  send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
18
24
  sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[], opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
19
25
  transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{}>;
@@ -97,6 +103,12 @@ export function prepareLocalChainFacade(zone: Zone, powers: LocalChainFacadePowe
97
103
  denom: import("../orchestration-api.ts").Denom;
98
104
  value: bigint;
99
105
  }>;
106
+ makeProgressTracker: () => import("@endo/exo").Guarded<{
107
+ getCurrentProgressReport(): import("../types.js").ProgressReport;
108
+ update(progressReport: ProgressReport): import("../types.js").ProgressReport;
109
+ finish(): import("../types.js").ProgressReport;
110
+ exposePublicationInternals(): PublicationInternals<ProgressReport>;
111
+ }>;
100
112
  send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
101
113
  sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[], opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
102
114
  transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{}>;
@@ -230,6 +242,12 @@ export function prepareLocalChainFacade(zone: Zone, powers: LocalChainFacadePowe
230
242
  denom: import("../orchestration-api.ts").Denom;
231
243
  value: bigint;
232
244
  }>;
245
+ makeProgressTracker: () => import("@endo/exo").Guarded<{
246
+ getCurrentProgressReport(): import("../types.js").ProgressReport;
247
+ update(progressReport: ProgressReport): import("../types.js").ProgressReport;
248
+ finish(): import("../types.js").ProgressReport;
249
+ exposePublicationInternals(): PublicationInternals<ProgressReport>;
250
+ }>;
233
251
  send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
234
252
  sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[], opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
235
253
  transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{}>;
@@ -331,6 +349,12 @@ export function prepareLocalChainFacade(zone: Zone, powers: LocalChainFacadePowe
331
349
  denom: import("../orchestration-api.ts").Denom;
332
350
  value: bigint;
333
351
  }>;
352
+ makeProgressTracker: () => import("@endo/exo").Guarded<{
353
+ getCurrentProgressReport(): import("../types.js").ProgressReport;
354
+ update(progressReport: ProgressReport): import("../types.js").ProgressReport;
355
+ finish(): import("../types.js").ProgressReport;
356
+ exposePublicationInternals(): PublicationInternals<ProgressReport>;
357
+ }>;
334
358
  send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
335
359
  sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[], opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
336
360
  transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{}>;
@@ -853,6 +877,12 @@ export function prepareLocalChainFacade(zone: Zone, powers: LocalChainFacadePowe
853
877
  denom: import("../orchestration-api.ts").Denom;
854
878
  value: bigint;
855
879
  }>;
880
+ makeProgressTracker: () => import("@endo/exo").Guarded<{
881
+ getCurrentProgressReport(): import("../types.js").ProgressReport;
882
+ update(progressReport: ProgressReport): import("../types.js").ProgressReport;
883
+ finish(): import("../types.js").ProgressReport;
884
+ exposePublicationInternals(): PublicationInternals<ProgressReport>;
885
+ }>;
856
886
  send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
857
887
  sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[], opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
858
888
  transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{}>;
@@ -953,6 +983,12 @@ export function prepareLocalChainFacade(zone: Zone, powers: LocalChainFacadePowe
953
983
  denom: import("../orchestration-api.ts").Denom;
954
984
  value: bigint;
955
985
  }>;
986
+ makeProgressTracker: () => import("@endo/exo").Guarded<{
987
+ getCurrentProgressReport(): import("../types.js").ProgressReport;
988
+ update(progressReport: ProgressReport): import("../types.js").ProgressReport;
989
+ finish(): import("../types.js").ProgressReport;
990
+ exposePublicationInternals(): PublicationInternals<ProgressReport>;
991
+ }>;
956
992
  send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
957
993
  sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[], opts?: import("../orchestration-api.ts").ActionOptions | undefined) => Vow<{}>;
958
994
  transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"AA+LO,8CAJI,IAAI,UACJ,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMhC;;;;;;;;;;;uBAtKa,MAAM,OAAO,CAAC,SAAS,EAAE,CAAC;;qCAO3B;IACR,gCAAgC,EAAE,gCAAgC,CAAC;IACnE,aAAa,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC/C,WAAW,EAAE,OAAO,WAAW,CAAC,GAAG,SAAS,CAAC;IAC7C,WAAW,EAAE,OAAO,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,YAAY,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,QAAQ,EAAE,QAAQ,CAAC;CACpB;mCA0JU,UAAU,CAAC,OAAO,uBAAuB,CAAC;+BAC1C,UAAU,CAAC,oBAAoB,CAAC;0BA1LvB,mBAAmB;qCAS6F,aAAa;yBAHpH,aAAa;0CAG0F,aAAa;wCAAb,aAAa;+BALxH,8BAA8B;sDAIuB,kCAAkC;6CADzE,qBAAqB;4BALtC,kBAAkB;6BAGjB,cAAc;kCAJT,cAAc;gCAEgB,gCAAgC;8BAG7D,aAAa"}
@@ -1,4 +1,4 @@
1
- export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKit, zcf, timerService, vowTools, chainHub, localchain, zoeTools, }: {
1
+ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKit, makeProgressTracker, zcf, timerService, vowTools, chainHub, localchain, zoeTools, }: {
2
2
  makeRecorderKit: MakeRecorderKit;
3
3
  zcf: ZCF;
4
4
  timerService: Remote<TimerService>;
@@ -6,6 +6,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
6
6
  chainHub: ChainHub;
7
7
  localchain: Remote<LocalChain>;
8
8
  zoeTools: ZoeTools;
9
+ makeProgressTracker: MakeProgressTracker;
9
10
  }): (args_0: {
10
11
  account: LocalChainAccount;
11
12
  address: CosmosChainAddress;
@@ -80,7 +81,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
80
81
  * route: TransferRoute;
81
82
  * }} ctx
82
83
  */
83
- onFulfilled([_srcChainInfo, _dstChainInfo, { transferChannel }, timeoutTimestamp]: readonly [ChainInfo, ChainInfo, Pick<IBCConnectionInfo, "transferChannel">, bigint], { opts, route }: {
84
+ onFulfilled([srcChainInfo, dstChainInfo, { transferChannel }, timeoutTimestamp]: readonly [ChainInfo, ChainInfo, Pick<IBCConnectionInfo, "transferChannel">, bigint], { opts, route }: {
84
85
  opts?: Omit<IBCMsgTransferOptions, "forwardOpts">;
85
86
  route: TransferRoute;
86
87
  }): Vow<string>;
@@ -182,6 +183,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
182
183
  };
183
184
  };
184
185
  holder: {
186
+ makeProgressTracker(): import("@agoric/orchestration").ProgressTracker;
185
187
  asContinuingOffer(): Vow<{
186
188
  invitationMakers: {
187
189
  [x: string]: (...args: any[]) => Vow<import("@endo/pass-style").RemotableObject & {
@@ -376,6 +378,7 @@ import type { VowTools } from '@agoric/vow';
376
378
  import type { ChainHub } from './chain-hub.js';
377
379
  import type { LocalChain } from '@agoric/vats/src/localchain.js';
378
380
  import type { ZoeTools } from '../utils/zoe-tools.js';
381
+ import type { MakeProgressTracker } from '../utils/progress.js';
379
382
  import type { LocalChainAccount } from '@agoric/vats/src/localchain.js';
380
383
  import type { CosmosChainAddress } from '@agoric/orchestration';
381
384
  import type { AmountArg } from '@agoric/orchestration';
@@ -1 +1 @@
1
- {"version":3,"file":"local-orchestration-account.d.ts","sourceRoot":"","sources":["local-orchestration-account.js"],"names":[],"mappings":"AA8KO,0DAVI,IAAI,qFAEZ;IAAgC,eAAe,EAAvC,eAAe;IACH,GAAG,EAAf,GAAG;IAC0B,YAAY,EAAzC,OAAO,YAAY,CAAC;IACH,QAAQ,EAAzB,QAAQ;IACS,QAAQ,EAAzB,QAAQ;I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uBAAuB;iCAAvB,uBAAuB;6BACxD,aAAa;gCAUR,sBAAsB;yCAXM,uBAAuB;2BAAvB,uBAAuB;iCAKtD,6CAA6C;iCAU9D,mBAAmB"}
@@ -32,7 +32,11 @@ import {
32
32
  TypedJsonShape,
33
33
  } from '../typeGuards.js';
34
34
  import { maxClockSkew, toDenomAmount } from '../utils/cosmos.js';
35
- import { orchestrationAccountMethods } from '../utils/orchestrationAccount.js';
35
+ import {
36
+ addTrafficEntries,
37
+ orchestrationAccountMethods,
38
+ trafficTransforms,
39
+ } from '../utils/orchestrationAccount.js';
36
40
  import { makeVowExoHelpers } from '../utils/exo-helpers.js';
37
41
  import { makeTimestampHelper } from '../utils/time.js';
38
42
  import { preparePacketTools } from './packet-tools.js';
@@ -73,7 +77,9 @@ const MsgSend = CodecHelper(MsgSendType);
73
77
  * @import {Matcher} from '@endo/patterns';
74
78
  * @import {ChainHub} from './chain-hub.js';
75
79
  * @import {PacketTools} from './packet-tools.js';
80
+ * @import {SliceDescriptor} from '../utils/orchestrationAccount.js';
76
81
  * @import {ZoeTools} from '../utils/zoe-tools.js';
82
+ * @import {MakeProgressTracker} from '../utils/progress.js';
77
83
  */
78
84
 
79
85
  /**
@@ -171,11 +177,13 @@ const ErrTraceNotFound = 'denomination trace not found';
171
177
  * @param {ChainHub} powers.chainHub
172
178
  * @param {Remote<LocalChain>} powers.localchain
173
179
  * @param {ZoeTools} powers.zoeTools
180
+ * @param {MakeProgressTracker} powers.makeProgressTracker
174
181
  */
175
182
  export const prepareLocalOrchestrationAccountKit = (
176
183
  zone,
177
184
  {
178
185
  makeRecorderKit,
186
+ makeProgressTracker,
179
187
  zcf,
180
188
  timerService,
181
189
  vowTools,
@@ -507,7 +515,7 @@ export const prepareLocalOrchestrationAccountKit = (
507
515
  * }} ctx
508
516
  */
509
517
  onFulfilled(
510
- [_srcChainInfo, _dstChainInfo, { transferChannel }, timeoutTimestamp],
518
+ [srcChainInfo, dstChainInfo, { transferChannel }, timeoutTimestamp],
511
519
  { opts, route },
512
520
  ) {
513
521
  const { forwardInfo, ...transferDetails } = route;
@@ -555,10 +563,40 @@ export const prepareLocalOrchestrationAccountKit = (
555
563
  transferMsg,
556
564
  );
557
565
 
566
+ /** @type {SliceDescriptor | undefined} */
567
+ let trafficSlice;
568
+ const progressTracker = opts?.progressTracker;
569
+ if (progressTracker) {
570
+ const priorReport = progressTracker.getCurrentProgressReport();
571
+
572
+ const { traffic, slice } = addTrafficEntries(
573
+ priorReport.traffic,
574
+ // Sequence number is not known at this stage; it will be
575
+ // populated by IBCTransferSenderKit['responseWatcher'] once the
576
+ // transfer packet is sent and the sequence number is assigned.
577
+ trafficTransforms.IbcTransfer.start(
578
+ `${srcChainInfo.namespace}:${srcChainInfo.reference}`,
579
+ `${dstChainInfo.namespace}:${dstChainInfo.reference}`,
580
+ transferChannel,
581
+ ),
582
+ );
583
+ trafficSlice = slice;
584
+
585
+ const newMeta = {
586
+ ...priorReport,
587
+ traffic,
588
+ };
589
+
590
+ progressTracker.update(newMeta);
591
+ }
592
+
558
593
  // Begin capturing packets, send the transfer packet, then return a
559
594
  // vow that rejects unless the packet acknowledgment comes back and is
560
595
  // verified.
561
- return holder.sendThenWaitForAck(sender);
596
+ return holder.sendThenWaitForAck(sender, {
597
+ ...opts,
598
+ trafficSlice,
599
+ });
562
600
  },
563
601
  },
564
602
  extractFirstResultWatcher: {
@@ -700,6 +738,11 @@ export const prepareLocalOrchestrationAccountKit = (
700
738
  },
701
739
  },
702
740
  holder: {
741
+ /** @type {OrchestrationAccountCommon['makeProgressTracker']} */
742
+ makeProgressTracker() {
743
+ return makeProgressTracker();
744
+ },
745
+
703
746
  /** @type {HostOf<OrchestrationAccountCommon['asContinuingOffer']>} */
704
747
  asContinuingOffer() {
705
748
  // getPublicTopics resolves promptly (same run), so we don't need a watcher