Skip to content
On this page

Test

ABIType exports some test utilities and constants to make playing around and testing your code easier via the 'abitype/test' entrypoint.

Constants

ts
ts
import { zeroAddress } from 'abitype/test'
Try
ts
import { zeroAddress } from 'abitype/test'
Try

ABIs

ts
ts
import {
customSolidityErrorsAbi,
ensAbi,
ensRegistryWithFallbackAbi,
erc20Abi,
nestedTupleArrayAbi,
nounsAuctionHouseAbi,
seaportAbi,
wagmiMintExampleAbi,
wethAbi,
writingEditionsFactoryAbi,
eip165Abi,
} from 'abitype/test'
Try
ts
import {
customSolidityErrorsAbi,
ensAbi,
ensRegistryWithFallbackAbi,
erc20Abi,
nestedTupleArrayAbi,
nounsAuctionHouseAbi,
seaportAbi,
wagmiMintExampleAbi,
wethAbi,
writingEditionsFactoryAbi,
eip165Abi,
} from 'abitype/test'
Try

Human-Readable ABIs

ts
ts
import {
customSolidityErrorsHumanReadableAbi,
ensHumanReadableAbi,
ensRegistryWithFallbackHumanReadableAbi,
erc20HumanReadableAbi,
nestedTupleArrayHumanReadableAbi,
nounsAuctionHouseHumanReadableAbi,
seaportHumanReadableAbi,
wagmiMintExampleHumanReadableAbi,
wethHumanReadableAbi,
writingEditionsFactoryHumanReadableAbi,
} from 'abitype/test'
Try
ts
import {
customSolidityErrorsHumanReadableAbi,
ensHumanReadableAbi,
ensRegistryWithFallbackHumanReadableAbi,
erc20HumanReadableAbi,
nestedTupleArrayHumanReadableAbi,
nounsAuctionHouseHumanReadableAbi,
seaportHumanReadableAbi,
wagmiMintExampleHumanReadableAbi,
wethHumanReadableAbi,
writingEditionsFactoryHumanReadableAbi,
} from 'abitype/test'
Try

Released under the MIT License.