Skip to content

Commit

Permalink
feat: deploy jan 6 batch (#5144)
Browse files Browse the repository at this point in the history
### Description

deploy jan 6 batch:
- artela guru hemi nero xpla

acala/subtensor deferred due to deploy issues

### Drive-by changes

- igp updates
- fix to validator config validity check
- cherry-picked
#5145

### Related issues

hyperlane-xyz/hyperlane-registry#476

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

manual

---------

Signed-off-by: pbio <10051819+paulbalaji@users.noreply.github.com>
Co-authored-by: Danil Nemirovsky <4614623+ameten@users.noreply.github.com>
Co-authored-by: Trevor Porter <tkporter4@gmail.com>
  • Loading branch information
3 people authored Jan 13, 2025
1 parent 585404d commit 9ab961a
Show file tree
Hide file tree
Showing 16 changed files with 1,582 additions and 134 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-kangaroos-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': minor
---

Deploy to new chains: artela, guru, hemi, nero, xpla.
2 changes: 1 addition & 1 deletion .registryrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
115d44069109f3ef43caeed5632f6255d9a3390a
2184e5e3064ddec2734aa53c1aff6d9f7d958bdf
17 changes: 15 additions & 2 deletions rust/main/chains/hyperlane-sealevel/src/rpc/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use crate::{
const COMPUTE_UNIT_MULTIPLIER_NUMERATOR: u32 = 11;
const COMPUTE_UNIT_MULTIPLIER_DENOMINATOR: u32 = 10;

const PRIORITY_FEE_MULTIPLIER_NUMERATOR: u64 = 125;
const PRIORITY_FEE_MULTIPLIER_NUMERATOR: u64 = 110;
const PRIORITY_FEE_MULTIPLIER_DENOMINATOR: u64 = 100;

pub struct SealevelTxCostEstimate {
Expand Down Expand Up @@ -401,7 +401,20 @@ impl SealevelRpcClient {
/ COMPUTE_UNIT_MULTIPLIER_DENOMINATOR,
);

let priority_fee = priority_fee_oracle.get_priority_fee(&simulation_tx).await?;
let mut priority_fee = priority_fee_oracle.get_priority_fee(&simulation_tx).await?;

if let Ok(max_priority_fee) = std::env::var("SVM_MAX_PRIORITY_FEE") {
let max_priority_fee = max_priority_fee.parse()?;
if priority_fee > max_priority_fee {
tracing::info!(
priority_fee,
max_priority_fee,
"Estimated priority fee is very high, capping to a max",
);
priority_fee = max_priority_fee;
}
}

// Bump the priority fee to be conservative
let priority_fee = (priority_fee * PRIORITY_FEE_MULTIPLIER_NUMERATOR)
/ PRIORITY_FEE_MULTIPLIER_DENOMINATOR;
Expand Down
Loading

0 comments on commit 9ab961a

Please sign in to comment.