Skip to content

Commit

Permalink
TonHelper: Add GetBridgeAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbkmr committed Jun 15, 2024
1 parent 85fa83a commit 89a72cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/chains/ton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type {
ChainName,
FetchTxInfo,
GetBalance,
GetBridgeAddress,
GetEmmetHashFromTx,
GetEstimatedTime,
GetProvider,
Expand Down Expand Up @@ -45,7 +46,8 @@ export type TonHelper = GetBalance &
ProtocolFee &
GetEmmetHashFromTx &
TokenInfo &
GetEstimatedTime;
GetEstimatedTime &
GetBridgeAddress

export interface TonParams {
client: TonClient;
Expand Down Expand Up @@ -261,6 +263,9 @@ export function tonHandler({
throw new Error("No send installment found");
},
id: () => Promise.resolve(chainId),
async bridge() {
return await bridge.toString()
},
nativeCoin: () => "TON",
chainName: () => chainName,
txFee(coin_name) {
Expand Down

0 comments on commit 89a72cf

Please sign in to comment.