@ledgerhq/coin-tron
Version:
Ledger Tron Coin integration
9 lines • 1.19 kB
TypeScript
import { type TronResources, type TronResourcesRaw, type TrongridExtraTxInfo, type TrongridExtraTxInfoRaw } from "../types";
import { Account, AccountRaw, OperationExtra, OperationExtraRaw } from "@ledgerhq/types-live";
export declare const toTronResourcesRaw: ({ frozen, unFrozen, delegatedFrozen, legacyFrozen, votes, tronPower, energy, bandwidth, unwithdrawnReward, lastWithdrawnRewardDate, lastVotedDate, cacheTransactionInfoById: cacheTx, }: TronResources) => TronResourcesRaw;
export declare const fromTronResourcesRaw: ({ frozen, unFrozen, delegatedFrozen, legacyFrozen, votes, tronPower, energy, bandwidth, unwithdrawnReward, lastWithdrawnRewardDate, lastVotedDate, cacheTransactionInfoById: cacheTransactionInfoByIdRaw, }: TronResourcesRaw) => TronResources;
export declare function assignToAccountRaw(account: Account, accountRaw: AccountRaw): void;
export declare function assignFromAccountRaw(accountRaw: AccountRaw, account: Account): void;
export declare function fromOperationExtraRaw(extraRaw: OperationExtraRaw): TrongridExtraTxInfo;
export declare function toOperationExtraRaw(extra: OperationExtra): TrongridExtraTxInfoRaw;
//# sourceMappingURL=serialization.d.ts.map