Skip to content
You are reading the development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Last update: October 8, 2021

yearn-vaults / Modules / TestStrategy / TestStrategy

Class: TestStrategy

TestStrategy.TestStrategy

Hierarchy

  • BaseContract

TestStrategy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TestStrategy(addressOrName, contractInterface, signerOrProvider?)

Parameters

Name Type
addressOrName string
contractInterface ContractInterface
signerOrProvider? Signer | Provider

Inherited from

BaseContract.constructor

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:103

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

Inherited from

BaseContract._deployedPromise

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:96


_runningEvents

_runningEvents: Object

Index signature

▪ [eventTag: string]: RunningEvent

Inherited from

BaseContract._runningEvents

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:97


_wrappedEmits

_wrappedEmits: Object

Index signature

▪ [eventTag: string]: (…args: any[]) => void

Inherited from

BaseContract._wrappedEmits

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:100


address

Readonly address: string

Inherited from

BaseContract.address

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:75


callStatic

callStatic: Object

Type declaration

Name Type
_setWant (_want: string, overrides?: CallOverrides) => Promise<void>
_takeFunds (amount: BigNumberish, overrides?: CallOverrides) => Promise<void>
_toggleDelegation (overrides?: CallOverrides) => Promise<void>
_toggleReentrancyExploit (overrides?: CallOverrides) => Promise<void>
apiVersion (overrides?: CallOverrides) => Promise<string>
clone(address) (_vault: string, overrides?: CallOverrides) => Promise<string>
clone(address,address,address,address) (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: CallOverrides) => Promise<string>
debtThreshold (overrides?: CallOverrides) => Promise<BigNumber>
delegateEverything (overrides?: CallOverrides) => Promise<boolean>
delegatedAssets (overrides?: CallOverrides) => Promise<BigNumber>
doReentrancy (overrides?: CallOverrides) => Promise<boolean>
emergencyExit (overrides?: CallOverrides) => Promise<boolean>
estimatedTotalAssets (overrides?: CallOverrides) => Promise<BigNumber>
ethToWant (amtInWei: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
harvest (overrides?: CallOverrides) => Promise<void>
harvestTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
initialize (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: CallOverrides) => Promise<void>
isActive (overrides?: CallOverrides) => Promise<boolean>
isOriginal (overrides?: CallOverrides) => Promise<boolean>
keeper (overrides?: CallOverrides) => Promise<string>
maxReportDelay (overrides?: CallOverrides) => Promise<BigNumber>
metadataURI (overrides?: CallOverrides) => Promise<string>
migrate (_newStrategy: string, overrides?: CallOverrides) => Promise<void>
minReportDelay (overrides?: CallOverrides) => Promise<BigNumber>
name (overrides?: CallOverrides) => Promise<string>
profitFactor (overrides?: CallOverrides) => Promise<BigNumber>
protectedToken (overrides?: CallOverrides) => Promise<string>
rewards (overrides?: CallOverrides) => Promise<string>
setDebtThreshold (_debtThreshold: BigNumberish, overrides?: CallOverrides) => Promise<void>
setEmergencyExit (overrides?: CallOverrides) => Promise<void>
setKeeper (_keeper: string, overrides?: CallOverrides) => Promise<void>
setMaxReportDelay (_delay: BigNumberish, overrides?: CallOverrides) => Promise<void>
setMetadataURI (_metadataURI: string, overrides?: CallOverrides) => Promise<void>
setMinReportDelay (_delay: BigNumberish, overrides?: CallOverrides) => Promise<void>
setProfitFactor (_profitFactor: BigNumberish, overrides?: CallOverrides) => Promise<void>
setRewards (_rewards: string, overrides?: CallOverrides) => Promise<void>
setStrategist (_strategist: string, overrides?: CallOverrides) => Promise<void>
strategist (overrides?: CallOverrides) => Promise<string>
sweep (_token: string, overrides?: CallOverrides) => Promise<void>
tend (overrides?: CallOverrides) => Promise<void>
tendTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
vault (overrides?: CallOverrides) => Promise<string>
want (overrides?: CallOverrides) => Promise<string>
withdraw (_amountNeeded: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>

Overrides

BaseContract.callStatic

Defined in

typechain/TestStrategy.d.ts:745


deployTransaction

Readonly deployTransaction: TransactionResponse

Inherited from

BaseContract.deployTransaction

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:95


estimateGas

estimateGas: Object

Type declaration

Name Type
_setWant (_want: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
_takeFunds (amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
_toggleDelegation (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
_toggleReentrancyExploit (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
apiVersion (overrides?: CallOverrides) => Promise<BigNumber>
clone(address) (_vault: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
clone(address,address,address,address) (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
debtThreshold (overrides?: CallOverrides) => Promise<BigNumber>
delegateEverything (overrides?: CallOverrides) => Promise<BigNumber>
delegatedAssets (overrides?: CallOverrides) => Promise<BigNumber>
doReentrancy (overrides?: CallOverrides) => Promise<BigNumber>
emergencyExit (overrides?: CallOverrides) => Promise<BigNumber>
estimatedTotalAssets (overrides?: CallOverrides) => Promise<BigNumber>
ethToWant (amtInWei: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
harvest (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
harvestTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
initialize (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
isActive (overrides?: CallOverrides) => Promise<BigNumber>
isOriginal (overrides?: CallOverrides) => Promise<BigNumber>
keeper (overrides?: CallOverrides) => Promise<BigNumber>
maxReportDelay (overrides?: CallOverrides) => Promise<BigNumber>
metadataURI (overrides?: CallOverrides) => Promise<BigNumber>
migrate (_newStrategy: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
minReportDelay (overrides?: CallOverrides) => Promise<BigNumber>
name (overrides?: CallOverrides) => Promise<BigNumber>
profitFactor (overrides?: CallOverrides) => Promise<BigNumber>
protectedToken (overrides?: CallOverrides) => Promise<BigNumber>
rewards (overrides?: CallOverrides) => Promise<BigNumber>
setDebtThreshold (_debtThreshold: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setEmergencyExit (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setKeeper (_keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setMaxReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setMetadataURI (_metadataURI: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setMinReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setProfitFactor (_profitFactor: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setRewards (_rewards: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
setStrategist (_strategist: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
strategist (overrides?: CallOverrides) => Promise<BigNumber>
sweep (_token: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
tend (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
tendTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<BigNumber>
vault (overrides?: CallOverrides) => Promise<BigNumber>
want (overrides?: CallOverrides) => Promise<BigNumber>
withdraw (_amountNeeded: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>

Overrides

BaseContract.estimateGas

Defined in

typechain/TestStrategy.d.ts:988


filters

filters: Object

Type declaration

Name Type
Cloned (clone?: null | string) => TypedEventFilter<[string], Object>
Cloned(address) (clone?: null | string) => TypedEventFilter<[string], Object>
EmergencyExitEnabled () => TypedEventFilter<[], Object>
EmergencyExitEnabled() () => TypedEventFilter<[], Object>
Harvested (profit?: null, loss?: null, debtPayment?: null, debtOutstanding?: null) => TypedEventFilter<[BigNumber, BigNumber, BigNumber, BigNumber], Object>
Harvested(uint256,uint256,uint256,uint256) (profit?: null, loss?: null, debtPayment?: null, debtOutstanding?: null) => TypedEventFilter<[BigNumber, BigNumber, BigNumber, BigNumber], Object>
UpdatedDebtThreshold (debtThreshold?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedDebtThreshold(uint256) (debtThreshold?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedKeeper (newKeeper?: null) => TypedEventFilter<[string], Object>
UpdatedKeeper(address) (newKeeper?: null) => TypedEventFilter<[string], Object>
UpdatedMaxReportDelay (delay?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedMaxReportDelay(uint256) (delay?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedMetadataURI (metadataURI?: null) => TypedEventFilter<[string], Object>
UpdatedMetadataURI(string) (metadataURI?: null) => TypedEventFilter<[string], Object>
UpdatedMinReportDelay (delay?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedMinReportDelay(uint256) (delay?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedProfitFactor (profitFactor?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedProfitFactor(uint256) (profitFactor?: null) => TypedEventFilter<[BigNumber], Object>
UpdatedRewards (rewards?: null) => TypedEventFilter<[string], Object>
UpdatedRewards(address) (rewards?: null) => TypedEventFilter<[string], Object>
UpdatedStrategist (newStrategist?: null) => TypedEventFilter<[string], Object>
UpdatedStrategist(address) (newStrategist?: null) => TypedEventFilter<[string], Object>

Overrides

BaseContract.filters

Defined in

typechain/TestStrategy.d.ts:880


functions

functions: Object

Type declaration

Name Type
_setWant (_want: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
_takeFunds (amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
_toggleDelegation (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
_toggleReentrancyExploit (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
apiVersion (overrides?: CallOverrides) => Promise<[string]>
clone(address) (_vault: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
clone(address,address,address,address) (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
debtThreshold (overrides?: CallOverrides) => Promise<[BigNumber]>
delegateEverything (overrides?: CallOverrides) => Promise<[boolean]>
delegatedAssets (overrides?: CallOverrides) => Promise<[BigNumber]>
doReentrancy (overrides?: CallOverrides) => Promise<[boolean]>
emergencyExit (overrides?: CallOverrides) => Promise<[boolean]>
estimatedTotalAssets (overrides?: CallOverrides) => Promise<[BigNumber]>
ethToWant (amtInWei: BigNumberish, overrides?: CallOverrides) => Promise<[BigNumber]>
harvest (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
harvestTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<[boolean]>
initialize (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
isActive (overrides?: CallOverrides) => Promise<[boolean]>
isOriginal (overrides?: CallOverrides) => Promise<[boolean]>
keeper (overrides?: CallOverrides) => Promise<[string]>
maxReportDelay (overrides?: CallOverrides) => Promise<[BigNumber]>
metadataURI (overrides?: CallOverrides) => Promise<[string]>
migrate (_newStrategy: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
minReportDelay (overrides?: CallOverrides) => Promise<[BigNumber]>
name (overrides?: CallOverrides) => Promise<[string]>
profitFactor (overrides?: CallOverrides) => Promise<[BigNumber]>
protectedToken (overrides?: CallOverrides) => Promise<[string]>
rewards (overrides?: CallOverrides) => Promise<[string]>
setDebtThreshold (_debtThreshold: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setEmergencyExit (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setKeeper (_keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setMaxReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setMetadataURI (_metadataURI: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setMinReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setProfitFactor (_profitFactor: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setRewards (_rewards: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
setStrategist (_strategist: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
strategist (overrides?: CallOverrides) => Promise<[string]>
sweep (_token: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
tend (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
tendTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<[boolean]>
vault (overrides?: CallOverrides) => Promise<[string]>
want (overrides?: CallOverrides) => Promise<[string]>
withdraw (_amountNeeded: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>

Overrides

BaseContract.functions

Defined in

typechain/TestStrategy.d.ts:421


interface

interface: TestStrategyInterface

Overrides

BaseContract.interface

Defined in

typechain/TestStrategy.d.ts:419


populateTransaction

populateTransaction: Object

Type declaration

Name Type
_setWant (_want: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
_takeFunds (amount: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
_toggleDelegation (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
_toggleReentrancyExploit (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
apiVersion (overrides?: CallOverrides) => Promise<PopulatedTransaction>
clone(address) (_vault: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
clone(address,address,address,address) (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
debtThreshold (overrides?: CallOverrides) => Promise<PopulatedTransaction>
delegateEverything (overrides?: CallOverrides) => Promise<PopulatedTransaction>
delegatedAssets (overrides?: CallOverrides) => Promise<PopulatedTransaction>
doReentrancy (overrides?: CallOverrides) => Promise<PopulatedTransaction>
emergencyExit (overrides?: CallOverrides) => Promise<PopulatedTransaction>
estimatedTotalAssets (overrides?: CallOverrides) => Promise<PopulatedTransaction>
ethToWant (amtInWei: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
harvest (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
harvestTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
initialize (_vault: string, _strategist: string, _rewards: string, _keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
isActive (overrides?: CallOverrides) => Promise<PopulatedTransaction>
isOriginal (overrides?: CallOverrides) => Promise<PopulatedTransaction>
keeper (overrides?: CallOverrides) => Promise<PopulatedTransaction>
maxReportDelay (overrides?: CallOverrides) => Promise<PopulatedTransaction>
metadataURI (overrides?: CallOverrides) => Promise<PopulatedTransaction>
migrate (_newStrategy: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
minReportDelay (overrides?: CallOverrides) => Promise<PopulatedTransaction>
name (overrides?: CallOverrides) => Promise<PopulatedTransaction>
profitFactor (overrides?: CallOverrides) => Promise<PopulatedTransaction>
protectedToken (overrides?: CallOverrides) => Promise<PopulatedTransaction>
rewards (overrides?: CallOverrides) => Promise<PopulatedTransaction>
setDebtThreshold (_debtThreshold: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setEmergencyExit (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setKeeper (_keeper: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setMaxReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setMetadataURI (_metadataURI: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setMinReportDelay (_delay: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setProfitFactor (_profitFactor: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setRewards (_rewards: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
setStrategist (_strategist: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
strategist (overrides?: CallOverrides) => Promise<PopulatedTransaction>
sweep (_token: string, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
tend (overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
tendTrigger (callCostInWei: BigNumberish, overrides?: CallOverrides) => Promise<PopulatedTransaction>
vault (overrides?: CallOverrides) => Promise<PopulatedTransaction>
want (overrides?: CallOverrides) => Promise<PopulatedTransaction>
withdraw (_amountNeeded: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>

Overrides

BaseContract.populateTransaction

Defined in

typechain/TestStrategy.d.ts:1151


provider

Readonly provider: Provider

Inherited from

BaseContract.provider

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:78


resolvedAddress

Readonly resolvedAddress: Promise<string>

Inherited from

BaseContract.resolvedAddress

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:94


signer

Readonly signer: Signer

Inherited from

BaseContract.signer

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:77

Methods

_checkRunningEvents

_checkRunningEvents(runningEvent): void

Parameters

Name Type
runningEvent RunningEvent

Returns

void

Inherited from

BaseContract._checkRunningEvents

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:117


_deployed

_deployed(blockTag?): Promise<Contract>

Parameters

Name Type
blockTag? BlockTag

Returns

Promise<Contract>

Inherited from

BaseContract._deployed

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:110


_setWant

_setWant(_want, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_want string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:584


_takeFunds

_takeFunds(amount, overrides?): Promise<ContractTransaction>

Parameters

Name Type
amount BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:589


_toggleDelegation

_toggleDelegation(overrides?): Promise<ContractTransaction>

Parameters

Name Type
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:594


_toggleReentrancyExploit

_toggleReentrancyExploit(overrides?): Promise<ContractTransaction>

Parameters

Name Type
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:598


_wrapEvent

_wrapEvent(runningEvent, log, listener): Event

Parameters

Name Type
runningEvent RunningEvent
log Log
listener Listener

Returns

Event

Inherited from

BaseContract._wrapEvent

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:118


apiVersion

apiVersion(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/TestStrategy.d.ts:602


attach

attach(addressOrName): TestStrategy

Parameters

Name Type
addressOrName string

Returns

TestStrategy

Overrides

BaseContract.attach

Defined in

typechain/TestStrategy.d.ts:380


clone(address)

clone(address)(_vault, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_vault string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:604


clone(address,address,address,address)

clone(address,address,address,address)(_vault, _strategist, _rewards, _keeper, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_vault string
_strategist string
_rewards string
_keeper string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:609


connect

connect(signerOrProvider): TestStrategy

Parameters

Name Type
signerOrProvider string | Provider | Signer

Returns

TestStrategy

Overrides

BaseContract.connect

Defined in

typechain/TestStrategy.d.ts:379


debtThreshold

debtThreshold(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/TestStrategy.d.ts:617


delegateEverything

delegateEverything(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/TestStrategy.d.ts:619


delegatedAssets

delegatedAssets(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/TestStrategy.d.ts:621


deployed

deployed(): Promise<TestStrategy>

Returns

Promise<TestStrategy>

Overrides

BaseContract.deployed

Defined in

typechain/TestStrategy.d.ts:381


doReentrancy

doReentrancy(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/TestStrategy.d.ts:623


emergencyExit

emergencyExit(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/TestStrategy.d.ts:625


emit

emit(eventName, …args): boolean

Parameters

Name Type
eventName string | EventFilter
...args any[]

Returns

boolean

Inherited from

BaseContract.emit

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:123


estimatedTotalAssets

estimatedTotalAssets(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/TestStrategy.d.ts:627


ethToWant

ethToWant(amtInWei, overrides?): Promise<BigNumber>

Parameters

Name Type
amtInWei BigNumberish
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/TestStrategy.d.ts:629


fallback

fallback(overrides?): Promise<TransactionResponse>

Parameters

Name Type
overrides? TransactionRequest

Returns

Promise<TransactionResponse>

Inherited from

BaseContract.fallback

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:111


harvest

harvest(overrides?): Promise<ContractTransaction>

Parameters

Name Type
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:634


harvestTrigger

harvestTrigger(callCostInWei, overrides?): Promise<boolean>

Parameters

Name Type
callCostInWei BigNumberish
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/TestStrategy.d.ts:638


initialize

initialize(_vault, _strategist, _rewards, _keeper, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_vault string
_strategist string
_rewards string
_keeper string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:643


isActive

isActive(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/TestStrategy.d.ts:651


isOriginal

isOriginal(overrides?): Promise<boolean>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/TestStrategy.d.ts:653


keeper

keeper(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/TestStrategy.d.ts:655


listenerCount

listenerCount(eventName?): number

Parameters

Name Type
eventName? string | EventFilter

Returns

number

Inherited from

BaseContract.listenerCount

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:124


listeners

listeners<EventArgsArray, EventArgsObject>(eventFilter?): TypedListener<EventArgsArray, EventArgsObject>[]

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter? TypedEventFilter<EventArgsArray, EventArgsObject>

Returns

TypedListener<EventArgsArray, EventArgsObject>[]

Overrides

BaseContract.listeners

Defined in

typechain/TestStrategy.d.ts:383

listeners(eventName?): Listener[]

Parameters

Name Type
eventName? string

Returns

Listener[]

Overrides

BaseContract.listeners

Defined in

typechain/TestStrategy.d.ts:406


maxReportDelay

maxReportDelay(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/TestStrategy.d.ts:657


metadataURI

metadataURI(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/TestStrategy.d.ts:659


migrate

migrate(_newStrategy, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_newStrategy string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:661


minReportDelay

minReportDelay(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/TestStrategy.d.ts:666


name

name(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/TestStrategy.d.ts:668


off

off<EventArgsArray, EventArgsObject>(eventFilter, listener): TestStrategy

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>
listener TypedListener<EventArgsArray, EventArgsObject>

Returns

TestStrategy

Overrides

BaseContract.off

Defined in

typechain/TestStrategy.d.ts:386

off(eventName, listener): TestStrategy

Parameters

Name Type
eventName string
listener Listener

Returns

TestStrategy

Overrides

BaseContract.off

Defined in

typechain/TestStrategy.d.ts:407


on

on<EventArgsArray, EventArgsObject>(eventFilter, listener): TestStrategy

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>
listener TypedListener<EventArgsArray, EventArgsObject>

Returns

TestStrategy

Overrides

BaseContract.on

Defined in

typechain/TestStrategy.d.ts:390

on(eventName, listener): TestStrategy

Parameters

Name Type
eventName string
listener Listener

Returns

TestStrategy

Overrides

BaseContract.on

Defined in

typechain/TestStrategy.d.ts:408


once

once<EventArgsArray, EventArgsObject>(eventFilter, listener): TestStrategy

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>
listener TypedListener<EventArgsArray, EventArgsObject>

Returns

TestStrategy

Overrides

BaseContract.once

Defined in

typechain/TestStrategy.d.ts:394

once(eventName, listener): TestStrategy

Parameters

Name Type
eventName string
listener Listener

Returns

TestStrategy

Overrides

BaseContract.once

Defined in

typechain/TestStrategy.d.ts:409


profitFactor

profitFactor(overrides?): Promise<BigNumber>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<BigNumber>

Defined in

typechain/TestStrategy.d.ts:670


protectedToken

protectedToken(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/TestStrategy.d.ts:672


queryFilter

queryFilter<EventArgsArray, EventArgsObject>(event, fromBlockOrBlockhash?, toBlock?): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
event TypedEventFilter<EventArgsArray, EventArgsObject>
fromBlockOrBlockhash? string | number
toBlock? string | number

Returns

Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

Overrides

BaseContract.queryFilter

Defined in

typechain/TestStrategy.d.ts:413


removeAllListeners

removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter): TestStrategy

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>

Returns

TestStrategy

Overrides

BaseContract.removeAllListeners

Defined in

typechain/TestStrategy.d.ts:402

removeAllListeners(eventName?): TestStrategy

Parameters

Name Type
eventName? string

Returns

TestStrategy

Overrides

BaseContract.removeAllListeners

Defined in

typechain/TestStrategy.d.ts:411


removeListener

removeListener<EventArgsArray, EventArgsObject>(eventFilter, listener): TestStrategy

Type parameters

Name Type
EventArgsArray extends any[]
EventArgsObject EventArgsObject

Parameters

Name Type
eventFilter TypedEventFilter<EventArgsArray, EventArgsObject>
listener TypedListener<EventArgsArray, EventArgsObject>

Returns

TestStrategy

Overrides

BaseContract.removeListener

Defined in

typechain/TestStrategy.d.ts:398

removeListener(eventName, listener): TestStrategy

Parameters

Name Type
eventName string
listener Listener

Returns

TestStrategy

Overrides

BaseContract.removeListener

Defined in

typechain/TestStrategy.d.ts:410


rewards

rewards(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/TestStrategy.d.ts:674


setDebtThreshold

setDebtThreshold(_debtThreshold, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_debtThreshold BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:676


setEmergencyExit

setEmergencyExit(overrides?): Promise<ContractTransaction>

Parameters

Name Type
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:681


setKeeper

setKeeper(_keeper, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_keeper string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:685


setMaxReportDelay

setMaxReportDelay(_delay, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_delay BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:690


setMetadataURI

setMetadataURI(_metadataURI, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_metadataURI string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:695


setMinReportDelay

setMinReportDelay(_delay, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_delay BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:700


setProfitFactor

setProfitFactor(_profitFactor, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_profitFactor BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:705


setRewards

setRewards(_rewards, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_rewards string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:710


setStrategist

setStrategist(_strategist, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_strategist string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:715


strategist

strategist(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/TestStrategy.d.ts:720


sweep

sweep(_token, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_token string
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:722


tend

tend(overrides?): Promise<ContractTransaction>

Parameters

Name Type
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:727


tendTrigger

tendTrigger(callCostInWei, overrides?): Promise<boolean>

Parameters

Name Type
callCostInWei BigNumberish
overrides? CallOverrides

Returns

Promise<boolean>

Defined in

typechain/TestStrategy.d.ts:731


vault

vault(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/TestStrategy.d.ts:736


want

want(overrides?): Promise<string>

Parameters

Name Type
overrides? CallOverrides

Returns

Promise<string>

Defined in

typechain/TestStrategy.d.ts:738


withdraw

withdraw(_amountNeeded, overrides?): Promise<ContractTransaction>

Parameters

Name Type
_amountNeeded BigNumberish
overrides? Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Defined in

typechain/TestStrategy.d.ts:740


getContractAddress

Static getContractAddress(transaction): string

Parameters

Name Type
transaction Object
transaction.from string
transaction.nonce BigNumberish

Returns

string

Inherited from

BaseContract.getContractAddress

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:104


getInterface

Static getInterface(contractInterface): Interface

Parameters

Name Type
contractInterface ContractInterface

Returns

Interface

Inherited from

BaseContract.getInterface

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:108


isIndexed

Static isIndexed(value): value is Indexed

Parameters

Name Type
value any

Returns

value is Indexed

Inherited from

BaseContract.isIndexed

Defined in

node_modules/@ethersproject/contracts/lib/index.d.ts:114

Questions or feedback? You can discuss issues and obtain free support on Yearn Vaults chat channel.
For SushiSwap community support, join the Discord Server None