@agoric/smart-wallet 0.5.4-dev-4685ea9.0 → 0.5.4-dev-e4a6095.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/smart-wallet",
|
|
3
|
-
"version": "0.5.4-dev-
|
|
3
|
+
"version": "0.5.4-dev-e4a6095.0+e4a6095",
|
|
4
4
|
"description": "Wallet contract",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"lint:eslint": "eslint ."
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
20
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
21
|
-
"@agoric/zone": "0.2.3-dev-
|
|
19
|
+
"@agoric/cosmic-proto": "0.4.1-dev-e4a6095.0+e4a6095",
|
|
20
|
+
"@agoric/swingset-vat": "0.32.3-dev-e4a6095.0+e4a6095",
|
|
21
|
+
"@agoric/zone": "0.2.3-dev-e4a6095.0+e4a6095",
|
|
22
22
|
"@endo/bundle-source": "^3.2.3",
|
|
23
23
|
"@endo/captp": "^4.2.0",
|
|
24
24
|
"@endo/init": "^1.1.2",
|
|
@@ -26,15 +26,15 @@
|
|
|
26
26
|
"import-meta-resolve": "^2.2.1"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@agoric/assert": "0.6.1-dev-
|
|
30
|
-
"@agoric/casting": "0.4.3-dev-
|
|
31
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
32
|
-
"@agoric/internal": "0.3.3-dev-
|
|
33
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
34
|
-
"@agoric/store": "0.9.3-dev-
|
|
35
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
36
|
-
"@agoric/vats": "0.15.2-dev-
|
|
37
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
29
|
+
"@agoric/assert": "0.6.1-dev-e4a6095.0+e4a6095",
|
|
30
|
+
"@agoric/casting": "0.4.3-dev-e4a6095.0+e4a6095",
|
|
31
|
+
"@agoric/ertp": "0.16.3-dev-e4a6095.0+e4a6095",
|
|
32
|
+
"@agoric/internal": "0.3.3-dev-e4a6095.0+e4a6095",
|
|
33
|
+
"@agoric/notifier": "0.6.3-dev-e4a6095.0+e4a6095",
|
|
34
|
+
"@agoric/store": "0.9.3-dev-e4a6095.0+e4a6095",
|
|
35
|
+
"@agoric/vat-data": "0.5.3-dev-e4a6095.0+e4a6095",
|
|
36
|
+
"@agoric/vats": "0.15.2-dev-e4a6095.0+e4a6095",
|
|
37
|
+
"@agoric/zoe": "0.26.3-dev-e4a6095.0+e4a6095",
|
|
38
38
|
"@endo/eventual-send": "^1.2.2",
|
|
39
39
|
"@endo/far": "^1.1.2",
|
|
40
40
|
"@endo/marshal": "^1.5.0",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"typeCoverage": {
|
|
72
72
|
"atLeast": 94.36
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "e4a60956afd8c8d4c830581b77d0daae4a493ae5"
|
|
75
75
|
}
|
|
@@ -13,14 +13,14 @@ export function makeExportContext(): {
|
|
|
13
13
|
purseEntries: (keyPatt?: globalThis.Pattern, valuePatt?: globalThis.Pattern) => Iterable<[number, globalThis.Purse]>;
|
|
14
14
|
/**
|
|
15
15
|
* @param {BoardId} id
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {RemotableObject} val
|
|
17
17
|
*/
|
|
18
|
-
initBoardId: (id: string, val:
|
|
18
|
+
initBoardId: (id: string, val: RemotableObject) => void;
|
|
19
19
|
/**
|
|
20
20
|
* @param {BoardId} id
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {RemotableObject} val
|
|
22
22
|
*/
|
|
23
|
-
ensureBoardId: (id: string, val:
|
|
23
|
+
ensureBoardId: (id: string, val: RemotableObject) => void;
|
|
24
24
|
};
|
|
25
25
|
export function makeImportContext(makePresence?: ((iface: string) => PassableCap) | undefined): {
|
|
26
26
|
/**
|
|
@@ -38,7 +38,7 @@ export function makeImportContext(makePresence?: ((iface: string) => PassableCap
|
|
|
38
38
|
fromCapData: import("@endo/marshal").FromCapData<string>;
|
|
39
39
|
serialize: import("@endo/marshal").ToCapData<string>;
|
|
40
40
|
unserialize: import("@endo/marshal").FromCapData<string>;
|
|
41
|
-
} &
|
|
41
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
42
42
|
toCapData: import("@endo/marshal").ToCapData<string>;
|
|
43
43
|
fromCapData: import("@endo/marshal").FromCapData<string>;
|
|
44
44
|
serialize: import("@endo/marshal").ToCapData<string>;
|
|
@@ -49,7 +49,7 @@ export function makeImportContext(makePresence?: ((iface: string) => PassableCap
|
|
|
49
49
|
fromCapData: import("@endo/marshal").FromCapData<string>;
|
|
50
50
|
serialize: import("@endo/marshal").ToCapData<string>;
|
|
51
51
|
unserialize: import("@endo/marshal").FromCapData<string>;
|
|
52
|
-
} &
|
|
52
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
53
53
|
toCapData: import("@endo/marshal").ToCapData<string>;
|
|
54
54
|
fromCapData: import("@endo/marshal").FromCapData<string>;
|
|
55
55
|
serialize: import("@endo/marshal").ToCapData<string>;
|
|
@@ -86,6 +86,7 @@ export type IdTable<Slot extends Key, Val extends PassableCap> = {
|
|
|
86
86
|
};
|
|
87
87
|
export type ExportContext = ReturnType<typeof makeExportContext>;
|
|
88
88
|
export type ImportContext = ReturnType<typeof makeImportContext>;
|
|
89
|
+
import type { RemotableObject } from '@endo/marshal';
|
|
89
90
|
import type { PassableCap } from '@endo/marshal';
|
|
90
91
|
import type { Key } from '@endo/patterns';
|
|
91
92
|
//# sourceMappingURL=marshal-contexts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marshal-contexts.d.ts","sourceRoot":"","sources":["marshal-contexts.js"],"names":[],"mappings":"AAuHO;;;;;;;IAqFH;;;OAGG;sBAFQ,MAAM,SACN,KAAK;;IAMhB;;;OAGG;;IAIH;;;OAGG;;EAUN;AAcM,0DAFY,MAAM;IA8FrB;;;OAGG;;IAIH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;EAWN;AAwBM,2CAHI,MAAM,OACN,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,OAapC;;;;;uBA7W8B,CAAC,8CAAnB,GAAG,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,EAAE;;;;qBAI5B,CAAC,mBAAJ,GAAG,CAAC,IAAI,MAAM,EAAE;;;;;sBA2CL,CAAC;;;;;;qBAGZ,GAAG,GAAG,IAAI,GAAG,KAAK;;;;oBAWL,IAAI,cAAT,GAAG,wBAFX;IACZ,MAAU,EAAE,QAAQ,CACK,IAAI,AADJ,EACL,GAAG,AADO,CAAC,CAAC;IAChC,KAAS,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;CAC5B;4BA8IU,UAAU,CAAC,OAAO,iBAAiB,CAAC;4BA+HpC,UAAU,CAAC,OAAO,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"marshal-contexts.d.ts","sourceRoot":"","sources":["marshal-contexts.js"],"names":[],"mappings":"AAuHO;;;;;;;IAqFH;;;OAGG;sBAFQ,MAAM,SACN,KAAK;;IAMhB;;;OAGG;;IAIH;;;OAGG;;EAUN;AAcM,0DAFY,MAAM;IA8FrB;;;OAGG;;IAIH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;EAWN;AAwBM,2CAHI,MAAM,OACN,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,OAapC;;;;;uBA7W8B,CAAC,8CAAnB,GAAG,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,EAAE;;;;qBAI5B,CAAC,mBAAJ,GAAG,CAAC,IAAI,MAAM,EAAE;;;;;sBA2CL,CAAC;;;;;;qBAGZ,GAAG,GAAG,IAAI,GAAG,KAAK;;;;oBAWL,IAAI,cAAT,GAAG,wBAFX;IACZ,MAAU,EAAE,QAAQ,CACK,IAAI,AADJ,EACL,GAAG,AADO,CAAC,CAAC;IAChC,KAAS,EAAE,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;CAC5B;4BA8IU,UAAU,CAAC,OAAO,iBAAiB,CAAC;4BA+HpC,UAAU,CAAC,OAAO,iBAAiB,CAAC;qCA/VH,eAAe;iCAAf,eAAe;yBACxC,gBAAgB"}
|
package/src/marshal-contexts.js
CHANGED
|
@@ -7,7 +7,7 @@ import { DEFAULT_PREFIX } from '@agoric/vats/src/lib-board.js';
|
|
|
7
7
|
const { Fail, quote: q } = assert;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @import {PassableCap} from '@endo/marshal';
|
|
10
|
+
* @import {PassableCap, RemotableObject} from '@endo/marshal';
|
|
11
11
|
* @import {Key} from '@endo/patterns';
|
|
12
12
|
* @import {BoardId} from '@agoric/vats/src/lib-board.js';
|
|
13
13
|
*/
|
|
@@ -212,14 +212,14 @@ export const makeExportContext = () => {
|
|
|
212
212
|
purseEntries: walletObjects.purse.bySlot.entries,
|
|
213
213
|
/**
|
|
214
214
|
* @param {BoardId} id
|
|
215
|
-
* @param {
|
|
215
|
+
* @param {RemotableObject} val
|
|
216
216
|
*/
|
|
217
217
|
initBoardId: (id, val) => {
|
|
218
218
|
initSlotVal(boardObjects, id, val);
|
|
219
219
|
},
|
|
220
220
|
/**
|
|
221
221
|
* @param {BoardId} id
|
|
222
|
-
* @param {
|
|
222
|
+
* @param {RemotableObject} val
|
|
223
223
|
*/
|
|
224
224
|
ensureBoardId: (id, val) => {
|
|
225
225
|
if (boardObjects.byVal.has(val)) {
|