@agoric/portfolio-api 0.1.1-dev-79a22bb.0.79a22bb → 0.1.1-dev-57c6564.0.57c6564

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-79a22bb.0.79a22bb",
3
+ "version": "0.1.1-dev-57c6564.0.57c6564",
4
4
  "description": "API for Portfolio management",
5
5
  "repository": {
6
6
  "type": "git",
@@ -46,8 +46,8 @@
46
46
  "generate:ymax-machine": "npx tsx scripts/gen-ymax-machine.mts"
47
47
  },
48
48
  "dependencies": {
49
- "@agoric/internal": "0.3.3-dev-79a22bb.0.79a22bb",
50
- "@agoric/orchestration": "0.1.1-dev-79a22bb.0.79a22bb",
49
+ "@agoric/internal": "0.3.3-dev-57c6564.0.57c6564",
50
+ "@agoric/orchestration": "0.1.1-dev-57c6564.0.57c6564",
51
51
  "@endo/common": "^1.2.13",
52
52
  "@endo/errors": "^1.2.13",
53
53
  "@endo/patterns": "^1.7.0"
@@ -88,5 +88,5 @@
88
88
  "engines": {
89
89
  "node": "^20.9 || ^22.11"
90
90
  },
91
- "gitHead": "79a22bb3c7eaa3ff5bed4c429ee2042862fac349"
91
+ "gitHead": "57c65644e1863ee11eb668b24da90af8da28b67b"
92
92
  }
@@ -19,7 +19,7 @@ export type YieldProtocol = (typeof YieldProtocol)[keyof typeof YieldProtocol];
19
19
  /**
20
20
  * Yield protocols for Proof of Concept.
21
21
  *
22
- * @enum {(typeof YieldProtocol)[keyof typeof YieldProtocol]}
22
+ * @typedef {(typeof YieldProtocol)[keyof typeof YieldProtocol]} YieldProtocol
23
23
  */
24
24
  export const YieldProtocol: import("@agoric/internal").KeyMirrorResult<{
25
25
  Aave: null;
@@ -42,7 +42,7 @@ export namespace EvmWalletOperationType {
42
42
  }
43
43
  export type AxelarChain = (typeof AxelarChain)[keyof typeof AxelarChain];
44
44
  /**
45
- * @enum {(typeof AxelarChain)[keyof typeof AxelarChain]}
45
+ * @typedef {(typeof AxelarChain)[keyof typeof AxelarChain]} AxelarChain
46
46
  */
47
47
  export const AxelarChain: import("@agoric/internal").KeyMirrorResult<{
48
48
  Arbitrum: null;
@@ -59,7 +59,7 @@ export const AxelarChain: import("@agoric/internal").KeyMirrorResult<{
59
59
  export const Eip155ChainIds: Readonly<Record<ClusterName, Readonly<Partial<Record<AxelarChain, bigint>>>>>;
60
60
  export type SupportedChain = (typeof SupportedChain)[keyof typeof SupportedChain];
61
61
  /**
62
- * @enum {(typeof SupportedChain)[keyof typeof SupportedChain]}
62
+ * @typedef {(typeof SupportedChain)[keyof typeof SupportedChain]} SupportedChain
63
63
  */
64
64
  export const SupportedChain: import("@agoric/internal").KeyMirrorResult<{
65
65
  Arbitrum: "Arbitrum";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":"AAOA;;;;GAIG;AAEH;;;;;;;GAOG;AACH,kCAFU,UAAU,GAAG,SAAS,CAO9B;;;;4BAMQ,CAAC,OAAO,aAAa,EAAE,MAAM,OAAO,aAAa,CAAC;AAH5D;;;;GAIG;AACH;;;;;;GAMG;;;;;;;qCASO,CAAC,OAAO,sBAAsB,EAAE,MAAM,OAAO,sBAAsB,CAAC;;;;;;0BAUpE,CAAC,OAAO,WAAW,EAAE,MAAM,OAAO,WAAW,CAAC;AADxD;;GAEG;AACH;;;;;;GAMG;AAGH;;;;GAIG;AACH,6BAFU,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAkBrF;6BAIQ,CAAC,OAAO,cAAc,EAAE,MAAM,OAAO,cAAc,CAAC;AAD9D;;GAEG;AACH;;;;;;;;GAWG;AAMH;;;;;;;GAOG;AACH,2BAFU,QAAQ,CAAC,MAAM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FU,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAgB7F;AAGF;;;;GAIG;AACH,2BAFU,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAwBxF;;;;gCAMW,CAAC,OAAO,iBAAiB,EAAE,MAAM,OAAO,iBAAiB,CAAC;;;;;AAgBvE;;;GAGG;AACH,mCAAoC,IAAI,CAAC;AAEzC;;;GAGG;AACH,gCAFU,aAAa,UAAU,CAAC,UAAU,CAAC,CAAC,CAO5C;AAEF;;;GAGG;AACH,8BAFU,aAAa,UAAU,CAAC,CAOhC;gCA5M2B,YAAY;iCAFG,kBAAkB;iCAChC,uBAAuB;kCADT,kBAAkB"}
package/src/constants.js CHANGED
@@ -30,7 +30,7 @@ harden(DEFAULT_FLOW_CONFIG);
30
30
  /**
31
31
  * Yield protocols for Proof of Concept.
32
32
  *
33
- * @enum {(typeof YieldProtocol)[keyof typeof YieldProtocol]}
33
+ * @typedef {(typeof YieldProtocol)[keyof typeof YieldProtocol]} YieldProtocol
34
34
  */
35
35
  export const YieldProtocol = keyMirror({
36
36
  Aave: null,
@@ -47,7 +47,7 @@ harden(YieldProtocol);
47
47
  * Withdraw: user is withdrawing assets from a yield protocol on the target chain.
48
48
  * DepositForBurn: user is transferring assets off the target chain via CCTP.
49
49
  *
50
- * @enum {(typeof EvmWalletOperationType)[keyof typeof EvmWalletOperationType]}
50
+ * @typedef {(typeof EvmWalletOperationType)[keyof typeof EvmWalletOperationType]} EvmWalletOperationType
51
51
  */
52
52
  export const EvmWalletOperationType = /** @type {const} */ ({
53
53
  Supply: 'supply',
@@ -57,7 +57,7 @@ export const EvmWalletOperationType = /** @type {const} */ ({
57
57
  harden(EvmWalletOperationType);
58
58
 
59
59
  /**
60
- * @enum {(typeof AxelarChain)[keyof typeof AxelarChain]}
60
+ * @typedef {(typeof AxelarChain)[keyof typeof AxelarChain]} AxelarChain
61
61
  */
62
62
  export const AxelarChain = keyMirror({
63
63
  Arbitrum: null,
@@ -93,7 +93,7 @@ export const Eip155ChainIds = {
93
93
  harden(Eip155ChainIds);
94
94
 
95
95
  /**
96
- * @enum {(typeof SupportedChain)[keyof typeof SupportedChain]}
96
+ * @typedef {(typeof SupportedChain)[keyof typeof SupportedChain]} SupportedChain
97
97
  */
98
98
  export const SupportedChain = keyMirror({
99
99
  // ...AxelarChain works locally but gets lost in .d.ts generation
@@ -170,7 +170,7 @@ harden(UsdcTokenIds);
170
170
  /**
171
171
  * Strategies for portfolio rebalancing of bulk deposits.
172
172
  *
173
- * @enum {(typeof RebalanceStrategy)[keyof typeof RebalanceStrategy]}
173
+ * @typedef {(typeof RebalanceStrategy)[keyof typeof RebalanceStrategy]} RebalanceStrategy
174
174
  */
175
175
  export const RebalanceStrategy = /** @type {const} */ ({
176
176
  /**
@@ -64,13 +64,13 @@ export declare const makeEVMHandlerUtils: (viemUtils: {
64
64
  domain: Permit2Domain;
65
65
  }, owner: Address, signature: WithSignature<object>["signature"]): PermitDetails;
66
66
  };
67
- extractOperationDetailsFromDataWithAddress: <T extends OperationTypeNames = "Withdraw" | "Deposit" | "Rebalance" | "OpenPortfolio" | "SetTargetAllocation" | "Grant">(data: (WithSignature<YmaxPermitWitnessTransferFromData<T>> | YmaxStandaloneOperationData<T>) & {
67
+ extractOperationDetailsFromDataWithAddress: <T extends OperationTypeNames = "Deposit" | "Withdraw" | "Rebalance" | "OpenPortfolio" | "SetTargetAllocation" | "Grant">(data: (WithSignature<YmaxPermitWitnessTransferFromData<T>> | YmaxStandaloneOperationData<T>) & {
68
68
  address: Address;
69
69
  }, contractAddresses?: {
70
70
  permit2?: Partial<Record<number | string, Address>>;
71
71
  ymaxRepresentative?: Partial<Record<number | string, Address>>;
72
72
  }) => FullMessageDetails<T>;
73
- extractOperationDetailsFromSignedData: <T extends OperationTypeNames = "Withdraw" | "Deposit" | "Rebalance" | "OpenPortfolio" | "SetTargetAllocation" | "Grant">(signedData: WithSignature<YmaxPermitWitnessTransferFromData<T> | YmaxStandaloneOperationData<T>> & {
73
+ extractOperationDetailsFromSignedData: <T extends OperationTypeNames = "Deposit" | "Withdraw" | "Rebalance" | "OpenPortfolio" | "SetTargetAllocation" | "Grant">(signedData: WithSignature<YmaxPermitWitnessTransferFromData<T> | YmaxStandaloneOperationData<T>> & {
74
74
  address?: Address;
75
75
  }, validYmaxRepresentativeContractAddresses?: Partial<Record<number | string, Address>>) => Promise<FullMessageDetails<T>>;
76
76
  };
@@ -1 +1 @@
1
- {"version":3,"file":"instruments.d.ts","sourceRoot":"","sources":["instruments.js"],"names":[],"mappings":";;;;;;;;;;;;2BAYU,CAAC,OAAO,YAAY,EAAE,MAAM,OAAO,YAAY,CAAC"}
1
+ {"version":3,"file":"instruments.d.ts","sourceRoot":"","sources":["instruments.js"],"names":[],"mappings":";;;;;;;;;;;;2BAYa,CAAC,OAAO,YAAY,EAAE,MAAM,OAAO,YAAY,CAAC"}
@@ -10,7 +10,7 @@
10
10
  * There are separate data structures to map them to functional interfaces for
11
11
  * interoperation.
12
12
  *
13
- * @enum {(typeof InstrumentId)[keyof typeof InstrumentId]}
13
+ * @typedef {(typeof InstrumentId)[keyof typeof InstrumentId]} InstrumentId
14
14
  */
15
15
  export const InstrumentId = /** @type {const} */ ({
16
16
  Aave_Arbitrum: 'Aave_Arbitrum',
package/src/resolver.d.ts CHANGED
@@ -18,7 +18,7 @@ export type TxType = Readonly<(typeof TxType)[keyof typeof TxType]>;
18
18
  /**
19
19
  * Tx types for published transactions
20
20
  *
21
- * @enum {Readonly<(typeof TxType)[keyof typeof TxType]>}
21
+ * @typedef {Readonly<(typeof TxType)[keyof typeof TxType]>} TxType
22
22
  */
23
23
  export const TxType: import("@agoric/internal").KeyMirrorResult<{
24
24
  CCTP_TO_EVM: null;
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["resolver.js"],"names":[],"mappings":";;;;;;uBAeU,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;;qBAaxC,QAAQ,CAAC,CAAC,OAAO,MAAM,EAAE,MAAM,OAAO,MAAM,CAAC,CAAC;AAHxD;;;;GAIG;AACH;;;;;;;;IAQE;;;;;OAKG;;GAEF;;;;;;wCAIU,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,GAAG;IAC7C,IAAI,EAAE,MAAM,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IACvD,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;;;;;;;;;;;UAYU,OAAO,CAAC,MAAM,EAAE,yBAAyB,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAsBjE,KAAK,MAAM,EAAE;;;;qBACb,qBAAqB;;;;iCACrB,UAAU;;;;;;;;;;;UASV,MAAM,GAAG,CAAC,YAAY,CAAC;;;;wBACvB,SAAS;;;;;mBACT,SAAS;;;;;;;;;;;;;;;;;;UAUT,MAAM;;;;YACN,QAAQ;;;;;;;;;;0BAMT,eAAe,GAAG,CAAC,yBAAyB,GAAG,2BAA2B,GAAG,2BAA2B,CAAC;kCAjHhE,uBAAuB;2CAErC,2DAA2D;gCAF7C,uBAAuB;+BAAvB,uBAAuB;8BADlD,kBAAkB"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["resolver.js"],"names":[],"mappings":";;;;;;uBAea,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;;qBAaxC,QAAQ,CAAC,CAAC,OAAO,MAAM,EAAE,MAAM,OAAO,MAAM,CAAC,CAAC;AAH3D;;;;GAIG;AACH;;;;;;;;IAQE;;;;;OAKG;;GAEF;;;;;;wCAIU,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC,GAAG;IAC7C,IAAI,EAAE,MAAM,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;IACvD,IAAI,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;;;;;;;;;;;UAYU,OAAO,CAAC,MAAM,EAAE,yBAAyB,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAsBjE,KAAK,MAAM,EAAE;;;;qBACb,qBAAqB;;;;iCACrB,UAAU;;;;;;;;;;;UASV,MAAM,GAAG,CAAC,YAAY,CAAC;;;;wBACvB,SAAS;;;;;mBACT,SAAS;;;;;;;;;;;;;;;;;;UAUT,MAAM;;;;YACN,QAAQ;;;;;;;;;;0BAMT,eAAe,GAAG,CAAC,yBAAyB,GAAG,2BAA2B,GAAG,2BAA2B,CAAC;kCAjHhE,uBAAuB;2CAErC,2DAA2D;gCAF7C,uBAAuB;+BAAvB,uBAAuB;8BADlD,kBAAkB"}
package/src/resolver.js CHANGED
@@ -13,7 +13,7 @@ import { keyMirror } from '@agoric/internal';
13
13
  * - pending -> success (when cross-chain operation completes successfully)
14
14
  * - pending -> failed (when operation fails or times out)
15
15
  *
16
- * @enum {(typeof TxStatus)[keyof typeof TxStatus]}
16
+ * @typedef {(typeof TxStatus)[keyof typeof TxStatus]} TxStatus
17
17
  */
18
18
  export const TxStatus = /** @type {const} */ ({
19
19
  SETUP: 'setup',
@@ -26,7 +26,7 @@ harden(TxStatus);
26
26
  /**
27
27
  * Tx types for published transactions
28
28
  *
29
- * @enum {Readonly<(typeof TxType)[keyof typeof TxType]>}
29
+ * @typedef {Readonly<(typeof TxType)[keyof typeof TxType]>} TxType
30
30
  */
31
31
  export const TxType = keyMirror({
32
32
  CCTP_TO_EVM: null,