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:
Igor Stuev
2025-02-04 15:14:01 +01:00
committed by GitHub
parent 3db2da21ec
commit 426ca3cb2d
2 changed files with 69 additions and 3 deletions
+32 -2
View File
@@ -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;
};
};