0xFable / capsule

Truffle for Terra and beyond! Capsule is small Python SDK tool you can use to deploy Terra CosmWasm contracts to a given Terra (Cosmos SDK Based) chain.
https://0xfable.github.io/capsule/
MIT License
13 stars 1 forks source link

Multi-chain support #17

Open 0xFable opened 2 years ago

0xFable commented 2 years ago

Multi-chain support is not a huge deal to implement but it needs a bit of refactoring. Some of the URLs are hardcoded, these should be made composable maybe with the current values as defaults. We also need to figure out how chains differ, do they all have mantle and fcds? Probably not. If not then per chain/zone we need a specific way to upload. Maybe a DeploymentMethod abstract class with a bunch of platform specific impls. Just spitballing ideas here while the coffee buzz is still present.

What if we can just specify a chain param and somehow we could work it out most likely by having a bunch of cases for different chains like juno-xxx and cosm-xxx and then to make it easy on the user, the default config file comes with a bunch of these things already defined with urls and whatnot, that can be a seperate issue. That way a user of capsule gets all they need for many chains and a config file to reference too.