Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RealFevrOpener

Hierarchy

Implements

Index

Constructors

Properties

_decimals: number = 18
_erc20: ERC20
abi: AbiItem[]
contractAddress?: string
purchaseTokenAddress?: string

Accessors

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

    Returns Account

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

    Returns default

Methods

  • _purchaseToken(): Promise<string>
  • _realFvrTokenPriceUSD(): Promise<number>
  • alreadyMinted(v1: number): Promise<boolean>
  • approve(to: string, tokenId: number): Promise<TransactionReceipt>
  • balanceOf(owner: string): Promise<number>
  • baseURI(): Promise<string>
  • buyPack(packId: number): Promise<TransactionReceipt>
  • buyPacks(packIds: number[]): Promise<TransactionReceipt>
  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • connect(): Promise<boolean>
  • createPack(nftAmount: number, price: number, serie: string, packType: string, drop: string, saleStart: number, saleDistributionAddresses: string[], saleDistributionAmounts: number[], marketplaceDistributionAddresses: string[], marketplaceDistributionAmounts: number[]): Promise<TransactionReceipt>
  • Parameters

    • nftAmount: number
    • price: number
    • serie: string
    • packType: string
    • drop: string
    • saleStart: number
    • saleDistributionAddresses: string[]
    • saleDistributionAmounts: number[]
    • marketplaceDistributionAddresses: string[]
    • marketplaceDistributionAmounts: number[]

    Returns Promise<TransactionReceipt>

  • deletePackById(packId: number): Promise<TransactionReceipt>
  • 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, _purchaseToken: string): Promise<TransactionReceipt>
  • editPackInfo(_packId: number, _saleStart: number, serie: string, packType: string, drop: string, price: number): Promise<TransactionReceipt>
  • Parameters

    • _packId: number
    • _saleStart: number
    • serie: string
    • packType: string
    • drop: string
    • price: number

    Returns Promise<TransactionReceipt>

  • exists(tokenId: number): Promise<boolean>
  • getAmountOfPacksOpened(): Promise<number>
  • getApproved(tokenId: number): Promise<string>
  • getPackPriceInFVR(packId: number): Promise<number>
  • getPurchaseToken(): Promise<string>
  • getRegisteredIDs(_address: string): Promise<number[]>
  • getTokenWorthof1USD(): Promise<number>
  • isApprovedForAll(owner: string, operator: string): Promise<boolean>
  • lastNFTID(): Promise<number>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lock(): Promise<TransactionReceipt>
  • mint(tokenIdToMint: number): Promise<TransactionReceipt>
  • name(): Promise<string>
  • offerPack(packId: number, receivingAddress: string): Promise<TransactionReceipt>
  • openPack(packId: number): Promise<TransactionReceipt>
  • openPacks(packIds: number[]): Promise<TransactionReceipt>
  • owner(): Promise<string>
  • ownerOf(tokenId: number): Promise<string>
  • packIncrementId(): Promise<number>
  • packs(v1: number): Promise<{ 0: number; 1: number; 2: number; 3: number; 4: number; 5: number; 6: string; 7: string; 8: string; 9: string }>
  • Parameters

    • v1: number

    Returns Promise<{ 0: number; 1: number; 2: number; 3: number; 4: number; 5: number; 6: string; 7: string; 8: string; 9: string }>

  • registeredIDs(v1: string, v2: 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>
  • setPurchaseTokenAddress(purchaseToken: string): Promise<TransactionReceipt>
  • setTokenPriceInUSD(newPrice: 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