import { Web3LibAdapter } from "@bosonprotocol/common"; import { BaseCoreSDK } from "./../mixins/base-core-sdk"; import { balanceOf, ownerOf, tokenOfOwnerByIndex, name, symbol, tokenUri } from "./handler"; export class ERC721Mixin extends BaseCoreSDK { /* -------------------------------------------------------------------------- */ /* ERC721 related methods */ /* -------------------------------------------------------------------------- */ public async erc721Name( args: Omit[0], "web3Lib"> ): Promise> { return name({ web3Lib: this._web3Lib, ...args }); } public async erc721Symbol( args: Omit[0], "web3Lib"> ): Promise> { return symbol({ web3Lib: this._web3Lib, ...args }); } public async erc721TokenUri( args: Omit[0], "web3Lib"> ): Promise> { return tokenUri({ web3Lib: this._web3Lib, ...args }); } public async erc721BalanceOf( args: Omit[0], "web3Lib"> ): Promise> { return balanceOf({ web3Lib: this._web3Lib, ...args }); } public async erc721OwnerOf( args: Omit[0], "web3Lib"> ): Promise> { return ownerOf({ web3Lib: this._web3Lib, ...args }); } public async erc721TokenOfOwnerByIndex( args: Omit[0], "web3Lib"> ): Promise> { return tokenOfOwnerByIndex({ web3Lib: this._web3Lib, ...args }); } }