@0xfutbol/id
Version:
React component library with shared providers for 0xFutbol ID
20 lines (19 loc) • 1.1 kB
JavaScript
;var index=require('./index-gEYw6hWC.js'),decimals$1=require('./decimals-DNF80AHH.js');require('react'),require('react/jsx-runtime'),require('@0xfutbol/id-sign'),require('react-use'),require('@0xfutbol/constants'),require('thirdweb'),require('@matchain/matchid-sdk-react'),require('@tanstack/react-query'),require('@matchain/matchid-sdk-react/index.css'),require('react-dom');/**
* Retrieves the number of decimal places for a given ERC20 contract.
* @param options - The options for the transaction.
* @returns A promise that resolves to the number of decimal places.
* @extension ERC20
* @example
* ```ts
* import { decimals } from "thirdweb/extensions/erc20";
*
* const tokenDecimals = await decimals({ contract });
* ```
*/
async function decimals(options) {
return index.ag(() => decimals$1.d(options), {
cacheKey: `${options.contract.chain.id}:${options.contract.address}:decimals`,
// can never change, so cache forever
cacheTime: Number.POSITIVE_INFINITY,
});
}exports.decimals=decimals;//# sourceMappingURL=decimals-C_tN8eFN.js.map