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

MOB-2 : iOS: Update dydxClient hook to support query for withdrawal gating #133

Conversation

mike-dydx
Copy link
Contributor

@mike-dydx mike-dydx commented Mar 18, 2024

MOB-2 : iOS: Update dydxClient hook to support query for withdrawal gating

  • adds native wrappers for the GetWithdrawalAndTransferGatingStatus and getWithdrawalCapacityByDenom methods

Copy link

linear bot commented Mar 18, 2024

@mike-dydx mike-dydx force-pushed the mike/mob-2-ios-update-dydxclient-hook-to-support-query-for-withdrawal branch 2 times, most recently from a6965bb to eef05d3 Compare March 18, 2024 20:33
try {
const validatorClient = globalThis.client.validatorClient;
const result = await validatorClient.get.GetWithdrawalAndTransferGatingStatus();
return encodeJson(result, ByteArrayEncoding.BIGINT);
Copy link
Contributor

Choose a reason for hiding this comment

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

is BIGINT encoding necessary for withdrawalAndTransferGatingStatus? I believe this should be human readable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks to be encoded
Screenshot 2024-03-28 at 11 19 32 AM

@mike-dydx mike-dydx force-pushed the mike/mob-2-ios-update-dydxclient-hook-to-support-query-for-withdrawal branch from b45eb20 to c8b21ae Compare March 26, 2024 19:01
@mike-dydx mike-dydx requested a review from jaredvu March 28, 2024 15:20
@mike-dydx mike-dydx marked this pull request as ready for review March 28, 2024 15:23
@mike-dydx mike-dydx requested review from johnqh and ruixhuang March 28, 2024 15:23
@mike-dydx mike-dydx force-pushed the mike/mob-2-ios-update-dydxclient-hook-to-support-query-for-withdrawal branch from 77687e4 to 5cb5372 Compare April 2, 2024 18:23
@mike-dydx mike-dydx merged commit b621ba1 into main Apr 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants