LibOffer
Functions
create
Create a new offer
function create(MaterialId _materialId, uint256 _amount, uint256 _cost) internal returns (bytes32 offerEntity);
Parameters
Name | Type | Description |
---|---|---|
_materialId | MaterialId | Material id of the offer |
_amount | uint256 | Amount of material in the offer in whole units |
_cost | uint256 | Cost of the offer in whole units |
Returns
Name | Type | Description |
---|---|---|
offerEntity | bytes32 | The id of the offer entity. |
destroy
Destroy an offer
function destroy(bytes32 _offerEntity) internal;
Parameters
Name | Type | Description |
---|---|---|
_offerEntity | bytes32 | Id of the offer entity |