@agoric/portfolio-api 0.1.1-dev-70d307d.0.70d307d → 0.1.1-dev-00d43ed.0.00d43ed

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/places.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/portfolio-api",
3
- "version": "0.1.1-dev-70d307d.0.70d307d",
3
+ "version": "0.1.1-dev-00d43ed.0.00d43ed",
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-70d307d.0.70d307d",
50
- "@agoric/orchestration": "0.1.1-dev-70d307d.0.70d307d",
49
+ "@agoric/internal": "0.3.3-dev-00d43ed.0.00d43ed",
50
+ "@agoric/orchestration": "0.1.1-dev-00d43ed.0.00d43ed",
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"
75
75
  },
76
- "gitHead": "70d307de7f4f353244b44a64c7bc1169f3d80ce1"
76
+ "gitHead": "00d43ed7b1a91a34de23740b9aa52014f9efc37c"
77
77
  }
package/src/places.js CHANGED
@@ -200,10 +200,10 @@ export const chainOf = (id ) => {
200
200
  return PoolPlaces[id ].chainName;
201
201
  }
202
202
 
203
- // Fallback: syntactic pool id like `${Protocol}_${Chain}` => `${Chain}`.
203
+ // Fallback: syntactic pool id ending in `_${Chain}` => `${Chain}`.
204
204
  // This enables base graph edges for pools even if not listed in PoolPlaces.
205
- const m = /^([A-Za-z0-9]+)_([A-Za-z0-9-]+)$/.exec(id);
206
- if (m) return m[2] ;
205
+ const m = /^(?:[A-Za-z0-9]+_)+([A-Za-z0-9]+)$/.exec(id);
206
+ if (m) return m[1] ;
207
207
 
208
208
  throw Fail`Cannot determine chain for ${id}`;
209
209
  };