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

feat(adapters): Add Hyperlane #287

Merged
merged 7 commits into from
Nov 1, 2024
Merged

Conversation

tmsrjs
Copy link
Contributor

@tmsrjs tmsrjs commented Oct 4, 2024

No description provided.

@vrtnd
Copy link
Member

vrtnd commented Oct 7, 2024

please fix typescript errors
npm run ts

@tmsrjs
Copy link
Contributor Author

tmsrjs commented Oct 7, 2024

@vrtnd done 👌

@cmcewen
Copy link

cmcewen commented Oct 17, 2024

@vrtnd anything we could do to get a review from you here?

@@ -117,7 +117,7 @@ export const runAdapterToCurrentBlock = async (
console.warn(`[WARN] No recorded blocks data for ${bridgeDbName}. Error: ${e.message}`);
}

const adapter = adapters[bridgeDbName];
const adapter = await adapters[bridgeDbName];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's add adapter.isAsync field and await only in this case

@tmsrjs
Copy link
Contributor Author

tmsrjs commented Oct 31, 2024

@vrtnd would something like this work?
I'm not particularly happy about the amount of repetition but it can easily be abstracted in something like async function getAdapter(adapterName), but then that would have to be awaited as well due to the fact that it may have to build the adapter. What do you think?

@vrtnd vrtnd merged commit d14de44 into DefiLlama:master Nov 1, 2024
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.

3 participants