mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Create new Type to show DEX tag in summary header (#2543)
* Create new Type to show DEX tag in summary header * Add new response variable for interpreter
This commit is contained in:
@@ -16,12 +16,23 @@ export type TxInterpretationVariable =
|
||||
TxInterpretationVariableString |
|
||||
TxInterpretationVariableCurrency |
|
||||
TxInterpretationVariableTimestamp |
|
||||
TxInterpretationVariableExternalLink |
|
||||
TxInterpretationVariableToken |
|
||||
TxInterpretationVariableAddress |
|
||||
TxInterpretationVariableDomain |
|
||||
TxInterpretationVariableMethod;
|
||||
TxInterpretationVariableMethod |
|
||||
TxInterpretationVariableDex;
|
||||
|
||||
export type TxInterpretationVariableType = 'string' | 'currency' | 'timestamp' | 'token' | 'address' | 'domain' | 'method';
|
||||
export type TxInterpretationVariableType =
|
||||
'string' |
|
||||
'currency' |
|
||||
'timestamp' |
|
||||
'external_link' |
|
||||
'token' |
|
||||
'address' |
|
||||
'domain' |
|
||||
'method' |
|
||||
'dexTag';
|
||||
|
||||
export type TxInterpretationVariableString = {
|
||||
type: 'string';
|
||||
@@ -38,6 +49,14 @@ export type TxInterpretationVariableTimestamp = {
|
||||
value: string;
|
||||
};
|
||||
|
||||
export type TxInterpretationVariableExternalLink = {
|
||||
type: 'external_link';
|
||||
value: {
|
||||
name: string;
|
||||
link: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type TxInterpretationVariableToken = {
|
||||
type: 'token';
|
||||
value: TokenInfo;
|
||||
@@ -57,3 +76,14 @@ export type TxInterpretationVariableMethod = {
|
||||
type: 'method';
|
||||
value: string;
|
||||
};
|
||||
|
||||
export type TxInterpretationVariableDex = {
|
||||
type: 'dexTag';
|
||||
value: {
|
||||
name: string;
|
||||
icon: string;
|
||||
url: string;
|
||||
app_id?: string;
|
||||
app_icon?: string;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user