Skip to content

Correct Pulse contract-interface documentation#1

Open
rawritude wants to merge 2 commits into
reflector-network:masterfrom
rawritude:pr-pulse-docs
Open

Correct Pulse contract-interface documentation#1
rawritude wants to merge 2 commits into
reflector-network:masterfrom
rawritude:pr-pulse-docs

Conversation

@rawritude

Copy link
Copy Markdown

Corrects stale facts in the Pulse oracle documentation against the deployed contract interface. Docs-only — no runtime or behavior change.

Interface (/docs/interface, generated client trait)

  • period()history_retention_period(); add extend_asset_ttl and expires
  • remove x_*/twap and the non-existent cache_size/fee_config/estimate_retention_cost from the generated client
  • keep "immutable once written" and the >50%-of-nodes consensus fact; clarify that cross-price and TWAP are computed in the consumer contract, not by the oracle
  • restore the free-reads and default 5-minute-resolution facts

Examples (/docs/examples)

  • replace the non-existent twap() call with a consumer-side average over prices()
  • Asset::GenericAsset::Other

Align the Pulse oracle documentation with the deployed contract interface:
- rename period() to history_retention_period(); add extend_asset_ttl and expires
- remove x_*/twap methods and the non-existent cache_size/fee_config/estimate_retention_cost
  from the generated client trait
- keep "immutable once written" and the >50%-of-nodes consensus fact; note that cross-price
  and TWAP are computed in the consumer contract, not by the oracle
- restore the free-reads and default 5-minute-resolution facts
Replace the non-existent twap() call with a consumer-side average over prices(),
and correct Asset::Generic to Asset::Other.
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