Skip to main content

OneClickFarm

@node-fi/sdk-core / Exports / OneClickFarm

Interface: OneClickFarm

Hierarchy

  • BaseContract

    OneClickFarm

Table of contents

Properties

Methods

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

Inherited from

BaseContract._deployedPromise

Defined in

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


_runningEvents

_runningEvents: Object

Index signature

[eventTag: string]: RunningEvent

Inherited from

BaseContract._runningEvents

Defined in

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


_wrappedEmits

_wrappedEmits: Object

Index signature

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

Inherited from

BaseContract._wrappedEmits

Defined in

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


address

Readonly address: string

Inherited from

BaseContract.address

Defined in

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


callStatic

callStatic: Object

Type declaration

NameType
oneClickDeposit(details: SwapPayloadStruct[], router: PromiseOrValue<string>, depositPairAddr: PromiseOrValue<string>, minExpected: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, data: PromiseOrValue<BytesLike>, overrides?: CallOverrides) => Promise<void>

Overrides

BaseContract.callStatic

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:140


deployTransaction

Readonly deployTransaction: TransactionResponse

Inherited from

BaseContract.deployTransaction

Defined in

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


estimateGas

estimateGas: Object

Type declaration

NameType
oneClickDeposit(details: SwapPayloadStruct[], router: PromiseOrValue<string>, depositPairAddr: PromiseOrValue<string>, minExpected: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<BigNumber>

Overrides

BaseContract.estimateGas

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:154


filters

filters: Object

Overrides

BaseContract.filters

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:152


functions

functions: Object

Type declaration

NameType
oneClickDeposit(details: SwapPayloadStruct[], router: PromiseOrValue<string>, depositPairAddr: PromiseOrValue<string>, minExpected: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<ContractTransaction>

Overrides

BaseContract.functions

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:118


interface

interface: OneClickFarmInterface

Overrides

BaseContract.interface

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:97


off

off: OnEvent<OneClickFarm>

Overrides

BaseContract.off

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:113


on

on: OnEvent<OneClickFarm>

Overrides

BaseContract.on

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:114


once

once: OnEvent<OneClickFarm>

Overrides

BaseContract.once

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:115


populateTransaction

populateTransaction: Object

Type declaration

NameType
oneClickDeposit(details: SwapPayloadStruct[], router: PromiseOrValue<string>, depositPairAddr: PromiseOrValue<string>, minExpected: PromiseOrValue<BigNumberish>, to: PromiseOrValue<string>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<PopulatedTransaction>

Overrides

BaseContract.populateTransaction

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:166


provider

Readonly provider: Provider

Inherited from

BaseContract.provider

Defined in

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


removeListener

removeListener: OnEvent<OneClickFarm>

Overrides

BaseContract.removeListener

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:116


resolvedAddress

Readonly resolvedAddress: Promise<string>

Inherited from

BaseContract.resolvedAddress

Defined in

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


signer

Readonly signer: Signer

Inherited from

BaseContract.signer

Defined in

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

Methods

_checkRunningEvents

_checkRunningEvents(runningEvent): void

Parameters

NameType
runningEventRunningEvent

Returns

void

Inherited from

BaseContract._checkRunningEvents

Defined in

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


_deployed

_deployed(blockTag?): Promise<Contract>

Parameters

NameType
blockTag?BlockTag

Returns

Promise<Contract>

Inherited from

BaseContract._deployed

Defined in

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


_wrapEvent

_wrapEvent(runningEvent, log, listener): Event

Parameters

NameType
runningEventRunningEvent
logLog
listenerListener

Returns

Event

Inherited from

BaseContract._wrapEvent

Defined in

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


attach

attach(addressOrName): OneClickFarm

Parameters

NameType
addressOrNamestring

Returns

OneClickFarm

Overrides

BaseContract.attach

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:94


connect

connect(signerOrProvider): OneClickFarm

Parameters

NameType
signerOrProviderstring | Signer | Provider

Returns

OneClickFarm

Overrides

BaseContract.connect

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:93


deployed

deployed(): Promise<OneClickFarm>

Returns

Promise<OneClickFarm>

Overrides

BaseContract.deployed

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:95


emit

emit(eventName, ...args): boolean

Parameters

NameType
eventNamestring | EventFilter
...argsany[]

Returns

boolean

Inherited from

BaseContract.emit

Defined in

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


fallback

fallback(overrides?): Promise<TransactionResponse>

Parameters

NameType
overrides?TransactionRequest

Returns

Promise<TransactionResponse>

Inherited from

BaseContract.fallback

Defined in

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


listenerCount

listenerCount(eventName?): number

Parameters

NameType
eventName?string | EventFilter

Returns

number

Inherited from

BaseContract.listenerCount

Defined in

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


listeners

listeners<TEvent>(eventFilter?): TypedListener<TEvent>[]

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilter?TypedEventFilter<TEvent>

Returns

TypedListener<TEvent>[]

Overrides

BaseContract.listeners

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:105

listeners(eventName?): Listener[]

Parameters

NameType
eventName?string

Returns

Listener[]

Overrides

BaseContract.listeners

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:108


oneClickDeposit

oneClickDeposit(details, router, depositPairAddr, minExpected, to, data, overrides?): Promise<ContractTransaction>

Parameters

NameType
detailsSwapPayloadStruct[]
routerPromiseOrValue<string>
depositPairAddrPromiseOrValue<string>
minExpectedPromiseOrValue<BigNumberish>
toPromiseOrValue<string>
dataPromiseOrValue<BytesLike>
overrides?Overrides & { from?: PromiseOrValue<string> }

Returns

Promise<ContractTransaction>

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:130


queryFilter

queryFilter<TEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TEvent[]>

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventTypedEventFilter<TEvent>
fromBlockOrBlockhash?string | number
toBlock?string | number

Returns

Promise<TEvent[]>

Overrides

BaseContract.queryFilter

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:99


removeAllListeners

removeAllListeners<TEvent>(eventFilter): OneClickFarm

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilterTypedEventFilter<TEvent>

Returns

OneClickFarm

Overrides

BaseContract.removeAllListeners

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:109

removeAllListeners(eventName?): OneClickFarm

Parameters

NameType
eventName?string

Returns

OneClickFarm

Overrides

BaseContract.removeAllListeners

Defined in

packages/sdk-core/src/generated/OneClickFarm.ts:112