Skip to content

Commit 941c388

Browse files
mkaczanowskiwelldan97
authored andcommitted
run cleanup
1 parent 083edb6 commit 941c388

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

packages/ton/src/TonBaseStaker.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,11 @@ export class TonBaseStaker {
501501
}
502502

503503
/** @ignore */
504-
protected async getTransactionByHash (params: { address: string; txHash: string; limit?: number }): Promise<Transaction | undefined> {
504+
protected async getTransactionByHash (params: {
505+
address: string
506+
txHash: string
507+
limit?: number
508+
}): Promise<Transaction | undefined> {
505509
const client = this.getClient()
506510
const { address, txHash, limit } = params
507511

packages/ton/src/TonPoolStaker.ts

+21-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1-
import { Address, beginCell, fromNano, toNano, Slice, Builder, DictionaryValue, Dictionary, Cell, TransactionDescriptionGeneric } from '@ton/ton'
1+
import {
2+
Address,
3+
beginCell,
4+
fromNano,
5+
toNano,
6+
Slice,
7+
Builder,
8+
DictionaryValue,
9+
Dictionary,
10+
Cell,
11+
TransactionDescriptionGeneric
12+
} from '@ton/ton'
213
import { defaultValidUntil, getDefaultGas, getRandomQueryId, TonBaseStaker } from './TonBaseStaker'
3-
import { UnsignedTx, Election, FrozenSet, PoolStatus, GetPoolAddressForStakeResponse, Message, TonTxStatus } from './types'
14+
import {
15+
UnsignedTx,
16+
Election,
17+
FrozenSet,
18+
PoolStatus,
19+
GetPoolAddressForStakeResponse,
20+
Message,
21+
TonTxStatus
22+
} from './types'
423

524
export class TonPoolStaker extends TonBaseStaker {
625
/**

packages/ton/src/types.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,11 @@ export declare interface SignedTx {
141141
export interface TonTxStatus {
142142
status: 'success' | 'failure' | 'pending' | 'unknown'
143143
receipt: Transaction | null
144-
reason?: 'out_of_storage' | 'aborted' | 'compute_phase' | 'action_phase' | 'bounce_phase' | 'withdraw_below_minimum_stake'
144+
reason?:
145+
| 'out_of_storage'
146+
| 'aborted'
147+
| 'compute_phase'
148+
| 'action_phase'
149+
| 'bounce_phase'
150+
| 'withdraw_below_minimum_stake'
145151
}

0 commit comments

Comments
 (0)