DynamicSignedPriceFacetStorage
DynamicSignedPriceFacetStorage
No nonce is used as the same signature can be used for many users calls. The price is considered stable within some time windows (until expiration timestamp).
InvalidPriceZero
Thrown when attempting to set price as zero.
InvalidZeroAddressSigner
Thrown when attempting to set signer as the zero address.
InvalidSignature
Thrown when attempting to pass invalid signature.
MessageExpired
Thrown when attempting to pass an expired message.
STORAGE_SLOT
================================================== STORAGE =================================================
Unique identifier for the storage slot where the Layout struct is stored. Derived from the ERC7201 formula. STORAGE_SLOT: TO-DO
Layout
CampaignInfo
layout
Retrieves a reference to the Layout struct stored at a specified storage slot
setAndCheckPriceFacet
Sets the price of a fraction, in terms of input packets, for a campaign.
Parameters
Name | Type | Description |
---|---|---|
l | struct DynamicSignedPriceFacetStorage.Layout | A reference to the Layout struct in storage. |
postFractionPriceData | bytes | The ABI-encoded data containing the following: - initialPrice : The price (in terms of input packets) required to purchase a single fraction initially. - signer : The party that is the signer of the price messages. |