Skip to content

Rename Predict oracle cap to writer cap#1069

Open
pei-mysten wants to merge 1 commit into
mainfrom
pei/predict-oracle-admin-cap-rename
Open

Rename Predict oracle cap to writer cap#1069
pei-mysten wants to merge 1 commit into
mainfrom
pei/predict-oracle-admin-cap-rename

Conversation

@pei-mysten

@pei-mysten pei-mysten commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Rename MarketOracleCap to MarketOracleWriterCap across Predict sources, tests, and gas benchmark setup.
  • Rename the associated error/auth helpers and authorized-cap storage to use writer-cap terminology.
  • Keep behavior unchanged: the renamed cap still gates price, SVI, settlement, compaction, and oracle bounds paths in this PR.

Naming

WriterCap avoids confusion with the package-level AdminCap while describing the capability precisely: it authorizes writes to oracle data/config.

Stack

Tests

  • sui move test -p packages/predict -i 100000000 oracle_cap_tests
  • sui move test -p packages/predict -i 100000000 market_oracle_getters_tests
  • sui move test -p packages/predict -i 100000000 market_oracle_update_prices_tests
  • sui move test -p packages/predict -i 100000000 market_oracle_set_bounds_tests
  • npx --yes --package @mysten/prettier-plugin-move prettier-move -c $PWD/packages/predict/**/*.move
  • git diff --check

@pei-mysten pei-mysten force-pushed the pei/predict-oracle-admin-cap-rename branch from 4b3bd9a to 07944bd Compare June 10, 2026 21:31
@pei-mysten pei-mysten changed the title Rename Predict oracle cap to admin cap Rename Predict oracle cap to writer cap Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant