@agoric/portfolio-api 0.1.1-dev-6169838.0.6169838 → 0.1.1-dev-98e20a0.0.98e20a0
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/constants.d.ts +4 -0
- package/src/constants.d.ts.map +1 -1
- package/src/constants.js +4 -0
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-98e20a0.0.98e20a0",
|
|
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-
|
|
50
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
49
|
+
"@agoric/internal": "0.3.3-dev-98e20a0.0.98e20a0",
|
|
50
|
+
"@agoric/orchestration": "0.1.1-dev-98e20a0.0.98e20a0",
|
|
51
51
|
"@endo/common": "^1.4.0",
|
|
52
52
|
"@endo/errors": "^1.3.1",
|
|
53
53
|
"@endo/patterns": "^1.9.1"
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": "^22.11 || ^24.14"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "98e20a0ea189c7d4a12193a29dccff170e0032a3"
|
|
77
77
|
}
|
package/src/constants.d.ts
CHANGED
|
@@ -33,12 +33,16 @@ export const YieldProtocol: import("@agoric/internal").KeyMirrorResult<{
|
|
|
33
33
|
* Supply: user is supplying assets to a yield protocol on the target chain.
|
|
34
34
|
* Withdraw: user is withdrawing assets from a yield protocol on the target chain.
|
|
35
35
|
* DepositForBurn: user is transferring assets off the target chain via CCTP.
|
|
36
|
+
* Claim: user is claiming rewards from a yield protocol.
|
|
37
|
+
* Swap: user is swapping one token for another (e.g., a reward token to USDC).
|
|
36
38
|
*/
|
|
37
39
|
export type EvmWalletOperationType = (typeof EvmWalletOperationType)[keyof typeof EvmWalletOperationType];
|
|
38
40
|
export namespace EvmWalletOperationType {
|
|
39
41
|
let Supply: "supply";
|
|
40
42
|
let Withdraw: "withdraw";
|
|
41
43
|
let DepositForBurn: "depositforburn";
|
|
44
|
+
let Claim: "claim";
|
|
45
|
+
let Swap: "swap";
|
|
42
46
|
}
|
|
43
47
|
export type AxelarChain = (typeof AxelarChain)[keyof typeof AxelarChain];
|
|
44
48
|
/**
|
package/src/constants.d.ts.map
CHANGED
|
@@ -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;;;;4BAMW,CAAC,OAAO,aAAa,EAAE,MAAM,OAAO,aAAa,CAAC;AAH/D;;;;GAIG;AACH;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["constants.js"],"names":[],"mappings":"AAOA;;;;GAIG;AAEH;;;;;;;GAOG;AACH,kCAFU,UAAU,GAAG,SAAS,CAO9B;;;;4BAMW,CAAC,OAAO,aAAa,EAAE,MAAM,OAAO,aAAa,CAAC;AAH/D;;;;GAIG;AACH;;;;;;GAMG;;;;;;;;;qCAWU,CAAC,OAAO,sBAAsB,EAAE,MAAM,OAAO,sBAAsB,CAAC;;;;;;;;0BAYpE,CAAC,OAAO,WAAW,EAAE,MAAM,OAAO,WAAW,CAAC;AAD3D;;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;6BAIW,CAAC,OAAO,cAAc,EAAE,MAAM,OAAO,cAAc,CAAC;AADjE;;GAEG;AACH;;;;;;;;GAWG;AAMH;;;;;;;GAOG;AACH,2BAFU,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,CAQ5C;AAEF;;;GAGG;AACH,8BAFU,aAAa,UAAU,CAAC,CAOhC;AAEF;;;GAGG;AACH,oCAAqC,UAAU,CAAC;gCAvNnB,YAAY;iCAFG,kBAAkB;iCAChC,uBAAuB;kCADT,kBAAkB"}
|
package/src/constants.js
CHANGED
|
@@ -46,6 +46,8 @@ harden(YieldProtocol);
|
|
|
46
46
|
* Supply: user is supplying assets to a yield protocol on the target chain.
|
|
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
|
+
* Claim: user is claiming rewards from a yield protocol.
|
|
50
|
+
* Swap: user is swapping one token for another (e.g., a reward token to USDC).
|
|
49
51
|
*
|
|
50
52
|
* @typedef {(typeof EvmWalletOperationType)[keyof typeof EvmWalletOperationType]} EvmWalletOperationType
|
|
51
53
|
*/
|
|
@@ -53,6 +55,8 @@ export const EvmWalletOperationType = /** @type {const} */ ({
|
|
|
53
55
|
Supply: 'supply',
|
|
54
56
|
Withdraw: 'withdraw',
|
|
55
57
|
DepositForBurn: 'depositforburn',
|
|
58
|
+
Claim: 'claim',
|
|
59
|
+
Swap: 'swap',
|
|
56
60
|
});
|
|
57
61
|
harden(EvmWalletOperationType);
|
|
58
62
|
|