Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RealFevrMarketplace

Hierarchy

Implements

Index

Constructors

Properties

_decimals: number = 18
_erc20: ERC20
_isETHTransaction: boolean
abi: AbiItem[]
collectiblesAddress?: string
contractAddress?: string
tokenAddress?: string

Accessors

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

    Returns Account

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

    Returns default

Methods

  • approveERC721use(operator: string, approved?: boolean): Promise<TransactionReceipt>
  • buyERC721(tokenId: number, value?: number): Promise<TransactionReceipt>
  • callTx<ReturnData>(method: ContractCallMethod<ReturnData>, value?: any): Promise<ReturnData>
  • changeERC20(erc20TokenAddress: string): Promise<TransactionReceipt>
  • changeERC721(openerTokenAddress: string): Promise<TransactionReceipt>
  • 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(collectiblesAddress: string, tokenAddress: string): Promise<TransactionReceipt>
  • The marketplace can be deployed on a native-transactions mode; simply assign tokenAddress to the null wallet '0x0000000000000000000000000000000000000000', and all transactions will be resolved via the chain's native token.

    Parameters

    • collectiblesAddress: string
    • tokenAddress: string

    Returns Promise<TransactionReceipt>

  • getAmountofNFTsEverInSale(): Promise<number>
  • getERC20TokenAddress(): Promise<string>
  • getERC721TokenAddress(): Promise<string>
  • getFeeAddress(): Promise<string>
  • loadAbi(): void
  • loadContract(): Promise<void>
  • putERC721OnSale(tokenId: number, price: number): Promise<TransactionReceipt>
  • removeERC721FromSale(tokenId: number): 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>

  • setFixedFees(feeAddress: string, feePercentage: number): Promise<TransactionReceipt>
  • start(): Promise<void>

Generated using TypeDoc