Skip to content

Commit

Permalink
Merge branch 'hyperlane-xyz:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ljankovic-txfusion authored Jan 22, 2025
2 parents 1058872 + 6c631d8 commit bf4aa1b
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ impl MigrationTrait for Migration {
.to_owned(),
)
.await?;

manager
.create_index(
Index::create()
Expand All @@ -47,7 +46,17 @@ impl MigrationTrait for Migration {
.to_owned(),
)
.await?;

manager
.create_index(
Index::create()
.table(Cursor::Table)
.name("cursor_domain_height_idx")
.col(Cursor::Domain)
.col(Cursor::Height)
.index_type(IndexType::BTree)
.to_owned(),
)
.await?;
Ok(())
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,29 @@ impl MigrationTrait for Migration {
.to_owned(),
)
.await?;
manager
.create_index(
Index::create()
.table(DeliveredMessage::Table)
.name("delivered_message_domain_destination_mailbox_idx")
.col(DeliveredMessage::Domain)
.col(DeliveredMessage::DestinationMailbox)
.index_type(IndexType::BTree)
.to_owned(),
)
.await?;
manager
.create_index(
Index::create()
.table(DeliveredMessage::Table)
.name("delivered_message_domain_destination_mailbox_sequence_idx")
.col(DeliveredMessage::Domain)
.col(DeliveredMessage::DestinationMailbox)
.col(DeliveredMessage::Sequence)
.index_type(IndexType::BTree)
.to_owned(),
)
.await?;
manager
.create_index(
Index::create()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,28 @@ impl MigrationTrait for Migration {
.to_owned(),
)
.await?;

manager
.create_index(
Index::create()
.table(GasPayment::Table)
.name("gas_payment_domain_id_idx")
.col(GasPayment::Domain)
.col(GasPayment::Id)
.index_type(IndexType::BTree)
.to_owned(),
)
.await?;
manager
.create_index(
Index::create()
.table(GasPayment::Table)
.name("gas_payment_origin_id_idx")
.col(GasPayment::Origin)
.col(GasPayment::Id)
.index_type(IndexType::BTree)
.to_owned(),
)
.await?;
manager
.create_index(
Index::create()
Expand All @@ -99,7 +120,6 @@ impl MigrationTrait for Migration {
.to_owned(),
)
.await?;

manager
.get_connection()
.execute_unprepared(&format!(
Expand All @@ -124,7 +144,6 @@ impl MigrationTrait for Migration {
tgp_gas_amount = TotalGasPayment::TotalGasAmount.to_string(),
))
.await?;

Ok(())
}

Expand Down
6 changes: 3 additions & 3 deletions typescript/infra/config/environments/mainnet3/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ const hyperlane: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: '62702d3-20250121-002648',
tag: '09e1d5b-20250121-214732',
},
blacklist,
gasPaymentEnforcement: gasPaymentEnforcement,
Expand Down Expand Up @@ -693,7 +693,7 @@ const releaseCandidate: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: '7546c01-20250120-171540',
tag: '09e1d5b-20250121-214732',
},
blacklist,
// We're temporarily (ab)using the RC relayer as a way to increase
Expand Down Expand Up @@ -727,7 +727,7 @@ const neutron: RootAgentConfig = {
rpcConsensusType: RpcConsensusType.Fallback,
docker: {
repo,
tag: '234704d-20241226-192528',
tag: '09e1d5b-20250121-214732',
},
blacklist,
gasPaymentEnforcement,
Expand Down

0 comments on commit bf4aa1b

Please sign in to comment.