ArdanaLabs / Ardana-dApps

BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Price Module Validator and API #67

Open epiro-ps opened 1 year ago

epiro-ps commented 1 year ago

To support the storing of price data in a UTxO on-chain for usage as an oracle, we want to build out a validator that ensures the price data is valid and support an API for updating and reading it.

Acceptance Criteria

Price Module Validator

Price Module Client API

The following action should be supported:

Initialization

Inputs:
Outputs:
Effects:

Submits a transaction performing the following

Update

Inputs:
Outputs:
Effects:

Submits a transaction performing the following

Get datum by Oracle ID NFT

Inputs:
Outputs:
Effects:

Tests

The following should give a rough idea but we can definitely improve the factoring here: