StorageLib
Author: @ShaneDuncan602 @oscarsernarosero @TJ-Everett
Library for Rules
This contract serves as the storage library for the rules Diamond. It basically serves up the storage position for all rules
State Variables
DIAMOND_CUT_STORAGE_HANDLER_POS
ACCOUNT_APPROVE_DENY_ORACLE_HANDLER_POSITION
ACCOUNT_MIN_MAX_TOKEN_BALANCE_HANDLER_POSITION
HANDLER_BASE_POSITION
FEES_HANDLER_POSITION
TOKEN_MAX_SUPPLY_VOLATILITY_HANDLER_POSITION
TOKEN_MAX_TRADING_VOLUME_HANDLER_POSITION
TOKEN_MIN_TX_SIZE_HANDLER_POSITION
TOKEN_MIN_HOLD_TIME_HANDLER_POSITION
TOKEN_MAX_DAILY_TRADES_HANDLER_POSITION
NFT_VALUATION_LIMIT_POSITION
INITIALIZED_POSITION
TOKEN_MAX_BUY_SELL_VOLUME_HANDLER_POSITION
ACCOUNT_MAX_TRADE_SIZE_HANDLER_POSITION
HANDLER_VERSION_POSITION
Functions
handlerVersionStorage
Function to store the Initialized flag
Returns
Name | Type | Description |
---|---|---|
ds | HandlerVersionS | Data Storage of the Initialized flag |
initializedStorage
Function to store the Initialized flag
Returns
Name | Type | Description |
---|---|---|
ds | InitializedS | Data Storage of the Initialized flag |
handlerBaseStorage
Function to store Handler Base
Returns
Name | Type | Description |
---|---|---|
ds | HandlerBaseS | Data Storage of Handler Base |
feeStorage
Function to store the fees
Returns
Name | Type | Description |
---|---|---|
ds | FeeS | Data Storage of Fees |
accountMaxTradeSizeStorage
Function to store Max Trade Size rules
Returns
Name | Type | Description |
---|---|---|
ds | AccountMaxTradeSizeS | Data Storage of Max Trade Size Rule |
tokenMaxBuySellVolumeStorage
Function to store Token Max Buy Sell Volume rules
Returns
Name | Type | Description |
---|---|---|
ds | TokenMaxBuySellVolumeS | Data Storage of Token Max Buy Sell Volume Rule |
tokenMaxTradingVolumeStorage
Function to store Max Trading Volume rules
Returns
Name | Type | Description |
---|---|---|
ds | TokenMaxTradingVolumeS | Data Storage of Max Trading Volume Rule |
tokenMaxDailyTradesStorage
Function to store Max Daily Trade rules
Returns
Name | Type | Description |
---|---|---|
ds | TokenMaxDailyTradesS | Data Storage of Max Daily Trade Rule |
tokenMinTxSizeStorage
Function to store Token Min Transaction Size rules
Returns
Name | Type | Description |
---|---|---|
ds | TokenMinTxSizeS | Data Storage of Token Min Transaction Size Rule |
accountMinMaxTokenBalanceStorage
Function to store Account Min Max Token Balance rules
Returns
Name | Type | Description |
---|---|---|
ds | AccountMinMaxTokenBalanceHandlerS | Data Storage of Account Min Max Token Balance Rule |
tokenMaxSupplyVolatilityStorage
Function to store Max Supply Volitility rules
Returns
Name | Type | Description |
---|---|---|
ds | TokenMaxSupplyVolatilityS | Data Storage of Max Supply Volitility Rule |
accountApproveDenyOracleStorage
Function to store Oracle rules
Returns
Name | Type | Description |
---|---|---|
ds | AccountApproveDenyOracleS | Data Storage of Oracle Rule |
tokenMinHoldTimeStorage
Function to store Token Min Hold Time
Returns
Name | Type | Description |
---|---|---|
ds | TokenMinHoldTimeS | Data Storage of Token Min Hold Time |
nftValuationLimitStorage
Function to store NFT Valuation Limit storage
Returns
Name | Type | Description |
---|---|---|
ds | NFTValuationLimitS | Data Storage of NFT Valuation Limit |