-
Notifications
You must be signed in to change notification settings - Fork 0
/
devShells.nix
40 lines (40 loc) · 1.49 KB
/
devShells.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{self, ...}: {
perSystem = {
config,
self',
inputs',
system,
pkgs,
runtimeInputs,
...
}: {
devShells = {
# devnet
default = pkgs.mkShell {
buildInputs = runtimeInputs;
shellHook = let
networks = pkgs.networksLib.networks;
sh = pkgs.networksLib.sh;
in ''
${sh.export networks.devnet.directories}
${builtins.readFile ./cosmos/cosmos_sdk.sh}
CW_CVM_OUTPOST_WASM=${pkgs.cw-cvm-outpost}/lib/cw_cvm_outpost.wasm
export CW_CVM_OUTPOST_WASM
OSMOSISD_ENVIRONMENT="$HOME/.osmosisd"
export OSMOSISD_ENVIRONMENT
echo 'chain-id = "osmosis-dev"' > ~/.osmosisd/config/client.toml
echo 'keyring-backend = "test"' >> ~/.osmosisd/config/client.toml
echo 'output = "json"' >> ~/.osmosisd/config/client.toml
echo 'broadcast-mode = "sync"' >> ~/.osmosisd/config/client.toml
echo 'human-readable-denoms-input = false' >> ~/.osmosisd/config/client.toml
echo 'human-readable-denoms-output = false' >> ~/.osmosisd/config/client.toml
echo 'gas = ""' >> ~/.osmosisd/config/client.toml
echo 'gas-prices = ""' >> ~/.osmosisd/config/client.toml
echo 'gas-adjustment = ""' >> ~/.osmosisd/config/client.toml
echo 'fees = ""' >> ~/.osmosisd/config/client.toml
echo 'node = "${pkgs.networksLib.networks.osmosis.devnet.NODE}"' >> ~/.osmosisd/config/client.toml
'';
};
};
};
}