Skip to content

Commit ea10d7e

Browse files
Merge branch 'main' into feat/integrate-zksync-on-cli
2 parents cfcec5e + 28e19ad commit ea10d7e

114 files changed

Lines changed: 4561 additions & 960 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/ninety-keys-brush.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
id-token: write
120120
contents: write
121121
pull-requests: write
122-
runs-on: depot-ubuntu-latest
122+
runs-on: ubuntu-latest
123123
steps:
124124
- name: Checkout Repo
125125
uses: actions/checkout@v4

.registryrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ea6268432101949d2f3b8d304b7aea9be841bf99
1+
31cc3e1a2c91f6b0e6125ccdcade99628b84fe04

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ COPY package.json yarn.lock .yarnrc.yml ./
1010
COPY .yarn/plugins ./.yarn/plugins
1111
COPY .yarn/releases ./.yarn/releases
1212
COPY .yarn/patches ./.yarn/patches
13-
COPY typescript/utils/package.json ./typescript/utils/
14-
COPY typescript/sdk/package.json ./typescript/sdk/
15-
COPY typescript/helloworld/package.json ./typescript/helloworld/
13+
COPY typescript/ccip-server/package.json ./typescript/ccip-server/
1614
COPY typescript/cli/package.json ./typescript/cli/
15+
COPY typescript/cosmos-sdk/package.json ./typescript/cosmos-sdk/
16+
COPY typescript/cosmos-types/package.json ./typescript/cosmos-types/
17+
COPY typescript/github-proxy/package.json ./typescript/github-proxy/
18+
COPY typescript/helloworld/package.json ./typescript/helloworld/
1719
COPY typescript/infra/package.json ./typescript/infra/
18-
COPY typescript/ccip-server/package.json ./typescript/ccip-server/
20+
COPY typescript/sdk/package.json ./typescript/sdk/
21+
COPY typescript/tsconfig/package.json ./typescript/tsconfig/
22+
COPY typescript/utils/package.json ./typescript/utils/
1923
COPY typescript/widgets/package.json ./typescript/widgets/
20-
COPY typescript/github-proxy/package.json ./typescript/github-proxy/
21-
COPY typescript/cosmos-types/package.json ./typescript/cosmos-types/
22-
COPY typescript/cosmos-sdk/package.json ./typescript/cosmos-sdk/
2324
COPY solidity/package.json ./solidity/
2425
COPY starknet/package.json ./starknet/
2526

2627
RUN yarn install && yarn cache clean
2728

2829
# Copy everything else
2930
COPY turbo.json ./
30-
COPY tsconfig.json ./
3131
COPY typescript ./typescript
3232
COPY solidity ./solidity
3333
COPY starknet ./starknet

rust/main/agents/relayer/src/settings/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ impl FromRawConf<RawRelayerSettings> for RelayerSettings {
120120
raw: RawRelayerSettings,
121121
cwp: &ConfigPath,
122122
_filter: (),
123+
agent_name: &str,
123124
) -> ConfigResult<Self> {
124125
let mut err = ConfigParsingError::default();
125126

@@ -136,6 +137,7 @@ impl FromRawConf<RawRelayerSettings> for RelayerSettings {
136137
.parse_from_raw_config::<Settings, RawAgentConf, Option<&HashSet<&str>>>(
137138
relay_chain_names.as_ref(),
138139
"Parsing base config",
140+
agent_name.to_string(),
139141
)
140142
.take_config_err(&mut err);
141143

rust/main/agents/scraper/src/settings.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ impl FromRawConf<RawScraperSettings> for ScraperSettings {
4343
raw: RawScraperSettings,
4444
cwp: &ConfigPath,
4545
_filter: (),
46+
agent_name: &str,
4647
) -> ConfigResult<Self> {
4748
let mut err = ConfigParsingError::default();
4849

@@ -59,6 +60,7 @@ impl FromRawConf<RawScraperSettings> for ScraperSettings {
5960
.parse_from_raw_config::<Settings, RawAgentConf, Option<&HashSet<&str>>>(
6061
chains_names_to_scrape.as_ref(),
6162
"Parsing base config",
63+
agent_name.to_string(),
6264
)
6365
.take_config_err(&mut err);
6466

rust/main/agents/validator/src/settings.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ impl FromRawConf<RawValidatorSettings> for ValidatorSettings {
7070
raw: RawValidatorSettings,
7171
cwp: &ConfigPath,
7272
_filter: (),
73+
agent_name: &str,
7374
) -> ConfigResult<Self> {
7475
let mut err = ConfigParsingError::default();
7576

@@ -93,6 +94,7 @@ impl FromRawConf<RawValidatorSettings> for ValidatorSettings {
9394
.parse_from_raw_config::<Settings, RawAgentConf, Option<&HashSet<&str>>>(
9495
origin_chain_name_set.as_ref(),
9596
"Expected valid base agent configuration",
97+
agent_name.to_string(),
9698
)
9799
.take_config_err(&mut err);
98100

@@ -111,6 +113,7 @@ impl FromRawConf<RawValidatorSettings> for ValidatorSettings {
111113
.parse_from_raw_config::<SignerConf, RawAgentSignerConf, NoFilter>(
112114
(),
113115
"Expected valid validator configuration",
116+
agent_name.to_string(),
114117
)
115118
.end();
116119

rust/main/config/mainnet_config.json

Lines changed: 132 additions & 133 deletions
Large diffs are not rendered by default.

rust/main/config/testnet_config.json

Lines changed: 183 additions & 107 deletions
Large diffs are not rendered by default.

rust/main/hyperlane-base/src/agent.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct HyperlaneAgentCore {
2727
pub trait LoadableFromSettings: AsRef<Settings> + Sized {
2828
/// Create a new instance of these settings by reading the configs and env
2929
/// vars.
30-
fn load() -> ConfigResult<Self>;
30+
fn load(agent_name: &str) -> ConfigResult<Self>;
3131
}
3232

3333
/// Metadata of an agent defined from configuration
@@ -93,7 +93,7 @@ pub async fn agent_main<A: BaseAgent>() -> Result<()> {
9393
git_sha()
9494
);
9595

96-
let settings = A::Settings::load()?;
96+
let settings = A::Settings::load(A::AGENT_NAME)?;
9797
let agent_metadata = A::Metadata::build_metadata(&settings);
9898
let core_settings: &Settings = settings.as_ref();
9999

0 commit comments

Comments
 (0)