BosonToken Token implementation.
address _escrowAddress
uint256 itemId
address seller
bytes32 title
uint256 price
uint32 quantity
uint256 orderId
address buyer
address previousOwner
address newOwner
Complain for the order referenced by the given orderId Requirements: - the
order must not have been completed or complained before - the caller is the
same account that has created this order
uint256 orderId
Complete the order referenced by the given orderId Requirements: - the order
must not have been completed or complained before - the caller is the same
account that has created this order
uint256 orderId
Gets the requested price for ordering the specified set of items, given a
quantity for each of them
uint256[] itemIds
uint32[] quantities
uint256 totalPrice
address _
Gets the ids of all orders made by the caller
uint256[] _orderIds
Gets the data of the order referenced by the given orderId Requirements: -
the caller is the same account that has created this order or the caller is
the current contract's owner
uint256 orderId
uint8 status
address buyer
uint256[] itemIds
uint32[] quantities
uint256 _
bytes32 title
uint256 price
uint32 availableQuantity
uint32 orderedQuantity
address seller
uint256 _
uint256 _
Put an item on sale with specified title, price and quantity Emits a
{OnNewItem} event with the itemId of the offered item.
bytes32 title
uint256 price
uint32 quantity
Order a set of items, given a quantity for each of them Emits a {OnNewOrder}
event with the orderId of the created order Requirements: - the caller must
own enough tokens to 'pay' for all items contained in the order - the caller
must have approve the escrow contract for at least enough tokens required to
pay the order - the available quantity of items must be greater or equal to
the ordered quantity
uint256[] itemIds
uint32[] quantities
Returns the address of the current owner.
address _
Leaves the contract without owner. It will not be possible to call
`onlyOwner` functions anymore. Can only be called by the current owner. NOTE:
Renouncing ownership will leave the contract without an owner, thereby
removing any functionality that is only available to the owner.
Reset all internal data, only usefull for demo purpose Requirements: - the
caller is the current contract's owner
Transfers ownership of the contract to a new account (`newOwner`). Can only
be called by the current owner.
address newOwner
built with hardhat-docgen