Skip to content

The fallback layer that gets updated every 2 hours. Serves as a Proof for the protocol and as a fail-safe if by any means the web application crashes.

License

Notifications You must be signed in to change notification settings

Doot-Foundation/Doot_L1Contracts

Repository files navigation

Doot L1 Mina Smart Contract

This repository is responsible for tracking all the smart contracts under Doot - Data Feeds Oracle for Mina Protocol.

Registry.ts

This contract is used to index the last updated implementation details. These include -

  1. Source code at Github.
  2. Source code pinned at IPFS.
  3. The address of the latest implementation.

A developer can refer to this contract regular to check for any changes regarding Doot Data Feeds Smart Contracts.

Doot.ts

This contract is at the heart of the protocol. Responsible for bringing the current exchange rate on-chain. ATM updated every 2 hours.

A developer looking to fetch the exchange rate of one of the tracked cryptocurrencies can call getPrice(token:CircuitString) and use it in their smart contracts.

AggregationProgram.ts

This contract is responsible for creating aggregation proof of each asset updates. which enables the aggregation process to be verifiable by nature. Since its a general ZkProgram we employ this directly in our price generation CRON jobs.

About

The fallback layer that gets updated every 2 hours. Serves as a Proof for the protocol and as a fail-safe if by any means the web application crashes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published