-
Notifications
You must be signed in to change notification settings - Fork 68
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 Hyperliquid Integration #33
base: main
Are you sure you want to change the base?
Conversation
projects/hyperliquid/tools.ts
Outdated
export const tools: AiTool[] = [ | ||
{ | ||
name: 'bridgeToHyperliquid', | ||
description: 'Bridges native USDC tokens from Arbitrum to Hyperliquid.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use word "native" corresponding to ERC-20 tokens. It's can be problem for AI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed: 97b057b
}); | ||
console.log('Transaction result:', result); | ||
|
||
const transferMessage = result.data[result.data.length - 1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider reading event info and displaying it to the user for better awareness
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which data you suggest from event to show?
* @returns Promise resolving to function execution result | ||
*/ | ||
export async function bridgeToHyperliquid({ chainName, account, amount }: Props, { sendTransactions, notify }: FunctionOptions): Promise<FunctionReturn> { | ||
try { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it will be possible in future transfer USDT or other tokens? If yes, then consider add argument - tokenAddress
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it make more sense to add tokenSymbol instead of tokenAddress? how command call would look like with tokenAddress?
projects/hyperliquid/index.ts
Outdated
export default { | ||
tools, | ||
functions, | ||
description: 'Integration with Hyperliquid Protocol', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here main protocol description for AI. Add slightly more info.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed 97b057b
cbf03a9
to
59dce70
Compare
c58df2d
to
3b5d7a2
Compare
ab41357
to
c2fd053
Compare
Hyperliquid Integration
🚧 Phase 1 of Hyperliquid Integration
Implements trading functionality between Arbitrum and Hyperliquid including bridging, position management, and fund transfers.
This PR delivers a complete trading functionality with Hyperliquid, enabling the full trading cycle from bridging to position management.
What's Included
Action Items 🎯
Coming Soon ⏳
Test Results
✅ All tests passing
✅ 100% coverage across all files
Commands: