package
0.0.0-20241211142332-01411649f3c8
Repository: https://github.com/yearn/ydaemon.git
Documentation: pkg.go.dev

# Functions

************************************************************************************************* ** AssignJuicedStakingRewardAPY will update an entry in the _juicedStakingSyncMap syncMap to assign the ** APR to the staking pool.
************************************************************************************************* ** AssignOPStakingRewardAPY will update an entry in the _opStakingSyncMap syncMap to assign the ** APR to the staking pool.
************************************************************************************************* ** AssignV3StakingRewardAPY will update an entry in the _v3StakingSyncMap syncMap to assign the ** APR to the staking pool.
************************************************************************************************* ** AssignVEYFIStakingRewardAPY will update an entry in the _veYFIStakingSyncMap syncMap to assign ** the APR to the staking pool.
No description provided by the author
************************************************************************* ** Fetcher function to retrive the curve gauges **************************************************************************/.
No description provided by the author
No description provided by the author
No description provided by the author
************************************************************************************************* ** GetCachedPendleMarkets retrieves the cached Pendle markets for a given chainID.
************************************************************************************************* ** GetCachedPendleTokens retrieves the cached Pendle tokens for a given chainID.
************************************************************************************************* ** GetERC20 will try, for a specific chain, to find the provided token address as ERC20 struct.
************************************************************************************************* ** GetGauge **************************************************************************************************/.
************************************************************************************************* ** GetJuicedStakingDataForVault **************************************************************************************************/.
************************************************************************************************* ** GetOPStakingForVault **************************************************************************************************/.
************************************************************************************************* ** GetPrice will return a single price stored in the caching system for a given pair of chainID ** and price address.
************************************************************************************************* ** Retrieve the last time the strategies were updated for a specific chainID **************************************************************************************************/.
************************************************************************************************* ** GetStrategy will return a single strategy stored in the caching system for a given pair of ** chainID and strategyKey.
************************************************************************************************* ** Retrieve the last time the ERC20s were updated for a specific chainID **************************************************************************************************/.
********************************************************************************************* ** GetUnderlyingERC20 will, for a given chainID, try to find the first underlying token ** of the provided vaultAddress.
************************************************************************************************* ** GetV3StakingDataForVault **************************************************************************************************/.
************************************************************************************************* ** GetVault will return a single vault stored in the caching system for a given pair of chainID ** and vault address.
************************************************************************************************* ** GetVaultFromRegistry **************************************************************************************************/.
************************************************************************************************* ** Retrieve the last time the ERC20s were updated for a specific chainID **************************************************************************************************/.
************************************************************************************************* ** GetVeYFIStakingForVault **************************************************************************************************/.
************************************************************************************************* ** GuessStrategy will return a single strategy stored in the caching system for a given pair of ** chainID and strategy address.
************************************************************************************************* ** ListERC20 will return a list of all the ERC20 stored in the caching system for a given ** chainID.
********************************************************************************************* ** ListERC20Addresses will, for a given chainID, return the list of all addresses of the ERC20 ** tokens stored in _erc20SyncMap.
************************************************************************************************* ** ListGauges **************************************************************************************************/.
************************************************************************************************* ** ListJuicedStakingData will retrieve the all the vaults added to the registries from the ** given chainID **************************************************************************************************/.
************************************************************************************************* ** ListOPStaking will retrieve the all the vaults added to the registries from the ** given chainID **************************************************************************************************/.
************************************************************************************************* ** ListVault will return a list of all the prices stored in the caching system for a given ** chainID.
************************************************************************************************* ** ListStrategies will return a list of all the strategies stored ** ListStrategiesMigrated will return a list of all the strategies migrated stored ** Each returns both a map and a slice.
************************************************************************************************* ** ListStrategiesForVault will return a list of all the strategies stored in the caching system for ** a given chainID and vault address.
No description provided by the author
************************************************************************************************* ** ListV3StakingData will retrieve the all the vaults added to the registries from the ** given chainID **************************************************************************************************/.
************************************************************************************************* ** ListVault will return a list of all the vaults stored in the caching system for a given ** chainID.
************************************************************************************************* ** ListVaultsFromRegistries will retrieve the all the vaults added to the registries from the ** given chainID **************************************************************************************************/.
************************************************************************************************* ** ListVaultsFromRegistry will return a list of all the vaults stored in the caching system for a ** given chainID and registry.
************************************************************************************************* ** ListVaultsLike will return a list of all the ERC20 stored in the caching system for a given ** chainID.
************************************************************************************************* ** ListVeYFIStaking will retrieve the all the vaults added to the registries from the ** given chainID **************************************************************************************************/.
************************************************************************************************* ** LoadERC20 will retrieve the all the ERC20 tokens added to the configured DB and store them in ** the _erc20SyncMap for fast access during that **************************************************************************************************/.
************************************************************************************************* ** LoadRegistries will retrieve the all the vaults added to the registries from the ** local DB and store them in the _newVaultsFromRegistrySyncMap for fast access during that same ** execution.
************************************************************************************************* ** LoadStrategies will retrieve the all the strategies from the configured DB and store them in the ** _strategiesSyncMap for fast access during that same execution.
* 🔵 - Yearn ************************************************************************************* ** The function `loadTokensFromJson` is responsible for loading tokens from a JSON file.
************************************************************************************************* ** LoadVaults will retrieve the all the vaults from the configured DB and store them in the ** _vaultsSyncMap for fast access during that same execution.
No description provided by the author
************************************************************************************************* ** RefreshPendleMarkets will refresh the cached Pendle markets for a given chainID.
************************************************************************* ** This function retrieves the Gamma allData API response **************************************************************************/.
************************************************************************* ** This function retrieves the Gamma Merkl API response.
************************************************************************* ** This function retrieves the Pendle market API response.
************************************************************************* ** This function retrieves the Pendle token API response.
************************************************************************************************* ** StoreCurveGauges **************************************************************************************************/.
************************************************************************************************* ** StoreERC20 will add a new erc20 token in the _erc20SyncMap **************************************************************************************************/.
************************************************************************************************* ** StoreJuicedStaking will add a new entry in the _juicedStakingSyncMap syncMap **************************************************************************************************/.
************************************************************************************************* ** StoreNewVaultToRegistry will add a new vault in the _vaultsSyncMap **************************************************************************************************/.
************************************************************************************************* ** StoreOPStaking will add a new vault in the _vaultsSyncMap **************************************************************************************************/.
************************************************************************************************* ** StorePrice will add a new price in the _pricesSyncMap **************************************************************************************************/.
* 🔵 - Yearn ************************************************************************************* ** The function `storeRegistriesToJson` is responsible for storing historical vaults to a ** JSON file.
* 🔵 - Yearn ************************************************************************************* ** The function `storedStrategiesToJson` is responsible for storing strategies to a JSON file.
************************************************************************************************* ** StoreStrategy will add a new strategy in the _strategiesSyncMap ** StoreStrategyMigrated will add a new strategy in the _strategiesMigratedSyncMap ** StoreStrategyIfMissing is used to only add a strategy if it doesn't already exist.
No description provided by the author
No description provided by the author
* 🔵 - Yearn ************************************************************************************* ** The function `storeTokensToJson` is responsible for storing tokens to a JSON file.
************************************************************************************************* ** StoreV3Staking will add a new entry in the _v3StakingSyncMap syncMap **************************************************************************************************/.
************************************************************************************************* ** StoreVault will add a new vault in the _vaultsSyncMap **************************************************************************************************/.
* 🔵 - Yearn ************************************************************************************* ** The function `storeVaultsToJson` is responsible for storing vaults to a JSON file.
************************************************************************************************* ** StoreVeYFIStaking will add a new entry in the _veYFIStakingSyncMap syncMap **************************************************************************************************/.

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
CURVE_SUBGRAPHDATA_URI contains the URI of the Curve gauges to use.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
************************************************************************************************* ** This struct represents the relevant response from the Gamma Merkl API & the Gamma allData APR **************************************************************************************************/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This struct represents the relevant response from the Pendle market API.
This struct represents the relevant response from the Pendle token API.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author