mirror of
https://github.com/penxio/penx.git
synced 2026-04-19 03:03:06 -04:00
13 lines
316 B
TypeScript
13 lines
316 B
TypeScript
import { indieXAbi } from '@/lib/abi'
|
|
import { addressMap } from '@/lib/address'
|
|
import { useReadContract } from 'wagmi'
|
|
|
|
export function useSupply(creationId: bigint) {
|
|
return useReadContract({
|
|
address: addressMap.IndieX,
|
|
abi: indieXAbi,
|
|
functionName: 'creationSupply',
|
|
args: [creationId],
|
|
})
|
|
}
|