Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/shy-balloons-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@ledgerhq/cryptoassets": minor
"@ledgerhq/types-live": minor
"@ledgerhq/coin-evm": minor
"@ledgerhq/live-currency-format": minor
"ledger-live-desktop": minor
"live-mobile": minor
"@ledgerhq/live-common": minor
"@ledgerhq/web-tools": minor
"@ledgerhq/live-cli": minor
---

adding adi currency support
1 change: 1 addition & 0 deletions apps/cli/src/live-common-setup-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ setWalletAPIVersion(WALLET_API_VERSION);
setSupportedCurrencies([
"aptos",
"aptos_testnet",
"adi",
"bitcoin",
"ethereum",
"bsc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ setSupportedCurrencies([
"near",
"aptos",
"aptos_testnet",
"adi",
"icon",
"icon_berlin_testnet",
"optimism",
Expand Down
9 changes: 9 additions & 0 deletions apps/ledger-live-desktop/tests/fixtures/wallet-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,15 @@ export const expectedCurrencyList = [
color: "#FFCD29",
decimals: 8,
},
{
type: "CryptoCurrency",
id: "adi",
ticker: "ADI",
name: "Adi",
family: "ethereum",
color: "#0066CC",
decimals: 18,
},
{
type: "CryptoCurrency",
id: "optimism",
Expand Down
1 change: 1 addition & 0 deletions apps/ledger-live-mobile/src/live-common-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ setSupportedCurrencies([
"lukso",
"aptos",
"aptos_testnet",
"adi",
"linea",
"linea_sepolia",
"blast",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export const mocks: AppManifest[] = [
"somnia",
"zero_gravity",
"unichain",
"adi",
],
content: {
shortDescription: {
Expand Down
1 change: 1 addition & 0 deletions apps/web-tools/src/live-common-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ setSupportedCurrencies([
"decred",
"digibyte",
"algorand",
"adi",
"qtum",
"bitcoin_gold",
"komodo",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale de-DE should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale de-DE should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale de-DE should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1.050.000 AKA",
Expand Down Expand Up @@ -720,6 +729,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale en-US should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale en-US should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0.000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale en-US should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1,050,000 AKA",
Expand Down Expand Up @@ -1431,6 +1449,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale es-ES should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale es-ES should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale es-ES should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1.050.000 AKA",
Expand Down Expand Up @@ -2142,6 +2169,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale fr-FR should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale fr-FR should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale fr-FR should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1 050 000 AKA",
Expand Down Expand Up @@ -2853,6 +2889,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale ja-JP should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale ja-JP should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0.000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale ja-JP should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1,050,000 AKA",
Expand Down Expand Up @@ -3564,6 +3609,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale ko-KR should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale ko-KR should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0.000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale ko-KR should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1,050,000 AKA",
Expand Down Expand Up @@ -4275,6 +4329,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale pt-BR should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale pt-BR should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale pt-BR should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1.050.000 AKA",
Expand Down Expand Up @@ -4986,6 +5049,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale ru-RU should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale ru-RU should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale ru-RU should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1 050 000 AKA",
Expand Down Expand Up @@ -5697,6 +5769,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale tr-TR should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale tr-TR should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale tr-TR should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1.050.000 AKA",
Expand Down Expand Up @@ -6408,6 +6489,15 @@ exports[`getFormattedFeeFields with tx type 0 with locale zh-CN should correctly
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale zh-CN should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0.000105 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 0 with locale zh-CN should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "1,050,000 AKA",
Expand Down Expand Up @@ -7119,6 +7209,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale de-DE should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale de-DE should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale de-DE should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420.000 AKA",
Expand Down Expand Up @@ -7830,6 +7929,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale en-US should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale en-US should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0.000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale en-US should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420,000 AKA",
Expand Down Expand Up @@ -8541,6 +8649,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale es-ES should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale es-ES should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale es-ES should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420.000 AKA",
Expand Down Expand Up @@ -9252,6 +9369,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale fr-FR should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale fr-FR should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale fr-FR should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420 000 AKA",
Expand Down Expand Up @@ -9963,6 +10089,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale ja-JP should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale ja-JP should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0.000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale ja-JP should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420,000 AKA",
Expand Down Expand Up @@ -10674,6 +10809,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale ko-KR should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale ko-KR should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0.000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale ko-KR should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420,000 AKA",
Expand Down Expand Up @@ -11385,6 +11529,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale pt-BR should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale pt-BR should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale pt-BR should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420.000 AKA",
Expand Down Expand Up @@ -12096,6 +12249,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale ru-RU should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale ru-RU should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale ru-RU should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420 000 AKA",
Expand Down Expand Up @@ -12807,6 +12969,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale tr-TR should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale tr-TR should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0,000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale tr-TR should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420.000 AKA",
Expand Down Expand Up @@ -13518,6 +13689,15 @@ exports[`getFormattedFeeFields with tx type 2 with locale zh-CN should correctly
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale zh-CN should correctly format fee fields for Adi unit 1`] = `
{
"formattedFeeValue": "0.000042 ADI",
"formattedGasPrice": "0 ADI",
"formattedMaxFeePerGas": "0 ADI",
"formattedMaxPriorityFeePerGas": "0 ADI",
}
`;

exports[`getFormattedFeeFields with tx type 2 with locale zh-CN should correctly format fee fields for Akroma unit 1`] = `
{
"formattedFeeValue": "420,000 AKA",
Expand Down
1 change: 1 addition & 0 deletions libs/coin-modules/coin-evm/src/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const minBalancePerCurrencyId: Partial<Record<CryptoCurrency["id"], number>> = {
zero_gravity: 0.01,
unichain: 0.001,
unichain_sepolia: 0.001,
adi: 0.001,
};

/**
Expand Down
Loading
Loading