@agoric/portfolio-api 0.1.1-dev-eb52bc3.0.eb52bc3 → 0.1.1-dev-7683cd3.0.7683cd3
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/portfolio-api",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-7683cd3.0.7683cd3",
|
|
4
4
|
"description": "API for Portfolio management",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"generate:ymax-machine": "npx tsx scripts/gen-ymax-machine.mts"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@agoric/internal": "0.3.3-dev-
|
|
51
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
50
|
+
"@agoric/internal": "0.3.3-dev-7683cd3.0.7683cd3",
|
|
51
|
+
"@agoric/orchestration": "0.1.1-dev-7683cd3.0.7683cd3",
|
|
52
52
|
"@endo/common": "^1.4.0",
|
|
53
53
|
"@endo/errors": "^1.3.1",
|
|
54
54
|
"@endo/patterns": "^1.9.1"
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": "^22.11 || ^24.14"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "7683cd37ce5b594a99cf13bae531aa02bf52e21a"
|
|
78
78
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mustMatch, } from '@agoric/internal';
|
|
2
|
-
import { Fail } from '@endo/errors';
|
|
2
|
+
import { Fail, q } from '@endo/errors';
|
|
3
3
|
import { } from '@endo/pass-style';
|
|
4
4
|
import { M } from '@endo/patterns';
|
|
5
5
|
;
|
|
@@ -139,7 +139,7 @@ export const portfolioPermissionsToEIP712 = (
|
|
|
139
139
|
mustMatch(permissions, PortfolioPermissionsShape);
|
|
140
140
|
for (const authority of ['rebalance', 'claimRewards'] ) {
|
|
141
141
|
!Object.hasOwn(permissions, authority) ||
|
|
142
|
-
Fail`${authority} is not supported by user-facing permissions`;
|
|
142
|
+
Fail`${q(authority)} is not supported by user-facing permissions`;
|
|
143
143
|
}
|
|
144
144
|
const { allocation } = permissions;
|
|
145
145
|
if (allocation === undefined) {
|