@agoric/portfolio-api 0.1.1-dev-eb52bc3.0.eb52bc3 → 0.1.1-dev-80cd149.0.80cd149
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 +4 -4
- package/src/evm-wallet/eip712-messages.d.ts +20 -0
- package/src/evm-wallet/eip712-messages.d.ts.map +1 -1
- package/src/evm-wallet/eip712-messages.js +7 -0
- package/src/evm-wallet/message-handler-helpers.d.ts +65 -1
- package/src/evm-wallet/message-handler-helpers.d.ts.map +1 -1
- package/src/portfolio-permissions.js +2 -2
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-80cd149.0.80cd149",
|
|
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-80cd149.0.80cd149",
|
|
51
|
+
"@agoric/orchestration": "0.1.1-dev-80cd149.0.80cd149",
|
|
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": "80cd149d68b87637d320a4154e6201ca80b9d61e"
|
|
78
78
|
}
|
|
@@ -143,6 +143,16 @@ declare const OperationTypes: {
|
|
|
143
143
|
readonly name: "portfolio";
|
|
144
144
|
readonly type: "uint256";
|
|
145
145
|
}];
|
|
146
|
+
/**
|
|
147
|
+
* Accept ownership of a portfolio whose current owner (an Agoric account)
|
|
148
|
+
* designated the signer as its new owner. Completes the transfer: the
|
|
149
|
+
* portfolio's source EVM account becomes the signer's account on the
|
|
150
|
+
* domain's chain.
|
|
151
|
+
*/
|
|
152
|
+
readonly AcceptOwnership: readonly [{
|
|
153
|
+
readonly name: "portfolio";
|
|
154
|
+
readonly type: "uint256";
|
|
155
|
+
}];
|
|
146
156
|
};
|
|
147
157
|
type OperationTypes = typeof OperationTypes;
|
|
148
158
|
export type OperationTypeNames = keyof OperationTypes;
|
|
@@ -350,6 +360,16 @@ export declare const YmaxPortfolioMessageSchema: {
|
|
|
350
360
|
readonly name: "portfolio";
|
|
351
361
|
readonly type: "uint256";
|
|
352
362
|
}];
|
|
363
|
+
/**
|
|
364
|
+
* Accept ownership of a portfolio whose current owner (an Agoric account)
|
|
365
|
+
* designated the signer as its new owner. Completes the transfer: the
|
|
366
|
+
* portfolio's source EVM account becomes the signer's account on the
|
|
367
|
+
* domain's chain.
|
|
368
|
+
*/
|
|
369
|
+
readonly AcceptOwnership: readonly [{
|
|
370
|
+
readonly name: "portfolio";
|
|
371
|
+
readonly type: "uint256";
|
|
372
|
+
}];
|
|
353
373
|
};
|
|
354
374
|
readonly subTypes: {
|
|
355
375
|
readonly Allocation: readonly [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eip712-messages.d.ts","sourceRoot":"","sources":["eip712-messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAEL,KAAK,gBAAgB,EAErB,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,2CAA2C,EAChD,KAAK,sCAAsC,EAC3C,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACtB,MAAM,oDAA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,MAAM,uBAAuB,EAAE,uBAAuB,CAAC,qBAAqB,CACtC,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAE,uBAAuB,CAAC,4BAA4B,CAC7C,CAAC;AAErD,MAAM,MAAM,2BAA2B,CACrC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IAC/C,uBAAuB,CAAC,0BAA0B,EAAE,CAAC,CAAC,CAAC;AAE3D,MAAM,MAAM,iCAAiC,CAC3C,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IAC/C,sCAAsC,CAAC,0BAA0B,EAAE,CAAC,CAAC,CAAC;AAE1E,MAAM,MAAM,sCAAsC,CAChD,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,IAC/C,2CAA2C,CAAC,0BAA0B,EAAE,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,uBAAuB,CAAC,oBAAoB,CACrC,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,uBAAuB,CAAC,gBAAgB,CACjC,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,EAAE,uBAAuB,CAAC,2BAA2B,CAC5C,CAAC;AAEpD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,uBAAuB,CAAC,uBAAuB,CACpC,CAAC"}
|
|
@@ -118,6 +118,13 @@ const OperationTypes = {
|
|
|
118
118
|
{ name: 'features', type: 'PortfolioAutoFeatures' },
|
|
119
119
|
PortfolioIdParam,
|
|
120
120
|
],
|
|
121
|
+
/**
|
|
122
|
+
* Accept ownership of a portfolio whose current owner (an Agoric account)
|
|
123
|
+
* designated the signer as its new owner. Completes the transfer: the
|
|
124
|
+
* portfolio's source EVM account becomes the signer's account on the
|
|
125
|
+
* domain's chain.
|
|
126
|
+
*/
|
|
127
|
+
AcceptOwnership: [PortfolioIdParam],
|
|
121
128
|
// `satisfies Record<string, readonly TypedDataParameter[]>` rather than
|
|
122
129
|
// abitype's own `TypedData` (whose `TypedDataParameter` is strictly
|
|
123
130
|
// `{name, type}`) so struct fields here can carry the repo-local `optional`
|
|
@@ -30,7 +30,7 @@ export type FullMessageDetails<T extends OperationTypeNames = OperationTypeNames
|
|
|
30
30
|
* @param viemUtils
|
|
31
31
|
*/
|
|
32
32
|
export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
33
|
-
extractOperationDetailsFromDataWithAddress: <T extends OperationTypeNames = "Grant" | "Revoke" | "Deposit" | "Withdraw" | "OpenPortfolio" | "OpenPortfolioWithAutoFeatures" | "OpenPortfolioWithGrant" | "Rebalance" | "SetTargetAllocation" | "ChangePermissions" | "SetAutoFeatures">(data: (WithSignature<YmaxPermitWitnessTransferFromData<T>> | YmaxStandaloneOperationData<T>) & {
|
|
33
|
+
extractOperationDetailsFromDataWithAddress: <T extends OperationTypeNames = "Grant" | "Revoke" | "Deposit" | "Withdraw" | "OpenPortfolio" | "OpenPortfolioWithAutoFeatures" | "OpenPortfolioWithGrant" | "Rebalance" | "SetTargetAllocation" | "ChangePermissions" | "SetAutoFeatures" | "AcceptOwnership">(data: (WithSignature<YmaxPermitWitnessTransferFromData<T>> | YmaxStandaloneOperationData<T>) & {
|
|
34
34
|
address: Address;
|
|
35
35
|
}, { permit2, ymaxRepresentative, }?: {
|
|
36
36
|
permit2?: ContractAddresses;
|
|
@@ -123,6 +123,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
123
123
|
readonly name: "portfolio";
|
|
124
124
|
readonly type: "uint256";
|
|
125
125
|
}];
|
|
126
|
+
readonly AcceptOwnership: readonly [{
|
|
127
|
+
readonly name: "portfolio";
|
|
128
|
+
readonly type: "uint256";
|
|
129
|
+
}];
|
|
126
130
|
};
|
|
127
131
|
readonly subTypes: {
|
|
128
132
|
readonly Allocation: readonly [{
|
|
@@ -260,6 +264,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
260
264
|
readonly name: "portfolio";
|
|
261
265
|
readonly type: "uint256";
|
|
262
266
|
}];
|
|
267
|
+
readonly AcceptOwnership: readonly [{
|
|
268
|
+
readonly name: "portfolio";
|
|
269
|
+
readonly type: "uint256";
|
|
270
|
+
}];
|
|
263
271
|
};
|
|
264
272
|
readonly subTypes: {
|
|
265
273
|
readonly Allocation: readonly [{
|
|
@@ -397,6 +405,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
397
405
|
readonly name: "portfolio";
|
|
398
406
|
readonly type: "uint256";
|
|
399
407
|
}];
|
|
408
|
+
readonly AcceptOwnership: readonly [{
|
|
409
|
+
readonly name: "portfolio";
|
|
410
|
+
readonly type: "uint256";
|
|
411
|
+
}];
|
|
400
412
|
};
|
|
401
413
|
readonly subTypes: {
|
|
402
414
|
readonly Allocation: readonly [{
|
|
@@ -534,6 +546,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
534
546
|
readonly name: "portfolio";
|
|
535
547
|
readonly type: "uint256";
|
|
536
548
|
}];
|
|
549
|
+
readonly AcceptOwnership: readonly [{
|
|
550
|
+
readonly name: "portfolio";
|
|
551
|
+
readonly type: "uint256";
|
|
552
|
+
}];
|
|
537
553
|
};
|
|
538
554
|
readonly subTypes: {
|
|
539
555
|
readonly Allocation: readonly [{
|
|
@@ -673,6 +689,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
673
689
|
readonly name: "portfolio";
|
|
674
690
|
readonly type: "uint256";
|
|
675
691
|
}];
|
|
692
|
+
readonly AcceptOwnership: readonly [{
|
|
693
|
+
readonly name: "portfolio";
|
|
694
|
+
readonly type: "uint256";
|
|
695
|
+
}];
|
|
676
696
|
};
|
|
677
697
|
readonly subTypes: {
|
|
678
698
|
readonly Allocation: readonly [{
|
|
@@ -811,6 +831,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
811
831
|
readonly name: "portfolio";
|
|
812
832
|
readonly type: "uint256";
|
|
813
833
|
}];
|
|
834
|
+
readonly AcceptOwnership: readonly [{
|
|
835
|
+
readonly name: "portfolio";
|
|
836
|
+
readonly type: "uint256";
|
|
837
|
+
}];
|
|
814
838
|
};
|
|
815
839
|
readonly subTypes: {
|
|
816
840
|
readonly Allocation: readonly [{
|
|
@@ -948,6 +972,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
948
972
|
readonly name: "portfolio";
|
|
949
973
|
readonly type: "uint256";
|
|
950
974
|
}];
|
|
975
|
+
readonly AcceptOwnership: readonly [{
|
|
976
|
+
readonly name: "portfolio";
|
|
977
|
+
readonly type: "uint256";
|
|
978
|
+
}];
|
|
951
979
|
};
|
|
952
980
|
readonly subTypes: {
|
|
953
981
|
readonly Allocation: readonly [{
|
|
@@ -1086,6 +1114,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
1086
1114
|
readonly name: "portfolio";
|
|
1087
1115
|
readonly type: "uint256";
|
|
1088
1116
|
}];
|
|
1117
|
+
readonly AcceptOwnership: readonly [{
|
|
1118
|
+
readonly name: "portfolio";
|
|
1119
|
+
readonly type: "uint256";
|
|
1120
|
+
}];
|
|
1089
1121
|
};
|
|
1090
1122
|
readonly subTypes: {
|
|
1091
1123
|
readonly Allocation: readonly [{
|
|
@@ -1224,6 +1256,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
1224
1256
|
readonly name: "portfolio";
|
|
1225
1257
|
readonly type: "uint256";
|
|
1226
1258
|
}];
|
|
1259
|
+
readonly AcceptOwnership: readonly [{
|
|
1260
|
+
readonly name: "portfolio";
|
|
1261
|
+
readonly type: "uint256";
|
|
1262
|
+
}];
|
|
1227
1263
|
};
|
|
1228
1264
|
readonly subTypes: {
|
|
1229
1265
|
readonly Allocation: readonly [{
|
|
@@ -1362,6 +1398,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
1362
1398
|
readonly name: "portfolio";
|
|
1363
1399
|
readonly type: "uint256";
|
|
1364
1400
|
}];
|
|
1401
|
+
readonly AcceptOwnership: readonly [{
|
|
1402
|
+
readonly name: "portfolio";
|
|
1403
|
+
readonly type: "uint256";
|
|
1404
|
+
}];
|
|
1365
1405
|
};
|
|
1366
1406
|
readonly subTypes: {
|
|
1367
1407
|
readonly Allocation: readonly [{
|
|
@@ -1499,6 +1539,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
1499
1539
|
readonly name: "portfolio";
|
|
1500
1540
|
readonly type: "uint256";
|
|
1501
1541
|
}];
|
|
1542
|
+
readonly AcceptOwnership: readonly [{
|
|
1543
|
+
readonly name: "portfolio";
|
|
1544
|
+
readonly type: "uint256";
|
|
1545
|
+
}];
|
|
1502
1546
|
};
|
|
1503
1547
|
readonly subTypes: {
|
|
1504
1548
|
readonly Allocation: readonly [{
|
|
@@ -1638,6 +1682,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
1638
1682
|
readonly name: "portfolio";
|
|
1639
1683
|
readonly type: "uint256";
|
|
1640
1684
|
}];
|
|
1685
|
+
readonly AcceptOwnership: readonly [{
|
|
1686
|
+
readonly name: "portfolio";
|
|
1687
|
+
readonly type: "uint256";
|
|
1688
|
+
}];
|
|
1641
1689
|
};
|
|
1642
1690
|
readonly subTypes: {
|
|
1643
1691
|
readonly Allocation: readonly [{
|
|
@@ -1777,6 +1825,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
1777
1825
|
readonly name: "portfolio";
|
|
1778
1826
|
readonly type: "uint256";
|
|
1779
1827
|
}];
|
|
1828
|
+
readonly AcceptOwnership: readonly [{
|
|
1829
|
+
readonly name: "portfolio";
|
|
1830
|
+
readonly type: "uint256";
|
|
1831
|
+
}];
|
|
1780
1832
|
};
|
|
1781
1833
|
readonly subTypes: {
|
|
1782
1834
|
readonly Allocation: readonly [{
|
|
@@ -1914,6 +1966,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
1914
1966
|
readonly name: "portfolio";
|
|
1915
1967
|
readonly type: "uint256";
|
|
1916
1968
|
}];
|
|
1969
|
+
readonly AcceptOwnership: readonly [{
|
|
1970
|
+
readonly name: "portfolio";
|
|
1971
|
+
readonly type: "uint256";
|
|
1972
|
+
}];
|
|
1917
1973
|
};
|
|
1918
1974
|
readonly subTypes: {
|
|
1919
1975
|
readonly Allocation: readonly [{
|
|
@@ -2056,6 +2112,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
2056
2112
|
readonly name: "portfolio";
|
|
2057
2113
|
readonly type: "uint256";
|
|
2058
2114
|
}];
|
|
2115
|
+
readonly AcceptOwnership: readonly [{
|
|
2116
|
+
readonly name: "portfolio";
|
|
2117
|
+
readonly type: "uint256";
|
|
2118
|
+
}];
|
|
2059
2119
|
};
|
|
2060
2120
|
readonly subTypes: {
|
|
2061
2121
|
readonly Allocation: readonly [{
|
|
@@ -2193,6 +2253,10 @@ export declare const makeEVMHandlerUtils: (viemUtils: EIP712ViemUtils) => {
|
|
|
2193
2253
|
readonly name: "portfolio";
|
|
2194
2254
|
readonly type: "uint256";
|
|
2195
2255
|
}];
|
|
2256
|
+
readonly AcceptOwnership: readonly [{
|
|
2257
|
+
readonly name: "portfolio";
|
|
2258
|
+
readonly type: "uint256";
|
|
2259
|
+
}];
|
|
2196
2260
|
};
|
|
2197
2261
|
readonly subTypes: {
|
|
2198
2262
|
readonly Allocation: readonly [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-handler-helpers.d.ts","sourceRoot":"","sources":["message-handler-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWzB,CAAC"}
|
|
@@ -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) {
|