Skip to content

Commit

Permalink
feat: supporting types for LF-770 (#57)
Browse files Browse the repository at this point in the history
* feat: added toolDetails to StepBase

* fix: update to es6

* fix: revert to es5
  • Loading branch information
H3xept committed May 9, 2022
1 parent 4e40417 commit 4b36e61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/step.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { providers } from 'ethers'
import { Token } from './base'
import { Bridge } from './bridges'
import { Exchange, ExchangeAggregator } from './exchanges'

export interface FeeCost {
name: string
Expand Down Expand Up @@ -112,6 +114,10 @@ export interface StepBase {
id: string
type: StepType
tool: StepTool
toolDetails: Pick<
ExchangeAggregator | Exchange | Bridge,
'key' | 'name' | 'logoURI'
>
integrator?: string
referrer?: string
action: Action
Expand Down

0 comments on commit 4b36e61

Please sign in to comment.