LibOffer

Git Source

Functions

create

Create a new offer

function create(MaterialId _materialId, uint256 _amount, uint256 _cost) internal returns (bytes32 offerEntity);

Parameters

NameTypeDescription
_materialIdMaterialIdMaterial id of the offer
_amountuint256Amount of material in the offer in whole units
_costuint256Cost of the offer in whole units

Returns

NameTypeDescription
offerEntitybytes32The id of the offer entity.

destroy

Destroy an offer

function destroy(bytes32 _offerEntity) internal;

Parameters

NameTypeDescription
_offerEntitybytes32Id of the offer entity