Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aptos: instantiate the provider, some code cleanups #11

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mzabaluev
Copy link

@mzabaluev mzabaluev commented May 23, 2024

Description

  • Instantiate the hyperlane-aptos provider in ChainConf::build_provider.
  • Implement HyperlaneProvider::get_chain_metrics for AptosHpProvider by returning Ok(None).
  • Streamline up use of Aptos client, no need for a wrapper that only Derefs to the real thing.
  • Use Url in APIs rather than converting to and from strings.

Drive-by changes

Formatting and use items reordering in the touched files.

Backward compatibility

Yes (unless hyperlane-aptos has been released under semver somewhere).

Testing

None (yet)

Don't wrap the aptos SDK's client with a newtype
and Deref, this is an antipattern and serves no
useful purpose.
Use the Url type in the APIs rather than converting
to and from strings.
Have a private constructor for AptosHpProvider to
indicate silly clones enforced by hyperlane-core API.
@mzabaluev mzabaluev marked this pull request as ready for review May 23, 2024 18:07
@mzabaluev
Copy link
Author

We need to shed those CI checks that we don't care about, but they fail. Broken window syndrome and all that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants