Skip to content

Commit

Permalink
add native functions for getWithdrawalAndTransferGatingStatus and get…
Browse files Browse the repository at this point in the history
…WithdrawalCapacityByDenom
  • Loading branch information
mike-dydx committed Mar 18, 2024
1 parent a4bb4de commit a6965bb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions v4-client-js/src/clients/native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1182,3 +1182,21 @@ export async function cctpWithdraw(squidPayload: string): Promise<String> {
return wrappedError(error);
}
}

export async function getWithdrawalCapacityByDenom(denom: string): Promise<string> {
try {
const result = await globalThis.client.validatorClient.get.getWithdrawalCapacityByDenom(denom);
return encodeJson(result);
} catch (e) {
return wrappedError(e);
}
}

export async function getWithdrawalAndTransferGatingStatus(): Promise<string> {
try {
const result = await globalThis.client.validatorClient.get.GetWithdrawalAndTransferGatingStatus();

Check failure on line 1197 in v4-client-js/src/clients/native.ts

View workflow job for this annotation

GitHub Actions / CI

This line has a length of 102. Maximum allowed is 100
return encodeJson(result);
} catch (e) {
return wrappedError(e);
}
}

0 comments on commit a6965bb

Please sign in to comment.