-
Notifications
You must be signed in to change notification settings - Fork 15
feat: compile entrypoint file with typescript #577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7625343
feat: move index to typescript
r4mmer 72b383c
chore: encapsulate error messages enum
r4mmer 5848093
chore: add indirection to make compatible to how we used to export th…
r4mmer aff89ec
chore: lib should be ts
r4mmer fb19baf
chore: formatting
r4mmer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import * as hathorLib from './lib'; | ||
|
|
||
| export default hathorLib; | ||
| export * from './lib'; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| import * as constants from './constants'; | ||
| import dateFormatter from './utils/date'; | ||
| import websocket from './websocket'; | ||
| import * as errors from './errors'; | ||
| import * as ErrorMessages from './errorMessages'; | ||
| import walletApi from './api/wallet'; | ||
| import txApi from './api/txApi'; | ||
| import txMiningApi from './api/txMining'; | ||
| import versionApi from './api/version'; | ||
| import * as axios from './api/axiosInstance'; | ||
| import metadataApi from './api/metadataApi'; | ||
| import { Storage } from './storage/storage'; | ||
| import LevelDBStore from './storage/leveldb/store'; | ||
| import { MemoryStore } from './storage/memory_store'; | ||
| import network from './network'; | ||
| import HathorWallet from './new/wallet'; | ||
| import Connection from './new/connection'; | ||
| import WalletServiceConnection from './wallet/connection'; | ||
| import SendTransaction from './new/sendTransaction'; | ||
| import Address from './models/address'; | ||
| import Output from './models/output'; | ||
| import P2PKH from './models/p2pkh'; | ||
| import P2SH from './models/p2sh'; | ||
| import P2SHSignature from './models/p2sh_signature'; | ||
| import ScriptData from './models/script_data'; | ||
| import Input from './models/input'; | ||
| import Transaction from './models/transaction'; | ||
| import CreateTokenTransaction from './models/create_token_transaction'; | ||
| import Network from './models/network'; | ||
| import * as addressUtils from './utils/address'; | ||
| import * as cryptoUtils from './utils/crypto'; | ||
| import dateUtils from './utils/date'; | ||
| import tokensUtils from './utils/tokens'; | ||
| import walletUtils from './utils/wallet'; | ||
| import helpersUtils from './utils/helpers'; | ||
| import * as numberUtils from './utils/numbers'; | ||
| import * as scriptsUtils from './utils/scripts'; | ||
| import transactionUtils from './utils/transaction'; | ||
| import * as bufferUtils from './utils/buffer'; | ||
| import HathorWalletServiceWallet from './wallet/wallet'; | ||
| import walletServiceApi from './wallet/api/walletApi'; | ||
| import SendTransactionWalletService from './wallet/sendTransactionWalletService'; | ||
| import config from './config'; | ||
| import * as PushNotification from './pushNotification'; | ||
| import { WalletType } from './types'; | ||
| import { PartialTx, PartialTxInputData } from './models/partial_tx'; | ||
| import PartialTxProposal from './wallet/partialTxProposal'; | ||
| import * as swapService from './wallet/api/swapService'; | ||
| import { AtomicSwapServiceConnection } from './swapService/swapConnection'; | ||
|
|
||
| export { | ||
| PartialTx, | ||
| PartialTxInputData, | ||
| PartialTxProposal, | ||
| dateFormatter, | ||
| websocket, | ||
| walletApi, | ||
| txApi, | ||
| txMiningApi, | ||
| versionApi, | ||
| metadataApi, | ||
| errors, | ||
| ErrorMessages, | ||
| constants, | ||
| axios, | ||
| Storage, | ||
| LevelDBStore, | ||
| MemoryStore, | ||
| network, | ||
| HathorWallet, | ||
| Connection, | ||
| AtomicSwapServiceConnection, | ||
| WalletServiceConnection, | ||
| SendTransaction, | ||
| Address, | ||
| Output, | ||
| P2PKH, | ||
| P2SH, | ||
| P2SHSignature, | ||
| ScriptData, | ||
| Input, | ||
| Transaction, | ||
| CreateTokenTransaction, | ||
| Network, | ||
| addressUtils, | ||
| cryptoUtils, | ||
| dateUtils, | ||
| tokensUtils, | ||
| walletUtils, | ||
| numberUtils, | ||
| helpersUtils, | ||
| scriptsUtils, | ||
| bufferUtils, | ||
| transactionUtils, | ||
| HathorWalletServiceWallet, | ||
| walletServiceApi, | ||
| SendTransactionWalletService, | ||
| config, | ||
| PushNotification, | ||
| swapService, | ||
| WalletType, | ||
| }; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.