-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #311 from Cryptorubic/develop
Iframe redesigned and instant trades table added
- Loading branch information
Showing
135 changed files
with
4,027 additions
and
31,298 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/app/core/services/backend/instant-trades-api/types/trade-api.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import InputToken from 'src/app/shared/models/tokens/InputToken'; | ||
import { PROVIDERS } from '../../../../../features/swaps-page/instant-trades/models/providers.enum'; | ||
|
||
interface InstantTradesBlockchainNetwork { | ||
title: string; | ||
} | ||
|
||
interface InstantTradesContract { | ||
name: string; | ||
address: string; | ||
blockchain_network: InstantTradesBlockchainNetwork; | ||
} | ||
|
||
interface InstantTradesTokenApi extends InputToken { | ||
blockchain_network: string; | ||
coingecko_id: string; | ||
usd_price: number; | ||
} | ||
|
||
export interface InstantTradesRequestApi { | ||
hash: string; | ||
provider: string; | ||
network: string; | ||
} | ||
|
||
export interface InstantTradesResponseApi { | ||
hash: string; | ||
contract: InstantTradesContract; | ||
user: { username: string }; | ||
from_token: InstantTradesTokenApi; | ||
to_token: InstantTradesTokenApi; | ||
from_amount: string; | ||
to_amount: string; | ||
gas_price: string; | ||
gas_limit: string; | ||
status: string; | ||
status_updated_at: string; | ||
} | ||
|
||
interface InstantTradesOthersApi { | ||
hash: string; | ||
provider: PROVIDERS; | ||
network: string; | ||
} | ||
|
||
interface InstantTradesOneInchApi { | ||
hash: string; | ||
provider: PROVIDERS; | ||
network: string; | ||
from_token: string; | ||
to_token: string; | ||
from_amount: number; | ||
to_amount: number; | ||
} | ||
|
||
export type InstantTradesPostApi = InstantTradesOthersApi | InstantTradesOneInchApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
src/app/core/services/backend/order-book-api/types/trade-api.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.