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(LIVE-7243): add tron exchange to ledger live common #4061

Merged
merged 5 commits into from
Jul 26, 2023
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
5 changes: 5 additions & 0 deletions .changeset/clean-kiwis-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": minor
---

adding tron exchange support to ledger live common
1 change: 1 addition & 0 deletions libs/ledger-live-common/src/exchange/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const exchangeSupportAppVersions = {
stellar: "3.3.0",
stratis: "1.5.0",
tezos: "2.2.13",
tron: "0.4.100",
zcash: "1.5.0",
zencash: "1.5.0",
};
Expand Down
16 changes: 16 additions & 0 deletions libs/ledger-live-common/src/families/tron/exchange.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { bip32asBuffer } from "@ledgerhq/hw-app-btc/bip32";

const getSerializedAddressParameters = (
path: string,
): {
addressParameters: Buffer;
} => {
const addressParameters = bip32asBuffer(path);
return {
addressParameters,
};
};

export default {
getSerializedAddressParameters,
};
2 changes: 2 additions & 0 deletions libs/ledger-live-common/src/generated/exchange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ripple from "../families/ripple/exchange";
import solana from "../families/solana/exchange";
import stellar from "../families/stellar/exchange";
import tezos from "../families/tezos/exchange";
import tron from "../families/tron/exchange";

export default {
bitcoin,
Expand All @@ -12,4 +13,5 @@ export default {
solana,
stellar,
tezos,
tron,
};
Loading