The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hyperlane-monorepo/rust/sealevel/client/Cargo.toml

53 lines
1.8 KiB

cargo-features = ["workspace-inheritance"]
[package]
name = "hyperlane-sealevel-client"
version = "0.1.0"
edition = "2021"
[dependencies]
borsh.workspace = true
bs58.workspace = true
bincode.workspace = true
clap = { workspace = true, features = ["derive"] }
ethers.workspace = true
hex.workspace = true
pretty_env_logger.workspace = true
serde.workspace = true
serde_json.workspace = true
solana-clap-utils.workspace = true
solana-cli-config.workspace = true
solana-client.workspace = true
solana-program.workspace = true
solana-sdk.workspace = true
Sealevel igp indexing (#2585) ### Description Depends on https://github.com/hyperlane-xyz/hyperlane-monorepo/pull/2583 Indexes IGP payments related to the relayer's data pda address. Unless this address is specified in the config (`sealevel.relayer_account `), no filtering is applied and all IGP payments are stored in the local database. <!-- What's included in this PR? --> ### Drive-by changes - Sets `HYP_BASE_GASPAYMENTENFORCEMENT` in `run-locally` for the relayer, to test that it correctly indexes the IGP payment before submitting the message - A new config section (`sealevel`) is added to the relayer - The `MessageIndexer` trait is replaced with `SequenceIndexer<HyperlaneMessage>`, renaming `fetch_count_at_tip` to `sequence_at_tip`. `SequenceIndexer` is now common to both the message and igp indexers. - The `parse_addr` macro is modified so it can be reused when parsing the sealevel relayer address config too - `rust/utils/sealevel-test.bash` is included because I was using it to test locally, but I can remove it if the sealevel e2e test already does all the steps there @mattiecnvr - Performs a `try_into` conversion that can be removed once https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/2610 is done ### Related issues - Fixes https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/2501 ### 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 <!-- What kind of testing have these changes undergone? --> e2e tests but the pipeline is failing, likely fixed by https://github.com/hyperlane-xyz/hyperlane-monorepo/pull/2602 --------- Co-authored-by: Trevor Porter <trkporter@ucdavis.edu>
1 year ago
solana-transaction-status.workspace = true
account-utils = { path = "../libraries/account-utils" }
hyperlane-core = { path = "../../main/hyperlane-core" }
hyperlane-sealevel-connection-client = { path = "../libraries/hyperlane-sealevel-connection-client" }
hyperlane-sealevel-mailbox = { path = "../programs/mailbox", features = [
"no-entrypoint",
"serde",
] }
hyperlane-sealevel-multisig-ism-message-id = { path = "../programs/ism/multisig-ism-message-id", features = [
"no-entrypoint",
] }
hyperlane-sealevel-token = { path = "../programs/hyperlane-sealevel-token", features = [
"no-entrypoint",
] }
hyperlane-sealevel-igp = { path = "../programs/hyperlane-sealevel-igp", features = [
"no-entrypoint",
"serde",
] }
hyperlane-sealevel-token-collateral = { path = "../programs/hyperlane-sealevel-token-collateral", features = [
"no-entrypoint",
] }
hyperlane-sealevel-token-lib = { path = "../libraries/hyperlane-sealevel-token" }
hyperlane-sealevel-token-native = { path = "../programs/hyperlane-sealevel-token-native", features = [
"no-entrypoint",
] }
hyperlane-sealevel-validator-announce = { path = "../programs/validator-announce", features = [
"no-entrypoint",
] }
hyperlane-sealevel-hello-world = { path = "../programs/helloworld" }