Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ERC721Collectibles

Hierarchy

Implements

Index

Constructors

Properties

_erc20: ERC20
_purchaseToken?: string
abi: AbiItem[]
contractAddress?: string

Accessors

  • get account(): Account
  • Returns the Account associated with this connection

    Returns Account

  • get web3(): default
  • Returns the Web3 class assigned to this connection

    Returns default

Methods

  • MAX_PURCHASE(): Promise<number>
  • _baseFeeAddress(): Promise<string>
  • _baseFeeShare(): Promise<number>
  • _closed(): Promise<boolean>
  • _currentTokenId(): Promise<number>
  • _feeAddress(): Promise<string>
  • _feeShare(): Promise<number>
  • _limitedAmount(): Promise<number>
  • _otherAddress(): Promise<string>
  • _otherShare(): Promise<number>
  • alreadyMinted(v1: number): Promise<boolean>
  • approve(to: string, tokenId: number): Promise<TransactionReceipt>
  • approveERC20Transfer(): Promise<TransactionReceipt>
  • balanceOf(owner: string): Promise<number>
  • baseURI(): Promise<string>
  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • connect(): Promise<boolean>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt>

  • deployJsonAbi(name: string, symbol: string, limitedAmount: number, _purchaseToken: string, baseFeeAddress: string, feeAddress: string, otherAddress: string): Promise<TransactionReceipt>
  • exists(tokenId: number): Promise<boolean>
  • getApproved(tokenId: number): Promise<string>
  • getRegisteredIDs(_address: string): Promise<number[]>
  • isApproved(amount: number): Promise<boolean>
  • isApprovedForAll(owner: string, operator: string): Promise<boolean>
  • isLimited(): Promise<boolean>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lock(): Promise<TransactionReceipt>
  • mint(tokenIdToMint: number): Promise<TransactionReceipt>
  • name(): Promise<string>
  • openPack(amount: number): Promise<TransactionReceipt>
  • openedPacks(): Promise<number>
  • owner(): Promise<string>
  • ownerOf(tokenId: number): Promise<string>
  • pricePerPack(): Promise<number>
  • purchaseToken(): Promise<string>
  • registeredIDs(address: string, tokenId: number): Promise<boolean>
  • registeredIDsArray(v1: string, v2: number): Promise<number>
  • safeTransferFrom(from: string, to: string, tokenId: number, _data?: string): Promise<TransactionReceipt>
  • sendTx(method: ContractSendMethod, value?: any, debug?: undefined | boolean): Promise<TransactionReceipt>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • debug: undefined | boolean = ...

    Returns Promise<TransactionReceipt>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, debug?: boolean): Promise<TransactionReceipt>
  • Send unsigned transaction

    Parameters

    • method: ContractSendMethod
    • Optional value: any
    • Optional debug: boolean

    Returns Promise<TransactionReceipt>

  • setApprovalForAll(operator: string, approved: boolean): Promise<TransactionReceipt>
  • setBaseURI(baseURI: string): Promise<TransactionReceipt>
  • setFeeAddress(feeAddress: string): Promise<TransactionReceipt>
  • setOtherAddress(otherAddress: string): Promise<TransactionReceipt>
  • setPricePerPack(newPrice: number): Promise<TransactionReceipt>
  • setPurchaseTokenAddress(purchaseToken: string): Promise<TransactionReceipt>
  • setShares(feeShare: number, otherShare: number): Promise<TransactionReceipt>
  • setTokenURI(tokenId: number, uri: string): Promise<TransactionReceipt>
  • start(): Promise<void>
  • supportsInterface(interfaceId: string): Promise<boolean>
  • symbol(): Promise<string>
  • tokenByIndex(index: number): Promise<number>
  • tokenOfOwnerByIndex(owner: string, index: number): Promise<number>
  • tokenURI(tokenId: number): Promise<string>
  • totalSupply(): Promise<number>
  • transferFrom(from: string, to: string, tokenId: number): Promise<TransactionReceipt>
  • transferOwnership(newOwner: string): Promise<TransactionReceipt>
  • unlock(): Promise<TransactionReceipt>

Generated using TypeDoc