mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
optimizations
This commit is contained in:
parent
9195cfbcca
commit
24e5e37101
@ -4,6 +4,8 @@ import { TransactionReceipt } from 'web3-core'
|
|||||||
import { Pool } from './Pool'
|
import { Pool } from './Pool'
|
||||||
import { EventData, Filter } from 'web3-eth-contract'
|
import { EventData, Filter } from 'web3-eth-contract'
|
||||||
|
|
||||||
|
declare type PoolTransactionType = 'swap' | 'join' | 'exit'
|
||||||
|
|
||||||
export interface PoolDetails {
|
export interface PoolDetails {
|
||||||
poolAddress: string
|
poolAddress: string
|
||||||
tokens: string[]
|
tokens: string[]
|
||||||
@ -493,7 +495,7 @@ export class OceanPool extends Pool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async getEventData(
|
private async getEventData(
|
||||||
type: 'swap' | 'join' | 'exit',
|
type: PoolTransactionType,
|
||||||
poolAddress: string,
|
poolAddress: string,
|
||||||
dtAddress: string,
|
dtAddress: string,
|
||||||
data: EventData
|
data: EventData
|
||||||
|
Loading…
x
Reference in New Issue
Block a user