Skip to content

Conversation

@0xBoringWozniak
Copy link
Member

@0xBoringWozniak 0xBoringWozniak commented Dec 20, 2024

This pull request introduces several enhancements to the hyperliquid package, focusing on adding support for deposit information alongside existing withdrawal functionalities. The key changes include the addition of a new Deposit struct, corresponding methods to fetch deposit data, and related test cases.

Enhancements to data structures:

  • Added Time field to the Withdrawal struct to include timestamp information.
  • Introduced a new Deposit struct to represent deposit transactions, with fields for Hash, Time, and Amount.

New methods for fetching deposit data:

  • Implemented GetDeposits and GetAccountDeposits methods in InfoAPI to retrieve deposit information for a given address or the account address.

Updates to existing methods:

  • Modified GetWithdrawals method to populate the Time field in Withdrawal struct.

Test cases:

  • Added a new test case TestInfoAPI_GetAccountDeposits to verify the functionality of the GetAccountDeposits method.

@0xBoringWozniak 0xBoringWozniak added enhancement New feature or request info /info endpoint labels Dec 20, 2024
@0xBoringWozniak 0xBoringWozniak self-assigned this Dec 20, 2024
@0xBoringWozniak 0xBoringWozniak merged commit 5d88441 into main Dec 20, 2024
@0xBoringWozniak 0xBoringWozniak deleted the feature-add-deposits branch December 20, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request info /info endpoint

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants