MoCVendors
View Source: contracts/MoCVendors.sol
↗ Extends: MoCVendorsEvents, MoCBase, MoCLibConnection, Governed, IMoCVendors
MoCVendors - version: 0.1.12
Structs
VendorDetails
Contract Members
Constants & Variables
VendorRegistered
Parameters
VendorUpdated
Parameters
VendorUnregistered
Parameters
VendorStakeAdded
Parameters
VendorStakeRemoved
Parameters
TotalPaidInMoCReset
Parameters
VendorGuardianAddressChanged
Parameters
VendorReceivedMarkup
Parameters
Modifiers
onlyActiveVendor
Checks if vendor (msg.sender) is active
Arguments
onlyVendorGuardian
Checks if address is allowed to call function
Arguments
Functions
initialize
Initializes the contract
Arguments
getVendorsCount
Gets the count of active registered vendors
Returns
Amount of active registered vendors
Arguments
registerVendor
Allows to register a vendor
Returns
true if vendor was registered successfully; otherwise false
Arguments
unregisterVendor
Allows to unregister a vendor
Returns
false if vendor was unregistered successfully; otherwise false
Arguments
addStake
Allows an active vendor (msg.sender) to add staking
Arguments
removeStake
Allows an active vendor (msg.sender) to remove staking
Arguments
updatePaidMarkup
⤾ overrides IMoCVendors.updatePaidMarkup
Allows to update paid markup to vendor
Arguments
getIsActive
⤾ overrides IMoCVendors.getIsActive
Gets if a vendor is active
Returns
true if vendor is active; false otherwise
Arguments
getMarkup
⤾ overrides IMoCVendors.getMarkup
Gets vendor markup
Returns
Vendor markup
Arguments
getTotalPaidInMoC
⤾ overrides IMoCVendors.getTotalPaidInMoC
Gets vendor total paid in MoC
Returns
Vendor total paid in MoC
Arguments
getStaking
⤾ overrides IMoCVendors.getStaking
Gets vendor staking
Returns
Vendor staking
Arguments
resetTotalPaidInMoC
⤾ overrides IMoCVendors.resetTotalPaidInMoC
Allows to reset all active vendor's total paid in MoC during settlement
Arguments
getVendorGuardianAddress
Returns the address is authorized to register and unregister vendors.
Arguments
setVendorGuardianAddress
Sets the address which will be authorized to register and unregister vendors.
Arguments
initializeContracts
Arguments
initializeValues
Arguments
setVendorGuardianAddressInternal
Sets the address which will be authorized to register and unregister vendors.
Arguments
Last updated