Skip to content

Latest commit

 

History

History
302 lines (172 loc) · 6.2 KB

internal_.Contract.md

File metadata and controls

302 lines (172 loc) · 6.2 KB

@paraswap/sdk / Exports / <internal> / Contract

Class: Contract

.Contract

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Contract(jsonInterface, address?, options?)

Parameters

Name Type
jsonInterface AbiItem[]
address? string
options? ContractOptions

Properties

_address

Private _address: string

Defined in

node_modules/web3-eth-contract/types/index.d.ts:32


_jsonInterface

Private _jsonInterface: AbiItem[]

Defined in

node_modules/web3-eth-contract/types/index.d.ts:33


defaultAccount

defaultAccount: null | string

Defined in

node_modules/web3-eth-contract/types/index.d.ts:34


defaultBlock

defaultBlock: BlockNumber

Defined in

node_modules/web3-eth-contract/types/index.d.ts:35


defaultChain

defaultChain: chain

Defined in

node_modules/web3-eth-contract/types/index.d.ts:38


defaultCommon

defaultCommon: Common

Defined in

node_modules/web3-eth-contract/types/index.d.ts:36


defaultHardfork

defaultHardfork: hardfork

Defined in

node_modules/web3-eth-contract/types/index.d.ts:37


events

events: any

Defined in

node_modules/web3-eth-contract/types/index.d.ts:62


handleRevert

handleRevert: boolean

Defined in

node_modules/web3-eth-contract/types/index.d.ts:42


methods

methods: any

Defined in

node_modules/web3-eth-contract/types/index.d.ts:50


options

options: Options

Defined in

node_modules/web3-eth-contract/types/index.d.ts:44


transactionBlockTimeout

transactionBlockTimeout: number

Defined in

node_modules/web3-eth-contract/types/index.d.ts:41


transactionConfirmationBlocks

transactionConfirmationBlocks: number

Defined in

node_modules/web3-eth-contract/types/index.d.ts:40


transactionPollingTimeout

transactionPollingTimeout: number

Defined in

node_modules/web3-eth-contract/types/index.d.ts:39

Methods

clone

clone(): Contract

Returns

Contract


deploy

deploy(options): ContractSendMethod

Parameters

Name Type
options DeployOptions

Returns

ContractSendMethod


getPastEvents

getPastEvents(event): Promise<EventData[]>

Parameters

Name Type
event string

Returns

Promise<EventData[]>

getPastEvents(event, options, callback): Promise<EventData[]>

Parameters

Name Type
event string
options PastEventOptions
callback (error: Error, event: EventData) => void

Returns

Promise<EventData[]>

getPastEvents(event, options): Promise<EventData[]>

Parameters

Name Type
event string
options PastEventOptions

Returns

Promise<EventData[]>

getPastEvents(event, callback): Promise<EventData[]>

Parameters

Name Type
event string
callback (error: Error, event: EventData) => void

Returns

Promise<EventData[]>


once

once(event, callback): void

Parameters

Name Type
event string
callback (error: Error, event: EventData) => void

Returns

void

once(event, options, callback): void

Parameters

Name Type
event string
options EventOptions
callback (error: Error, event: EventData) => void

Returns

void