Skip to content

Commit d36d08e

Browse files
authored
feat(deployments): union and babylon testnet deployments (#4242)
2 parents 472a56d + b3ecd29 commit d36d08e

File tree

3 files changed

+154
-43
lines changed

3 files changed

+154
-43
lines changed

cosmwasm/cosmwasm.nix

+19-21
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,22 @@ _: {
9292
];
9393
}
9494
{
95-
name = "union-testnet-9";
96-
rpc_url = "https://rpc.testnet-9.union.build";
97-
private_key = ''"$1"'';
95+
name = "union-testnet-10";
96+
rpc_url = "https://rpc.rpc-node.union-testnet-10.union.build";
97+
private_key = ''"$(op item get deployer --vault union-testnet-10 --field cosmos-private-key)"'';
9898
gas_config = {
99-
type = "static";
100-
gas_denom = "muno";
101-
gas_multiplier = "1.1";
102-
gas_price = "1.0";
103-
max_gas = 200000000;
99+
type = "feemarket";
104100
};
105101
apps = {
106102
ucs03 = ucs03-configs.cw20;
107103
};
108104
bech32_prefix = "union";
109105
lightclients = [
110106
"arbitrum"
107+
"bob"
111108
"berachain"
112109
"ethereum"
110+
"trusted-mpt"
113111
"ethermint"
114112
"tendermint-bls"
115113
"movement"
@@ -118,27 +116,27 @@ _: {
118116
];
119117
}
120118
{
121-
name = "union-testnet-10";
122-
rpc_url = "https://rpc.rpc-node.union-testnet-10.union.build";
119+
name = "union";
120+
rpc_url = "https://rpc.rpc-node.union-1.union.build";
123121
private_key = ''"$(op item get deployer --vault union-testnet-10 --field cosmos-private-key)"'';
124122
gas_config = {
125123
type = "feemarket";
126124
};
127125
apps = {
128-
ucs03 = ucs03-configs.cw20;
126+
# ucs03 = ucs03-configs.cw20;
129127
};
130128
bech32_prefix = "union";
131129
lightclients = [
132-
"arbitrum"
133-
"bob"
134-
"berachain"
135-
"ethereum"
136-
"trusted-mpt"
137-
"ethermint"
138-
"tendermint-bls"
139-
"movement"
140-
"state-lens-ics23-mpt"
141-
"state-lens-ics23-smt"
130+
# "arbitrum"
131+
# "bob"
132+
# "berachain"
133+
# "ethereum"
134+
# "trusted-mpt"
135+
# "ethermint"
136+
# "tendermint-bls"
137+
# "movement"
138+
# "state-lens-ics23-mpt"
139+
# "state-lens-ics23-smt"
142140
];
143141
}
144142
{

cosmwasm/deployer/src/main.rs

+23-22
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ enum App {
5757
permissioned: bool,
5858
#[command(flatten)]
5959
gas_config: GasFillerArgs,
60-
#[arg(long)]
61-
relayers_admin: Bech32<Bytes>,
62-
#[arg(long)]
63-
relayers: Vec<Bech32<Bytes>>,
64-
#[arg(long)]
65-
rate_limit_admin: Bech32<Bytes>,
66-
#[arg(long)]
67-
rate_limit_operators: Vec<Bech32<Bytes>>,
60+
// #[arg(long)]
61+
// relayers_admin: Bech32<Bytes>,
62+
// #[arg(long)]
63+
// relayers: Vec<Bech32<Bytes>>,
64+
// #[arg(long)]
65+
// rate_limit_admin: Bech32<Bytes>,
66+
// #[arg(long)]
67+
// rate_limit_operators: Vec<Bech32<Bytes>>,
6868
},
6969
Migrate {
7070
#[arg(long)]
@@ -246,9 +246,9 @@ fn sha2(bz: impl AsRef<[u8]>) -> H256 {
246246
::sha2::Sha256::new().chain_update(bz).finalize().into()
247247
}
248248

249-
const CORE: &str = "core";
250-
const LIGHTCLIENT: &str = "lightclient";
251-
const APP: &str = "app";
249+
const CORE: &str = "ibc-is-based";
250+
const LIGHTCLIENT: &str = "lightclients";
251+
const APP: &str = "protocols";
252252

253253
const UCS03: &str = "ucs03";
254254

@@ -334,10 +334,10 @@ async fn do_main() -> Result<()> {
334334
output,
335335
permissioned,
336336
gas_config,
337-
relayers_admin,
338-
relayers,
339-
rate_limit_admin,
340-
rate_limit_operators,
337+
// relayers_admin,
338+
// relayers,
339+
// rate_limit_admin,
340+
// rate_limit_operators,
341341
} => {
342342
let contracts = serde_json::from_slice::<ContractPaths>(
343343
&std::fs::read(contracts).context("reading contracts path")?,
@@ -397,8 +397,8 @@ async fn do_main() -> Result<()> {
397397
std::fs::read(contracts.core)?,
398398
bytecode_base_code_id,
399399
ibc_union_msg::msg::InitMsg {
400-
relayers_admin: Some(relayers_admin.to_string()),
401-
relayers: relayers.into_iter().map(|r| r.to_string()).collect(),
400+
relayers_admin: Some(ctx.wallet().address().to_string()),
401+
relayers: vec![ctx.wallet().address().to_string()],
402402
},
403403
CORE.to_owned(),
404404
)
@@ -614,11 +614,12 @@ async fn do_main() -> Result<()> {
614614
admin: Addr::unchecked(ctx.wallet().address().to_string()),
615615
ibc_host: Addr::unchecked(core_address.to_string()),
616616
token_minter_code_id: minter_code_id.into(),
617-
rate_limit_admin: Addr::unchecked(rate_limit_admin.to_string()),
618-
rate_limit_operators: rate_limit_operators
619-
.into_iter()
620-
.map(|o| Addr::unchecked(o.to_string()))
621-
.collect(),
617+
rate_limit_admin: Addr::unchecked(
618+
ctx.wallet().address().to_string(),
619+
),
620+
rate_limit_operators: vec![Addr::unchecked(
621+
ctx.wallet().address().to_string(),
622+
)],
622623
},
623624
minter_init_msg,
624625
},

deployments/deployments.json

+112
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,116 @@
11
[
2+
{
3+
"universal_chain_id": "union.union-testnet-10",
4+
"chain_id": "union-testnet-10",
5+
"ibc_interface": "ibc-cosmwasm",
6+
"deployments": {
7+
"core": {
8+
"address": "union1hnuj8f6d3wy3fcprt55vddv7v2650t6uudnvd2hukqrteeam8wjqvcmecf",
9+
"height": 354875,
10+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
11+
},
12+
"lightclient": {
13+
"arbitrum": {
14+
"address": "union1xwfgw7n6vwgkyv8syjskzak7lh8kmrcthmv2jsmywhyunekmg3zqul8vsh",
15+
"height": 354878,
16+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
17+
},
18+
"berachain": {
19+
"address": "union12dx3w0pxkpyguf4xrx79zkhk0lvzewyqtjjngqmhuajjgu5qm6uq2rvlr7",
20+
"height": 354882,
21+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
22+
},
23+
"bob": {
24+
"address": "union1lsn5mm3hf9cxqetp2dx47x7tq4kvxpk66e7v8c4d2j4cajrg7hsq0v877s",
25+
"height": 354886,
26+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
27+
},
28+
"ethereum": {
29+
"address": "union1a3gz55rhudakew7p3hccjarn8rk70guxnuqrw58tl00f5x4kyl9qj8t3xw",
30+
"height": 354890,
31+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
32+
},
33+
"ethermint": {
34+
"address": "union1gla5cgcsk64cwsu3ca55yxjprtn5x6672mm4wm96vm9wyh6s2qcqc7amkh",
35+
"height": 354894,
36+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
37+
},
38+
"movement": {
39+
"address": "union1m2hhspxpqml6lujg0s38tdp3yfjasmfxnxvh9fnxpcjajucj0sgq54rs2g",
40+
"height": 354898,
41+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
42+
},
43+
"state-lens/ics23/mpt": {
44+
"address": "union1s0svr7djd5yyqfj79w52ux9y0sgfdd6ljf7kzfx80a469al2gufs4hj904",
45+
"height": 354902,
46+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
47+
},
48+
"state-lens/ics23/smt": {
49+
"address": "union1z7xnvelm23fx2qqj8jhx9kgaa6qr94dxt5ljnapeljszluun0e8sw67mtt",
50+
"height": 354906,
51+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
52+
},
53+
"tendermint": {
54+
"address": "union1eqmxvqcrh5k0uckrtnqs8fy6k5d672whvk4gh03at5j0r5ay7lzqpcywju",
55+
"height": 354910,
56+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
57+
},
58+
"trusted/evm/mpt": {
59+
"address": "union16sq2k0k8pf9z6y4q8jrsuqraqdlnsl6da2aj9kl5e4u73ta9f75sdml7vq",
60+
"height": 354914,
61+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
62+
}
63+
},
64+
"app": {
65+
"ucs03": {
66+
"address": "union1336jj8ertl8h7rdvnz4dh5rqahd09cy0x43guhsxx6xyrztx292qpe64fh",
67+
"height": 354920,
68+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
69+
}
70+
}
71+
}
72+
},
73+
{
74+
"universal_chain_id": "babylon.bbn-test-5",
75+
"chain_id": "bbn-test-5",
76+
"ibc_interface": "ibc-cosmwasm",
77+
"deployments": {
78+
"core": {
79+
"address": "bbn1hnuj8f6d3wy3fcprt55vddv7v2650t6uudnvd2hukqrteeam8wjqnlye9f",
80+
"height": 714672,
81+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
82+
},
83+
"lightclient": {
84+
"cometbls": {
85+
"address": "bbn1e8awsylm62n844vm2v34qg8t0yx52ajtza8a65w4nqk2ylpsjmkqhe2fyg",
86+
"height": 714707,
87+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
88+
},
89+
"state-lens/ics23/mpt": {
90+
"address": "bbn1s0svr7djd5yyqfj79w52ux9y0sgfdd6ljf7kzfx80a469al2gufs2sd9j4",
91+
"height": 714714,
92+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
93+
},
94+
"tendermint": {
95+
"address": "bbn1eqmxvqcrh5k0uckrtnqs8fy6k5d672whvk4gh03at5j0r5ay7lzq7lmw0u",
96+
"height": 714721,
97+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
98+
},
99+
"trusted/evm/mpt": {
100+
"address": "bbn16sq2k0k8pf9z6y4q8jrsuqraqdlnsl6da2aj9kl5e4u73ta9f75sjuq73q",
101+
"height": 714727,
102+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
103+
}
104+
},
105+
"app": {
106+
"ucs03": {
107+
"address": "bbn1336jj8ertl8h7rdvnz4dh5rqahd09cy0x43guhsxx6xyrztx292q77945h",
108+
"height": 714737,
109+
"commit": "21d7cd4dd6bfe66bd7334eb2055469944a3b0b91"
110+
}
111+
}
112+
}
113+
},
2114
{
3115
"universal_chain_id": "ethereum.1",
4116
"chain_id": "1",

0 commit comments

Comments
 (0)