osmosis-labs / beaker

Beaker helps streamlining CosmWasm development workflow.
Apache License 2.0
106 stars 30 forks source link

Deploying Contracts on Sei rather than Osmosis #117

Open npjd opened 1 year ago

npjd commented 1 year ago

Wondering how it's possible to use beaker toolchain for Sei deployment rather than Osmosis and how to configure chain for it.

Sei docs for reference: https://docs.seinetwork.io/smart-contracts-and-local-development/sei-tool-guide

iboss-ptk commented 1 year ago

So for Beaker.toml by default this is what it is implied. But you can chnage any of them in your own Beaker.toml and these are the things you might primarily wants to change.

name = ''
gas_price = '0.025uosmo'
gas_adjustment = 1.3
account_prefix = 'osmo'
derivation_path = '''m/44'/118'/0'/0/0'''
[networks.local]
chain_id = 'localosmosis'
network_variant = 'Local'
grpc_endpoint = 'http://localhost:9090'
rpc_endpoint = 'http://localhost:26657'

[networks.testnet]
chain_id = 'osmo-test-4'
network_variant = 'Shared'
grpc_endpoint = 'https://grpc-test.osmosis.zone:443'
rpc_endpoint = 'https://rpc-test.osmosis.zone:443'

[networks.mainnet]
chain_id = 'osmosis-1'
network_variant = 'Shared'
grpc_endpoint = 'https://grpc.osmosis.zone:9090'
rpc_endpoint = 'https://rpc.osmosis.zone:443'

I'm open for idea like, making multiple base configs and able to do:

base = "osmosis"

or

base = "sei"

contributions are welcome.

vyuldashev commented 1 year ago

@iboss-ptk It would be cool if network settings override derivation_path, gas_price, etc.

iboss-ptk commented 1 year ago

sounds like a good idea! @vyuldashev PR is very welcome, it should not be hard to do! Let me know if you need any assist

dzmitry-lahoda commented 1 year ago

i tried other chain, changed config, got weird errors. any example of having not osmosis?

iboss-ptk commented 1 year ago

what are the errors? @dzmitry-lahoda

dzmitry-lahoda commented 1 year ago

my current errors are these https://github.com/osmosis-labs/beaker/issues/122

dzmitry-lahoda commented 1 year ago

what is derivation_path ?