entropyxyz / faucet_program

0 stars 0 forks source link

Fix the way we are handling metadata #1

Open JesseAbram opened 3 months ago

JesseAbram commented 3 months ago

I hate it I hate it so much. Im open to ideas to fix it

Issue

Some Pondering

ameba23 commented 3 months ago

I guess one way to keep the metadata out of the program binary would be to pass it in as program configuration at the point of deploying a program. But this still means it will be stored on chain, and worse, there is no way to deduplicate it if a bunch of people use the program. So from that point of view its better to have the metadata in the program binary.

Another option would be to have entropy_programs_runtime make the chain metadata available to programs, or even a fully prepared OfflineClient. This is nice because we wouldn't need to decode the metadata and program runtime. But i would not be generic for all chains.