Architecture
The Ztabilize Oracle is built on a robust architecture that ensures reliable and secure delivery of economic data from the Central Bank of Argentina (BCRA) to the blockchain. Here's an overview of the key components:
Ztabilize Smart Contract: Deployed on the Base Sepolia network, this is the core component that stores and provides the economic data on-chain.
Chainlink Nodes: These decentralized oracle nodes fetch data from the BCRA API and relay it to the Ztabilize smart contract.
BCRA API: The official source of the economic data, provided by the Central Bank of Argentina.
Data Flow

The Ztabilize contract initiates a data request to the Chainlink network.
Chainlink nodes fetch the latest data from the BCRA API.
The data is processed and returned to the Ztabilize contract.
The contract updates its state variables with the new data.
An event is emitted with the updated data.
Smart Contract Details
The Ztabilize Oracle smart contract is implemented in Solidity and uses the Chainlink client library. Key features of the contract include:
Chainlink integration for secure off-chain data fetching
Storage of the latest inflation, CER, and UVA values
Functions to request data updates and retrieve current values
Events emitted on successful data updates
For the full smart contract code and detailed explanations, please refer to the Implementation section.
Last updated