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: Add hyperlane plugin #304

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

feat: Add hyperlane plugin #304

wants to merge 4 commits into from

Conversation

ltyu
Copy link

@ltyu ltyu commented Feb 4, 2025

Relates to:

#301

Background

Hyperlane is a permissionless interoperability protocol for cross-chain communication. Hyperlane currently support over 130 chains and has processed over $5B in volume in an ever expanding ecosystem.

What does this PR do?

This PR enables Goat clients to deploys a token bridge (aka Warp Route) between any 2 chains by providing the chain names and the token address. As long as these chains are supported by hyperlane, users should be able to deploy a bridge for their token.

Testing

Prompt with something like: Deploying a bridge between arbitrumsepolia and basesepolia for token 0xdeadbeef

Detailed testing results

Method Prompt Screenshot Transaction Link
Deploy a Bridge Deploy a bridge between arbitrumsepolia and basesepolia for collateral 0x6402c4c08C1F752Ac8c91beEAF226018ec1a27f2 See Below TX 1 TX 2
Screenshot 2025-02-03 at 9 12 32 PM Screenshot 2025-02-03 at 9 12 53 PM

Docs

For plugins

  • I have tested this change locally with key pair wallets
  • I have tested this change locally with hosted wallets (e.g. Crossmint Smart Wallets, etc.)
  • Package exists in the goat workspace file

Discord username

import { z } from "zod";

export class HyperlaneDeployParameters extends createToolParameters(
z.object({
Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I think so! worth trying it out! :)

Copy link
Author

Choose a reason for hiding this comment

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

i believe the zod schema versions aren't compatible :(

hyperlane uses 3.24.1

@0xaguspunk
Copy link
Contributor

Need to merge with main, feel free to delete the pnpm-lock file and create it again running pnpm i

Happy to merge afterwards if PR is ready :)

Copy link

changeset-bot bot commented Feb 5, 2025

⚠️ No Changeset found

Latest commit: dffdb38

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ltyu
Copy link
Author

ltyu commented Feb 5, 2025

Need to merge with main, feel free to delete the pnpm-lock file and create it again running pnpm i

Happy to merge afterwards if PR is ready :)

done, hopefully that fixed it

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