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

[CFE-526]: Fix(utils): support icns in account osmosis lite version #982

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Improvements

- [#982](https://github.com/alleslabs/celatone-frontend/pull/982) Support Icns in account osmosis lite version
- [#973](https://github.com/alleslabs/celatone-frontend/pull/973) Remove overview text from landing page title
- [#967](https://github.com/alleslabs/celatone-frontend/pull/967) Utilize consensus address for better consistency
- [#963](https://github.com/alleslabs/celatone-frontend/pull/963) Add separator between token in tx message
Expand Down
5 changes: 4 additions & 1 deletion src/lib/services/account/lcd.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import axios from "axios";

import { getIcnsNamesByAddressLcd } from "../name/lcd";
import type { AccountData } from "../types";
import type { BechAddr } from "lib/types";

export const getAccountDataLcd = async (
endpoint: string,
address: BechAddr
): Promise<AccountData> => {
const icns = await getIcnsNamesByAddressLcd(endpoint, address);

// TODO: Implement this function
return {
projectInfo: null,
publicInfo: null,
icns: null,
icns,
};
};
Loading