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
2 changes: 1 addition & 1 deletion packages/wasm-ton/js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export * as builder from "./builder.js";

// Top-level function exports
export { encodeAddress, encode, decode, validate } from "./address.js";
export { Transaction, transactionFromBytes } from "./transaction.js";
export { Transaction } from "./transaction.js";
export { parseTransaction } from "./parser.js";
export { buildTransaction } from "./builder.js";

Expand Down
10 changes: 0 additions & 10 deletions packages/wasm-ton/js/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,3 @@ export interface ParsedTransaction {
export function parseTransaction(tx: Transaction): ParsedTransaction {
return ParserNamespace.parseFromTransaction(tx.wasm) as ParsedTransaction;
}

/**
* Parse raw BOC bytes into structured data.
*
* @param bytes - Raw BOC bytes
* @returns A ParsedTransaction
*/
export function parseTransactionBytes(bytes: Uint8Array): ParsedTransaction {
return ParserNamespace.parseTransaction(bytes) as ParsedTransaction;
}
7 changes: 0 additions & 7 deletions packages/wasm-ton/js/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,3 @@ export class Transaction {
return this._wasm;
}
}

/**
* Convenience function to create a Transaction from bytes.
*/
export function transactionFromBytes(bytes: Uint8Array): Transaction {
return Transaction.fromBytes(bytes);
}
Loading