Skip to main content

Documentation Index

Fetch the complete documentation index at: https://injectivelabs-mintlify-jp-developers-first-half-1777019423.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Hooks

Other modules may register operations to execute when a certain event has occurred within ocr module. The following hooks can registered with ocr:
  • AfterSetFeedConfig(ctx sdk.Context, feedConfig *FeedConfig)
    • called after feed config is created or updated
  • AfterTransmit(ctx sdk.Context, feedId string, answer math.LegacyDec, timestamp int64)
    • called when info is transmitted
  • AfterFundFeedRewardPool(ctx sdk.Context, feedId string, newPoolAmount sdk.Coin)
    • called when feed reward pool is updated
Note: oracle module is accepting AfterTransmit hook to store cumulative price when transmission is made.
Last modified on April 24, 2026