@agoric/wallet-backend 0.13.4-dev-84f6373.0 → 0.13.4-dev-35e5e30.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/wallet-backend",
|
|
3
|
-
"version": "0.13.4-dev-
|
|
3
|
+
"version": "0.13.4-dev-35e5e30.0+35e5e30",
|
|
4
4
|
"description": "Wallet backend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
"lint:eslint": "eslint ."
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@agoric/vats": "0.13.1-dev-
|
|
17
|
+
"@agoric/vats": "0.13.1-dev-35e5e30.0+35e5e30",
|
|
18
18
|
"@endo/bundle-source": "^2.5.1",
|
|
19
19
|
"@endo/init": "^0.5.56",
|
|
20
20
|
"ava": "^5.2.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@agoric/assert": "0.5.2-dev-
|
|
24
|
-
"@agoric/cache": "0.2.4-dev-
|
|
25
|
-
"@agoric/ertp": "0.15.4-dev-
|
|
26
|
-
"@agoric/internal": "0.2.2-dev-
|
|
27
|
-
"@agoric/notifier": "0.5.2-dev-
|
|
28
|
-
"@agoric/smart-wallet": "0.4.3-dev-
|
|
29
|
-
"@agoric/store": "0.8.4-dev-
|
|
30
|
-
"@agoric/time": "0.2.2-dev-
|
|
31
|
-
"@agoric/vat-data": "0.4.4-dev-
|
|
32
|
-
"@agoric/zoe": "0.25.4-dev-
|
|
23
|
+
"@agoric/assert": "0.5.2-dev-35e5e30.0+35e5e30",
|
|
24
|
+
"@agoric/cache": "0.2.4-dev-35e5e30.0+35e5e30",
|
|
25
|
+
"@agoric/ertp": "0.15.4-dev-35e5e30.0+35e5e30",
|
|
26
|
+
"@agoric/internal": "0.2.2-dev-35e5e30.0+35e5e30",
|
|
27
|
+
"@agoric/notifier": "0.5.2-dev-35e5e30.0+35e5e30",
|
|
28
|
+
"@agoric/smart-wallet": "0.4.3-dev-35e5e30.0+35e5e30",
|
|
29
|
+
"@agoric/store": "0.8.4-dev-35e5e30.0+35e5e30",
|
|
30
|
+
"@agoric/time": "0.2.2-dev-35e5e30.0+35e5e30",
|
|
31
|
+
"@agoric/vat-data": "0.4.4-dev-35e5e30.0+35e5e30",
|
|
32
|
+
"@agoric/zoe": "0.25.4-dev-35e5e30.0+35e5e30",
|
|
33
33
|
"@endo/eventual-send": "^0.17.2",
|
|
34
34
|
"@endo/marshal": "^0.8.5",
|
|
35
35
|
"@endo/nat": "^4.1.27",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "35e5e303bf8d98a8c2fe4a0815bafe8ff00317b5"
|
|
61
61
|
}
|
package/test/test-middleware.js
CHANGED
|
@@ -32,7 +32,7 @@ test('makeLoggingPresence logs calls on purse/payment actions', async t => {
|
|
|
32
32
|
const ctx = makeExportContext();
|
|
33
33
|
ctx.savePurseActions(purse.actions);
|
|
34
34
|
ctx.savePaymentActions(myPayment);
|
|
35
|
-
const capData = ctx.
|
|
35
|
+
const capData = ctx.toCapData(harden([...msgs]));
|
|
36
36
|
t.deepEqual(capData, capData1);
|
|
37
37
|
});
|
|
38
38
|
|
|
@@ -43,17 +43,17 @@ test('makeImportContext in wallet UI can unserialize messages', async t => {
|
|
|
43
43
|
|
|
44
44
|
const ctx = makeImportContext(mkp);
|
|
45
45
|
|
|
46
|
-
const stuff = ctx.fromMyWallet.
|
|
46
|
+
const stuff = ctx.fromMyWallet.fromCapData(capData1);
|
|
47
47
|
t.is(stuff.length, 2);
|
|
48
48
|
const [[_tag, purse, method, _args]] = stuff;
|
|
49
49
|
t.is(method, 'deposit');
|
|
50
50
|
await E(purse).transfer(1);
|
|
51
51
|
|
|
52
52
|
// unserialization is consistent
|
|
53
|
-
const stuff2 = ctx.fromMyWallet.
|
|
53
|
+
const stuff2 = ctx.fromMyWallet.fromCapData(capData1);
|
|
54
54
|
t.deepEqual(stuff, stuff2);
|
|
55
55
|
|
|
56
|
-
const capData = ctx.fromMyWallet.
|
|
56
|
+
const capData = ctx.fromMyWallet.toCapData(harden([...msgs]));
|
|
57
57
|
|
|
58
58
|
t.deepEqual(capData, {
|
|
59
59
|
body: '#[["applyMethod","$0.Alleged: purse.actions","transfer",[1]]]',
|