agoric 0.21.2-dev-e26232e.0 → 0.21.2-dev-c14f1bb.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 +20 -20
- package/src/lib/rpc.js +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agoric",
|
|
3
|
-
"version": "0.21.2-dev-
|
|
3
|
+
"version": "0.21.2-dev-c14f1bb.0+c14f1bb",
|
|
4
4
|
"description": "Manage the Agoric Javascript smart contract platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.js",
|
|
@@ -28,29 +28,29 @@
|
|
|
28
28
|
"lint:eslint": "eslint ."
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@agoric/cosmic-swingset": "0.41.4-dev-
|
|
32
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
31
|
+
"@agoric/cosmic-swingset": "0.41.4-dev-c14f1bb.0+c14f1bb",
|
|
32
|
+
"@agoric/deploy-script-support": "0.10.4-dev-c14f1bb.0+c14f1bb",
|
|
33
33
|
"ava": "^5.3.0",
|
|
34
34
|
"c8": "^7.13.0",
|
|
35
35
|
"dd-trace": "^4.11.1"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@agoric/access-token": "0.4.22-dev-
|
|
39
|
-
"@agoric/assert": "0.6.1-dev-
|
|
40
|
-
"@agoric/cache": "0.3.3-dev-
|
|
41
|
-
"@agoric/casting": "0.4.3-dev-
|
|
42
|
-
"@agoric/cosmic-proto": "0.3.1-dev-
|
|
43
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
44
|
-
"@agoric/governance": "0.10.4-dev-
|
|
45
|
-
"@agoric/inter-protocol": "0.16.2-dev-
|
|
46
|
-
"@agoric/internal": "0.3.3-dev-
|
|
47
|
-
"@agoric/network": "0.1.1-dev-
|
|
48
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
49
|
-
"@agoric/store": "0.9.3-dev-
|
|
50
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
51
|
-
"@agoric/vats": "0.15.2-dev-
|
|
52
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
53
|
-
"@agoric/zone": "0.2.3-dev-
|
|
38
|
+
"@agoric/access-token": "0.4.22-dev-c14f1bb.0+c14f1bb",
|
|
39
|
+
"@agoric/assert": "0.6.1-dev-c14f1bb.0+c14f1bb",
|
|
40
|
+
"@agoric/cache": "0.3.3-dev-c14f1bb.0+c14f1bb",
|
|
41
|
+
"@agoric/casting": "0.4.3-dev-c14f1bb.0+c14f1bb",
|
|
42
|
+
"@agoric/cosmic-proto": "0.3.1-dev-c14f1bb.0+c14f1bb",
|
|
43
|
+
"@agoric/ertp": "0.16.3-dev-c14f1bb.0+c14f1bb",
|
|
44
|
+
"@agoric/governance": "0.10.4-dev-c14f1bb.0+c14f1bb",
|
|
45
|
+
"@agoric/inter-protocol": "0.16.2-dev-c14f1bb.0+c14f1bb",
|
|
46
|
+
"@agoric/internal": "0.3.3-dev-c14f1bb.0+c14f1bb",
|
|
47
|
+
"@agoric/network": "0.1.1-dev-c14f1bb.0+c14f1bb",
|
|
48
|
+
"@agoric/smart-wallet": "0.5.4-dev-c14f1bb.0+c14f1bb",
|
|
49
|
+
"@agoric/store": "0.9.3-dev-c14f1bb.0+c14f1bb",
|
|
50
|
+
"@agoric/swingset-vat": "0.32.3-dev-c14f1bb.0+c14f1bb",
|
|
51
|
+
"@agoric/vats": "0.15.2-dev-c14f1bb.0+c14f1bb",
|
|
52
|
+
"@agoric/zoe": "0.26.3-dev-c14f1bb.0+c14f1bb",
|
|
53
|
+
"@agoric/zone": "0.2.3-dev-c14f1bb.0+c14f1bb",
|
|
54
54
|
"@confio/relayer": "^0.9.0",
|
|
55
55
|
"@cosmjs/crypto": "^0.30.1",
|
|
56
56
|
"@cosmjs/encoding": "^0.30.1",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"typeCoverage": {
|
|
99
99
|
"atLeast": 77.53
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "c14f1bb0643cd47575204f7f29662cd2da670eb1"
|
|
102
102
|
}
|
package/src/lib/rpc.js
CHANGED
|
@@ -79,9 +79,13 @@ export const makeVStorage = (powers, config = networkConfig) => {
|
|
|
79
79
|
result: { response },
|
|
80
80
|
} = data;
|
|
81
81
|
if (response?.code !== 0) {
|
|
82
|
-
|
|
82
|
+
/** @type {any} */
|
|
83
|
+
const err = Error(
|
|
83
84
|
`error code ${response?.code} reading ${kind} of ${path}: ${response.log}`,
|
|
84
85
|
);
|
|
86
|
+
err.code = response?.code;
|
|
87
|
+
err.codespace = response?.codespace;
|
|
88
|
+
throw err;
|
|
85
89
|
}
|
|
86
90
|
return data;
|
|
87
91
|
});
|
|
@@ -143,7 +147,14 @@ export const makeVStorage = (powers, config = networkConfig) => {
|
|
|
143
147
|
));
|
|
144
148
|
// console.debug('readAt returned', { blockHeight });
|
|
145
149
|
} catch (err) {
|
|
146
|
-
if (
|
|
150
|
+
if (
|
|
151
|
+
// CosmosSDK ErrNotFound; there is no data at the path
|
|
152
|
+
(err.codespace === 'sdk' && err.code === 38) ||
|
|
153
|
+
// CosmosSDK ErrUnknownRequest; misrepresentation of the same until
|
|
154
|
+
// https://github.com/Agoric/agoric-sdk/commit/dafc7c1708977aaa55e245dc09a73859cf1df192
|
|
155
|
+
// TODO remove after upgrade-12
|
|
156
|
+
err.message.match(/unknown request/)
|
|
157
|
+
) {
|
|
147
158
|
// console.error(err);
|
|
148
159
|
break;
|
|
149
160
|
}
|