1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

optimizations

This commit is contained in:
alexcos20 2020-09-30 03:51:08 -07:00
parent 9195cfbcca
commit 24e5e37101

View File

@ -4,6 +4,8 @@ import { TransactionReceipt } from 'web3-core'
import { Pool } from './Pool'
import { EventData, Filter } from 'web3-eth-contract'
declare type PoolTransactionType = 'swap' | 'join' | 'exit'
export interface PoolDetails {
poolAddress: string
tokens: string[]
@ -493,7 +495,7 @@ export class OceanPool extends Pool {
}
private async getEventData(
type: 'swap' | 'join' | 'exit',
type: PoolTransactionType,
poolAddress: string,
dtAddress: string,
data: EventData