@agoric/zoe 0.26.3-dev-5eb596e.0 → 0.26.3-dev-e6e23eb.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 +88 -80
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +11 -10
- package/src/contractFacet/reallocate.d.ts +3 -0
- package/src/contractFacet/reallocate.d.ts.map +1 -0
- package/src/contractFacet/reallocate.js +94 -0
- package/src/contractFacet/types.d.ts +10 -0
- package/src/contractFacet/types.d.ts.map +1 -1
- package/src/contractFacet/types.js +12 -0
- package/src/contractFacet/zcfSeat.d.ts.map +1 -1
- package/src/contractFacet/zcfSeat.js +104 -3
- package/src/contractFacet/zcfZygote.d.ts.map +1 -1
- package/src/contractFacet/zcfZygote.js +1 -0
- package/src/contractSupport/atomicTransfer.d.ts +0 -6
- package/src/contractSupport/atomicTransfer.d.ts.map +1 -1
- package/src/contractSupport/atomicTransfer.js +5 -90
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/contractSupport/zoeHelpers.js +3 -10
- package/src/contracts/auction/firstPriceLogic.d.ts.map +1 -1
- package/src/contracts/auction/firstPriceLogic.js +1 -3
- package/src/contracts/auction/secondPriceLogic.d.ts.map +1 -1
- package/src/contracts/auction/secondPriceLogic.js +1 -3
- package/src/contracts/autoswap.d.ts.map +1 -1
- package/src/contracts/autoswap.js +3 -7
- package/src/contracts/barterExchange.d.ts.map +1 -1
- package/src/contracts/barterExchange.js +2 -3
- package/src/contracts/callSpread/fundedCallSpread.d.ts.map +1 -1
- package/src/contracts/callSpread/fundedCallSpread.js +1 -3
- package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -1
- package/src/contracts/callSpread/pricedCallSpread.js +1 -3
- package/src/contracts/loan/borrow.d.ts.map +1 -1
- package/src/contracts/loan/borrow.js +1 -3
- package/src/contracts/loan/close.d.ts.map +1 -1
- package/src/contracts/loan/close.js +2 -6
- package/src/contracts/sellItems.d.ts.map +1 -1
- package/src/contracts/sellItems.js +1 -3
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +15 -17
- package/src/zoeService/zoe.d.ts +11 -1
- package/src/zoeService/zoe.d.ts.map +1 -1
- package/src/zoeService/zoe.js +23 -1
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/src/zoeService/zoeStorageManager.js +7 -2
- package/tools/setup-zoe.d.ts +5 -0
- package/tools/setup-zoe.d.ts.map +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Far } from '@endo/marshal';
|
|
2
2
|
import { makeLegacyMap } from '@agoric/store';
|
|
3
3
|
// Eventually will be importable from '@agoric/zoe-contract-support'
|
|
4
|
-
import { satisfies
|
|
4
|
+
import { satisfies } from '../contractSupport/index.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This Barter Exchange accepts offers to trade arbitrary goods for other
|
|
@@ -63,8 +63,7 @@ const start = zcf => {
|
|
|
63
63
|
const matchingTrade = findMatchingTrade(offerDetails, orders);
|
|
64
64
|
if (matchingTrade) {
|
|
65
65
|
// reallocate by giving each side what it wants
|
|
66
|
-
atomicRearrange(
|
|
67
|
-
zcf,
|
|
66
|
+
zcf.atomicRearrange(
|
|
68
67
|
harden([
|
|
69
68
|
[
|
|
70
69
|
offerDetails.seat,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fundedCallSpread.d.ts","sourceRoot":"","sources":["fundedCallSpread.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fundedCallSpread.d.ts","sourceRoot":"","sources":["fundedCallSpread.js"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH;;;;;;;;;GASG;AACH;kBARiB,MAAM;kBACN,MAAM;sBACF,MAAM;oBACR,cAAc;gBAClB,MAAM;sBACA,MAAM;;;GA8E1B"}
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
assertProposalShape,
|
|
8
8
|
depositToSeat,
|
|
9
9
|
assertNatAssetKind,
|
|
10
|
-
atomicRearrange,
|
|
11
10
|
} from '../../contractSupport/index.js';
|
|
12
11
|
import { makePayoffHandler } from './payoffHandler.js';
|
|
13
12
|
import { Position } from './position.js';
|
|
@@ -112,8 +111,7 @@ const start = async zcf => {
|
|
|
112
111
|
give: { Collateral: null },
|
|
113
112
|
want: { LongOption: null, ShortOption: null },
|
|
114
113
|
});
|
|
115
|
-
atomicRearrange(
|
|
116
|
-
zcf,
|
|
114
|
+
zcf.atomicRearrange(
|
|
117
115
|
harden([
|
|
118
116
|
[creatorSeat, collateralSeat, { Collateral: settlementAmount }],
|
|
119
117
|
[
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricedCallSpread.d.ts","sourceRoot":"","sources":["pricedCallSpread.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pricedCallSpread.d.ts","sourceRoot":"","sources":["pricedCallSpread.js"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH;kBARiB,OAAO,KAAK,CAAC;kBACb,OAAO,KAAK,CAAC;sBACT,OAAO,KAAK,CAAC;oBACf,cAAc;gBAClB,MAAM;sBACA,OAAO,KAAK,CAAC;;;;;;;;;;;;;EA0GjC"}
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
assertNatAssetKind,
|
|
11
11
|
makeRatio,
|
|
12
12
|
ceilMultiplyBy,
|
|
13
|
-
atomicRearrange,
|
|
14
13
|
} from '../../contractSupport/index.js';
|
|
15
14
|
import { makePayoffHandler } from './payoffHandler.js';
|
|
16
15
|
import { Position } from './position.js';
|
|
@@ -132,8 +131,7 @@ const start = zcf => {
|
|
|
132
131
|
'wanted option not a match',
|
|
133
132
|
);
|
|
134
133
|
|
|
135
|
-
atomicRearrange(
|
|
136
|
-
zcf,
|
|
134
|
+
zcf.atomicRearrange(
|
|
137
135
|
harden([
|
|
138
136
|
[collateralSeat, depositSeat, spreadAmount],
|
|
139
137
|
[depositSeat, collateralSeat, { Collateral: newCollateral }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borrow.d.ts","sourceRoot":"","sources":["borrow.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"borrow.d.ts","sourceRoot":"","sources":["borrow.js"],"names":[],"mappings":"AAkBA,mCAAmC;AACnC,mCADW,oBAAoB,CAiI7B"}
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
getAmountOut,
|
|
10
10
|
ceilMultiplyBy,
|
|
11
11
|
getTimestamp,
|
|
12
|
-
atomicRearrange,
|
|
13
12
|
} from '../../contractSupport/index.js';
|
|
14
13
|
|
|
15
14
|
import { scheduleLiquidation } from './scheduleLiquidation.js';
|
|
@@ -72,8 +71,7 @@ export const makeBorrowInvitation = (zcf, config) => {
|
|
|
72
71
|
|
|
73
72
|
const { zcfSeat: collateralSeat } = zcf.makeEmptySeatKit();
|
|
74
73
|
|
|
75
|
-
atomicRearrange(
|
|
76
|
-
zcf,
|
|
74
|
+
zcf.atomicRearrange(
|
|
77
75
|
harden([
|
|
78
76
|
// Transfer the wanted Loan amount to the borrower
|
|
79
77
|
[lenderSeat, borrowerSeat, { Loan: loanWanted }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close.d.ts","sourceRoot":"","sources":["close.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"close.d.ts","sourceRoot":"","sources":["close.js"],"names":[],"mappings":"AAYA,sCAAsC;AACtC,sCADW,uBAAuB,CAiDhC"}
|
|
@@ -3,10 +3,7 @@ import './types.js';
|
|
|
3
3
|
import { Fail } from '@agoric/assert';
|
|
4
4
|
import { AmountMath } from '@agoric/ertp';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
assertProposalShape,
|
|
8
|
-
atomicRearrange,
|
|
9
|
-
} from '../../contractSupport/index.js';
|
|
6
|
+
import { assertProposalShape } from '../../contractSupport/index.js';
|
|
10
7
|
|
|
11
8
|
// The debt, the amount which must be repaid, is just the amount
|
|
12
9
|
// loaned plus interest (aka stability fee). All debt must be repaid
|
|
@@ -44,8 +41,7 @@ export const makeCloseLoanInvitation = (zcf, config) => {
|
|
|
44
41
|
'Collateral',
|
|
45
42
|
collateralBrand,
|
|
46
43
|
);
|
|
47
|
-
atomicRearrange(
|
|
48
|
-
zcf,
|
|
44
|
+
zcf.atomicRearrange(
|
|
49
45
|
harden([
|
|
50
46
|
[collateralSeat, repaySeat, { Collateral: collateralAmount }],
|
|
51
47
|
[repaySeat, lenderSeat, { Loan: debt }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sellItems.d.ts","sourceRoot":"","sources":["sellItems.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sellItems.d.ts","sourceRoot":"","sources":["sellItems.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH;kBAF8B,OAAO,KAAK,CAAC;;;;;EAuH1C"}
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
defaultAcceptanceMsg,
|
|
12
12
|
assertProposalShape,
|
|
13
13
|
assertNatAssetKind,
|
|
14
|
-
atomicRearrange,
|
|
15
14
|
} from '../contractSupport/index.js';
|
|
16
15
|
|
|
17
16
|
const { Fail } = assert;
|
|
@@ -107,8 +106,7 @@ const start = zcf => {
|
|
|
107
106
|
Fail`More money (${totalCost}) is required to buy these items`;
|
|
108
107
|
|
|
109
108
|
// Reallocate.
|
|
110
|
-
atomicRearrange(
|
|
111
|
-
zcf,
|
|
109
|
+
zcf.atomicRearrange(
|
|
112
110
|
harden([
|
|
113
111
|
[buyerSeat, sellerSeat, { Money: providedMoney }],
|
|
114
112
|
[sellerSeat, buyerSeat, { Items: wantedItems }],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AA0BO,uDANI,KAAK,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,KAAK,SAAS,CAAC,4BAChB,MAAM,KAAK,SAAS,0CAEvB,OAAO,SAAS,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AA0BO,uDANI,KAAK,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,KAAK,SAAS,CAAC,4BAChB,MAAM,KAAK,SAAS,0CAEvB,OAAO,SAAS,EAAE,aAAa,CAiU3C;sBA3Ua,OAAO,kBAAkB,EAAE,OAAO;wBACjC,OAAO,sBAAsB,EAAE,SAAS"}
|
|
@@ -43,6 +43,12 @@ export const makeStartInstance = (
|
|
|
43
43
|
seatHandleToZoeSeatAdmin,
|
|
44
44
|
);
|
|
45
45
|
|
|
46
|
+
const getFreshZcfBundleCap = async () => {
|
|
47
|
+
const settledBundleCap = await getZcfBundleCapP();
|
|
48
|
+
settledBundleCap !== undefined || Fail`the ZCF bundle cap was broken`;
|
|
49
|
+
return settledBundleCap;
|
|
50
|
+
};
|
|
51
|
+
|
|
46
52
|
const InstanceAdminStateShape = harden({
|
|
47
53
|
instanceStorage: M.remotable('ZoeInstanceStorageManager'),
|
|
48
54
|
instanceAdmin: M.remotable('InstanceAdmin'),
|
|
@@ -178,12 +184,10 @@ export const makeStartInstance = (
|
|
|
178
184
|
/**
|
|
179
185
|
*
|
|
180
186
|
* @param {import('@agoric/swingset-vat').VatAdminFacet} adminNode
|
|
181
|
-
* @param {*} zcfBundleCap
|
|
182
187
|
* @param {*} contractBundleCap
|
|
183
188
|
*/
|
|
184
|
-
(adminNode,
|
|
189
|
+
(adminNode, contractBundleCap) => ({
|
|
185
190
|
adminNode,
|
|
186
|
-
zcfBundleCap,
|
|
187
191
|
contractBundleCap,
|
|
188
192
|
}),
|
|
189
193
|
{
|
|
@@ -200,12 +204,13 @@ export const makeStartInstance = (
|
|
|
200
204
|
privateArgs: newPrivateArgs,
|
|
201
205
|
};
|
|
202
206
|
|
|
203
|
-
return E(
|
|
204
|
-
vatParameters,
|
|
205
|
-
|
|
207
|
+
return E.when(getFreshZcfBundleCap(), bCap =>
|
|
208
|
+
E(state.adminNode).upgrade(bCap, { vatParameters }),
|
|
209
|
+
);
|
|
206
210
|
},
|
|
207
211
|
async upgradeContract(contractBundleId, newPrivateArgs = undefined) {
|
|
208
212
|
const { state } = this;
|
|
213
|
+
|
|
209
214
|
const newContractBundleCap = await getBundleCapByIdNow(
|
|
210
215
|
contractBundleId,
|
|
211
216
|
);
|
|
@@ -213,9 +218,9 @@ export const makeStartInstance = (
|
|
|
213
218
|
contractBundleCap: newContractBundleCap,
|
|
214
219
|
privateArgs: newPrivateArgs,
|
|
215
220
|
};
|
|
216
|
-
return E(
|
|
217
|
-
vatParameters,
|
|
218
|
-
|
|
221
|
+
return E.when(getFreshZcfBundleCap(), bCap =>
|
|
222
|
+
E(state.adminNode).upgrade(bCap, { vatParameters }),
|
|
223
|
+
);
|
|
219
224
|
},
|
|
220
225
|
},
|
|
221
226
|
);
|
|
@@ -306,9 +311,6 @@ export const makeStartInstance = (
|
|
|
306
311
|
|
|
307
312
|
instanceAdmin.initDelayedState(handleOfferObj, publicFacet);
|
|
308
313
|
|
|
309
|
-
const settledBundleCap = await getZcfBundleCapP();
|
|
310
|
-
settledBundleCap !== undefined || Fail`the bundle cap was broken`;
|
|
311
|
-
|
|
312
314
|
// creatorInvitation can be undefined, but if it is defined,
|
|
313
315
|
// let's make sure it is an invitation.
|
|
314
316
|
return E.when(
|
|
@@ -324,11 +326,7 @@ export const makeStartInstance = (
|
|
|
324
326
|
isLiveResult ||
|
|
325
327
|
Fail`The contract did not correctly return a creatorInvitation`;
|
|
326
328
|
|
|
327
|
-
const adminFacet = makeAdminFacet(
|
|
328
|
-
adminNode,
|
|
329
|
-
harden(settledBundleCap),
|
|
330
|
-
contractBundleCap,
|
|
331
|
-
);
|
|
329
|
+
const adminFacet = makeAdminFacet(adminNode, contractBundleCap);
|
|
332
330
|
|
|
333
331
|
// Actually returned to the user.
|
|
334
332
|
return harden({
|
package/src/zoeService/zoe.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type Baggage = import('@agoric/vat-data').Baggage;
|
|
2
2
|
export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
|
|
3
3
|
/**
|
|
4
|
-
* Create
|
|
4
|
+
* Create a durable instance of Zoe.
|
|
5
5
|
*
|
|
6
6
|
* @param {object} options
|
|
7
7
|
* @param {Baggage} options.zoeBaggage - the baggage for Zoe durability. Must be provided by caller
|
|
@@ -22,6 +22,11 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
|
|
|
22
22
|
zcfSpec?: ZCFSpec | undefined;
|
|
23
23
|
}): {
|
|
24
24
|
zoeService: ZoeService;
|
|
25
|
+
zoeConfigFacet: {
|
|
26
|
+
updateZcfBundleId(bundleId: any): void;
|
|
27
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
28
|
+
updateZcfBundleId(bundleId: any): void;
|
|
29
|
+
}>;
|
|
25
30
|
/** @type {FeeMintAccess} */
|
|
26
31
|
feeMintAccess: FeeMintAccess;
|
|
27
32
|
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
@@ -44,6 +49,11 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
|
|
|
44
49
|
*/
|
|
45
50
|
export function makeZoeKit(vatAdminSvc?: import("@agoric/swingset-vat").VatAdminSvc | Promise<import("@agoric/swingset-vat").VatAdminSvc> | undefined, shutdownZoeVat?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined, feeIssuerConfig?: FeeIssuerConfig | undefined, zcfSpec?: ZCFSpec | undefined): {
|
|
46
51
|
zoeService: ZoeService;
|
|
52
|
+
zoeConfigFacet: {
|
|
53
|
+
updateZcfBundleId(bundleId: any): void;
|
|
54
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
55
|
+
updateZcfBundleId(bundleId: any): void;
|
|
56
|
+
}>;
|
|
47
57
|
/** @type {FeeMintAccess} */
|
|
48
58
|
feeMintAccess: FeeMintAccess;
|
|
49
59
|
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":"sBA8Bc,OAAO,kBAAkB,EAAE,OAAO;qBA6PnC,WAAW,wBAAwB,CAAC;AAzPjD;;;;;;;;;;;;;GAaG;AACH;IAV4B,UAAU,EAA3B,OAAO;IACsC,WAAW;IAG1B,cAAc;IAGlB,eAAe;IACvB,OAAO;;;;;;;;IAyMhC,4BAA4B;mBAAjB,aAAa;;EAK3B;AAED;;;;;;;;;;;;;;;GAeG;AACH;;;;;;;IAvBI,4BAA4B;mBAAjB,aAAa;;EA8BxB"}
|
package/src/zoeService/zoe.js
CHANGED
|
@@ -18,6 +18,7 @@ import '../internal-types.js';
|
|
|
18
18
|
import { E } from '@endo/eventual-send';
|
|
19
19
|
import { Far } from '@endo/marshal';
|
|
20
20
|
import { makeScalarBigMapStore, prepareExo } from '@agoric/vat-data';
|
|
21
|
+
import { M } from '@agoric/store';
|
|
21
22
|
|
|
22
23
|
import { makeZoeStorageManager } from './zoeStorageManager.js';
|
|
23
24
|
import { makeStartInstance } from './startInstance.js';
|
|
@@ -32,7 +33,7 @@ import { ZoeServiceI } from '../typeGuards.js';
|
|
|
32
33
|
const { Fail } = assert;
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
|
-
* Create
|
|
36
|
+
* Create a durable instance of Zoe.
|
|
36
37
|
*
|
|
37
38
|
* @param {object} options
|
|
38
39
|
* @param {Baggage} options.zoeBaggage - the baggage for Zoe durability. Must be provided by caller
|
|
@@ -52,6 +53,7 @@ const makeDurableZoeKit = ({
|
|
|
52
53
|
feeIssuerConfig = defaultFeeIssuerConfig,
|
|
53
54
|
zcfSpec = { name: 'zcf' },
|
|
54
55
|
}) => {
|
|
56
|
+
/** @type {BundleCap} */
|
|
55
57
|
let zcfBundleCap;
|
|
56
58
|
|
|
57
59
|
const saveBundleCap = () => {
|
|
@@ -168,6 +170,25 @@ const makeDurableZoeKit = ({
|
|
|
168
170
|
});
|
|
169
171
|
};
|
|
170
172
|
|
|
173
|
+
const ZoeConfigI = M.interface('ZoeConfigFacet', {
|
|
174
|
+
updateZcfBundleId: M.call(M.string()).returns(),
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
const zoeConfigFacet = prepareExo(zoeBaggage, 'ZoeConfigFacet', ZoeConfigI, {
|
|
178
|
+
updateZcfBundleId(bundleId) {
|
|
179
|
+
E.when(
|
|
180
|
+
getZcfBundleCap({ id: bundleId }, vatAdminSvc),
|
|
181
|
+
bundleCap => {
|
|
182
|
+
zcfBundleCap = bundleCap;
|
|
183
|
+
},
|
|
184
|
+
e => {
|
|
185
|
+
console.error(`'🚨 unable to update ZCF Bundle: `, e);
|
|
186
|
+
throw e;
|
|
187
|
+
},
|
|
188
|
+
);
|
|
189
|
+
},
|
|
190
|
+
});
|
|
191
|
+
|
|
171
192
|
/** @type {ZoeService} */
|
|
172
193
|
const zoeService = prepareExo(zoeBaggage, 'ZoeService', ZoeServiceI, {
|
|
173
194
|
install(bundleId, bundleLabel) {
|
|
@@ -223,6 +244,7 @@ const makeDurableZoeKit = ({
|
|
|
223
244
|
|
|
224
245
|
return harden({
|
|
225
246
|
zoeService,
|
|
247
|
+
zoeConfigFacet,
|
|
226
248
|
/** @type {FeeMintAccess} */
|
|
227
249
|
// @ts-expect-error cast
|
|
228
250
|
feeMintAccess: feeMintKit.feeMintAccess,
|
|
@@ -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":"AAwDO,oDAXI,YAAY,qBAEZ,iBAAiB,kBACjB,mBAAmB,WACnB;IACV,eAAoB,EAAE,eAAe,CAAC;IACtC,YAAiB,EAAE,MAAM,MAAM,CAAC;IAChC,WAAgB,EAAE,MAAM,KAAK,CAAC;CAC3B;;;;;;;;;;;;;;;;;;;;;;;QA+ZI,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAAjC,iCAAiC;;;;;;;;;;;GAYxC;sBAjca,OAAO,kBAAkB,EAAE,OAAO"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { E } from '@endo/far';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
AssetKind,
|
|
4
|
+
makeDurableIssuerKit,
|
|
5
|
+
AmountMath,
|
|
6
|
+
prepareIssuerKit,
|
|
7
|
+
} from '@agoric/ertp';
|
|
3
8
|
import {
|
|
4
9
|
makeScalarBigMapStore,
|
|
5
10
|
provideDurableWeakMapStore,
|
|
@@ -117,7 +122,7 @@ export const makeZoeStorageManager = (
|
|
|
117
122
|
'zoeMintBaggageSet',
|
|
118
123
|
);
|
|
119
124
|
for (const issuerBaggage of zoeMintBaggageSet.values()) {
|
|
120
|
-
|
|
125
|
+
prepareIssuerKit(issuerBaggage);
|
|
121
126
|
}
|
|
122
127
|
|
|
123
128
|
const makeZoeMint = prepareExoClass(
|
package/tools/setup-zoe.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export function makeZoeKitForTest(vatAdminSvc?: import("@agoric/swingset-vat").VatAdminSvc | undefined): {
|
|
2
2
|
zoeService: ZoeService;
|
|
3
|
+
zoeConfigFacet: {
|
|
4
|
+
updateZcfBundleId(bundleId: any): void;
|
|
5
|
+
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
6
|
+
updateZcfBundleId(bundleId: any): void;
|
|
7
|
+
}>;
|
|
3
8
|
feeMintAccess: FeeMintAccess;
|
|
4
9
|
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
5
10
|
};
|
package/tools/setup-zoe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AASO
|
|
1
|
+
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AASO;;;;;;;;;EAKN;AAKM,iHACoC;AAYpC;IAL+B,MAAM,gBAArB,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;;;;;;;;;;;;;;;;;;GA+BzC"}
|