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<any>>
  • balanceOf(owner: string): Promise<number>
  • baseURI(): Promise<string>
  • buyPack(packId: number): Promise<TransactionReceipt<any>>
  • buyPacks(packIds: number[]): Promise<TransactionReceipt<any>>
  • 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<any>>
  • Parameters

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

    Returns Promise<TransactionReceipt<any>>

  • deletePackById(packId: number): Promise<TransactionReceipt<any>>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt<any>>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt<any>>

  • deployJsonAbi(name: string, symbol: string, _purchaseToken: string): Promise<TransactionReceipt<any>>
  • editPackInfo(_packId: number, _saleStart: number, serie: string, packType: string, drop: string, price: number): Promise<TransactionReceipt<any>>
  • Parameters

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

    Returns Promise<TransactionReceipt<any>>

  • 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<string>
  • isApprovedForAll(owner: string, operator: string): Promise<boolean>
  • lastNFTID(): Promise<number>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • lock(): Promise<TransactionReceipt<any>>
  • mint(tokenIdToMint: number): Promise<TransactionReceipt<any>>
  • name(): Promise<string>
  • offerPack(packId: number, receivingAddress: string): Promise<TransactionReceipt<any>>
  • openPack(packId: number): Promise<TransactionReceipt<any>>
  • openPacks(packIds: number[]): Promise<TransactionReceipt<any>>
  • 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<any>>
  • sendTx(method: ContractSendMethod, value?: any): Promise<TransactionReceipt<any>>
  • Interact with, or change a value of, a property on the contract

    Parameters

    • method: ContractSendMethod
    • Optional value: any

    Returns Promise<TransactionReceipt<any>>

  • sendUnsignedTx(method: ContractSendMethod, value?: any, __namedParameters?: Partial<Web3ConnectionOptions>): Promise<TransactionReceipt<any>>
  • setApprovalForAll(operator: string, approved: boolean): Promise<TransactionReceipt<any>>
  • setBaseURI(baseURI: string): Promise<TransactionReceipt<any>>
  • setPurchaseTokenAddress(purchaseToken: string): Promise<TransactionReceipt<any>>
  • setTokenPriceInUSD(newPrice: number): Promise<TransactionReceipt<any>>
  • setTokenURI(tokenId: number, uri: string): Promise<TransactionReceipt<any>>
  • 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<any>>
  • transferOwnership(newOwner: string): Promise<TransactionReceipt<any>>
  • unlock(): Promise<TransactionReceipt<any>>

Generated using TypeDoc