Skip to content

Commit

Permalink
fix: minor typing
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Feb 10, 2023
1 parent 9ae4f20 commit e828399
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/sdk-ui-ts/src/types/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,34 @@ export interface BalanceWithTokenWithErc20Balance extends BalanceWithToken {
}
}

export interface BalanceWithTokenWithSplBalance extends BalanceWithToken {
spl: {
allowance: string
balance: string
}
}

export interface BalanceWithTokenWithIbcBalance extends BalanceWithToken {
ibc: {
balance: string
}
}

export interface BalanceWithTokenWithErc20BalanceWithPrice
extends BalanceWithTokenWithErc20Balance {
usdPrice: number
}

export interface BalanceWithTokenWithSplBalanceWithPrice
extends BalanceWithTokenWithSplBalance {
usdPrice: number
}

export interface BalanceWithTokenWithIbcBalanceWithPrice
extends BalanceWithTokenWithIbcBalance {
usdPrice: number
}

export interface BalanceWithTokenAndPriceWithUsdBalance
extends BalanceWithTokenAndPrice {
balanceInUsd: string
Expand Down

0 comments on commit e828399

Please sign in to comment.