@molecularlabs/nucleus-frontend
Version:
Nucleus BoringVault Frontend SDK
20 lines (17 loc) • 608 B
TypeScript
import { Address } from 'viem';
import { ChainId } from './vault-config.js';
import 'viem/chains';
import '../vaults/config.js';
type AllowanceProps = {
tokenAddress: Address;
spenderAddress: Address;
userAddress: Address;
chainId: ChainId;
};
declare function getVaultAllowance({ tokenAddress, spenderAddress, userAddress, chainId, }: AllowanceProps): Promise<bigint>;
type TotalSupplyProps = {
tokenAddress: Address;
chainId: ChainId;
};
declare function getTotalSupply({ tokenAddress, chainId, }: TotalSupplyProps): Promise<bigint>;
export { getTotalSupply, getVaultAllowance };