Skip to main content

Interface: DaiTokenClient

The SAI token. It requires special treatment as it's deprecated

Hierarchy

  • TokenSAI

    DaiTokenClient

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

Inherited from

TokenSAI._deployedPromise


_runningEvents

_runningEvents: Object

Index signature

[eventTag: string]: RunningEvent

Inherited from

TokenSAI._runningEvents


_wrappedEmits

_wrappedEmits: Object

Index signature

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

Inherited from

TokenSAI._wrappedEmits


address

Readonly address: string

Inherited from

TokenSAI.address


callStatic

callStatic: Object

Type declaration

NameType
allowance(_owner: string, _spender: string, overrides?: CallOverrides) => Promise<BigNumber>
approve(_spender: string, _value: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
balanceOf(_owner: string, overrides?: CallOverrides) => Promise<BigNumber>
decimals(overrides?: CallOverrides) => Promise<number>
name(overrides?: CallOverrides) => Promise<string>
symbol(overrides?: CallOverrides) => Promise<string>
totalSupply(overrides?: CallOverrides) => Promise<BigNumber>
transfer(_to: string, _value: BigNumberish, overrides?: CallOverrides) => Promise<boolean>
transferFrom(_from: string, _to: string, _value: BigNumberish, overrides?: CallOverrides) => Promise<boolean>

Inherited from

TokenSAI.callStatic


clientType

clientType: TokenClient


deployTransaction

Readonly deployTransaction: TransactionResponse

Inherited from

TokenSAI.deployTransaction


estimateGas

estimateGas: Object

Type declaration

NameType
allowance(_owner: string, _spender: string, overrides?: CallOverrides) => Promise<BigNumber>
approve(_spender: string, _value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
balanceOf(_owner: string, overrides?: CallOverrides) => Promise<BigNumber>
decimals(overrides?: CallOverrides) => Promise<BigNumber>
name(overrides?: CallOverrides) => Promise<BigNumber>
symbol(overrides?: CallOverrides) => Promise<BigNumber>
totalSupply(overrides?: CallOverrides) => Promise<BigNumber>
transfer(_to: string, _value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>
transferFrom(_from: string, _to: string, _value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<BigNumber>

Inherited from

TokenSAI.estimateGas


filters

filters: Object

Type declaration

NameType
Approval(owner?: null | string, spender?: null | string, value?: null) => ApprovalEventFilter
Approval(address,address,uint256)(owner?: null | string, spender?: null | string, value?: null) => ApprovalEventFilter
Transfer(from?: null | string, to?: null | string, value?: null) => TransferEventFilter
Transfer(address,address,uint256)(from?: null | string, to?: null | string, value?: null) => TransferEventFilter

Inherited from

TokenSAI.filters


functions

functions: Object

Type declaration

NameType
allowance(_owner: string, _spender: string, overrides?: CallOverrides) => Promise<[BigNumber]>
approve(_spender: string, _value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
balanceOf(_owner: string, overrides?: CallOverrides) => Promise<[BigNumber] & { balance: BigNumber }>
decimals(overrides?: CallOverrides) => Promise<[number]>
name(overrides?: CallOverrides) => Promise<[string]>
symbol(overrides?: CallOverrides) => Promise<[string]>
totalSupply(overrides?: CallOverrides) => Promise<[BigNumber]>
transfer(_to: string, _value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>
transferFrom(_from: string, _to: string, _value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<ContractTransaction>

Inherited from

TokenSAI.functions


interface

interface: TokenSAIInterface

Inherited from

TokenSAI.interface


off

off: OnEvent<DaiTokenClient>

Inherited from

TokenSAI.off


on

on: OnEvent<DaiTokenClient>

Inherited from

TokenSAI.on


once

once: OnEvent<DaiTokenClient>

Inherited from

TokenSAI.once


populateTransaction

populateTransaction: Object

Type declaration

NameType
allowance(_owner: string, _spender: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
approve(_spender: string, _value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
balanceOf(_owner: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
decimals(overrides?: CallOverrides) => Promise<PopulatedTransaction>
name(overrides?: CallOverrides) => Promise<PopulatedTransaction>
symbol(overrides?: CallOverrides) => Promise<PopulatedTransaction>
totalSupply(overrides?: CallOverrides) => Promise<PopulatedTransaction>
transfer(_to: string, _value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>
transferFrom(_from: string, _to: string, _value: BigNumberish, overrides?: Overrides & { from?: string | Promise<string> }) => Promise<PopulatedTransaction>

Inherited from

TokenSAI.populateTransaction


provider

Readonly provider: Provider

Inherited from

TokenSAI.provider


removeListener

removeListener: OnEvent<DaiTokenClient>

Inherited from

TokenSAI.removeListener


resolvedAddress

Readonly resolvedAddress: Promise<string>

Inherited from

TokenSAI.resolvedAddress


signer

Readonly signer: Signer

Inherited from

TokenSAI.signer


tokenClientType

tokenClientType: Sai

Methods

_checkRunningEvents

_checkRunningEvents(runningEvent): void

Parameters

NameType
runningEventRunningEvent

Returns

void

Inherited from

TokenSAI._checkRunningEvents


_deployed

_deployed(blockTag?): Promise<Contract>

Parameters

NameType
blockTag?BlockTag

Returns

Promise<Contract>

Inherited from

TokenSAI._deployed


_wrapEvent

_wrapEvent(runningEvent, log, listener): Event

Parameters

NameType
runningEventRunningEvent
logLog
listenerListener

Returns

Event

Inherited from

TokenSAI._wrapEvent


allowance

allowance(_owner, _spender, overrides?): Promise<BigNumber>

Parameters

NameType
_ownerstring
_spenderstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

TokenSAI.allowance


approve

approve(_spender, _value, overrides?): Promise<ContractTransaction>

Parameters

NameType
_spenderstring
_valueBigNumberish
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

TokenSAI.approve


attach

attach(addressOrName): DaiTokenClient

Parameters

NameType
addressOrNamestring

Returns

DaiTokenClient

Inherited from

TokenSAI.attach


balanceOf

balanceOf(_owner, overrides?): Promise<BigNumber>

Parameters

NameType
_ownerstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

TokenSAI.balanceOf


connect

connect(signerOrProvider): DaiTokenClient

Parameters

NameType
signerOrProviderstring | Provider | Signer

Returns

DaiTokenClient

Inherited from

TokenSAI.connect


decimals

decimals(overrides?): Promise<number>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<number>

Inherited from

TokenSAI.decimals


deployed

deployed(): Promise<DaiTokenClient>

Returns

Promise<DaiTokenClient>

Inherited from

TokenSAI.deployed


emit

emit(eventName, ...args): boolean

Parameters

NameType
eventNamestring | EventFilter
...argsany[]

Returns

boolean

Inherited from

TokenSAI.emit


fallback

fallback(overrides?): Promise<TransactionResponse>

Parameters

NameType
overrides?TransactionRequest

Returns

Promise<TransactionResponse>

Inherited from

TokenSAI.fallback


getTokenInfo

getTokenInfo(): Promise<TokenInfo>

Get the standard ERC20 token information

Returns

Promise<TokenInfo>


listenerCount

listenerCount(eventName?): number

Parameters

NameType
eventName?string | EventFilter

Returns

number

Inherited from

TokenSAI.listenerCount


listeners

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

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilter?TypedEventFilter<TEvent>

Returns

TypedListener<TEvent>[]

Inherited from

TokenSAI.listeners

listeners(eventName?): Listener[]

Parameters

NameType
eventName?string

Returns

Listener[]

Inherited from

TokenSAI.listeners


name

name(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

TokenSAI.name


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[]>

Inherited from

TokenSAI.queryFilter


removeAllListeners

removeAllListeners<TEvent>(eventFilter): DaiTokenClient

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilterTypedEventFilter<TEvent>

Returns

DaiTokenClient

Inherited from

TokenSAI.removeAllListeners

removeAllListeners(eventName?): DaiTokenClient

Parameters

NameType
eventName?string

Returns

DaiTokenClient

Inherited from

TokenSAI.removeAllListeners


symbol

symbol(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

TokenSAI.symbol


totalSupply

totalSupply(overrides?): Promise<BigNumber>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

TokenSAI.totalSupply


transfer

transfer(_to, _value, overrides?): Promise<ContractTransaction>

Parameters

NameType
_tostring
_valueBigNumberish
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

TokenSAI.transfer


transferFrom

transferFrom(_from, _to, _value, overrides?): Promise<ContractTransaction>

Parameters

NameType
_fromstring
_tostring
_valueBigNumberish
overrides?Overrides & { from?: string | Promise<string> }

Returns

Promise<ContractTransaction>

Inherited from

TokenSAI.transferFrom