spacebudz / lucid

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
https://lucid.spacebudz.io
MIT License
336 stars 133 forks source link

Prototype Hydra provider #218

Open Piefayth opened 10 months ago

Piefayth commented 10 months ago

I wanted this, so I took a stab at it.

Calling from the browser requires that the Hydra node is proxied through something that can provide CORS support.

All utxo related functions must retrieve the entire utxo set from Hydra each time, unless we want the provider to be stateful. I think this is fine, though, the set should be reasonably sized in Hydra.