Skip to content

astraly-labs/pragma-miden

Repository files navigation

Pragma Miden

A decentralized oracle for Miden — prices published directly on-chain, aggregated via Foreign Procedure Invocation.

Documentation · Publish Prices · Consume Data


Deployments

Testnet

Role Account ID Explorer
Oracle 0xafebd403be621e005bf03b9fec7fe8 view
Publisher1 0x474d7a81bb950b001661523cdd7c0b view
Publisher2 0x1ab593a30c20ce0001e98f60172dd9 view

Addresses change between testnet iterations. This table is the source of truth.

This address is likely going to be the one with live data

Role Account ID Explorer
Oracle 0x1afd74d988a4c3006b2f6b6665086d view

Quick start

Consume prices (Rust):

git clone https://github.com/astraly-labs/pragma-miden
cd pragma-miden
cargo run --release -p consume-price
# BTC/USD: $68199.00

Publish prices (Python SDK):

from pragma_sdk.miden.client import PragmaMidenClient, MidenEntry

client = PragmaMidenClient(network="testnet")
await client.publish_entries([
    MidenEntry(pair="1:0", price=68199_000000, decimals=6),
])

→ Full integration guides at docs.pragma.build/pragma/miden.


License

MIT — see LICENSE.

TODO (For miden.pragma.build deployment)

  • New project → "Deploy from GitHub repo" → astraly-labs/pragma-miden
  • Root directory : / (racine, pas oracle-explorer/)
  • Dockerfile path : oracle-explorer/Dockerfile
  • Env var to add : NETWORK=testnet ORACLE_WORKSPACE_PATH=/data/oracle-workspace CLI_PATH=/usr/local/bin PRAGMA_API_KEY=

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors