@agoric/zoe 0.26.3-dev-9c97014.0 → 0.26.3-dev-b5d1abe.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 +91 -91
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +14 -14
- package/src/typeGuards.js +1 -1
- package/tools/test-utils.d.ts +7 -3
- package/tools/test-utils.d.ts.map +1 -1
- package/tools/test-utils.js +4 -0
- package/tools/types.d.ts +4 -0
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.26.3-dev-
|
|
3
|
+
"version": "0.26.3-dev-b5d1abe.0+b5d1abe",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
47
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
48
|
-
"@agoric/internal": "0.3.3-dev-
|
|
49
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-dev-
|
|
51
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
52
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
53
|
-
"@agoric/time": "0.3.3-dev-
|
|
54
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
55
|
-
"@agoric/vow": "0.1.1-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
46
|
+
"@agoric/base-zone": "0.1.1-dev-b5d1abe.0+b5d1abe",
|
|
47
|
+
"@agoric/ertp": "0.16.3-dev-b5d1abe.0+b5d1abe",
|
|
48
|
+
"@agoric/internal": "0.3.3-dev-b5d1abe.0+b5d1abe",
|
|
49
|
+
"@agoric/notifier": "0.6.3-dev-b5d1abe.0+b5d1abe",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-b5d1abe.0+b5d1abe",
|
|
51
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-b5d1abe.0+b5d1abe",
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-b5d1abe.0+b5d1abe",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-b5d1abe.0+b5d1abe",
|
|
54
|
+
"@agoric/vat-data": "0.5.3-dev-b5d1abe.0+b5d1abe",
|
|
55
|
+
"@agoric/vow": "0.1.1-dev-b5d1abe.0+b5d1abe",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-b5d1abe.0+b5d1abe",
|
|
57
57
|
"@endo/bundle-source": "^3.5.0",
|
|
58
58
|
"@endo/captp": "^4.4.3",
|
|
59
59
|
"@endo/common": "^1.2.8",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"yargs-parser": "^21.1.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
73
|
+
"@agoric/kmarshal": "0.1.1-dev-b5d1abe.0+b5d1abe",
|
|
74
74
|
"@endo/init": "^1.1.7",
|
|
75
75
|
"ava": "^5.3.0",
|
|
76
76
|
"c8": "^10.1.2",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"typeCoverage": {
|
|
101
101
|
"atLeast": 85.06
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "b5d1abe805326f0c9ec96ca6bc75b6f7b7d7ac43"
|
|
104
104
|
}
|
package/src/typeGuards.js
CHANGED
|
@@ -352,7 +352,7 @@ export const ZoeServiceI = M.interface('ZoeService', {
|
|
|
352
352
|
getInstallationForInstance: M.callWhen(M.await(InstanceHandleShape)).returns(
|
|
353
353
|
M.eref(M.remotable('Installation')),
|
|
354
354
|
),
|
|
355
|
-
getBundleIDFromInstallation: M.
|
|
355
|
+
getBundleIDFromInstallation: M.callWhen(M.await(InstallationShape)).returns(
|
|
356
356
|
M.eref(M.string()),
|
|
357
357
|
),
|
|
358
358
|
|
package/tools/test-utils.d.ts
CHANGED
|
@@ -10,11 +10,15 @@ export function withAmountUtils(kit: Pick<IssuerKit<"nat">, "brand" | "issuer" |
|
|
|
10
10
|
/** @param {number} n */
|
|
11
11
|
units: (n: number) => import("@agoric/ertp").NatAmount;
|
|
12
12
|
/** The intact Exo remotable */
|
|
13
|
-
issuerKit: Pick<
|
|
14
|
-
brand:
|
|
15
|
-
issuer:
|
|
13
|
+
issuerKit: Pick<IssuerKit<"nat">, "brand" | "issuer" | "mint">;
|
|
14
|
+
brand: Brand<"nat">;
|
|
15
|
+
issuer: Issuer<"nat", import("@endo/patterns").Key>;
|
|
16
16
|
mint: globalThis.Mint<"nat", import("@endo/patterns").Key>;
|
|
17
17
|
};
|
|
18
18
|
export { makeFakeStorageKit } from "@agoric/internal/src/storage-test-utils.js";
|
|
19
19
|
export type AmountUtils = ReturnType<typeof withAmountUtils>;
|
|
20
|
+
import type { IssuerKit } from '@agoric/ertp';
|
|
21
|
+
import type { NatValue } from '@agoric/ertp';
|
|
22
|
+
import type { Brand } from '@agoric/ertp';
|
|
23
|
+
import type { Issuer } from '@agoric/ertp';
|
|
20
24
|
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["test-utils.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["test-utils.js"],"names":[],"mappings":"AAQO,qCADK,IAAI,CAAC,UAAU,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAK3D,0BAA0B;cAAd,QAAQ;;IAGpB;;;OAGG;mBAFQ,QAAQ,MACR,QAAQ;IAGnB,wBAAwB;eAAZ,MAAM;IAGlB,+BAA+B;;;;;EAGlC;;0BACa,UAAU,CAAC,OAAO,eAAe,CAAC;+BAvB2B,cAAc;8BAAd,cAAc;2BAAd,cAAc;4BAAd,cAAc"}
|
package/tools/test-utils.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { AmountMath } from '@agoric/ertp';
|
|
2
2
|
import { makeRatio } from '../src/contractSupport/ratio.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* @import {Amount, Brand, DepositFacet, Issuer, IssuerKit, NatValue} from '@agoric/ertp';
|
|
6
|
+
*/
|
|
7
|
+
|
|
4
8
|
/** @param {Pick<IssuerKit<'nat'>, 'brand' | 'issuer' | 'mint'>} kit */
|
|
5
9
|
export const withAmountUtils = kit => {
|
|
6
10
|
const decimalPlaces = kit.issuer.getDisplayInfo?.()?.decimalPlaces ?? 6;
|
package/tools/types.d.ts
CHANGED
|
@@ -139,4 +139,8 @@ export type PriceLevel = {
|
|
|
139
139
|
*/
|
|
140
140
|
amountOut: Amount<"nat">;
|
|
141
141
|
};
|
|
142
|
+
import type { Amount } from '@agoric/ertp';
|
|
143
|
+
import type { Payment } from '@agoric/ertp';
|
|
144
|
+
import type { Brand } from '@agoric/ertp';
|
|
145
|
+
import type { Issuer } from '@agoric/ertp';
|
|
142
146
|
//# sourceMappingURL=types.d.ts.map
|
package/tools/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;iBASc,OAAO,KAAK,EAAE,gBAAgB,CAAC;;;;kBAE/B,IAAI,CAAC,QAAQ,KAAK,EAAE,gBAAgB,CAAC,CAAC;;;;;;8BAKvC,CAAC,gBAAgB,C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