Skip to content

Commit

Permalink
feat(LIVE-7243): add tron exchange support
Browse files Browse the repository at this point in the history
  • Loading branch information
cng-ledger committed Jul 12, 2023
1 parent 4f327d8 commit fed5f09
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
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: "", // TODO: Add Tron version
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
};

0 comments on commit fed5f09

Please sign in to comment.