The SDK exposes most of the LooksRare contract ABIs. For convenience, some commonly used ABIs are also exported. If you need other ABIs, you can open an issue.
import {
ERC20Abi,
ERC721Abi,
ERC1155Abi,
FeeSharingSystemAbi,
IExecutionStrategyAbi,
LooksRareAirdropAbi,
LooksRareExchangeAbi,
MultiRewardsDistributorAbi,
PrivateSaleWithFeeSharingAbi,
ReverseRecordsAbi,
RoyaltyFeeManagerAbi,
RoyaltyFeeRegistryAbi,
RoyaltyFeeSetterAbi,
TokenDistributorAbi,
TradingRewardsDistributorAbi,
WETHAbi,
TransferSelectorNFTAbi,
} from "@looksrare/sdk";
You can also export the JSON file directly:
import wethAbi from "@looksrare/sdk/dist/abis/WETHAbi.json";
- LooksRareExchangeAbi: LooksRare exchange, where all the trading actions are done (execute a trade, cancel orders, etc...).
- IExecutionStrategyAbi: Generic interface for Strategies contracts. You can use it to interact with all the strategies (only the implementation changes).
- TransferSelectorNFTAbi: Select the right transfer manager based on the collection's supported interface. Used to transfer an NFT when a trade is executed.
- RoyaltyFeeRegistryAbi: Royalty fee registry for the LooksRare exchange. Contains royalties information for all the collections.
- RoyaltyFeeSetterAbi: Allow creators to set their royalties in the registry.
- RoyaltyFeeManagerAbi: Compute the royalties for a specific trade, based on the registry information.
- FeeSharingSystemAbi: Handle WETH distribution.
- TokenDistributorAbi: Distribute the LOOKS tokens.
- MultiRewardsDistributorAbi: Distribute trading rewards and listing rewards using a merkle tree for data validation.
- LooksRareAirdropAbi: Initial airdrop contract.
- PrivateSaleWithFeeSharingAbi: Strategic sale contract.
- ERC20Abi: Generic ERC20 ABI
- ERC721Abi: Generic ERC721 ABI
- ERC1155Abi: Generic ERC1155 ABI
- ReverseRecordsAbi: ENS reverse record ABI
- WETHAbi: Generic WETH ABI