@agoric/portfolio-api 0.1.1-dev-867938a.0.867938a → 0.1.1-dev-f213780.0.f213780

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-867938a.0.867938a",
3
+ "version": "0.1.1-dev-f213780.0.f213780",
4
4
  "description": "API for Portfolio management",
5
5
  "type": "module",
6
6
  "files": [
@@ -50,5 +50,5 @@
50
50
  "engines": {
51
51
  "node": "^20.9 || ^22.11"
52
52
  },
53
- "gitHead": "867938ac101f2860fa1340bdc4011e0a1df74ef2"
53
+ "gitHead": "f21378072c99ad0d8246ccd3cf00ee24ad668a42"
54
54
  }
@@ -8,6 +8,18 @@ export namespace YieldProtocol {
8
8
  let USDN: "USDN";
9
9
  let Beefy: "Beefy";
10
10
  }
11
+ /**
12
+ * EVM chain wallet operations that incur different gas costs.
13
+ * Supply: user is supplying assets to a yield protocol on the target chain.
14
+ * Withdraw: user is withdrawing assets from a yield protocol on the target chain.
15
+ * DepositForBurn: user is transferring assets off the target chain via CCTP.
16
+ */
17
+ export type EvmWalletOperationType = (typeof EvmWalletOperationType)[keyof typeof EvmWalletOperationType];
18
+ export namespace EvmWalletOperationType {
19
+ let Supply: "supply";
20
+ let Withdraw: "withdraw";
21
+ let DepositForBurn: "depositforburn";
22
+ }
11
23
  export type AxelarChain = (typeof AxelarChain)[keyof typeof AxelarChain];
12
24
  export namespace AxelarChain {
13
25
  let Arbitrum: "Arbitrum";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":";;;4BAOU,CAAC,OAAO,aAAa,EAAE,MAAM,OAAO,aAAa,CAAC;;;;;;;0BAWlD,CAAC,OAAO,WAAW,EAAE,MAAM,OAAO,WAAW,CAAC;;;;;;;;6BAY9C,CAAC,OAAO,cAAc,EAAE,MAAM,OAAO,cAAc,CAAC;;;;;;;;gCAapD,CAAC,OAAO,iBAAiB,EAAE,MAAM,OAAO,iBAAiB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":";;;4BAOU,CAAC,OAAO,aAAa,EAAE,MAAM,OAAO,aAAa,CAAC;;;;;;;;;;;;;qCAgBlD,CAAC,OAAO,sBAAsB,EAAE,MAAM,OAAO,sBAAsB,CAAC;;;;;;0BAUpE,CAAC,OAAO,WAAW,EAAE,MAAM,OAAO,WAAW,CAAC;;;;;;;;6BAY9C,CAAC,OAAO,cAAc,EAAE,MAAM,OAAO,cAAc,CAAC;;;;;;;;gCAapD,CAAC,OAAO,iBAAiB,EAAE,MAAM,OAAO,iBAAiB,CAAC"}
package/src/constants.js CHANGED
@@ -15,6 +15,21 @@ export const YieldProtocol = /** @type {const} */ ({
15
15
  });
16
16
  harden(YieldProtocol);
17
17
 
18
+ /**
19
+ * EVM chain wallet operations that incur different gas costs.
20
+ * Supply: user is supplying assets to a yield protocol on the target chain.
21
+ * Withdraw: user is withdrawing assets from a yield protocol on the target chain.
22
+ * DepositForBurn: user is transferring assets off the target chain via CCTP.
23
+ *
24
+ * @enum {(typeof EvmWalletOperationType)[keyof typeof EvmWalletOperationType]}
25
+ */
26
+ export const EvmWalletOperationType = /** @type {const} */ ({
27
+ Supply: 'supply',
28
+ Withdraw: 'withdraw',
29
+ DepositForBurn: 'depositforburn',
30
+ });
31
+ harden(EvmWalletOperationType);
32
+
18
33
  /**
19
34
  * @enum {(typeof AxelarChain)[keyof typeof AxelarChain]}
20
35
  */