Skip to content

Conversation

@turadg
Copy link
Member

@turadg turadg commented Oct 11, 2025

Summary

  • add a typed keyMirror helper to @agoric/internal
  • replace hand-built mirrored enums in internal, orchestration, portfolio-api, portfolio-contract, and vats with the helper

Testing

  • yarn workspace @agoric/internal lint:types
  • yarn workspace @agoric/portfolio-api lint:types
  • yarn workspace @agoric/orchestration lint:types
  • yarn workspace @aglocal/portfolio-contract lint:types
  • yarn workspace @agoric/vats lint:types

https://chatgpt.com/codex/tasks/task_b_68e9de4edc78832f9af15f5b18fb2e66

@cloudflare-workers-and-pages
Copy link

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1e4fde1
Status: ✅  Deploy successful!
Preview URL: https://5830d26a.agoric-sdk.pages.dev
Branch Preview URL: https://codex-add-key-mirror-utility.agoric-sdk.pages.dev

View logs

noble: 'noble',
// XXX: check privateArgs for chainInfo for all of these
});
...keyMirror({
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could be pulled to the enclosing expression. though it would repeat the traversal of AxelarChain

* - ../../cosmic-swingset/src/chain-main.js
* - ../../cosmic-swingset/src/launch-chain.js
*
* @enum {(typeof SwingsetMessageType)[keyof typeof SwingsetMessageType]}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this expression could be simplified with this approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants