@agoric/zoe 0.27.0-upgrade-20-dev-ef71cfd.0 → 0.27.0-upgrade-21-dev-16519b2.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/bundles/bundle-contractFacet-js-meta.json +257 -252
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +22 -21
- package/src/contractFacet/vatRoot.d.ts +1 -1
- package/src/contractFacet/vatRoot.d.ts.map +1 -1
- package/src/contractFacet/zcfSeat.d.ts +3 -1
- package/src/contractFacet/zcfSeat.d.ts.map +1 -1
- package/src/contractFacet/zcfSeat.js +5 -3
- package/src/contractFacet/zcfZygote.d.ts +2 -3
- package/src/contractFacet/zcfZygote.d.ts.map +1 -1
- package/src/contractFacet/zcfZygote.js +5 -5
- package/src/contractSupport/prepare-ownable.d.ts +1 -1
- package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
- package/src/contractSupport/prepare-ownable.js +5 -1
- package/src/contracts/auction/index.d.ts +2 -2
- package/src/contracts/automaticRefund.d.ts +1 -1
- package/src/contracts/barterExchange.d.ts +1 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts +1 -1
- package/src/contracts/loan/liquidate.d.ts.map +1 -1
- package/src/contracts/loan/liquidate.js +5 -1
- package/src/contracts/mintPayments.d.ts +2 -2
- package/src/contracts/oracle.d.ts +2 -2
- package/src/contracts/otcDesk.d.ts +1 -1
- package/src/contracts/priceAggregator.d.ts +2 -2
- package/src/contracts/simpleExchange.d.ts +1 -1
- package/src/instanceRecordStorage.d.ts +3 -1
- package/src/instanceRecordStorage.d.ts.map +1 -1
- package/src/instanceRecordStorage.js +6 -1
- package/src/internal-types.d.ts +21 -16
- package/src/internal-types.d.ts.map +1 -1
- package/src/internal-types.js +15 -10
- package/src/types.d.ts +1 -1
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +1 -8
- package/src/zoeService/escrowStorage.d.ts.map +1 -1
- package/src/zoeService/escrowStorage.js +1 -2
- package/src/zoeService/feeMint.d.ts +6 -4
- package/src/zoeService/feeMint.d.ts.map +1 -1
- package/src/zoeService/feeMint.js +5 -3
- package/src/zoeService/installationStorage.d.ts.map +1 -1
- package/src/zoeService/installationStorage.js +1 -2
- package/src/zoeService/makeInvitation.d.ts +4 -2
- package/src/zoeService/makeInvitation.d.ts.map +1 -1
- package/src/zoeService/makeInvitation.js +6 -3
- package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
- package/src/zoeService/originalZoeSeat.js +0 -1
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +2 -2
- package/src/zoeService/zoe.d.ts +8 -7
- package/src/zoeService/zoe.d.ts.map +1 -1
- package/src/zoeService/zoe.js +5 -5
- package/src/zoeService/zoeStorageManager.d.ts +1 -1
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/src/zoeService/zoeStorageManager.js +9 -1
- package/tools/fakeVatAdmin.d.ts +6 -6
- package/tools/scriptedOracle.d.ts +1 -1
- package/tools/setup-zoe.d.ts +1 -1
package/src/types.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
Issuer,
|
|
3
|
-
Brand,
|
|
4
|
-
AssetKind,
|
|
5
|
-
DisplayInfo,
|
|
6
|
-
AnyAmount,
|
|
7
|
-
} from '@agoric/ertp';
|
|
1
|
+
import type { Brand, Issuer } from '@agoric/ertp';
|
|
8
2
|
import type { RemotableObject } from '@endo/pass-style';
|
|
9
|
-
import type { Key } from '@endo/patterns';
|
|
10
3
|
|
|
11
4
|
/**
|
|
12
5
|
* Alias for RemotableObject
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escrowStorage.d.ts","sourceRoot":"","sources":["escrowStorage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"escrowStorage.d.ts","sourceRoot":"","sources":["escrowStorage.js"],"names":[],"mappings":"AAoBO,8CAFI,OAAO,kBAAkB,EAAE,OAAO;;;;;EA8G5C"}
|
|
@@ -5,12 +5,11 @@ import { deeplyFulfilledObject, objectMap } from '@agoric/internal';
|
|
|
5
5
|
import { provideDurableWeakMapStore } from '@agoric/vat-data';
|
|
6
6
|
|
|
7
7
|
/// <reference path="./types.js" />
|
|
8
|
-
import './internal-types.js';
|
|
9
8
|
|
|
10
9
|
import { cleanKeywords } from '../cleanProposal.js';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
|
-
* @import {
|
|
12
|
+
* @import {WeakMapStore} from '@agoric/store';
|
|
14
13
|
*/
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -8,11 +8,11 @@ export namespace defaultFeeIssuerConfig {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* @param {
|
|
11
|
+
* @param {Baggage} zoeBaggage
|
|
12
12
|
* @param {FeeIssuerConfig} feeIssuerConfig
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {ShutdownWithFailure} shutdownZoeVat
|
|
14
14
|
*/
|
|
15
|
-
export function prepareFeeMint(zoeBaggage:
|
|
15
|
+
export function prepareFeeMint(zoeBaggage: Baggage, feeIssuerConfig: FeeIssuerConfig, shutdownZoeVat: ShutdownWithFailure): import("@endo/exo").GuardedKit<{
|
|
16
16
|
feeMint: {
|
|
17
17
|
getFeeIssuerKit(allegedFeeMintAccess: any): globalThis.IssuerKit<"nat">;
|
|
18
18
|
getFeeIssuer(): globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
@@ -20,5 +20,7 @@ export function prepareFeeMint(zoeBaggage: import("@agoric/vat-data").Baggage, f
|
|
|
20
20
|
};
|
|
21
21
|
feeMintAccess: {};
|
|
22
22
|
}>;
|
|
23
|
-
import type {
|
|
23
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
24
|
+
import type { FeeIssuerConfig } from './types.js';
|
|
25
|
+
import type { ShutdownWithFailure } from '@agoric/swingset-vat';
|
|
24
26
|
//# sourceMappingURL=feeMint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeMint.d.ts","sourceRoot":"","sources":["feeMint.js"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"feeMint.d.ts","sourceRoot":"","sources":["feeMint.js"],"names":[],"mappings":";;;;;;;;;AAiCA;;;;GAIG;AACH,2CAJW,OAAO,mBACP,eAAe,kBACf,mBAAmB;;;;;;;GA2D7B;6BA9EyB,kBAAkB;qCAEV,YAAY;yCADR,sBAAsB"}
|
|
@@ -15,7 +15,9 @@ import { Fail, q } from '@endo/errors';
|
|
|
15
15
|
import { FeeMintAccessShape } from '../typeGuards.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* @import {
|
|
18
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
19
|
+
* @import {ShutdownWithFailure} from '@agoric/swingset-vat';
|
|
20
|
+
* @import {FeeIssuerConfig} from './types.js';
|
|
19
21
|
*/
|
|
20
22
|
|
|
21
23
|
/** @deprecated Redundant. Just omit it. */
|
|
@@ -30,9 +32,9 @@ export const defaultFeeIssuerConfig = harden(
|
|
|
30
32
|
);
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
|
-
* @param {
|
|
35
|
+
* @param {Baggage} zoeBaggage
|
|
34
36
|
* @param {FeeIssuerConfig} feeIssuerConfig
|
|
35
|
-
* @param {
|
|
37
|
+
* @param {ShutdownWithFailure} shutdownZoeVat
|
|
36
38
|
*/
|
|
37
39
|
const prepareFeeMint = (zoeBaggage, feeIssuerConfig, shutdownZoeVat) => {
|
|
38
40
|
const mintBaggage = provideDurableMapStore(zoeBaggage, 'mintBaggage');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installationStorage.d.ts","sourceRoot":"","sources":["installationStorage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"installationStorage.d.ts","sourceRoot":"","sources":["installationStorage.js"],"names":[],"mappings":"AAuBO,2DAHI,iBAAiB,cACjB,OAAO;;;;;;;;;;;;;;;GA0IjB;6BAlJyB,4BAA4B;kCAGvB,aAAa"}
|
|
@@ -12,8 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @import {Baggage} from '@agoric/swingset-liveslots';
|
|
15
|
-
* @import {
|
|
16
|
-
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
15
|
+
* @import {WeakMapStore} from '@agoric/store';
|
|
17
16
|
* @import {BundleID, BundleCap} from '@agoric/swingset-vat';
|
|
18
17
|
* @import {SourceBundle} from '@agoric/zoe';
|
|
19
18
|
*/
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export function prepareInvitationKit(baggage:
|
|
1
|
+
export function prepareInvitationKit(baggage: Baggage, shutdownZoeVat?: ShutdownWithFailure | undefined): {
|
|
2
2
|
invitationIssuer: globalThis.Issuer<"set", InvitationDetails>;
|
|
3
3
|
invitationKit: globalThis.IssuerKit<"set", InvitationDetails>;
|
|
4
4
|
};
|
|
5
|
-
import type {
|
|
5
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
6
|
+
import type { ShutdownWithFailure } from '@agoric/swingset-vat';
|
|
7
|
+
import type { InvitationDetails } from '../types-index.js';
|
|
6
8
|
//# sourceMappingURL=makeInvitation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeInvitation.d.ts","sourceRoot":"","sources":["makeInvitation.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"makeInvitation.d.ts","sourceRoot":"","sources":["makeInvitation.js"],"names":[],"mappings":"AAsBO,8CAHI,OAAO,mBACP,mBAAmB,GAAG,SAAS;;;EA+BzC;6BA3CyB,kBAAkB;yCACN,sBAAsB;uCACxB,mBAAmB"}
|
|
@@ -4,8 +4,11 @@ import { Fail, q } from '@endo/errors';
|
|
|
4
4
|
import { provideDurableMapStore } from '@agoric/vat-data';
|
|
5
5
|
import { AssetKind, hasIssuer, prepareIssuerKit } from '@agoric/ertp';
|
|
6
6
|
import { InvitationElementShape } from '../typeGuards.js';
|
|
7
|
+
|
|
7
8
|
/**
|
|
8
|
-
* @import {
|
|
9
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
10
|
+
* @import {ShutdownWithFailure} from '@agoric/swingset-vat';
|
|
11
|
+
* @import {InvitationDetails} from '../types-index.js';
|
|
9
12
|
*/
|
|
10
13
|
|
|
11
14
|
/**
|
|
@@ -14,8 +17,8 @@ import { InvitationElementShape } from '../typeGuards.js';
|
|
|
14
17
|
const ZOE_INVITATION_KIT = 'ZoeInvitationKit';
|
|
15
18
|
|
|
16
19
|
/**
|
|
17
|
-
* @param {
|
|
18
|
-
* @param {
|
|
20
|
+
* @param {Baggage} baggage
|
|
21
|
+
* @param {ShutdownWithFailure | undefined} shutdownZoeVat
|
|
19
22
|
*/
|
|
20
23
|
export const prepareInvitationKit = (baggage, shutdownZoeVat = undefined) => {
|
|
21
24
|
const invitationKitBaggage = provideDurableMapStore(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"originalZoeSeat.d.ts","sourceRoot":"","sources":["originalZoeSeat.js"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"originalZoeSeat.d.ts","sourceRoot":"","sources":["originalZoeSeat.js"],"names":[],"mappings":";;;;;;;;;;AA2BA;;;;;;;;;;GAGG;;;;;;;;;;;;AA+CI,oDAHI,OAAO,kBAAkB,EAAE,OAAO,yBAClC,MAAM,UAAU,CAAC,GAAG,CAAC,QAoR/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AAkCO,uDANI,IAAI,CAAC,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,IAAI,CAAC,SAAS,CAAC,uBACrB,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,cACzB,OAAO,GACL,OAAO,YAAY,EAAE,aAAa,CAqW9C;+
|
|
1
|
+
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AAkCO,uDANI,IAAI,CAAC,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,IAAI,CAAC,SAAS,CAAC,uBACrB,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,cACzB,OAAO,GACL,OAAO,YAAY,EAAE,aAAa,CAqW9C;+BA7W2B,sBAAsB;6BAFxB,kBAAkB"}
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* @import {Baggage} from '@agoric/vat-data';
|
|
24
|
-
* @import {
|
|
25
|
-
* @import {BundleCap
|
|
24
|
+
* @import {WeakMapStore} from '@agoric/store';
|
|
25
|
+
* @import {BundleCap} from '@agoric/swingset-vat';
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/**
|
package/src/zoeService/zoe.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "../types-index.js";
|
|
2
2
|
export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
|
|
3
3
|
/**
|
|
4
|
-
* @import {VatAdminSvc} from '@agoric/swingset-vat';
|
|
4
|
+
* @import {VatAdminSvc, ShutdownWithFailure} from '@agoric/swingset-vat';
|
|
5
5
|
* @import {Baggage} from '@agoric/vat-data';
|
|
6
6
|
* @import {FeeIssuerConfig, FeeMintAccess, ZCFSpec, ZoeService} from './types.js';
|
|
7
7
|
*/
|
|
@@ -13,7 +13,7 @@ export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
|
|
|
13
13
|
* @param {Promise<VatAdminSvc> | VatAdminSvc} [options.vatAdminSvc] - The vatAdmin Service, which carries the
|
|
14
14
|
* power to create a new vat. If it's not available when makeZoe() is called, it
|
|
15
15
|
* must be provided later using setVatAdminService().
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {ShutdownWithFailure} [options.shutdownZoeVat] - a function to
|
|
17
17
|
* shutdown the Zoe Vat. This function needs to use the vatPowers
|
|
18
18
|
* available to a vat.
|
|
19
19
|
* @param {FeeIssuerConfig} [options.feeIssuerConfig]
|
|
@@ -22,7 +22,7 @@ export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
|
|
|
22
22
|
export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, feeIssuerConfig, zcfSpec, }: {
|
|
23
23
|
zoeBaggage: Baggage;
|
|
24
24
|
vatAdminSvc?: VatAdminSvc | Promise<VatAdminSvc> | undefined;
|
|
25
|
-
shutdownZoeVat?:
|
|
25
|
+
shutdownZoeVat?: ShutdownWithFailure | undefined;
|
|
26
26
|
feeIssuerConfig?: FeeIssuerConfig | undefined;
|
|
27
27
|
zcfSpec?: ZCFSpec | undefined;
|
|
28
28
|
}): {
|
|
@@ -32,7 +32,7 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
|
|
|
32
32
|
}>;
|
|
33
33
|
/** @type {FeeMintAccess} */
|
|
34
34
|
feeMintAccess: FeeMintAccess;
|
|
35
|
-
setVatAdminService: ((lateVatAdminSvc: any) => void) &
|
|
35
|
+
setVatAdminService: ((lateVatAdminSvc: any) => void) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
38
|
* @deprecated
|
|
@@ -44,23 +44,24 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
|
|
|
44
44
|
* @param {Promise<VatAdminSvc> | VatAdminSvc} [vatAdminSvc] - The vatAdmin Service, which carries the
|
|
45
45
|
* power to create a new vat. If it's not available when makeZoe() is called, it
|
|
46
46
|
* must be provided later using setVatAdminService().
|
|
47
|
-
* @param {
|
|
47
|
+
* @param {ShutdownWithFailure} [shutdownZoeVat] - a function to
|
|
48
48
|
* shutdown the Zoe Vat. This function needs to use the vatPowers
|
|
49
49
|
* available to a vat.
|
|
50
50
|
* @param {FeeIssuerConfig} [feeIssuerConfig]
|
|
51
51
|
* @param {ZCFSpec} [zcfSpec] - Pointer to the contract facet bundle.
|
|
52
52
|
*/
|
|
53
|
-
export function makeZoeKit(vatAdminSvc?: Promise<VatAdminSvc> | VatAdminSvc, shutdownZoeVat?:
|
|
53
|
+
export function makeZoeKit(vatAdminSvc?: Promise<VatAdminSvc> | VatAdminSvc, shutdownZoeVat?: ShutdownWithFailure, feeIssuerConfig?: FeeIssuerConfig, zcfSpec?: ZCFSpec): {
|
|
54
54
|
zoeService: import("@endo/exo").Guarded<ZoeService>;
|
|
55
55
|
zoeConfigFacet: import("@endo/exo").Guarded<{
|
|
56
56
|
updateZcfBundleId(bundleId: any): void;
|
|
57
57
|
}>;
|
|
58
58
|
/** @type {FeeMintAccess} */
|
|
59
59
|
feeMintAccess: FeeMintAccess;
|
|
60
|
-
setVatAdminService: ((lateVatAdminSvc: any) => void) &
|
|
60
|
+
setVatAdminService: ((lateVatAdminSvc: any) => void) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
61
61
|
};
|
|
62
62
|
import type { Baggage } from '@agoric/vat-data';
|
|
63
63
|
import type { VatAdminSvc } from '@agoric/swingset-vat';
|
|
64
|
+
import type { ShutdownWithFailure } from '@agoric/swingset-vat';
|
|
64
65
|
import type { FeeIssuerConfig } from './types.js';
|
|
65
66
|
import type { ZCFSpec } from './types.js';
|
|
66
67
|
import type { ZoeService } from './types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":";qBAqSa,UAAU,CAAC,OAAO,iBAAiB,CAAC;AAvQjD;;;;GAIG;AAEH;;;;;;;;;;;;;GAaG;AACH,0GAVG;IAAyB,UAAU,EAA3B,OAAO;IACsC,WAAW;
|
|
1
|
+
{"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":";qBAqSa,UAAU,CAAC,OAAO,iBAAiB,CAAC;AAvQjD;;;;GAIG;AAEH;;;;;;;;;;;;;GAaG;AACH,0GAVG;IAAyB,UAAU,EAA3B,OAAO;IACsC,WAAW;IAG1B,cAAc;IAGlB,eAAe;IACvB,OAAO;CACnC;;;;;IAgNG,4BAA4B;mBAAjB,aAAa;;EAK3B;AAED;;;;;;;;;;;;;;;GAeG;AACH,yCATW,OAAO,CAAC,WAAW,CAAC,GAAG,WAAW,mBAGlC,mBAAmB,oBAGnB,eAAe,YACf,OAAO;;;;;IArBd,4BAA4B;mBAAjB,aAAa;;EA8BxB;6BA/PsB,kBAAkB;iCADO,sBAAsB;yCAAtB,sBAAsB;qCAEH,YAAY;6BAAZ,YAAY;gCAAZ,YAAY;mCAAZ,YAAY"}
|
package/src/zoeService/zoe.js
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
/// <reference types="@agoric/notifier/exported.js" />
|
|
15
15
|
/// <reference path="../internal-types.js" />
|
|
16
16
|
|
|
17
|
+
import { Fail } from '@endo/errors';
|
|
17
18
|
import { E } from '@endo/eventual-send';
|
|
18
19
|
import { Far } from '@endo/marshal';
|
|
20
|
+
import { M } from '@endo/patterns';
|
|
19
21
|
import { makeScalarBigMapStore, prepareExo } from '@agoric/vat-data';
|
|
20
|
-
import { M } from '@agoric/store';
|
|
21
22
|
|
|
22
|
-
import { Fail } from '@endo/errors';
|
|
23
23
|
import { makeZoeStorageManager } from './zoeStorageManager.js';
|
|
24
24
|
import { makeStartInstance } from './startInstance.js';
|
|
25
25
|
import { makeOfferMethod } from './offer/offer.js';
|
|
@@ -29,7 +29,7 @@ import { defaultFeeIssuerConfig, prepareFeeMint } from './feeMint.js';
|
|
|
29
29
|
import { ZoeServiceI } from '../typeGuards.js';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* @import {VatAdminSvc} from '@agoric/swingset-vat';
|
|
32
|
+
* @import {VatAdminSvc, ShutdownWithFailure} from '@agoric/swingset-vat';
|
|
33
33
|
* @import {Baggage} from '@agoric/vat-data';
|
|
34
34
|
* @import {FeeIssuerConfig, FeeMintAccess, ZCFSpec, ZoeService} from './types.js';
|
|
35
35
|
*/
|
|
@@ -42,7 +42,7 @@ import { ZoeServiceI } from '../typeGuards.js';
|
|
|
42
42
|
* @param {Promise<VatAdminSvc> | VatAdminSvc} [options.vatAdminSvc] - The vatAdmin Service, which carries the
|
|
43
43
|
* power to create a new vat. If it's not available when makeZoe() is called, it
|
|
44
44
|
* must be provided later using setVatAdminService().
|
|
45
|
-
* @param {
|
|
45
|
+
* @param {ShutdownWithFailure} [options.shutdownZoeVat] - a function to
|
|
46
46
|
* shutdown the Zoe Vat. This function needs to use the vatPowers
|
|
47
47
|
* available to a vat.
|
|
48
48
|
* @param {FeeIssuerConfig} [options.feeIssuerConfig]
|
|
@@ -272,7 +272,7 @@ const makeDurableZoeKit = ({
|
|
|
272
272
|
* @param {Promise<VatAdminSvc> | VatAdminSvc} [vatAdminSvc] - The vatAdmin Service, which carries the
|
|
273
273
|
* power to create a new vat. If it's not available when makeZoe() is called, it
|
|
274
274
|
* must be provided later using setVatAdminService().
|
|
275
|
-
* @param {
|
|
275
|
+
* @param {ShutdownWithFailure} [shutdownZoeVat] - a function to
|
|
276
276
|
* shutdown the Zoe Vat. This function needs to use the vatPowers
|
|
277
277
|
* available to a vat.
|
|
278
278
|
* @param {FeeIssuerConfig} [feeIssuerConfig]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapForID: GetBundleCapForID, shutdownZoeVat:
|
|
1
|
+
export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapForID: GetBundleCapForID, shutdownZoeVat: ShutdownWithFailure, feeMint: {
|
|
2
2
|
getFeeIssuerKit: GetFeeIssuerKit;
|
|
3
3
|
getFeeIssuer: () => Issuer;
|
|
4
4
|
getFeeBrand: () => Brand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"AAiEO,oDAXI,YAAY,qBAEZ,iBAAiB,kBACjB,mBAAmB,WACnB;IACL,eAAe,EAAE,eAAe,CAAC;IACjC,YAAY,EAAE,MAAM,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;kBAdyB,CAAC;qBACtC,CAAC;oBAA0B,CAAC;;;;;;;GAwbjC;6BApcyB,kBAAkB"}
|
|
@@ -27,6 +27,14 @@ import {
|
|
|
27
27
|
ZoeStorageManagerIKit,
|
|
28
28
|
} from '../typeGuards.js';
|
|
29
29
|
|
|
30
|
+
// Deleting this imperative-looking import does not break `yarn lint` in the
|
|
31
|
+
// zoe package. However, clients of zoe such as governance then claim that
|
|
32
|
+
// the `../zoe` package has many "Cannot find name <type>" errors for other
|
|
33
|
+
// types in the zoe package.
|
|
34
|
+
// See https://github.com/Agoric/agoric-sdk/pull/11243#discussion_r2059200058
|
|
35
|
+
// TODO investigate and hopefully fix.
|
|
36
|
+
import './internal-types.js';
|
|
37
|
+
|
|
30
38
|
/**
|
|
31
39
|
* @import {Baggage} from '@agoric/vat-data';
|
|
32
40
|
* @import {InvitationAmount} from '@agoric/zoe';
|
|
@@ -47,7 +55,7 @@ const { ownKeys } = Reflect;
|
|
|
47
55
|
* @param {CreateZCFVat} createZCFVat - the ability to create a new
|
|
48
56
|
* ZCF Vat
|
|
49
57
|
* @param {GetBundleCapForID} getBundleCapForID
|
|
50
|
-
* @param {
|
|
58
|
+
* @param {ShutdownWithFailure} shutdownZoeVat
|
|
51
59
|
* @param {{
|
|
52
60
|
* getFeeIssuerKit: GetFeeIssuerKit,
|
|
53
61
|
* getFeeIssuer: () => Issuer,
|
package/tools/fakeVatAdmin.d.ts
CHANGED
|
@@ -14,13 +14,13 @@ declare const fakeVatAdmin: {
|
|
|
14
14
|
done: () => Promise<any>;
|
|
15
15
|
terminateWithFailure: () => void;
|
|
16
16
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
17
|
-
} &
|
|
17
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
18
18
|
done: () => Promise<any>;
|
|
19
19
|
terminateWithFailure: () => void;
|
|
20
20
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
21
21
|
}>;
|
|
22
22
|
}>;
|
|
23
|
-
} &
|
|
23
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
24
24
|
getBundleCap: (bundleID: any) => Promise<any>;
|
|
25
25
|
waitForBundleCap: (bundleID: any) => Promise<any>;
|
|
26
26
|
getNamedBundleCap: (name: any) => Promise<any>;
|
|
@@ -33,7 +33,7 @@ declare const fakeVatAdmin: {
|
|
|
33
33
|
done: () => Promise<any>;
|
|
34
34
|
terminateWithFailure: () => void;
|
|
35
35
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
36
|
-
} &
|
|
36
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
37
37
|
done: () => Promise<any>;
|
|
38
38
|
terminateWithFailure: () => void;
|
|
39
39
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
@@ -58,13 +58,13 @@ export function makeFakeVatAdmin(testContextSetter?: (...args: any) => unknown,
|
|
|
58
58
|
done: () => Promise<any>;
|
|
59
59
|
terminateWithFailure: () => void;
|
|
60
60
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
61
|
-
} &
|
|
61
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
62
62
|
done: () => Promise<any>;
|
|
63
63
|
terminateWithFailure: () => void;
|
|
64
64
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
65
65
|
}>;
|
|
66
66
|
}>;
|
|
67
|
-
} &
|
|
67
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
68
68
|
getBundleCap: (bundleID: any) => Promise<any>;
|
|
69
69
|
waitForBundleCap: (bundleID: any) => Promise<any>;
|
|
70
70
|
getNamedBundleCap: (name: any) => Promise<any>;
|
|
@@ -77,7 +77,7 @@ export function makeFakeVatAdmin(testContextSetter?: (...args: any) => unknown,
|
|
|
77
77
|
done: () => Promise<any>;
|
|
78
78
|
terminateWithFailure: () => void;
|
|
79
79
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
80
|
-
} &
|
|
80
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
81
81
|
done: () => Promise<any>;
|
|
82
82
|
terminateWithFailure: () => void;
|
|
83
83
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
@@ -21,7 +21,7 @@ export function makeScriptedOracle(script: Record<string, any>, oracleInstallati
|
|
|
21
21
|
publicFacet: object & {
|
|
22
22
|
query(query: OracleQuery): Promise<unknown>;
|
|
23
23
|
makeQueryInvitation(query: OracleQuery): Promise<globalThis.Invitation<unknown, never>>;
|
|
24
|
-
} &
|
|
24
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
25
25
|
query(query: OracleQuery): Promise<unknown>;
|
|
26
26
|
makeQueryInvitation(query: OracleQuery): Promise<globalThis.Invitation<unknown, never>>;
|
|
27
27
|
}>;
|
package/tools/setup-zoe.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export function makeZoeKitForTest(vatAdminSvc?: VatAdminSvc): {
|
|
|
4
4
|
updateZcfBundleId(bundleId: any): void;
|
|
5
5
|
}>;
|
|
6
6
|
feeMintAccess: FeeMintAccess;
|
|
7
|
-
setVatAdminService: ((lateVatAdminSvc: any) => void) &
|
|
7
|
+
setVatAdminService: ((lateVatAdminSvc: any) => void) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
8
8
|
};
|
|
9
9
|
export function makeZoeForTest(vatAdminSvc?: VatAdminSvc): import("@endo/exo").Guarded<globalThis.ZoeService>;
|
|
10
10
|
export function setUpZoeForTest<T extends unknown = any>({ setJig, feeIssuerConfig, vatAdminSvc, useNearRemote, }?: {
|