Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/solana tokens support #2

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
feat: add burn operation type
  • Loading branch information
mikhd committed Oct 7, 2024
commit 655c09cdc7f165213e9bbff270d45d97533ce233
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const iconsComponent = {
STAKE: IconDelegate,
UNSTAKE: IconUndelegate,
WITHDRAW_UNSTAKED: IconCoins,
BURN: IconTrash,
};
class ConfirmationCheck extends PureComponent<{
marketColor: string;
Expand Down
3 changes: 2 additions & 1 deletion apps/ledger-live-desktop/static/i18n/en/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@
"STAKE": "Staked",
"UNSTAKE": "Unstaked",
"WITHDRAW_UNSTAKED": "Withdrawn",
"SENDING": "Sending"
"SENDING": "Sending",
"BURN": "Burned"
},
"edit": {
"title": "Speed up or Cancel",
Expand Down
1 change: 1 addition & 0 deletions libs/coin-framework/src/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export function getOperationAmountNumber(op: Operation): BigNumber {
case "OPT_OUT":
case "SLASH":
case "LOCK":
case "BURN":
return op.value.negated();

case "FREEZE":
Expand Down
4 changes: 3 additions & 1 deletion libs/ledgerjs/packages/types-live/src/operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export type OperationType =
// NEAR
| "STAKE"
| "UNSTAKE"
| "WITHDRAW_UNSTAKED";
| "WITHDRAW_UNSTAKED"
// SOLANA
| "BURN";

export type OperationExtra = unknown;
/**
Expand Down