-
Notifications
You must be signed in to change notification settings - Fork 229
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
chore(fast-usdc): update, test chain policies vs. spreadsheet #11055
Conversation
Deploying agoric-sdk with
|
Latest commit: |
5469f90
|
Status: | ✅ Deploy successful! |
Preview URL: | https://1aaefbbf.agoric-sdk.pages.dev |
Branch Preview URL: | https://dc-fu-policy-check.agoric-sdk.pages.dev |
d0e4d8c
to
e677e98
Compare
ab8149d
to
4cab2bf
Compare
4cab2bf
to
96fdf1a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving conditional on removing the test.skip
and improving the Money
type
@@ -241,7 +241,7 @@ test.serial( | |||
}, | |||
); | |||
|
|||
test.serial('writes feed policy to vstorage', async t => { | |||
test.skip('writes Beta feed policy to vstorage', async t => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we remove them now that beta is out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok.
I guess I wanted some feedback on whether to keep testing the old stuff. Thanks.
/** | ||
* @type {TypedPattern<FeedPolicy>} | ||
* | ||
* Should be JSON serializable so CLI can specify policy. E.g. no bigint, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC bigint is the only part that can't be JSON.
consider keeping this comment and saying "must by CopyData"
const upgraded = await E(adminFacet).upgradeContract( | ||
fastUsdcCode.bundleID, | ||
privateArgs, | ||
); | ||
trace(upgraded); | ||
trace(`DON'T PANIC if you see "CORE_EVAL failed" from v1 above. See #11013`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thoughtful
import { ChainPolicies } from '../../src/utils/chain-policies.js'; | ||
import { type ChainPolicy } from '../../src/types.js'; | ||
|
||
/** Spreadsheet header becomes a tuple type with column names used as tags */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good trail. I won't have the spreadsheet so I'll assume you transcribed the values correctly.
['Polygon', 2, 12, '$50,000', 60, '$20,000'], | ||
]; | ||
|
||
type Money = string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type Money = string; | |
type Dollars = `${string}`; |
f20e3c9
to
7150132
Compare
rate limits have bigints
7150132
to
5469f90
Compare
Description
Data from a requirements-gathering spreadsheet are turned into a test that shows that the
MAINNET
chain policies needed adjustment.Security Considerations
The values in a
ChainPolicy
express a balance of risk tolerance vs. speed etc.agoric-sdk/packages/fast-usdc/src/types.ts
Line 114 in f83e5a9
Scaling Considerations
none
Documentation Considerations
Testing Considerations
Upgrade Considerations
should be deployed as part of the fix for #11013