aztec-nr - noir_aztec::oracle::version

Global ORACLE_VERSION

pub global ORACLE_VERSION: Field;

The ORACLE_VERSION constant is used to check that the oracle interface is in sync between PXE and Aztec.nr. We need to version the oracle interface to ensure that developers get a reasonable error message if they use incompatible versions of Aztec.nr and PXE. The TypeScript counterpart is in oracle_version.ts.

@dev Whenever a contract function or Noir test is run, the utilityAssertCompatibleOracleVersion oracle is called and if the oracle version is incompatible an error is thrown.