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
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"tabWidth": 2,
"singleQuote": true
"singleQuote": true,
"trailingComma": "all"
}
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { EventEmitter } from 'node:events';
import RequestHandler from './functions/RequestHandler';
import RequestHandler from './structures/RequestHandler';
import {
APIRESTGetAccountTransactions,
APIRESTGetCurrenciesRates,
Expand All @@ -15,8 +15,8 @@ import {
getCachedCryptoCurrencies,
getCachedCryptoCurrency,
updateFiatCurrenciesCache,
} from './functions/util/CacheHandler';
import { updateCurrenciesCache } from './functions/util/CacheHandler';
} from './utils/CacheHandler';
import { updateCurrenciesCache } from './utils/CacheHandler';
import CryptoCurrency from './structures/CryptoCurrency';
import ExchangeRate from './structures/ExchangeRate';
import Wallet from './structures/Wallet';
Expand Down
2 changes: 1 addition & 1 deletion src/structures/Amount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ApiAmount } from '../types/TipccApi';
import {
getCachedCryptoCurrency,
getCachedFiatCurrency,
} from '../functions/util/CacheHandler';
} from '../utils/CacheHandler';

export default class Amount {
public value: BigNumber;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios, { AxiosRequestConfig, RawAxiosResponseHeaders } from 'axios';
import Bucket from './util/Bucket';
import Bucket from '../utils/Bucket';

export default class RequestHandler {
private _apiBaseUrl: string;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import TipccClient from '../..';
import CryptoCurrency from '../../structures/CryptoCurrency';
import TipccClient from '../';
import CryptoCurrency from '../structures/CryptoCurrency';
import {
APIRESTGetCurrenciesCryptocurrencies,
APIRESTGetCurrentciesFiats,
} from '../../types/TipccApi';
} from '../types/TipccApi';

const cryptoCurrenciesCache: CryptoCurrency[] = [];
const fiatCurrenciesCache: CryptoCurrency[] = [];
Expand Down