Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(internal): Separate pure-JS vs. Hardened JS utils #10442

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

gibson042
Copy link
Member

Description

Extracted from #10165.
Best reviewed by individual commits, because the introduction of deepCopyJsonable is a bit noisy.

Security Considerations

n/a

Scaling Considerations

n/a

Documentation Considerations

n/a

Testing Considerations

n/a

Upgrade Considerations

n/a

@gibson042 gibson042 requested review from turadg and mhofman November 10, 2024 18:47
@gibson042 gibson042 requested a review from a team as a code owner November 10, 2024 18:47
Copy link

cloudflare-workers-and-pages bot commented Nov 10, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: f875bb0
Status: ✅  Deploy successful!
Preview URL: https://ec7d796e.agoric-sdk.pages.dev
Branch Preview URL: https://gibson-2024-11-js-utils.agoric-sdk.pages.dev

View logs

@gibson042 gibson042 changed the title refactor(internal): Separate pure-JS js-utils.js and Hardened JS ses-utils.js refactor(internal): Separate pure-JS vs. Hardened JS utils Nov 10, 2024
@@ -40,6 +40,8 @@ import { AuctionState } from './util.js';
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
*/

const BASIS_POINTS = 10_000n;
Copy link
Member

Choose a reason for hiding this comment

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

There is defined 14 times. I maintain it's worth keeping in a common constants, but that's not useful unless it's also imported. Regardless I agree it's not part of a utils module. So no objection to this change and it can be consolidated separately (at which point the 14 times will become 1).

@gibson042 gibson042 added the automerge:rebase Automatically rebase updates, then merge label Nov 11, 2024
@gibson042 gibson042 force-pushed the gibson-2024-11-js-utils branch from 6d63949 to 080c1b5 Compare November 11, 2024 19:30
@gibson042 gibson042 force-pushed the gibson-2024-11-js-utils branch from 080c1b5 to f875bb0 Compare November 12, 2024 22:34
@mergify mergify bot merged commit eb1d655 into master Nov 12, 2024
81 checks passed
@mergify mergify bot deleted the gibson-2024-11-js-utils branch November 12, 2024 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants