@paraswap/sdk / Exports / <internal> / Contract
- _address
- _jsonInterface
- defaultAccount
- defaultBlock
- defaultChain
- defaultCommon
- defaultHardfork
- events
- handleRevert
- methods
- options
- transactionBlockTimeout
- transactionConfirmationBlocks
- transactionPollingTimeout
• new Contract(jsonInterface
, address?
, options?
)
Name | Type |
---|---|
jsonInterface |
AbiItem [] |
address? |
string |
options? |
ContractOptions |
• Private
_address: string
node_modules/web3-eth-contract/types/index.d.ts:32
• Private
_jsonInterface: AbiItem
[]
node_modules/web3-eth-contract/types/index.d.ts:33
• defaultAccount: null
| string
node_modules/web3-eth-contract/types/index.d.ts:34
• defaultBlock: BlockNumber
node_modules/web3-eth-contract/types/index.d.ts:35
• defaultChain: chain
node_modules/web3-eth-contract/types/index.d.ts:38
• defaultCommon: Common
node_modules/web3-eth-contract/types/index.d.ts:36
• defaultHardfork: hardfork
node_modules/web3-eth-contract/types/index.d.ts:37
• events: any
node_modules/web3-eth-contract/types/index.d.ts:62
• handleRevert: boolean
node_modules/web3-eth-contract/types/index.d.ts:42
• methods: any
node_modules/web3-eth-contract/types/index.d.ts:50
• options: Options
node_modules/web3-eth-contract/types/index.d.ts:44
• transactionBlockTimeout: number
node_modules/web3-eth-contract/types/index.d.ts:41
• transactionConfirmationBlocks: number
node_modules/web3-eth-contract/types/index.d.ts:40
• transactionPollingTimeout: number
node_modules/web3-eth-contract/types/index.d.ts:39
▸ clone(): Contract
▸ deploy(options
): ContractSendMethod
Name | Type |
---|---|
options |
DeployOptions |
▸ getPastEvents(event
): Promise
<EventData
[]>
Name | Type |
---|---|
event |
string |
Promise
<EventData
[]>
▸ getPastEvents(event
, options
, callback
): Promise
<EventData
[]>
Name | Type |
---|---|
event |
string |
options |
PastEventOptions |
callback |
(error : Error , event : EventData ) => void |
Promise
<EventData
[]>
▸ getPastEvents(event
, options
): Promise
<EventData
[]>
Name | Type |
---|---|
event |
string |
options |
PastEventOptions |
Promise
<EventData
[]>
▸ getPastEvents(event
, callback
): Promise
<EventData
[]>
Name | Type |
---|---|
event |
string |
callback |
(error : Error , event : EventData ) => void |
Promise
<EventData
[]>
▸ once(event
, callback
): void
Name | Type |
---|---|
event |
string |
callback |
(error : Error , event : EventData ) => void |
void
▸ once(event
, options
, callback
): void
Name | Type |
---|---|
event |
string |
options |
EventOptions |
callback |
(error : Error , event : EventData ) => void |
void