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<any>>
  • buyERC721(tokenId: number, value?: number): Promise<TransactionReceipt<any>>
  • changeERC20(erc20TokenAddress: string): Promise<TransactionReceipt<any>>
  • changeERC721(openerTokenAddress: string): Promise<TransactionReceipt<any>>
  • connect(): Promise<boolean>
  • deploy(deployOptions: DeployOptions, account?: Account): Promise<TransactionReceipt<any>>
  • Deploy the loaded abi contract

    Parameters

    • deployOptions: DeployOptions
    • Optional account: Account

    Returns Promise<TransactionReceipt<any>>

  • deployJsonAbi(collectiblesAddress: string, tokenAddress: string): Promise<TransactionReceipt<any>>
  • 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<any>>

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

Generated using TypeDoc