package
0.0.0-20241211142332-01411649f3c8
Repository: https://github.com/yearn/ydaemon.git
Documentation: pkg.go.dev
# README
Store
In the store
package, we have a number of variables and functions, that will be used to store the data that we need.
The data are living with the process, they are not persistent (they are "in memory"). All date here are dynamics.
# Functions
*************************************************************************************************
** AppendToBlockTime will add a new time in the _blockTimeSyncMap
**************************************************************************************************/.
*************************************************************************************************
** GetBlockTime will try, for a specific blockNumber on a specific chain, to find its execution
** timestamp in the _blockTimeSyncMap.
*************************************************************************************************
** GetPricePerShare will try, for a specific chain, vault and time, to find the price per share.
*************************************************************************************************
** GetTimeBlock will try, for a specific time on a specific chain, to find its execution
** blockNumber in the _timeBlockSyncMap.
No description provided by the author
*************************************************************************************************
** ListPricePerShare will try, for a specific chain and vault, to retrieve all the price per share
** stored in the cache.
*************************************************************************************************
** LoadBlockTime will retrieve the all the blockTimes from the the configured DB and store them in
** the _blockTimeSyncMap for fast access during that same execution.
*************************************************************************************************
** LoadPricePerShare will retrieve the all the pricePerShare from the configured DB and store them
** in the _vaultsPricePerShareSyncMap for fast access during that same execution.
*************************************************************************************************
** StoreBlockTime will store the blockTime in the _blockTimeSyncMap for fast access during that
** same execution, and will store it in the configured DB for future executions.
*************************************************************************************************
** StorePricePerShare will store the pricePerShare information for a vault at a specific time/block
** in _vaultsPricePerShareSyncMap for fast access during that same execution, and will store it in
** the configured DB for future executions.
No description provided by the author
# Constants
No description provided by the author
# Variables
No description provided by the author
# Structs
*************************************************************************************************
** DBBaseSchema is the base of all schemas stored in the SQL database.
*************************************************************************************************
** DBBlockTime corresponds to the db_block_times SQL table.
*************************************************************************************************
** DBVaultPricePerShare is a struct used to keep track of the pricePerShare for a vault, every day
** at noon UTC.
# Type aliases
No description provided by the author