@agoric/vats 0.15.2-dev-75b00b2.0 → 0.15.2-dev-bef63e5.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.
- package/package.json +23 -23
- package/src/bridge.js +1 -1
- package/src/core/basic-behaviors.d.ts +2 -2
- package/src/core/basic-behaviors.d.ts.map +1 -1
- package/src/core/basic-behaviors.js +1 -1
- package/src/core/boot-chain.d.ts +130 -280
- package/src/core/boot-chain.d.ts.map +1 -1
- package/src/core/chain-behaviors.d.ts +2 -2
- package/src/core/chain-behaviors.d.ts.map +1 -1
- package/src/core/chain-behaviors.js +1 -1
- package/src/core/sim-behaviors.d.ts +2 -2
- package/src/core/sim-behaviors.d.ts.map +1 -1
- package/src/core/sim-behaviors.js +1 -1
- package/src/core/startWalletFactory.d.ts +71 -42
- package/src/core/startWalletFactory.d.ts.map +1 -1
- package/src/core/startWalletFactory.js +1 -1
- package/src/core/utils.d.ts +20 -20
- package/src/core/utils.d.ts.map +1 -1
- package/src/core/utils.js +3 -3
- package/src/lib-board.d.ts +5 -78
- package/src/lib-board.d.ts.map +1 -1
- package/src/nameHub.d.ts +3 -3
- package/src/nameHub.d.ts.map +1 -1
- package/src/nameHub.js +3 -3
- package/src/vat-bank.d.ts +3 -91
- package/src/vat-bank.d.ts.map +1 -1
- package/src/vat-bank.js +1 -1
- package/src/vat-board.d.ts +12 -12
- package/src/vat-provisioning.d.ts +2 -2
- package/src/vat-provisioning.js +1 -1
- package/src/virtual-purse.d.ts +3 -3
- package/tools/board-utils.d.ts +6 -6
- package/tools/board-utils.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot-chain.d.ts","sourceRoot":"","sources":["boot-chain.js"],"names":[],"mappings":"AAmBA,iDAAiD;AAEjD,iEAAiD;AAc1C;OARC,MAAM;0BACQ,IAAI;kBAEf;IACV,gBAAoB,CAAC,EAAE,MAAM,CAAC;CAC3B,WACO,OAAO,kBAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAhBQ,sBAAsB"}
|
|
@@ -34,8 +34,8 @@ export function publishAgoricNames({ consume: { agoricNamesAdmin, board, chainSt
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
}): Promise<void>;
|
|
36
36
|
export function connectChainFaucet({ consume: { client } }: BootstrapPowers): Promise<void>;
|
|
37
|
-
/** @type {import('./lib-boot').BootstrapManifest} */
|
|
38
|
-
export const SHARED_CHAIN_BOOTSTRAP_MANIFEST: import('./lib-boot').BootstrapManifest;
|
|
37
|
+
/** @type {import('./lib-boot.js').BootstrapManifest} */
|
|
38
|
+
export const SHARED_CHAIN_BOOTSTRAP_MANIFEST: import('./lib-boot.js').BootstrapManifest;
|
|
39
39
|
/** @type {import('./lib-boot.js').BootstrapManifest} */
|
|
40
40
|
export const CHAIN_BOOTSTRAP_MANIFEST: import('./lib-boot.js').BootstrapManifest;
|
|
41
41
|
//# sourceMappingURL=chain-behaviors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-behaviors.d.ts","sourceRoot":"","sources":["chain-behaviors.js"],"names":[],"mappings":"AA6BO,0CAFI,eAAe,iBAqFzB;AAQM,qIAJI,eAAe,GAAG;IAC5B,OAAW,EAAE;QAAE,eAAe,EAAE,KAAK,UAAU,eAAe,CAAC,CAAC,CAAA;KAAE,CAAC;CAChE,iBAUH;AAIM,6DADK,eAAe,iBAG1B;AAIM,gMADK,eAAe,iBAuD1B;AAcM,2FAHI,cAAc,kBACd;IAAE,QAAQ,CAAC,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,iBAqFhD;AAIM,sMADK,eAAe,iBAc1B;AASM,kNALI,YAAY,YAAY,CAAC,GACnC,cAAkB,GAAG;IACrB,OAAa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AA;KAAE,CAAC;CAChE,iBAqCH;AAGM,kJADK,eAAe,GAAG,cAAc,iBAkB3C;AAaM,kGATI,eAAe;;;;;;kBAyCzB;AAOM,4DAFI,eAAe,iBAMzB;AAGD,wDAAwD;AACxD,8CADW,OAAO,eAAe,EAAE,iBAAiB,CA2ElD;AAGF,wDAAwD;AACxD,uCADW,OAAO,eAAe,EAAE,iBAAiB,CASjD"}
|
|
@@ -498,7 +498,7 @@ export const connectChainFaucet = async ({ consume: { client } }) => {
|
|
|
498
498
|
};
|
|
499
499
|
harden(connectChainFaucet);
|
|
500
500
|
|
|
501
|
-
/** @type {import('./lib-boot').BootstrapManifest} */
|
|
501
|
+
/** @type {import('./lib-boot.js').BootstrapManifest} */
|
|
502
502
|
export const SHARED_CHAIN_BOOTSTRAP_MANIFEST = {
|
|
503
503
|
...BASIC_BOOTSTRAP_PERMITS,
|
|
504
504
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { connectFaucet };
|
|
2
2
|
export function installSimEgress({ vatParameters: { argv }, vats: { vattp, comms }, consume: { clientCreator }, }: BootstrapPowers): Promise<void>;
|
|
3
3
|
export function grantRunBehaviors({ runBehaviors, consume: { client }, }: BootstrapPowers): Promise<void>;
|
|
4
|
-
/** @type {import('./lib-boot').BootstrapManifest} */
|
|
5
|
-
export const SIM_CHAIN_BOOTSTRAP_PERMITS: import('./lib-boot').BootstrapManifest;
|
|
4
|
+
/** @type {import('./lib-boot.js').BootstrapManifest} */
|
|
5
|
+
export const SIM_CHAIN_BOOTSTRAP_PERMITS: import('./lib-boot.js').BootstrapManifest;
|
|
6
6
|
import { connectFaucet } from './demoIssuers.js';
|
|
7
7
|
//# sourceMappingURL=sim-behaviors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sim-behaviors.d.ts","sourceRoot":"","sources":["sim-behaviors.js"],"names":[],"mappings":";AAOO,mHADK,eAAe,iBAoB1B;AAIM,0EADK,eAAe,iBAS1B;AAGD,
|
|
1
|
+
{"version":3,"file":"sim-behaviors.d.ts","sourceRoot":"","sources":["sim-behaviors.js"],"names":[],"mappings":";AAOO,mHADK,eAAe,iBAoB1B;AAIM,0EADK,eAAe,iBAS1B;AAGD,wDAAwD;AACxD,0CADW,OAAO,eAAe,EAAE,iBAAiB,CA8BlD;8BAtE4B,kBAAkB"}
|
|
@@ -39,7 +39,7 @@ export const grantRunBehaviors = async ({
|
|
|
39
39
|
};
|
|
40
40
|
harden(grantRunBehaviors);
|
|
41
41
|
|
|
42
|
-
/** @type {import('./lib-boot').BootstrapManifest} */
|
|
42
|
+
/** @type {import('./lib-boot.js').BootstrapManifest} */
|
|
43
43
|
export const SIM_CHAIN_BOOTSTRAP_PERMITS = {
|
|
44
44
|
[installSimEgress.name]: {
|
|
45
45
|
vatParameters: { argv: { hardcodedClientAddresses: true } },
|
|
@@ -266,22 +266,7 @@ export function startWalletFactory({ vatParameters: { chainStorageEntries }, con
|
|
|
266
266
|
nameHub: import("../types.js").NameHub;
|
|
267
267
|
myAddressNameAdmin: import("../types.js").MyAddressNameAdmin;
|
|
268
268
|
};
|
|
269
|
-
makeVatSpace: (svc: ERef<{
|
|
270
|
-
waitForBundleCap(bundleID: any): any;
|
|
271
|
-
getBundleCap(bundleID: any): any;
|
|
272
|
-
getNamedBundleCap(name: any): any;
|
|
273
|
-
getBundleIDByName(name: any): any;
|
|
274
|
-
createMeter(remaining: any, threshold: any): any;
|
|
275
|
-
createUnlimitedMeter(_context: any): any;
|
|
276
|
-
createVat(bundleOrBundleCap: any, options?: {}): Promise<{
|
|
277
|
-
adminNode: any;
|
|
278
|
-
root: any;
|
|
279
|
-
}>;
|
|
280
|
-
createVatByName(bundleName: any, options?: {}): Promise<{
|
|
281
|
-
adminNode: any;
|
|
282
|
-
root: any;
|
|
283
|
-
}>;
|
|
284
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
269
|
+
makeVatSpace: (svc: ERef<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
285
270
|
waitForBundleCap(bundleID: any): any;
|
|
286
271
|
getBundleCap(bundleID: any): any;
|
|
287
272
|
getNamedBundleCap(name: any): any;
|
|
@@ -311,47 +296,47 @@ export function startWalletFactory({ vatParameters: { chainStorageEntries }, con
|
|
|
311
296
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo<AssetKind>) => any;
|
|
312
297
|
}>>;
|
|
313
298
|
board: Promise<{
|
|
314
|
-
getBoard: () => {
|
|
299
|
+
getBoard: () => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
315
300
|
getId(value: any): string;
|
|
316
301
|
getValue(id: string): any;
|
|
317
302
|
lookup(...path: string[]): Promise<any>;
|
|
318
303
|
has(val: any): boolean;
|
|
319
304
|
ids(): string[];
|
|
320
|
-
getPublishingMarshaller(): {
|
|
305
|
+
getPublishingMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
321
306
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
322
307
|
fromCapData(data: any): any;
|
|
323
308
|
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
324
309
|
unserialize(data: any): any;
|
|
325
|
-
}
|
|
326
|
-
getReadonlyMarshaller(): {
|
|
310
|
+
}>;
|
|
311
|
+
getReadonlyMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
327
312
|
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
328
313
|
fromCapData(data: any): any;
|
|
329
314
|
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
330
315
|
unserialize(data: any): any;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
316
|
+
}>;
|
|
317
|
+
}>;
|
|
333
318
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
334
319
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
335
320
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
336
|
-
getBoard: () => {
|
|
321
|
+
getBoard: () => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
337
322
|
getId(value: any): string;
|
|
338
323
|
getValue(id: string): any;
|
|
339
324
|
lookup(...path: string[]): Promise<any>;
|
|
340
325
|
has(val: any): boolean;
|
|
341
326
|
ids(): string[];
|
|
342
|
-
getPublishingMarshaller(): {
|
|
327
|
+
getPublishingMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
343
328
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
344
329
|
fromCapData(data: any): any;
|
|
345
330
|
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
346
331
|
unserialize(data: any): any;
|
|
347
|
-
}
|
|
348
|
-
getReadonlyMarshaller(): {
|
|
332
|
+
}>;
|
|
333
|
+
getReadonlyMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
349
334
|
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
350
335
|
fromCapData(data: any): any;
|
|
351
336
|
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
352
337
|
unserialize(data: any): any;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
338
|
+
}>;
|
|
339
|
+
}>;
|
|
355
340
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
356
341
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
357
342
|
}>>;
|
|
@@ -481,26 +466,26 @@ import { Stable } from '@agoric/internal/src/tokens.js';
|
|
|
481
466
|
/**
|
|
482
467
|
* @param {ERef<ZoeService>} zoe
|
|
483
468
|
* @param {Installation<
|
|
484
|
-
* import('@agoric/smart-wallet/src/walletFactory').start
|
|
469
|
+
* import('@agoric/smart-wallet/src/walletFactory.js').start
|
|
485
470
|
* >} inst
|
|
486
471
|
*
|
|
487
472
|
* @typedef {Awaited<ReturnType<typeof startFactoryInstance>>} WalletFactoryStartResult
|
|
488
473
|
*/
|
|
489
|
-
declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<import('@agoric/smart-wallet/src/walletFactory').start>): Promise<import("@agoric/zoe/src/zoeService/utils.js").StartedInstanceKit<(zcf: ZCF<import("@agoric/smart-wallet/src/walletFactory").SmartWalletContractTerms>, privateArgs: {
|
|
474
|
+
declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<import('@agoric/smart-wallet/src/walletFactory.js').start>): Promise<import("@agoric/zoe/src/zoeService/utils.js").StartedInstanceKit<(zcf: ZCF<import("@agoric/smart-wallet/src/walletFactory.js").SmartWalletContractTerms>, privateArgs: {
|
|
490
475
|
storageNode: ERef<StorageNode>;
|
|
491
476
|
walletBridgeManager?: ERef<import("../types.js").ScopedBridgeManager> | undefined;
|
|
492
|
-
walletReviver?: ERef<import("@agoric/smart-wallet/src/walletFactory").WalletReviver> | undefined;
|
|
477
|
+
walletReviver?: ERef<import("@agoric/smart-wallet/src/walletFactory.js").WalletReviver> | undefined;
|
|
493
478
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
494
|
-
creatorFacet: {
|
|
479
|
+
creatorFacet: import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
495
480
|
provideSmartWallet(address: string, bank: ERef<import("../vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("../types.js").NameAdmin>): Promise<[wallet: {
|
|
496
481
|
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string>, canSpend?: boolean | undefined): Promise<void>;
|
|
497
|
-
getDepositFacet(): {
|
|
482
|
+
getDepositFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
498
483
|
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
499
|
-
}
|
|
500
|
-
getOffersFacet(): {
|
|
484
|
+
}>;
|
|
485
|
+
getOffersFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
501
486
|
executeOffer(offerSpec: import("@agoric/smart-wallet/src/offers.js").OfferSpec): Promise<void>;
|
|
502
487
|
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers.js").OfferId): Promise<void>;
|
|
503
|
-
}
|
|
488
|
+
}>;
|
|
504
489
|
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
505
490
|
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
506
491
|
getPublicTopics(): {
|
|
@@ -515,17 +500,61 @@ declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
|
515
500
|
storagePath: Promise<string>;
|
|
516
501
|
};
|
|
517
502
|
};
|
|
518
|
-
}
|
|
519
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
520
|
-
provideSmartWallet(address: string, bank: ERef<import("../vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("../types.js").NameAdmin>): Promise<[wallet: {
|
|
503
|
+
} & import("@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
521
504
|
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string>, canSpend?: boolean | undefined): Promise<void>;
|
|
522
|
-
getDepositFacet(): {
|
|
505
|
+
getDepositFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
523
506
|
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
507
|
+
}>;
|
|
508
|
+
getOffersFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
509
|
+
executeOffer(offerSpec: import("@agoric/smart-wallet/src/offers.js").OfferSpec): Promise<void>;
|
|
510
|
+
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers.js").OfferId): Promise<void>;
|
|
511
|
+
}>;
|
|
512
|
+
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
513
|
+
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
514
|
+
getPublicTopics(): {
|
|
515
|
+
current: {
|
|
516
|
+
description: string;
|
|
517
|
+
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
518
|
+
storagePath: Promise<string>;
|
|
519
|
+
};
|
|
520
|
+
updates: {
|
|
521
|
+
description: string;
|
|
522
|
+
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
523
|
+
storagePath: Promise<string>;
|
|
524
|
+
};
|
|
524
525
|
};
|
|
525
|
-
|
|
526
|
+
}> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
527
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string>, canSpend?: boolean | undefined): Promise<void>;
|
|
528
|
+
getDepositFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
529
|
+
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
530
|
+
}>;
|
|
531
|
+
getOffersFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
526
532
|
executeOffer(offerSpec: import("@agoric/smart-wallet/src/offers.js").OfferSpec): Promise<void>;
|
|
527
533
|
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers.js").OfferId): Promise<void>;
|
|
534
|
+
}>;
|
|
535
|
+
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
536
|
+
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
537
|
+
getPublicTopics(): {
|
|
538
|
+
current: {
|
|
539
|
+
description: string;
|
|
540
|
+
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
541
|
+
storagePath: Promise<string>;
|
|
542
|
+
};
|
|
543
|
+
updates: {
|
|
544
|
+
description: string;
|
|
545
|
+
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
546
|
+
storagePath: Promise<string>;
|
|
547
|
+
};
|
|
528
548
|
};
|
|
549
|
+
} & import("@endo/exo/src/get-interface.js").GetInterfaceGuard<{
|
|
550
|
+
handleBridgeAction(actionCapData: import("@endo/marshal").CapData<string>, canSpend?: boolean | undefined): Promise<void>;
|
|
551
|
+
getDepositFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
552
|
+
receive(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
553
|
+
}>;
|
|
554
|
+
getOffersFacet(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
555
|
+
executeOffer(offerSpec: import("@agoric/smart-wallet/src/offers.js").OfferSpec): Promise<void>;
|
|
556
|
+
tryExitOffer(offerId: import("@agoric/smart-wallet/src/offers.js").OfferId): Promise<void>;
|
|
557
|
+
}>;
|
|
529
558
|
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
530
559
|
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
531
560
|
getPublicTopics(): {
|
|
@@ -540,7 +569,7 @@ declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
|
540
569
|
storagePath: Promise<string>;
|
|
541
570
|
};
|
|
542
571
|
};
|
|
543
|
-
}
|
|
572
|
+
}>>, isNew: boolean]>;
|
|
544
573
|
}>;
|
|
545
574
|
}>>>;
|
|
546
575
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAiFO
|
|
1
|
+
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAiFO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAlB+B,OAAO,qCAAqC,EAAE,+BAA+B;oBAC5F;QACtB,YAAoB,EAAE,QACtB,WACA,oEAAyE,OAAO,CAAC,CACtE,CACF,CAAC,cAAc,CAAC,CAAC;QAC1B,UAAkB,EAAE,UAAU,CAAC;KACxB;yBACoB,OAAO,aAAa,EAAE,mBAAmB;kCAChC,OAAO,aAAa,EAAE,mBAAmB;;;;;8BAwL7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCE;AAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWN;uCAjSY,QAAQ,WAAW,2BAA2B,CAAC,CAAC;uBAftC,gCAAgC;AASvD;;;;;;;GAOG;AAEH,2CARW,KAAK,UAAU,CAAC,QAChB,aACV,OAAW,2CAA2C,EAAE,KAAK,CAC1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKkE"}
|
|
@@ -17,7 +17,7 @@ const trace = makeTracer('StartWF');
|
|
|
17
17
|
/**
|
|
18
18
|
* @param {ERef<ZoeService>} zoe
|
|
19
19
|
* @param {Installation<
|
|
20
|
-
* import('@agoric/smart-wallet/src/walletFactory').start
|
|
20
|
+
* import('@agoric/smart-wallet/src/walletFactory.js').start
|
|
21
21
|
* >} inst
|
|
22
22
|
*
|
|
23
23
|
* @typedef {Awaited<ReturnType<typeof startFactoryInstance>>} WalletFactoryStartResult
|
package/src/core/utils.d.ts
CHANGED
|
@@ -69,11 +69,11 @@ export function runModuleBehaviors({ allPowers, behaviors, manifest, makeConfig,
|
|
|
69
69
|
manifest: Record<string, Record<string, unknown>>;
|
|
70
70
|
makeConfig: (name: string, permit: Record<string, unknown>) => unknown;
|
|
71
71
|
}): Promise<any[]>;
|
|
72
|
-
export function makePromiseSpaceForNameHub(nameAdmin: ERef<import('../types').NameAdmin>, log?: {
|
|
72
|
+
export function makePromiseSpaceForNameHub(nameAdmin: ERef<import('../types.js').NameAdmin>, log?: {
|
|
73
73
|
(...data: any[]): void;
|
|
74
74
|
(message?: any, ...optionalParams: any[]): void;
|
|
75
75
|
} | undefined): PromiseSpaceOf<any, {}, {}>;
|
|
76
|
-
export function makeWellKnownSpaces(parentAdmin: ERef<import('../types').NameAdmin>, log?: {
|
|
76
|
+
export function makeWellKnownSpaces(parentAdmin: ERef<import('../types.js').NameAdmin>, log?: {
|
|
77
77
|
(...data: any[]): void;
|
|
78
78
|
(message?: any, ...optionalParams: any[]): void;
|
|
79
79
|
} | undefined, kinds?: string[] | undefined): Promise<WellKnownSpaces>;
|
|
@@ -86,65 +86,65 @@ export function makeAgoricNamesAccess(log?: {
|
|
|
86
86
|
spaces: WellKnownSpaces;
|
|
87
87
|
}>;
|
|
88
88
|
export function makeMyAddressNameAdminKit(address: string): {
|
|
89
|
-
nameHub: import("../types").NameHub;
|
|
90
|
-
myAddressNameAdmin: import("../types").MyAddressNameAdmin;
|
|
89
|
+
nameHub: import("../types.js").NameHub;
|
|
90
|
+
myAddressNameAdmin: import("../types.js").MyAddressNameAdmin;
|
|
91
91
|
};
|
|
92
92
|
export function makeVatSpace(svc: ERef<ReturnType<Awaited<VatAdminVat>['createVatAdminService']>>, criticalVatKey: unknown, log?: ((...args: any) => void) | undefined, label?: string | undefined): {
|
|
93
93
|
space: {
|
|
94
94
|
consume: {
|
|
95
95
|
agoricNames: Promise<{
|
|
96
|
-
getNameHub: () => import("../types").NameHub;
|
|
97
|
-
getNameHubKit: () => import("../types").NameHubKit;
|
|
96
|
+
getNameHub: () => import("../types.js").NameHub;
|
|
97
|
+
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
98
98
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
99
99
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo<AssetKind>) => any;
|
|
100
100
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
101
|
-
getNameHub: () => import("../types").NameHub;
|
|
102
|
-
getNameHubKit: () => import("../types").NameHubKit;
|
|
101
|
+
getNameHub: () => import("../types.js").NameHub;
|
|
102
|
+
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
103
103
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
104
104
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo<AssetKind>) => any;
|
|
105
105
|
}>>;
|
|
106
106
|
board: Promise<{
|
|
107
|
-
getBoard: () => {
|
|
107
|
+
getBoard: () => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
108
108
|
getId(value: any): string;
|
|
109
109
|
getValue(id: string): any;
|
|
110
110
|
lookup(...path: string[]): Promise<any>;
|
|
111
111
|
has(val: any): boolean;
|
|
112
112
|
ids(): string[];
|
|
113
|
-
getPublishingMarshaller(): {
|
|
113
|
+
getPublishingMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
114
114
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
115
115
|
fromCapData(data: any): any;
|
|
116
116
|
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
117
117
|
unserialize(data: any): any;
|
|
118
|
-
}
|
|
119
|
-
getReadonlyMarshaller(): {
|
|
118
|
+
}>;
|
|
119
|
+
getReadonlyMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
120
120
|
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
121
121
|
fromCapData(data: any): any;
|
|
122
122
|
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
123
123
|
unserialize(data: any): any;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
124
|
+
}>;
|
|
125
|
+
}>;
|
|
126
126
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
127
127
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
128
128
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
129
|
-
getBoard: () => {
|
|
129
|
+
getBoard: () => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
130
130
|
getId(value: any): string;
|
|
131
131
|
getValue(id: string): any;
|
|
132
132
|
lookup(...path: string[]): Promise<any>;
|
|
133
133
|
has(val: any): boolean;
|
|
134
134
|
ids(): string[];
|
|
135
|
-
getPublishingMarshaller(): {
|
|
135
|
+
getPublishingMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
136
136
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
137
137
|
fromCapData(data: any): any;
|
|
138
138
|
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
139
139
|
unserialize(data: any): any;
|
|
140
|
-
}
|
|
141
|
-
getReadonlyMarshaller(): {
|
|
140
|
+
}>;
|
|
141
|
+
getReadonlyMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
142
142
|
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
143
143
|
fromCapData(data: any): any;
|
|
144
144
|
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
145
145
|
unserialize(data: any): any;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
146
|
+
}>;
|
|
147
|
+
}>;
|
|
148
148
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
149
149
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | (import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>), valueShape?: import("@agoric/zoe/src/contractSupport/recorder.js").TypedMatcher<T> | undefined) => import("@agoric/zoe/src/contractSupport/recorder.js").RecorderKit<T>;
|
|
150
150
|
}>>;
|
package/src/core/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDG;AAEH,8BAA8B;AAC9B,8BADW,eAAe,CAKxB;AAQK,gCAHI,MAAM,8BACN;IAAE,IAAI,EAAE;QAAE,KAAK,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,YAAY,CAAA;KAAE,CAAA;CAAE,iBAK5D;AAQM,8DAJkB,OAAO,MAAM,EAAE,OAAO,CAAC,cAClC,OAAO,KACR,OAAO,MAAM,EAAE,OAAO,CAAC,CAG0B;AAWvD,kCALI,IAAI,GAAG,MAAM,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,YAEnC,OAAO,oCAkCjB;AAQM,sCAJI,IAAI,GAAG,MAAM,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,aAEnC,OAAO,OAYjB;AAUM;eALI,OAAO;eACP,OAAO,MAAM,EAAE,OAAO,CAAC;cACvB,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAC;uBAChC,MAAM,UAAU,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO;mBAwBpE;AASM,sDAHI,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDG;AAEH,8BAA8B;AAC9B,8BADW,eA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 harden(runModuleBehaviors);
|
|
|
199
199
|
const noop = harden(() => {});
|
|
200
200
|
|
|
201
201
|
/**
|
|
202
|
-
* @param {ERef<import('../types').NameAdmin>} nameAdmin
|
|
202
|
+
* @param {ERef<import('../types.js').NameAdmin>} nameAdmin
|
|
203
203
|
* @param {typeof console.log} [log]
|
|
204
204
|
*/
|
|
205
205
|
export const makePromiseSpaceForNameHub = (nameAdmin, log = noop) => {
|
|
@@ -227,7 +227,7 @@ export const makePromiseSpaceForNameHub = (nameAdmin, log = noop) => {
|
|
|
227
227
|
};
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* @param {ERef<import('../types').NameAdmin>} parentAdmin
|
|
230
|
+
* @param {ERef<import('../types.js').NameAdmin>} parentAdmin
|
|
231
231
|
* @param {typeof console.log} [log]
|
|
232
232
|
* @param {string[]} [kinds]
|
|
233
233
|
*/
|
|
@@ -299,7 +299,7 @@ export const makeMyAddressNameAdminKit = address => {
|
|
|
299
299
|
// Create a name hub for this address.
|
|
300
300
|
const { nameHub, nameAdmin: rawMyAddressNameAdmin } = makeNameHubKit();
|
|
301
301
|
|
|
302
|
-
/** @type {import('../types').MyAddressNameAdmin} */
|
|
302
|
+
/** @type {import('../types.js').MyAddressNameAdmin} */
|
|
303
303
|
const myAddressNameAdmin = Far('myAddressNameAdmin', {
|
|
304
304
|
...rawMyAddressNameAdmin,
|
|
305
305
|
getMyAddress: () => address,
|
package/src/lib-board.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export const DEFAULT_PREFIX: "board0";
|
|
|
3
3
|
export function prepareBoardKit(baggage: import('@agoric/vat-data').Baggage): (initSequence?: number | bigint | undefined, args_1?: {
|
|
4
4
|
prefix?: string | undefined;
|
|
5
5
|
crcDigits?: number | undefined;
|
|
6
|
-
} | undefined) => {
|
|
6
|
+
} | undefined) => import("@endo/exo/src/exo-makers.js").GuardedKit<{
|
|
7
7
|
board: {
|
|
8
8
|
/**
|
|
9
9
|
* Provide an ID for a value, generating one if not already present.
|
|
@@ -43,12 +43,12 @@ export function prepareBoardKit(baggage: import('@agoric/vat-data').Baggage): (i
|
|
|
43
43
|
* Get a marshaller that implements the convertValToSlot hook using
|
|
44
44
|
* getId(), "publishing" previously un-mapped objects.
|
|
45
45
|
*/
|
|
46
|
-
getPublishingMarshaller(): {
|
|
46
|
+
getPublishingMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
47
47
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
48
48
|
fromCapData(data: any): any;
|
|
49
49
|
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
50
50
|
unserialize(data: any): any;
|
|
51
|
-
}
|
|
51
|
+
}>;
|
|
52
52
|
/**
|
|
53
53
|
* Get a marshaller that implements the convertValToSlot hook using
|
|
54
54
|
* getId(), only for objects that the board has().
|
|
@@ -57,85 +57,12 @@ export function prepareBoardKit(baggage: import('@agoric/vat-data').Baggage): (i
|
|
|
57
57
|
* Un-serializing a null slot always produces a fresh object rather than
|
|
58
58
|
* preserving object identity.
|
|
59
59
|
*/
|
|
60
|
-
getReadonlyMarshaller(): {
|
|
60
|
+
getReadonlyMarshaller(): import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
61
61
|
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
62
62
|
fromCapData(data: any): any;
|
|
63
63
|
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
64
64
|
unserialize(data: any): any;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
readonlyMarshaller: {
|
|
68
|
-
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
69
|
-
fromCapData(data: any): any;
|
|
70
|
-
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
71
|
-
unserialize(data: any): any;
|
|
72
|
-
};
|
|
73
|
-
publishingMarshaller: {
|
|
74
|
-
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
75
|
-
fromCapData(data: any): any;
|
|
76
|
-
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
77
|
-
unserialize(data: any): any;
|
|
78
|
-
};
|
|
79
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
80
|
-
board: {
|
|
81
|
-
/**
|
|
82
|
-
* Provide an ID for a value, generating one if not already present.
|
|
83
|
-
*
|
|
84
|
-
* Each board ID includes a CRC so that the last part is
|
|
85
|
-
* well-distributed, which mitigates typo risks.
|
|
86
|
-
*
|
|
87
|
-
* Scaling Consideration: since we cannot know when consumers are no
|
|
88
|
-
* longer interested in an ID, a board holds a strong reference to
|
|
89
|
-
* `value` for its entire lifetime. For a well-known board, this is
|
|
90
|
-
* essentially forever.
|
|
91
|
-
*
|
|
92
|
-
* @param {Key} value
|
|
93
|
-
* @throws if `value` is not a Key in the @agoric/store sense
|
|
94
|
-
*/
|
|
95
|
-
getId(value: Key): string;
|
|
96
|
-
/**
|
|
97
|
-
* @param {BoardId} id
|
|
98
|
-
* @throws if id is not in the mapping
|
|
99
|
-
*/
|
|
100
|
-
getValue(id: BoardId): any;
|
|
101
|
-
/**
|
|
102
|
-
* Convenience method for recursively traversing boards and board-like
|
|
103
|
-
* remotables to get data associated with a sequence of ids
|
|
104
|
-
* corresponding to each successive board. For example, `lookup("foo",
|
|
105
|
-
* "bar")` gets the value associated with id "foo" and returns the
|
|
106
|
-
* result of invoking `lookup("bar")` upon it to get the value it
|
|
107
|
-
* associates with id "bar".
|
|
108
|
-
*
|
|
109
|
-
* @param {...string} path
|
|
110
|
-
*/
|
|
111
|
-
lookup(...path: string[]): Promise<any>;
|
|
112
|
-
/** @param {Key} val */
|
|
113
|
-
has(val: Key): boolean;
|
|
114
|
-
ids(): string[];
|
|
115
|
-
/**
|
|
116
|
-
* Get a marshaller that implements the convertValToSlot hook using
|
|
117
|
-
* getId(), "publishing" previously un-mapped objects.
|
|
118
|
-
*/
|
|
119
|
-
getPublishingMarshaller(): {
|
|
120
|
-
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
121
|
-
fromCapData(data: any): any;
|
|
122
|
-
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
123
|
-
unserialize(data: any): any;
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Get a marshaller that implements the convertValToSlot hook using
|
|
127
|
-
* getId(), only for objects that the board has().
|
|
128
|
-
*
|
|
129
|
-
* For other objects, we don't throw, but we emit a null slot.
|
|
130
|
-
* Un-serializing a null slot always produces a fresh object rather than
|
|
131
|
-
* preserving object identity.
|
|
132
|
-
*/
|
|
133
|
-
getReadonlyMarshaller(): {
|
|
134
|
-
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
135
|
-
fromCapData(data: any): any;
|
|
136
|
-
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|
|
137
|
-
unserialize(data: any): any;
|
|
138
|
-
};
|
|
65
|
+
}>;
|
|
139
66
|
};
|
|
140
67
|
readonlyMarshaller: {
|
|
141
68
|
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
package/src/lib-board.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib-board.d.ts","sourceRoot":"","sources":["lib-board.js"],"names":[],"mappings":"AAiBA,mCAAoC;AACpC,sCAAuC;AAoOhC,yCAHI,OAAO,kBAAkB,EAAE,OAAO;;;;;QAWrC;;;;;;;;;;;;;WAaG;qBAFQ,GAAG;QAMd;;;WAGG;qBAFQ,OAAO;QAMlB;;;;;;;;;WASG;wBADW,MAAM;QAgBpB,uBAAuB;iBAAX,GAAG;;QASf;;;WAGG;;;;;;;QAIH;;;;;;;WAOG
|
|
1
|
+
{"version":3,"file":"lib-board.d.ts","sourceRoot":"","sources":["lib-board.js"],"names":[],"mappings":"AAiBA,mCAAoC;AACpC,sCAAuC;AAoOhC,yCAHI,OAAO,kBAAkB,EAAE,OAAO;;;;;QAWrC;;;;;;;;;;;;;WAaG;qBAFQ,GAAG;QAMd;;;WAGG;qBAFQ,OAAO;QAMlB;;;;;;;;;WASG;wBADW,MAAM;QAgBpB,uBAAuB;iBAAX,GAAG;;QASf;;;WAGG;;;;;;;QAIH;;;;;;;WAOG;;;;;;;;;;;;;;;;;;;;GAuCV;AAGM,6CADK,OAAO,cAAc,EAAE,IAAI,WAS1B,MAAM,cACN,UAAU,oXAYtB;;;;;;;;;;sBA5UY,MAAM;;;;;yBAmBN,WAAW,4BAA4B,CAAC;kBAKxC,OAAO,eAAe,EAAE,QAAQ;AAN7C;;;;;;;GAOG;AAGH;;;;;;;;GAQG;AACH;;;;;;;;;EA0BC"}
|
package/src/nameHub.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ export namespace NameHubIKit {
|
|
|
18
18
|
readonly: import("@endo/patterns").MethodGuard;
|
|
19
19
|
}>;
|
|
20
20
|
}
|
|
21
|
-
export function prepareMixinMyAddress(zone: import('@agoric/zone').Zone): (nameAdmin: import('./types.js').NameAdmin, address: string) => import("@
|
|
22
|
-
export function prepareNameHubKit(zone: import('@agoric/zone').Zone): () => import('./types').NameHubKit;
|
|
23
|
-
export function makeNameHubKit(): import('./types').NameHubKit;
|
|
21
|
+
export function prepareMixinMyAddress(zone: import('@agoric/zone').Zone): (nameAdmin: import('./types.js').NameAdmin, address: string) => import("@endo/exo/src/exo-makers.js").Farable<import("./types.js").MyAddressNameAdmin>;
|
|
22
|
+
export function prepareNameHubKit(zone: import('@agoric/zone').Zone): () => import('./types.js').NameHubKit;
|
|
23
|
+
export function makeNameHubKit(): import('./types.js').NameHubKit;
|
|
24
24
|
export type NonPrimitive = {
|
|
25
25
|
[key: string]: any;
|
|
26
26
|
};
|
package/src/nameHub.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nameHub.d.ts","sourceRoot":"","sources":["nameHub.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AA8CO,4CADK,OAAO,cAAc,EAAE,IAAI,eA4B1B,OAAO,YAAY,EAAE,SAAS,WAC9B,MAAM,
|
|
1
|
+
{"version":3,"file":"nameHub.d.ts","sourceRoot":"","sources":["nameHub.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AA8CO,4CADK,OAAO,cAAc,EAAE,IAAI,eA4B1B,OAAO,YAAY,EAAE,SAAS,WAC9B,MAAM,4FAalB;AA4CM,wCAFI,OAAO,cAAc,EAAE,IAAI,SAcnB,OAAO,YAAY,EAAE,UAAU,CA0NjD;AA1NY,kCAAM,OAAO,YAAY,EAAE,UAAU,CAAA"}
|
package/src/nameHub.js
CHANGED
|
@@ -37,7 +37,7 @@ export const NameHubIKit = harden({
|
|
|
37
37
|
update: M.call(KeyShape, M.any())
|
|
38
38
|
.optional(M.remotable('newAdminValue'))
|
|
39
39
|
.returns(M.any()),
|
|
40
|
-
lookupAdmin: M.call(KeyShape).returns(M.promise()),
|
|
40
|
+
lookupAdmin: M.call().rest(M.arrayOf(KeyShape)).returns(M.promise()),
|
|
41
41
|
delete: M.call(KeyShape).returns(M.any()),
|
|
42
42
|
readonly: M.call().returns(M.remotable()),
|
|
43
43
|
}),
|
|
@@ -141,7 +141,7 @@ export const prepareNameHubKit = zone => {
|
|
|
141
141
|
/** @param {{}} me */
|
|
142
142
|
const my = me => provideWeak(ephemera, me, init1);
|
|
143
143
|
|
|
144
|
-
/** @type {() => import('./types').NameHubKit} */
|
|
144
|
+
/** @type {() => import('./types.js').NameHubKit} */
|
|
145
145
|
const makeNameHubKit = zone.exoClassKit(
|
|
146
146
|
'NameHubKit',
|
|
147
147
|
NameHubIKit,
|
|
@@ -150,7 +150,7 @@ export const prepareNameHubKit = zone => {
|
|
|
150
150
|
/** @type {MapStore<string, unknown>} */
|
|
151
151
|
keyToValue: zone.detached().mapStore('nameKey'),
|
|
152
152
|
|
|
153
|
-
/** @type {MapStore<string, import('./types').NameAdmin>} */
|
|
153
|
+
/** @type {MapStore<string, import('./types.js').NameAdmin>} */
|
|
154
154
|
keyToAdmin: zone.detached().mapStore('nameKey'),
|
|
155
155
|
|
|
156
156
|
/** @type {undefined | { write: (item: unknown) => void }} */
|