diff --git a/src/client/lcd/api/AllianceAPI.ts b/src/client/lcd/api/AllianceAPI.ts index ea42f32..976a09c 100644 --- a/src/client/lcd/api/AllianceAPI.ts +++ b/src/client/lcd/api/AllianceAPI.ts @@ -7,7 +7,7 @@ import { AllianceUnbonding, AllianceValidator, } from '../../../core/alliance'; -import { AccAddress, Coins, ValAddress } from '../../../core'; +import { AccAddress, Coins, Coin, ValAddress } from '../../../core'; import { APIParams, Pagination, PaginationOptions } from '../APIRequester'; import { LCDClient } from '../LCDClient'; @@ -108,7 +108,7 @@ export class AllianceAPI extends BaseAPI { params: Partial = {} ): Promise<{ delegations: AllianceDelegation[]; - balance: Coins; + balance: Coin; pagination: Pagination; }> { let url = `/terra/alliances/delegations`; @@ -138,7 +138,7 @@ export class AllianceAPI extends BaseAPI { if (delAddr && valAddr && denom) { const res = await this.getReqFromChainID(chainID).get<{ delegation: AllianceDelegation.Data; - balance: Coins.Data; + balance: Coin.Data; }>(url, params); return { @@ -147,19 +147,19 @@ export class AllianceAPI extends BaseAPI { total: 1, }, delegations: [AllianceDelegation.fromData(res.delegation)], - balance: Coins.fromData(res.balance), + balance: Coin.fromData(res.balance), }; } else { const res = await this.getReqFromChainID(chainID).get<{ delegations: AllianceDelegation.Data[]; - balance: Coins.Data; + balance: Coin.Data; pagination: Pagination; }>(url, params); return { pagination: res.pagination, delegations: res.delegations.map(d => AllianceDelegation.fromData(d)), - balance: Coins.fromData(res.balance), + balance: Coin.fromData(res.balance), }; } }