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

Generate comments to helper funcs #684

Open
Zetazzz opened this issue Oct 30, 2024 · 0 comments
Open

Generate comments to helper funcs #684

Zetazzz opened this issue Oct 30, 2024 · 0 comments
Assignees

Comments

@Zetazzz
Copy link
Collaborator

Zetazzz commented Oct 30, 2024

Add comments to helper func generating:
https://github.com/cosmology-tech/telescope/tree/main/packages/ast/src/clients/helper-funcs

current:

export const createGetBalance = (getRpcInstance: RpcResolver) => buildQuery<QueryBalanceRequest, QueryBalanceResponse>({
  encode: QueryBalanceRequest.encode,
  decode: QueryBalanceResponse.decode,
  service: "cosmos.bank.v1beta1.Query",
  method: "Balance",
  getRpcInstance: getRpcInstance
});
export const useGetBalance = buildUseQuery<QueryBalanceRequest, QueryBalanceResponse>({
  builderQueryFn: createGetBalance,
  queryKeyPrefix: "BalanceQuery"
});

expected:

/** Balance queries the balance of a single coin for a single account. */
export const createGetBalance = (getRpcInstance: RpcResolver) => buildQuery<QueryBalanceRequest, QueryBalanceResponse>({
  encode: QueryBalanceRequest.encode,
  decode: QueryBalanceResponse.decode,
  service: "cosmos.bank.v1beta1.Query",
  method: "Balance",
  getRpcInstance: getRpcInstance
});

/** Balance queries the balance of a single coin for a single account. */
export const useGetBalance = buildUseQuery<QueryBalanceRequest, QueryBalanceResponse>({
  builderQueryFn: createGetBalance,
  queryKeyPrefix: "BalanceQuery"
});

can be a reference.

@Zetazzz Zetazzz assigned Zetazzz and NorOldBurden and unassigned Zetazzz Oct 30, 2024
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

No branches or pull requests

2 participants