Skip to main content

BuyerBase

View Source: contracts/protocol/bases/BuyerBase.sol

↗ Extends: ProtocolBase, IBosonAccountEvents ↘ Derived Contracts: BuyerHandlerFacet, ExchangeHandlerFacet, MockExchangeHandlerFacet, MockExchangeHandlerFacetWithDefect

BuyerBase

Provides methods for buyer creation that can be shared across facets.

Functions

createBuyerInternal

Creates a Buyer.
Emits a BuyerCreated event if successful.
Reverts if:
- Wallet address is zero address
- Active is not true
- Wallet address is not unique to this buyer

function createBuyerInternal(struct BosonTypes.Buyer _buyer) 
internal

Arguments

NameTypeDescription
_buyerBosonTypes.Buyerthe fully populated struct with buyer id set to 0x0

storeBuyer

Stores buyer struct in storage.

function storeBuyer(struct BosonTypes.Buyer _buyer) 
internal

Arguments

NameTypeDescription
_buyerBosonTypes.Buyerthe fully populated struct with buyer id set