UNPKG

hermes-v2-sdk

Version:

⚒️ An SDK for building applications on top of Hermes V2

8 lines (7 loc) 721 B
import { BigNumber } from '@ethersproject/bignumber'; import { SubgraphToken } from '../../types/balancer'; export declare const isSameAddress: (address1: string, address2: string) => boolean; export declare function safeParseFixed(value: string, decimals?: number): BigNumber; export declare const normaliseBalance: (token: Partial<Pick<SubgraphToken, 'priceRate'>> & Pick<SubgraphToken, 'balance'>) => bigint; export declare const normaliseAmount: (amount: bigint, token: Partial<Pick<SubgraphToken, 'priceRate'>> & Pick<SubgraphToken, 'decimals'>) => bigint; export declare const denormaliseAmount: (amount: bigint, token: Partial<Pick<SubgraphToken, 'priceRate'>> & Pick<SubgraphToken, 'decimals'>) => bigint;