@agoric/orchestration 0.1.1-dev-eef7b69.0.eef7b69 → 0.1.1-dev-6fe0466.0.6fe0466

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.
@@ -1 +1 @@
1
- {"version":3,"file":"remote-chain-facade.d.ts","sourceRoot":"","sources":["remote-chain-facade.js"],"names":[],"mappings":"AAiRO,+CAHI,IAAI,UACJ,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;GAKjC;sCAtPY;IACR,8BAA8B,EAAE,UAAU,CAC9C,wCAA8C,CACzC,CAAC;IACF,aAAa,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC/C,WAAW,EAAE,OAAO,WAAW,CAAC,GAAG,SAAS,CAAC;IAC7C,KAAK,EAAE,OAAO,YAAY,CAAC,CAAC;IAC5B,QAAQ,EAAE,QAAQ,CAAC;CACpB;qCAIS;IACR,eAAe,EAAE,SAAS,CAAC;IAC3B,cAAc,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;CAC1C;oCAyOU,UAAU,CAAC,OAAO,wBAAwB,CAAC;gCAC3C,UAAU,CAAC,qBAAqB,CAAC;0BAzQxB,mBAAmB;+BAS4E,aAAa;uCAAb,aAAa;yBAJnG,aAAa;uDAGO,mCAAmC;6CAD7C,qBAAqB;4BAHtC,kBAAkB;kCADZ,cAAc;8BAEb,aAAa;mCAIyE,aAAa"}
1
+ {"version":3,"file":"remote-chain-facade.d.ts","sourceRoot":"","sources":["remote-chain-facade.js"],"names":[],"mappings":"AAiRO,+CAHI,IAAI,UACJ,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKjC;sCAtPY;IACR,8BAA8B,EAAE,UAAU,CAC9C,wCAA8C,CACzC,CAAC;IACF,aAAa,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC/C,WAAW,EAAE,OAAO,WAAW,CAAC,GAAG,SAAS,CAAC;IAC7C,KAAK,EAAE,OAAO,YAAY,CAAC,CAAC;IAC5B,QAAQ,EAAE,QAAQ,CAAC;CACpB;qCAIS;IACR,eAAe,EAAE,SAAS,CAAC;IAC3B,cAAc,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC9C,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;CAC1C;oCAyOU,UAAU,CAAC,OAAO,wBAAwB,CAAC;gCAC3C,UAAU,CAAC,qBAAqB,CAAC;0BAzQxB,mBAAmB;+BAS4E,aAAa;uCAAb,aAAa;yBAJnG,aAAa;wCAIyE,aAAa;uDAD/E,mCAAmC;6CAD7C,qBAAqB;4BAHtC,kBAAkB;kCADZ,cAAc;8BAEb,aAAa;mCAIyE,aAAa"}
@@ -75,7 +75,11 @@ export function provideOrchestration(zcf: ZCF, baggage: Baggage, remotePowers: O
75
75
  allWokenP: Promise<void>;
76
76
  prepareEndowment: (zone: Zone, tag: string, e: unknown) => any;
77
77
  };
78
- zcfTools: import("@agoric/async-flow").HostInterface<import("../types.ts").ZcfTools>;
78
+ zcfTools: {
79
+ assertUniqueKeyword: (keyword: string) => void;
80
+ atomicRearrange: (transfers: globalThis.TransferPart[]) => void;
81
+ makeInvitation: (offerHandler: globalThis.OfferHandler<unknown, unknown>, description: string, customDetails?: object | undefined, proposalShape?: Pattern) => import("@agoric/vow").Vow<globalThis.Invitation<unknown, unknown>>;
82
+ };
79
83
  zoeTools: {
80
84
  localTransfer: (srcSeat: globalThis.ZCFSeat, localAccount: import("../cosmos-api.ts").LocalAccountMethods, amounts: globalThis.AmountKeywordRecord) => import("@agoric/vow").Vow<void>;
81
85
  withdrawToSeat: (localAccount: import("../cosmos-api.ts").LocalAccountMethods, destSeat: globalThis.ZCFSeat, amounts: globalThis.AmountKeywordRecord) => import("@agoric/vow").Vow<void>;
@@ -114,10 +118,10 @@ export type OrchestrationTools = Omit<ReturnType<typeof provideOrchestration>, "
114
118
  import type { Baggage } from '@agoric/vat-data';
115
119
  import type { Remote } from '@agoric/vow';
116
120
  import type { Zone } from '@agoric/zone';
121
+ import type { Pattern } from '@endo/patterns';
117
122
  import type { LocalChain } from '@agoric/vats/src/localchain.js';
118
123
  import type { CosmosInterchainService } from '../exos/exo-interfaces.js';
119
124
  import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
120
125
  import type { TimerService } from '@agoric/time';
121
126
  import type { NameHub } from '@agoric/vats';
122
- import type { Pattern } from '@endo/patterns';
123
127
  //# sourceMappingURL=start-helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AA+DO,0CARI,GAAG,WACH,OAAO,gBACP,mBAAmB,oBACnB,OAAO,UAAU,CAAC,SAE1B;IAA4D,mBAAmB,GAAvE,qBAAqB,CAAC,qBAAqB,CAAC;CACpD;+BAwGU,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBA1Ed,CAA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;IACnC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,CAAC,CAAC,CAAC;CAC7D;4BAMS,CACR,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,mBAAmB,EACjC,OAAO,EAAE,mBAAmB,KACzB,OAAO,CAAC,IAAI,CAAC;6BAIR,CACR,YAAY,EAAE,mBAAmB,EACjC,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,mBAAmB,KACzB,OAAO,CAAC,IAAI,CAAC;uBAoIP,UAAU,CAAC,OAAO,YAAY,CAAC;8BA9JlB,aAAa;yCACF,aAAa;sCAHhB,mCAAmC;yCAChC,2CAA2C"}
1
+ {"version":3,"file":"zoe-tools.d.ts","sourceRoot":"","sources":["zoe-tools.js"],"names":[],"mappings":"AA+DO,kCAHI,GAAG,wCACH,QAAQ;;;EA+HlB;4CAzJY;IACR,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,CAAC,CAAC,CAAC;CAC7D;4BAMS,CACR,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,mBAAmB,EACjC,OAAO,EAAE,mBAAmB,KACzB,OAAO,CAAC,IAAI,CAAC;6BAIR,CACR,YAAY,EAAE,mBAAmB,EACjC,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,mBAAmB,KACzB,OAAO,CAAC,IAAI,CAAC;uBAsIP,UAAU,CAAC,OAAO,YAAY,CAAC;8BAhKlB,aAAa;yCACF,aAAa;sCAHhB,mCAAmC;yCAChC,2CAA2C"}
@@ -160,13 +160,15 @@ export const makeZoeTools = (zcf, { when, allVows, allSettled, asVow }) => {
160
160
  await when(allVows(returnPaymentVs));
161
161
  throw makeError(`One or more withdrawals failed ${q(errors)}`);
162
162
  }
163
+
163
164
  // successfully withdrew payments from srcLocalAccount, deposit to recipientSeat
165
+ const fulfilledWithdrawals =
166
+ /** @type {PromiseFulfilledResult<Payment>[]} */ (settledWithdrawals);
164
167
  const paymentKwr = harden(
165
168
  keys(amounts).reduce(
166
169
  (acc, kw, i) =>
167
170
  assign(acc, {
168
- [kw]: /** @type {{ value: Amount }[]} */ (settledWithdrawals)[i]
169
- .value,
171
+ [kw]: fulfilledWithdrawals[i].value,
170
172
  }),
171
173
  {},
172
174
  ),
@@ -1,4 +1,5 @@
1
1
  import type { MsgTransfer } from '@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js';
2
+ import type { StorageMessage } from '@agoric/internal/src/lib-chainStorage.js';
2
3
  import { type VTransferIBCEvent } from '@agoric/vats';
3
4
  import type { ExecutionContext } from 'ava';
4
5
  import { type ChainInfo } from '../index.js';
@@ -69,6 +70,10 @@ export declare const setupOrchestrationTest: ({ log, chains, }: {
69
70
  * Read pure data (CapData that has no slots) from the storage path
70
71
  */
71
72
  getDeserialized(path: string): unknown[];
73
+ storageUpdates: {
74
+ [Symbol.asyncIterator](): AsyncGenerator<StorageMessage | undefined, void, unknown>;
75
+ };
76
+ cancelStorageupdates: () => boolean;
72
77
  rootNode: import("@endo/exo").Guarded<{
73
78
  getPath(): string;
74
79
  getStoreKey(): Promise<VStorageKey>;
@@ -80,11 +85,11 @@ export declare const setupOrchestrationTest: ({ log, chains, }: {
80
85
  data: Map<string, string>;
81
86
  updateNewCellBlockHeight: (blockHeight?: number) => void;
82
87
  getValues: (path: string) => string[];
83
- messages: import("@agoric/internal/src/lib-chainStorage.js").StorageMessage[];
84
- toStorage: ((message: import("@agoric/internal/src/lib-chainStorage.js").StorageMessage) => string | number | true | any[] | {
88
+ messages: StorageMessage[];
89
+ toStorage: ((message: StorageMessage) => string | number | true | any[] | {
85
90
  storeName: string;
86
91
  storeSubkey: string;
87
- } | null) & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (message: import("@agoric/internal/src/lib-chainStorage.js").StorageMessage) => string | number | true | any[] | {
92
+ } | null) & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (message: StorageMessage) => string | number | true | any[] | {
88
93
  storeName: string;
89
94
  storeSubkey: string;
90
95
  } | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"contract-tests.d.ts","sourceRoot":"","sources":["contract-tests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAS3F,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,cAAc,CAAC;AAmBtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAyB,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAQpE,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,EAAE,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAU,kBAG1C;IACD,GAAG,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;;;;;;;;;uBA4Q8nU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA5CxnU;;eAEG;kCACmB,MAAM,GAAG,OAAO,EAAE;;;;;4BAlHjC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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T9B,WAAW;sBACV,MAAM;;;wCA2DT,iBAAiB,CAAC,OAAO,CAAC,SAC1B,MAAM,GAAG;YAAE,OAAO,EAAE,WAAW,CAAC;YAAC,QAAQ,EAAE,MAAM,CAAA;SAAE,yBACnC,MAAM;;;;EA+GhC,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import type { MsgTransfer } from '@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js';
2
2
  import { VTRANSFER_IBC_EVENT } from '@agoric/internal/src/action-types.js';
3
+ import type { StorageMessage } from '@agoric/internal/src/lib-chainStorage.js';
3
4
  import {
4
5
  defaultSerializer,
6
+ makeAsyncQueue,
5
7
  makeFakeStorageKit,
6
8
  } from '@agoric/internal/src/storage-test-utils.js';
7
- import { eventLoopIteration } from '@agoric/internal/src/testing-utils.js';
8
9
  import { setupFakeNetwork } from '@agoric/orchestration/test/network-fakes.js';
10
+ import { eventLoopIteration } from '@agoric/internal/src/testing-utils.js';
9
11
  import { buildVTransferEvent } from '@agoric/orchestration/tools/ibc-mocks.js';
10
12
  import {
11
13
  makeNameHubKit,
@@ -131,7 +133,12 @@ export const setupOrchestrationTest = async ({
131
133
  const timer = buildZoeManualTimer(log);
132
134
  const board = makeFakeBoard();
133
135
  const marshaller = board.getPublishingMarshaller();
134
- const storage = makeFakeStorageKit(ROOT_STORAGE_PATH);
136
+ const storageQueue = makeAsyncQueue<StorageMessage>();
137
+ const storage = makeFakeStorageKit(
138
+ ROOT_STORAGE_PATH,
139
+ { sequence: true },
140
+ { eachMessage: storageQueue.enqueue },
141
+ );
135
142
 
136
143
  const { portAllocator, setupIBCProtocol, ibcBridge } = setupFakeNetwork(
137
144
  rootZone.subZone('network'),
@@ -285,6 +292,8 @@ export const setupOrchestrationTest = async ({
285
292
  getDeserialized(path: string): unknown[] {
286
293
  return storage.getValues(path).map(defaultSerializer.parse);
287
294
  },
295
+ storageUpdates: storageQueue.iterable,
296
+ cancelStorageupdates: storageQueue.cancel,
288
297
  },
289
298
  },
290
299
  mocks: {