Skip to main content

Router

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

Interface: Router

Hierarchy

  • BaseContract

    Router

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
FEE_DENOMINATOR(overrides?: CallOverrides) => Promise<BigNumber>
defaultAdminFee(overrides?: CallOverrides) => Promise<BigNumber>
getOutputAmount(path: PromiseOrValue<string>[], pairs: PromiseOrValue<string>[], extras: PromiseOrValue<BytesLike>[], inputAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides) => Promise<BigNumber>
owner(overrides?: CallOverrides) => Promise<string>
renounceOwnership(overrides?: CallOverrides) => Promise<void>
setAdmin(addr: PromiseOrValue<string>, isAdmin: PromiseOrValue<boolean>, overrides?: CallOverrides) => Promise<void>
setAdminFee(partnerId: PromiseOrValue<BigNumberish>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: CallOverrides) => Promise<void>
setPartnerAdmin(partnerId: PromiseOrValue<BigNumberish>, admin: PromiseOrValue<string>, overrides?: CallOverrides) => Promise<void>
setPartnerFee(partnerId: PromiseOrValue<BigNumberish>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: CallOverrides) => Promise<void>
swapExactInputForOutput(details: SwapPayloadStruct, overrides?: CallOverrides) => Promise<BigNumber>
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: CallOverrides) => Promise<void>

Overrides

BaseContract.callStatic

Defined in

packages/sdk-core/src/generated/Router.ts:369


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
FEE_DENOMINATOR(overrides?: CallOverrides) => Promise<BigNumber>
defaultAdminFee(overrides?: CallOverrides) => Promise<BigNumber>
getOutputAmount(path: PromiseOrValue<string>[], pairs: PromiseOrValue<string>[], extras: PromiseOrValue<BytesLike>[], inputAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides) => Promise<BigNumber>
owner(overrides?: CallOverrides) => Promise<BigNumber>
renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<BigNumber>
setAdmin(addr: PromiseOrValue<string>, isAdmin: PromiseOrValue<boolean>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<BigNumber>
setAdminFee(partnerId: PromiseOrValue<BigNumberish>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<BigNumber>
setPartnerAdmin(partnerId: PromiseOrValue<BigNumberish>, admin: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<BigNumber>
setPartnerFee(partnerId: PromiseOrValue<BigNumberish>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<BigNumber>
swapExactInputForOutput(details: SwapPayloadStruct, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<BigNumber>
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<BigNumber>

Overrides

BaseContract.estimateGas

Defined in

packages/sdk-core/src/generated/Router.ts:464


filters

filters: Object

Type declaration

NameType
FeeChanged(partnerId?: null | PromiseOrValue<BigNumberish>, initiator?: null | PromiseOrValue<string>, isAdminFee?: null | PromiseOrValue<boolean>, oldFee?: null, newFee?: null) => FeeChangedEventFilter
FeeChanged(uint256,address,bool,uint256,uint256)(partnerId?: null | PromiseOrValue<BigNumberish>, initiator?: null | PromiseOrValue<string>, isAdminFee?: null | PromiseOrValue<boolean>, oldFee?: null, newFee?: null) => FeeChangedEventFilter
OwnershipTransferred(previousOwner?: null | PromiseOrValue<string>, newOwner?: null | PromiseOrValue<string>) => OwnershipTransferredEventFilter
OwnershipTransferred(address,address)(previousOwner?: null | PromiseOrValue<string>, newOwner?: null | PromiseOrValue<string>) => OwnershipTransferredEventFilter
Swap(sender?: null | PromiseOrValue<string>, to?: null, input?: null | PromiseOrValue<string>, output?: null | PromiseOrValue<string>, inputAmount?: null, outputAmount?: null) => SwapEventFilter
Swap(address,address,address,address,uint256,uint256)(sender?: null | PromiseOrValue<string>, to?: null, input?: null | PromiseOrValue<string>, output?: null | PromiseOrValue<string>, inputAmount?: null, outputAmount?: null) => SwapEventFilter

Overrides

BaseContract.filters

Defined in

packages/sdk-core/src/generated/Router.ts:421


functions

functions: Object

Type declaration

NameType
FEE_DENOMINATOR(overrides?: CallOverrides) => Promise<[BigNumber]>
defaultAdminFee(overrides?: CallOverrides) => Promise<[BigNumber]>
getOutputAmount(path: PromiseOrValue<string>[], pairs: PromiseOrValue<string>[], extras: PromiseOrValue<BytesLike>[], inputAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides) => Promise<[BigNumber] & { outputAmount: BigNumber }>
owner(overrides?: CallOverrides) => Promise<[string]>
renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<ContractTransaction>
setAdmin(addr: PromiseOrValue<string>, isAdmin: PromiseOrValue<boolean>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<ContractTransaction>
setAdminFee(partnerId: PromiseOrValue<BigNumberish>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<ContractTransaction>
setPartnerAdmin(partnerId: PromiseOrValue<BigNumberish>, admin: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<ContractTransaction>
setPartnerFee(partnerId: PromiseOrValue<BigNumberish>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<ContractTransaction>
swapExactInputForOutput(details: SwapPayloadStruct, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<ContractTransaction>
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<ContractTransaction>

Overrides

BaseContract.functions

Defined in

packages/sdk-core/src/generated/Router.ts:263


interface

interface: RouterInterface

Overrides

BaseContract.interface

Defined in

packages/sdk-core/src/generated/Router.ts:242


off

off: OnEvent<Router>

Overrides

BaseContract.off

Defined in

packages/sdk-core/src/generated/Router.ts:258


on

on: OnEvent<Router>

Overrides

BaseContract.on

Defined in

packages/sdk-core/src/generated/Router.ts:259


once

once: OnEvent<Router>

Overrides

BaseContract.once

Defined in

packages/sdk-core/src/generated/Router.ts:260


populateTransaction

populateTransaction: Object

Type declaration

NameType
FEE_DENOMINATOR(overrides?: CallOverrides) => Promise<PopulatedTransaction>
defaultAdminFee(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getOutputAmount(path: PromiseOrValue<string>[], pairs: PromiseOrValue<string>[], extras: PromiseOrValue<BytesLike>[], inputAmount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides) => Promise<PopulatedTransaction>
owner(overrides?: CallOverrides) => Promise<PopulatedTransaction>
renounceOwnership(overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<PopulatedTransaction>
setAdmin(addr: PromiseOrValue<string>, isAdmin: PromiseOrValue<boolean>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<PopulatedTransaction>
setAdminFee(partnerId: PromiseOrValue<BigNumberish>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<PopulatedTransaction>
setPartnerAdmin(partnerId: PromiseOrValue<BigNumberish>, admin: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<PopulatedTransaction>
setPartnerFee(partnerId: PromiseOrValue<BigNumberish>, feeNumerator: PromiseOrValue<BigNumberish>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<PopulatedTransaction>
swapExactInputForOutput(details: SwapPayloadStruct, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<PopulatedTransaction>
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & { from?: PromiseOrValue<string> }) => Promise<PopulatedTransaction>

Overrides

BaseContract.populateTransaction

Defined in

packages/sdk-core/src/generated/Router.ts:518


provider

Readonly provider: Provider

Inherited from

BaseContract.provider

Defined in

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


removeListener

removeListener: OnEvent<Router>

Overrides

BaseContract.removeListener

Defined in

packages/sdk-core/src/generated/Router.ts:261


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

FEE_DENOMINATOR

FEE_DENOMINATOR(overrides?): Promise<BigNumber>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/sdk-core/src/generated/Router.ts:317


_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): Router

Parameters

NameType
addressOrNamestring

Returns

Router

Overrides

BaseContract.attach

Defined in

packages/sdk-core/src/generated/Router.ts:239


connect

connect(signerOrProvider): Router

Parameters

NameType
signerOrProviderstring | Signer | Provider

Returns

Router

Overrides

BaseContract.connect

Defined in

packages/sdk-core/src/generated/Router.ts:238


defaultAdminFee

defaultAdminFee(overrides?): Promise<BigNumber>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/sdk-core/src/generated/Router.ts:319


deployed

deployed(): Promise<Router>

Returns

Promise<Router>

Overrides

BaseContract.deployed

Defined in

packages/sdk-core/src/generated/Router.ts:240


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


getOutputAmount

getOutputAmount(path, pairs, extras, inputAmount, overrides?): Promise<BigNumber>

Parameters

NameType
pathPromiseOrValue<string>[]
pairsPromiseOrValue<string>[]
extrasPromiseOrValue<BytesLike>[]
inputAmountPromiseOrValue<BigNumberish>
overrides?CallOverrides

Returns

Promise<BigNumber>

Defined in

packages/sdk-core/src/generated/Router.ts:356


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/Router.ts:250

listeners(eventName?): Listener[]

Parameters

NameType
eventName?string

Returns

Listener[]

Overrides

BaseContract.listeners

Defined in

packages/sdk-core/src/generated/Router.ts:253


owner

owner(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Defined in

packages/sdk-core/src/generated/Router.ts:321


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/Router.ts:244


removeAllListeners

removeAllListeners<TEvent>(eventFilter): Router

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilterTypedEventFilter<TEvent>

Returns

Router

Overrides

BaseContract.removeAllListeners

Defined in

packages/sdk-core/src/generated/Router.ts:254

removeAllListeners(eventName?): Router

Parameters

NameType
eventName?string

Returns

Router

Overrides

BaseContract.removeAllListeners

Defined in

packages/sdk-core/src/generated/Router.ts:257


renounceOwnership

renounceOwnership(overrides?): Promise<ContractTransaction>

Parameters

NameType
overrides?Overrides & { from?: PromiseOrValue<string> }

Returns

Promise<ContractTransaction>

Defined in

packages/sdk-core/src/generated/Router.ts:323


setAdmin

setAdmin(addr, isAdmin, overrides?): Promise<ContractTransaction>

Parameters

NameType
addrPromiseOrValue<string>
isAdminPromiseOrValue<boolean>
overrides?Overrides & { from?: PromiseOrValue<string> }

Returns

Promise<ContractTransaction>

Defined in

packages/sdk-core/src/generated/Router.ts:332


setAdminFee

setAdminFee(partnerId, feeNumerator, overrides?): Promise<ContractTransaction>

Parameters

NameType
partnerIdPromiseOrValue<BigNumberish>
feeNumeratorPromiseOrValue<BigNumberish>
overrides?Overrides & { from?: PromiseOrValue<string> }

Returns

Promise<ContractTransaction>

Defined in

packages/sdk-core/src/generated/Router.ts:350


setPartnerAdmin

setPartnerAdmin(partnerId, admin, overrides?): Promise<ContractTransaction>

Parameters

NameType
partnerIdPromiseOrValue<BigNumberish>
adminPromiseOrValue<string>
overrides?Overrides & { from?: PromiseOrValue<string> }

Returns

Promise<ContractTransaction>

Defined in

packages/sdk-core/src/generated/Router.ts:338


setPartnerFee

setPartnerFee(partnerId, feeNumerator, overrides?): Promise<ContractTransaction>

Parameters

NameType
partnerIdPromiseOrValue<BigNumberish>
feeNumeratorPromiseOrValue<BigNumberish>
overrides?Overrides & { from?: PromiseOrValue<string> }

Returns

Promise<ContractTransaction>

Defined in

packages/sdk-core/src/generated/Router.ts:344


swapExactInputForOutput

swapExactInputForOutput(details, overrides?): Promise<ContractTransaction>

Parameters

NameType
detailsSwapPayloadStruct
overrides?Overrides & { from?: PromiseOrValue<string> }

Returns

Promise<ContractTransaction>

Defined in

packages/sdk-core/src/generated/Router.ts:364


transferOwnership

transferOwnership(newOwner, overrides?): Promise<ContractTransaction>

Parameters

NameType
newOwnerPromiseOrValue<string>
overrides?Overrides & { from?: PromiseOrValue<string> }

Returns

Promise<ContractTransaction>

Defined in

packages/sdk-core/src/generated/Router.ts:327