Skip to content

Commit

Permalink
fix(core): add display_name for missing token_mint
Browse files Browse the repository at this point in the history
  • Loading branch information
arjaz committed Jan 14, 2025
1 parent 3515cf3 commit 5423aa7
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
24 changes: 24 additions & 0 deletions common/defs/solana/programs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,10 @@
{
"account": "owner",
"display_name": "Mint authority"
},
{
"account": "token_mint",
"display_name": "Burn token"
}
]
},
Expand Down Expand Up @@ -1762,6 +1766,10 @@
{
"account": "freeze_authority",
"display_name": "Owner"
},
{
"account": "token_mint",
"display_name": "Token"
}
]
},
Expand Down Expand Up @@ -1795,6 +1803,10 @@
{
"account": "freeze_authority",
"display_name": "Owner"
},
{
"name": "token_mint",
"display_name": "Token"
}
]
},
Expand Down Expand Up @@ -2483,6 +2495,10 @@
{
"account": "owner",
"display_name": "Mint authority"
},
{
"name": "token_mint",
"display_name": "Burn token"
}
]
},
Expand Down Expand Up @@ -2553,6 +2569,10 @@
{
"account": "freeze_authority",
"display_name": "Owner"
},
{
"name": "token_mint",
"display_name": "Token"
}
]
},
Expand Down Expand Up @@ -2586,6 +2606,10 @@
{
"account": "freeze_authority",
"display_name": "Owner"
},
{
"name": "token_mint",
"display_name": "Token"
}
]
},
Expand Down
42 changes: 42 additions & 0 deletions core/src/apps/solana/transaction/instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3312,6 +3312,13 @@ def get_instruction(
False,
None,
),
UIProperty(
None,
"token_mint",
"Burn token",
False,
None,
),
],
"Token Program: Burn",
True,
Expand Down Expand Up @@ -3413,6 +3420,13 @@ def get_instruction(
False,
None,
),
UIProperty(
None,
"token_mint",
"Token",
False,
None,
),
],
"Token Program: Freeze Account",
True,
Expand Down Expand Up @@ -3460,6 +3474,13 @@ def get_instruction(
False,
None,
),
UIProperty(
None,
None,
"Token",
False,
None,
),
],
"Token Program: Thaw Account",
True,
Expand Down Expand Up @@ -4464,6 +4485,13 @@ def get_instruction(
False,
None,
),
UIProperty(
None,
None,
"Burn token",
False,
None,
),
],
"Token 2022 Program: Burn",
True,
Expand Down Expand Up @@ -4565,6 +4593,13 @@ def get_instruction(
False,
None,
),
UIProperty(
None,
None,
"Token",
False,
None,
),
],
"Token 2022 Program: Freeze Account",
True,
Expand Down Expand Up @@ -4612,6 +4647,13 @@ def get_instruction(
False,
None,
),
UIProperty(
None,
None,
"Token",
False,
None,
),
],
"Token 2022 Program: Thaw Account",
True,
Expand Down

0 comments on commit 5423aa7

Please sign in to comment.