Search
Preparing search index...
The search index is not available
@yfi/sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@yfi/sdk
StrategyInterface
Class StrategyInterface<T>
Type parameters
T
:
ChainId
Hierarchy
ServiceInterface
<
T
>
StrategyInterface
Index
Constructors
constructor
Properties
cached
Fetcher
chain
Id
ctx
events
yearn
Methods
fetch
Metadata
From
Api
fetch
Metadata
From
Chain
fetch
Vault
Strategies
Metadata
fetch
Vaults
Data
vaults
Strategies
Metadata
Constructors
constructor
new
Strategy
Interface
<
T
>
(
yearn
:
Yearn
<
T
>
, chainId
:
T
, ctx
:
Context
)
:
StrategyInterface
<
T
>
Type parameters
T
:
1
|
10
|
250
|
1337
|
42161
Parameters
yearn:
Yearn
<
T
>
chainId:
T
ctx:
Context
Returns
StrategyInterface
<
T
>
Properties
Private
cached
Fetcher
cached
Fetcher
:
CachedFetcher
<
VaultStrategiesMetadata
[]
>
= ...
chain
Id
chain
Id
:
1
|
10
|
250
|
1337
|
42161
ctx
ctx
:
Context
events
events
:
Emittery
<
Record
<
string
,
unknown
>
,
Record
<
string
,
unknown
>
&
OmnipresentEventData
,
never
>
Protected
yearn
yearn
:
Yearn
<
T
>
Methods
Private
fetch
Metadata
From
Api
fetch
Metadata
From
Api
(
vaultAddresses
:
string
[]
)
:
Promise
<
VaultStrategiesMetadata
[]
>
Parameters
vaultAddresses:
string
[]
Returns
Promise
<
VaultStrategiesMetadata
[]
>
Private
fetch
Metadata
From
Chain
fetch
Metadata
From
Chain
(
vaultAddresses
:
string
[]
)
:
Promise
<
VaultStrategiesMetadata
[]
>
Parameters
vaultAddresses:
string
[]
Returns
Promise
<
VaultStrategiesMetadata
[]
>
Private
fetch
Vault
Strategies
Metadata
fetch
Vault
Strategies
Metadata
(
strategies
:
{
address
:
string
;
name
?:
string
}
[]
, strategiesMetadata
:
StrategiesMetadata
[]
, vaultContract
:
Contract
, underlyingTokenSymbol
:
string
)
:
Promise
<
undefined
|
VaultStrategiesMetadata
>
Parameters
strategies:
{
address
:
string
;
name
?:
string
}
[]
strategiesMetadata:
StrategiesMetadata
[]
vaultContract:
Contract
underlyingTokenSymbol:
string
Returns
Promise
<
undefined
|
VaultStrategiesMetadata
>
Private
fetch
Vaults
Data
fetch
Vaults
Data
(
)
:
Promise
<
VaultData
[]
>
Returns
Promise
<
VaultData
[]
>
vaults
Strategies
Metadata
vaults
Strategies
Metadata
(
vaultAddresses
?:
string
[]
)
:
Promise
<
VaultStrategiesMetadata
[]
>
Parameters
Optional
vaultAddresses:
string
[]
Returns
Promise
<
VaultStrategiesMetadata
[]
>
Exports
Strategy
Interface
constructor
cached
Fetcher
chain
Id
ctx
events
yearn
fetch
Metadata
From
Api
fetch
Metadata
From
Chain
fetch
Vault
Strategies
Metadata
fetch
Vaults
Data
vaults
Strategies
Metadata
Generated using
TypeDoc